2 * FILE : src/msw/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/metafile.h>
60 #include <wx/imaglist.h>
66 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
72 } else if (target
== Py_None
) {
76 if (!PyTuple_Check(target
)) {
78 target
= PyTuple_New(1);
79 PyTuple_SetItem(target
, 0, o2
);
82 PyTuple_SetItem(o3
, 0, o
);
85 target
= PySequence_Concat(o2
, o3
);
92 #if PYTHON_API_VERSION >= 1009
93 static char* wxStringErrorMsg
= "String or Unicode type required";
95 static char* wxStringErrorMsg
= "string type is required for parameter";
98 static wxString
wxPyEmptyStr("");
99 // Implementations of some alternate "constructors"
101 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
102 return new wxBitmap(width
, height
, depth
);
105 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
106 char** cArray
= NULL
;
109 if (!PyList_Check(listOfStrings
)) {
110 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
113 count
= PyList_Size(listOfStrings
);
114 cArray
= new char*[count
];
116 for(int x
=0; x
<count
; x
++) {
117 // TODO: Need some validation and error checking here
118 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
123 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
124 char** cArray
= NULL
;
127 cArray
= ConvertListOfStrings(listOfStrings
);
130 bmp
= new wxBitmap(cArray
);
136 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
137 return new wxBitmap(icon
);
143 wxBitmap
* wxBitmapFromData(PyObject
* data
, long type
,
144 int width
, int height
, int depth
= 1) {
145 if (! PyString_Check(data
)) {
146 PyErr_SetString(PyExc_TypeError
, "Expected string object");
150 return new wxBitmap((void*)PyString_AsString(data
), type
, width
, height
, depth
);
154 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
155 return new wxMask(bitmap
, colour
);
157 // Implementations of some alternate "constructors"
158 wxIcon
* wxEmptyIcon() {
162 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
163 char** cArray
= NULL
;
166 cArray
= ConvertListOfStrings(listOfStrings
);
169 icon
= new wxIcon(cArray
);
173 // Alternate 'constructor'
174 wxCursor
* wxPyStockCursor(int id
) {
175 return new wxCursor(id
);
178 wxFontEncoding
wxFont_GetDefaultEncoding() {
179 return wxFont::GetDefaultEncoding();
182 void wxFont_SetDefaultEncoding(wxFontEncoding encoding
) {
183 wxFont::SetDefaultEncoding(encoding
);
185 // Alternate 'constructor'
186 wxColour
* wxNamedColour(const wxString
& colorName
) {
187 return new wxColour(colorName
);
189 // Alternate 'constructor'
190 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
191 return new wxMemoryDC(oldDC
);
195 extern wxFont
* wxNORMAL_FONT
;
196 extern wxFont
* wxSMALL_FONT
;
197 extern wxFont
* wxITALIC_FONT
;
198 extern wxFont
* wxSWISS_FONT
;
199 extern wxPen
* wxRED_PEN
;
200 extern wxPen
* wxCYAN_PEN
;
201 extern wxPen
* wxGREEN_PEN
;
202 extern wxPen
* wxBLACK_PEN
;
203 extern wxPen
* wxWHITE_PEN
;
204 extern wxPen
* wxTRANSPARENT_PEN
;
205 extern wxPen
* wxBLACK_DASHED_PEN
;
206 extern wxPen
* wxGREY_PEN
;
207 extern wxPen
* wxMEDIUM_GREY_PEN
;
208 extern wxPen
* wxLIGHT_GREY_PEN
;
209 extern wxBrush
* wxBLUE_BRUSH
;
210 extern wxBrush
* wxGREEN_BRUSH
;
211 extern wxBrush
* wxWHITE_BRUSH
;
212 extern wxBrush
* wxBLACK_BRUSH
;
213 extern wxBrush
* wxTRANSPARENT_BRUSH
;
214 extern wxBrush
* wxCYAN_BRUSH
;
215 extern wxBrush
* wxRED_BRUSH
;
216 extern wxBrush
* wxGREY_BRUSH
;
217 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
218 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
219 extern wxColour
* wxBLACK
;
220 extern wxColour
* wxWHITE
;
221 extern wxColour
* wxRED
;
222 extern wxColour
* wxBLUE
;
223 extern wxColour
* wxGREEN
;
224 extern wxColour
* wxCYAN
;
225 extern wxColour
* wxLIGHT_GREY
;
226 extern wxCursor
* wxSTANDARD_CURSOR
;
227 extern wxCursor
* wxHOURGLASS_CURSOR
;
228 extern wxCursor
* wxCROSS_CURSOR
;
229 extern wxBitmap wxNullBitmap
;
230 extern wxIcon wxNullIcon
;
231 extern wxCursor wxNullCursor
;
232 extern wxPen wxNullPen
;
233 extern wxBrush wxNullBrush
;
234 extern wxPalette wxNullPalette
;
235 extern wxFont wxNullFont
;
236 extern wxColour wxNullColour
;
237 extern wxFontList
* wxTheFontList
;
238 extern wxPenList
* wxThePenList
;
239 extern wxBrushlist
* wxTheBrushList
;
240 extern wxColourDatabase
* wxTheColourDatabase
;
246 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
247 PyObject
* _resultobj
;
251 int _arg2
= (int ) -1;
252 char *_kwnames
[] = { "width","height","depth", NULL
};
256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
259 wxPy_BEGIN_ALLOW_THREADS
;
260 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
262 wxPy_END_ALLOW_THREADS
;
263 if (PyErr_Occurred()) return NULL
;
265 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
266 _resultobj
= Py_BuildValue("s",_ptemp
);
269 _resultobj
= Py_None
;
274 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
275 PyObject
* _resultobj
;
278 PyObject
* _obj0
= 0;
279 char *_kwnames
[] = { "listOfStrings", NULL
};
283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
289 wxPy_BEGIN_ALLOW_THREADS
;
290 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
292 wxPy_END_ALLOW_THREADS
;
293 if (PyErr_Occurred()) return NULL
;
295 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
296 _resultobj
= Py_BuildValue("s",_ptemp
);
299 _resultobj
= Py_None
;
304 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
305 PyObject
* _resultobj
;
308 PyObject
* _argo0
= 0;
309 char *_kwnames
[] = { "icon", NULL
};
313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
323 wxPy_BEGIN_ALLOW_THREADS
;
324 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
326 wxPy_END_ALLOW_THREADS
;
327 if (PyErr_Occurred()) return NULL
;
329 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
330 _resultobj
= Py_BuildValue("s",_ptemp
);
333 _resultobj
= Py_None
;
338 static PyObject
*_wrap_wxBitmapFromData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
339 PyObject
* _resultobj
;
345 int _arg4
= (int ) 1;
346 PyObject
* _obj0
= 0;
347 char *_kwnames
[] = { "data","type","width","height","depth", NULL
};
351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olii|i:wxBitmapFromData",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
357 wxPy_BEGIN_ALLOW_THREADS
;
358 _result
= (wxBitmap
*)wxBitmapFromData(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
360 wxPy_END_ALLOW_THREADS
;
361 if (PyErr_Occurred()) return NULL
;
363 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
364 _resultobj
= Py_BuildValue("s",_ptemp
);
367 _resultobj
= Py_None
;
372 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
373 PyObject
* _resultobj
;
377 PyObject
* _argo0
= 0;
379 PyObject
* _obj1
= 0;
380 char *_kwnames
[] = { "bitmap","colour", NULL
};
384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
395 if (! wxColour_helper(_obj1
, &_arg1
))
399 wxPy_BEGIN_ALLOW_THREADS
;
400 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
402 wxPy_END_ALLOW_THREADS
;
403 if (PyErr_Occurred()) return NULL
;
405 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
406 _resultobj
= Py_BuildValue("s",_ptemp
);
409 _resultobj
= Py_None
;
414 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
415 PyObject
* _resultobj
;
417 char *_kwnames
[] = { NULL
};
421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
424 wxPy_BEGIN_ALLOW_THREADS
;
425 _result
= (wxIcon
*)wxEmptyIcon();
427 wxPy_END_ALLOW_THREADS
;
428 if (PyErr_Occurred()) return NULL
;
430 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
431 _resultobj
= Py_BuildValue("s",_ptemp
);
434 _resultobj
= Py_None
;
439 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
440 PyObject
* _resultobj
;
443 PyObject
* _obj0
= 0;
444 char *_kwnames
[] = { "listOfStrings", NULL
};
448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
454 wxPy_BEGIN_ALLOW_THREADS
;
455 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
457 wxPy_END_ALLOW_THREADS
;
458 if (PyErr_Occurred()) return NULL
;
460 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
461 _resultobj
= Py_BuildValue("s",_ptemp
);
464 _resultobj
= Py_None
;
469 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
470 PyObject
* _resultobj
;
473 char *_kwnames
[] = { "id", NULL
};
477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
480 wxPy_BEGIN_ALLOW_THREADS
;
481 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
483 wxPy_END_ALLOW_THREADS
;
484 if (PyErr_Occurred()) return NULL
;
486 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
487 _resultobj
= Py_BuildValue("s",_ptemp
);
490 _resultobj
= Py_None
;
495 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
496 PyObject
* _resultobj
;
497 wxFontEncoding _result
;
498 char *_kwnames
[] = { NULL
};
501 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
504 wxPy_BEGIN_ALLOW_THREADS
;
505 _result
= (wxFontEncoding
)wxFont_GetDefaultEncoding();
507 wxPy_END_ALLOW_THREADS
;
508 if (PyErr_Occurred()) return NULL
;
509 } _resultobj
= Py_BuildValue("i",_result
);
513 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
514 PyObject
* _resultobj
;
515 wxFontEncoding _arg0
;
516 char *_kwnames
[] = { "encoding", NULL
};
519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
522 wxPy_BEGIN_ALLOW_THREADS
;
523 wxFont_SetDefaultEncoding(_arg0
);
525 wxPy_END_ALLOW_THREADS
;
526 if (PyErr_Occurred()) return NULL
;
527 } Py_INCREF(Py_None
);
528 _resultobj
= Py_None
;
532 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
533 PyObject
* _resultobj
;
536 PyObject
* _obj0
= 0;
537 char *_kwnames
[] = { "colorName", NULL
};
541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
544 #if PYTHON_API_VERSION >= 1009
545 char* tmpPtr
; int tmpSize
;
546 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
547 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
550 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
552 _arg0
= new wxString(tmpPtr
, tmpSize
);
554 if (!PyString_Check(_obj0
)) {
555 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
558 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
562 wxPy_BEGIN_ALLOW_THREADS
;
563 _result
= (wxColour
*)wxNamedColour(*_arg0
);
565 wxPy_END_ALLOW_THREADS
;
566 if (PyErr_Occurred()) return NULL
;
568 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
569 _resultobj
= Py_BuildValue("s",_ptemp
);
572 _resultobj
= Py_None
;
581 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
582 PyObject
* _resultobj
;
583 wxMemoryDC
* _result
;
585 PyObject
* _argo0
= 0;
586 char *_kwnames
[] = { "oldDC", NULL
};
590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
600 wxPy_BEGIN_ALLOW_THREADS
;
601 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
603 wxPy_END_ALLOW_THREADS
;
604 if (PyErr_Occurred()) return NULL
;
606 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
607 _resultobj
= Py_BuildValue("s",_ptemp
);
610 _resultobj
= Py_None
;
615 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
617 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
621 static PyObject
*_wrap_wxNORMAL_FONT_get() {
625 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
626 pyobj
= PyString_FromString(ptemp
);
630 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
632 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
636 static PyObject
*_wrap_wxSMALL_FONT_get() {
640 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
641 pyobj
= PyString_FromString(ptemp
);
645 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
647 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
651 static PyObject
*_wrap_wxITALIC_FONT_get() {
655 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
656 pyobj
= PyString_FromString(ptemp
);
660 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
662 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
666 static PyObject
*_wrap_wxSWISS_FONT_get() {
670 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
671 pyobj
= PyString_FromString(ptemp
);
675 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
677 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
681 static PyObject
*_wrap_wxRED_PEN_get() {
685 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
686 pyobj
= PyString_FromString(ptemp
);
690 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
692 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
696 static PyObject
*_wrap_wxCYAN_PEN_get() {
700 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
701 pyobj
= PyString_FromString(ptemp
);
705 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
707 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
711 static PyObject
*_wrap_wxGREEN_PEN_get() {
715 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
716 pyobj
= PyString_FromString(ptemp
);
720 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
722 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
726 static PyObject
*_wrap_wxBLACK_PEN_get() {
730 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
731 pyobj
= PyString_FromString(ptemp
);
735 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
737 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
741 static PyObject
*_wrap_wxWHITE_PEN_get() {
745 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
746 pyobj
= PyString_FromString(ptemp
);
750 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
752 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
756 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
760 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
761 pyobj
= PyString_FromString(ptemp
);
765 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
767 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
771 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
775 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
776 pyobj
= PyString_FromString(ptemp
);
780 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
782 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
786 static PyObject
*_wrap_wxGREY_PEN_get() {
790 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
791 pyobj
= PyString_FromString(ptemp
);
795 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
797 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
801 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
805 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
806 pyobj
= PyString_FromString(ptemp
);
810 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
812 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
816 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
820 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
821 pyobj
= PyString_FromString(ptemp
);
825 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
827 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
831 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
835 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
836 pyobj
= PyString_FromString(ptemp
);
840 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
842 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
846 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
850 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
851 pyobj
= PyString_FromString(ptemp
);
855 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
857 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
861 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
865 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
866 pyobj
= PyString_FromString(ptemp
);
870 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
872 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
876 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
880 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
881 pyobj
= PyString_FromString(ptemp
);
885 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
887 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
891 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
895 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
896 pyobj
= PyString_FromString(ptemp
);
900 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
902 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
906 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
910 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
911 pyobj
= PyString_FromString(ptemp
);
915 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
917 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
921 static PyObject
*_wrap_wxRED_BRUSH_get() {
925 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
926 pyobj
= PyString_FromString(ptemp
);
930 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
932 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
936 static PyObject
*_wrap_wxGREY_BRUSH_get() {
940 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
941 pyobj
= PyString_FromString(ptemp
);
945 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
947 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
951 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
955 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
956 pyobj
= PyString_FromString(ptemp
);
960 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
962 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
966 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
970 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
971 pyobj
= PyString_FromString(ptemp
);
975 static int _wrap_wxBLACK_set(PyObject
*val
) {
977 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
981 static PyObject
*_wrap_wxBLACK_get() {
985 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
986 pyobj
= PyString_FromString(ptemp
);
990 static int _wrap_wxWHITE_set(PyObject
*val
) {
992 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
996 static PyObject
*_wrap_wxWHITE_get() {
1000 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
1001 pyobj
= PyString_FromString(ptemp
);
1005 static int _wrap_wxRED_set(PyObject
*val
) {
1007 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
1011 static PyObject
*_wrap_wxRED_get() {
1015 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1016 pyobj
= PyString_FromString(ptemp
);
1020 static int _wrap_wxBLUE_set(PyObject
*val
) {
1022 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1026 static PyObject
*_wrap_wxBLUE_get() {
1030 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1031 pyobj
= PyString_FromString(ptemp
);
1035 static int _wrap_wxGREEN_set(PyObject
*val
) {
1037 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1041 static PyObject
*_wrap_wxGREEN_get() {
1045 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1046 pyobj
= PyString_FromString(ptemp
);
1050 static int _wrap_wxCYAN_set(PyObject
*val
) {
1052 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1056 static PyObject
*_wrap_wxCYAN_get() {
1060 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1061 pyobj
= PyString_FromString(ptemp
);
1065 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1067 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1071 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1075 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1076 pyobj
= PyString_FromString(ptemp
);
1080 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1082 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1086 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1090 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1091 pyobj
= PyString_FromString(ptemp
);
1095 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1097 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1101 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1105 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1106 pyobj
= PyString_FromString(ptemp
);
1110 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1112 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1116 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1120 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1121 pyobj
= PyString_FromString(ptemp
);
1125 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1127 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1131 static PyObject
*_wrap_wxNullBitmap_get() {
1135 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1136 pyobj
= PyString_FromString(ptemp
);
1140 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1142 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1146 static PyObject
*_wrap_wxNullIcon_get() {
1150 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1151 pyobj
= PyString_FromString(ptemp
);
1155 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1157 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1161 static PyObject
*_wrap_wxNullCursor_get() {
1165 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1166 pyobj
= PyString_FromString(ptemp
);
1170 static int _wrap_wxNullPen_set(PyObject
*val
) {
1172 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1176 static PyObject
*_wrap_wxNullPen_get() {
1180 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1181 pyobj
= PyString_FromString(ptemp
);
1185 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1187 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1191 static PyObject
*_wrap_wxNullBrush_get() {
1195 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1196 pyobj
= PyString_FromString(ptemp
);
1200 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1202 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1206 static PyObject
*_wrap_wxNullPalette_get() {
1210 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1211 pyobj
= PyString_FromString(ptemp
);
1215 static int _wrap_wxNullFont_set(PyObject
*val
) {
1217 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1221 static PyObject
*_wrap_wxNullFont_get() {
1225 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1226 pyobj
= PyString_FromString(ptemp
);
1230 static int _wrap_wxNullColour_set(PyObject
*val
) {
1232 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1236 static PyObject
*_wrap_wxNullColour_get() {
1240 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1241 pyobj
= PyString_FromString(ptemp
);
1245 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1247 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1251 static PyObject
*_wrap_wxTheFontList_get() {
1255 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1256 pyobj
= PyString_FromString(ptemp
);
1260 static int _wrap_wxThePenList_set(PyObject
*val
) {
1262 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1266 static PyObject
*_wrap_wxThePenList_get() {
1270 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1271 pyobj
= PyString_FromString(ptemp
);
1275 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1277 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1281 static PyObject
*_wrap_wxTheBrushList_get() {
1285 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushlist_p");
1286 pyobj
= PyString_FromString(ptemp
);
1290 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1292 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1296 static PyObject
*_wrap_wxTheColourDatabase_get() {
1300 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1301 pyobj
= PyString_FromString(ptemp
);
1305 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1308 src
= (wxGDIObject
*) ptr
;
1309 dest
= (wxObject
*) src
;
1310 return (void *) dest
;
1313 #define new_wxGDIObject() (new wxGDIObject())
1314 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1315 PyObject
* _resultobj
;
1316 wxGDIObject
* _result
;
1317 char *_kwnames
[] = { NULL
};
1321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1324 wxPy_BEGIN_ALLOW_THREADS
;
1325 _result
= (wxGDIObject
*)new_wxGDIObject();
1327 wxPy_END_ALLOW_THREADS
;
1328 if (PyErr_Occurred()) return NULL
;
1330 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1331 _resultobj
= Py_BuildValue("s",_ptemp
);
1334 _resultobj
= Py_None
;
1339 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1340 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1341 PyObject
* _resultobj
;
1342 wxGDIObject
* _arg0
;
1343 PyObject
* _argo0
= 0;
1344 char *_kwnames
[] = { "self", NULL
};
1347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1357 wxPy_BEGIN_ALLOW_THREADS
;
1358 delete_wxGDIObject(_arg0
);
1360 wxPy_END_ALLOW_THREADS
;
1361 if (PyErr_Occurred()) return NULL
;
1362 } Py_INCREF(Py_None
);
1363 _resultobj
= Py_None
;
1367 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1368 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1369 PyObject
* _resultobj
;
1371 wxGDIObject
* _arg0
;
1372 PyObject
* _argo0
= 0;
1373 char *_kwnames
[] = { "self", NULL
};
1376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1379 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1380 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1381 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1386 wxPy_BEGIN_ALLOW_THREADS
;
1387 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1389 wxPy_END_ALLOW_THREADS
;
1390 if (PyErr_Occurred()) return NULL
;
1391 } _resultobj
= Py_BuildValue("i",_result
);
1395 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1396 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1397 PyObject
* _resultobj
;
1398 wxGDIObject
* _arg0
;
1400 PyObject
* _argo0
= 0;
1402 char *_kwnames
[] = { "self","visible", NULL
};
1405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1414 _arg1
= (bool ) tempbool1
;
1416 wxPy_BEGIN_ALLOW_THREADS
;
1417 wxGDIObject_SetVisible(_arg0
,_arg1
);
1419 wxPy_END_ALLOW_THREADS
;
1420 if (PyErr_Occurred()) return NULL
;
1421 } Py_INCREF(Py_None
);
1422 _resultobj
= Py_None
;
1426 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1427 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1428 PyObject
* _resultobj
;
1430 wxGDIObject
* _arg0
;
1431 PyObject
* _argo0
= 0;
1432 char *_kwnames
[] = { "self", NULL
};
1435 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1438 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1439 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1445 wxPy_BEGIN_ALLOW_THREADS
;
1446 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1448 wxPy_END_ALLOW_THREADS
;
1449 if (PyErr_Occurred()) return NULL
;
1450 } _resultobj
= Py_BuildValue("i",_result
);
1454 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1457 src
= (wxBitmap
*) ptr
;
1458 dest
= (wxGDIObject
*) src
;
1459 return (void *) dest
;
1462 static void *SwigwxBitmapTowxObject(void *ptr
) {
1465 src
= (wxBitmap
*) ptr
;
1466 dest
= (wxObject
*) src
;
1467 return (void *) dest
;
1470 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1471 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1472 PyObject
* _resultobj
;
1476 PyObject
* _obj0
= 0;
1477 char *_kwnames
[] = { "name","type", NULL
};
1481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1484 #if PYTHON_API_VERSION >= 1009
1485 char* tmpPtr
; int tmpSize
;
1486 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1487 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1490 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1492 _arg0
= new wxString(tmpPtr
, tmpSize
);
1494 if (!PyString_Check(_obj0
)) {
1495 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1498 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1502 wxPy_BEGIN_ALLOW_THREADS
;
1503 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1505 wxPy_END_ALLOW_THREADS
;
1506 if (PyErr_Occurred()) return NULL
;
1508 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1509 _resultobj
= Py_BuildValue("s",_ptemp
);
1512 _resultobj
= Py_None
;
1521 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1522 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1523 PyObject
* _resultobj
;
1525 PyObject
* _argo0
= 0;
1526 char *_kwnames
[] = { "self", NULL
};
1529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1532 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1533 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1534 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1539 wxPy_BEGIN_ALLOW_THREADS
;
1540 delete_wxBitmap(_arg0
);
1542 wxPy_END_ALLOW_THREADS
;
1543 if (PyErr_Occurred()) return NULL
;
1544 } Py_INCREF(Py_None
);
1545 _resultobj
= Py_None
;
1549 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1550 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1551 PyObject
* _resultobj
;
1552 wxPalette
* _result
;
1554 PyObject
* _argo0
= 0;
1555 char *_kwnames
[] = { "self", NULL
};
1559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1569 wxPy_BEGIN_ALLOW_THREADS
;
1570 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1572 wxPy_END_ALLOW_THREADS
;
1573 if (PyErr_Occurred()) return NULL
;
1575 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1576 _resultobj
= Py_BuildValue("s",_ptemp
);
1579 _resultobj
= Py_None
;
1584 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1585 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1586 PyObject
* _resultobj
;
1589 PyObject
* _argo0
= 0;
1590 char *_kwnames
[] = { "self", NULL
};
1594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1597 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1598 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1604 wxPy_BEGIN_ALLOW_THREADS
;
1605 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1607 wxPy_END_ALLOW_THREADS
;
1608 if (PyErr_Occurred()) return NULL
;
1610 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1611 _resultobj
= Py_BuildValue("s",_ptemp
);
1614 _resultobj
= Py_None
;
1619 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1620 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1621 PyObject
* _resultobj
;
1626 PyObject
* _argo0
= 0;
1627 PyObject
* _obj1
= 0;
1628 char *_kwnames
[] = { "self","name","flags", NULL
};
1631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1641 #if PYTHON_API_VERSION >= 1009
1642 char* tmpPtr
; int tmpSize
;
1643 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1644 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1647 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1649 _arg1
= new wxString(tmpPtr
, tmpSize
);
1651 if (!PyString_Check(_obj1
)) {
1652 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1655 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1659 wxPy_BEGIN_ALLOW_THREADS
;
1660 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1662 wxPy_END_ALLOW_THREADS
;
1663 if (PyErr_Occurred()) return NULL
;
1664 } _resultobj
= Py_BuildValue("i",_result
);
1672 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1673 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1674 PyObject
* _resultobj
;
1679 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1680 PyObject
* _argo0
= 0;
1681 PyObject
* _obj1
= 0;
1682 PyObject
* _argo3
= 0;
1683 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1696 #if PYTHON_API_VERSION >= 1009
1697 char* tmpPtr
; int tmpSize
;
1698 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1699 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1702 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1704 _arg1
= new wxString(tmpPtr
, tmpSize
);
1706 if (!PyString_Check(_obj1
)) {
1707 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1710 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1714 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1715 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1721 wxPy_BEGIN_ALLOW_THREADS
;
1722 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1724 wxPy_END_ALLOW_THREADS
;
1725 if (PyErr_Occurred()) return NULL
;
1726 } _resultobj
= Py_BuildValue("i",_result
);
1734 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1735 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1736 PyObject
* _resultobj
;
1739 PyObject
* _argo0
= 0;
1740 PyObject
* _argo1
= 0;
1741 char *_kwnames
[] = { "self","mask", NULL
};
1744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1754 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1755 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1761 wxPy_BEGIN_ALLOW_THREADS
;
1762 wxBitmap_SetMask(_arg0
,_arg1
);
1764 wxPy_END_ALLOW_THREADS
;
1765 if (PyErr_Occurred()) return NULL
;
1766 } Py_INCREF(Py_None
);
1767 _resultobj
= Py_None
;
1771 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1772 static PyObject
*_wrap_wxBitmap_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1773 PyObject
* _resultobj
;
1776 PyObject
* _argo0
= 0;
1777 PyObject
* _argo1
= 0;
1778 char *_kwnames
[] = { "self","palette", NULL
};
1781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetPalette",_kwnames
,&_argo0
,&_argo1
))
1784 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1785 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1786 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1791 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1792 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
1793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1798 wxPy_BEGIN_ALLOW_THREADS
;
1799 wxBitmap_SetPalette(_arg0
,*_arg1
);
1801 wxPy_END_ALLOW_THREADS
;
1802 if (PyErr_Occurred()) return NULL
;
1803 } Py_INCREF(Py_None
);
1804 _resultobj
= Py_None
;
1808 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1809 static PyObject
*_wrap_wxBitmap_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1810 PyObject
* _resultobj
;
1813 PyObject
* _argo0
= 0;
1814 char *_kwnames
[] = { "self", NULL
};
1817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHandle",_kwnames
,&_argo0
))
1820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1827 wxPy_BEGIN_ALLOW_THREADS
;
1828 _result
= (long )wxBitmap_GetHandle(_arg0
);
1830 wxPy_END_ALLOW_THREADS
;
1831 if (PyErr_Occurred()) return NULL
;
1832 } _resultobj
= Py_BuildValue("l",_result
);
1836 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1837 static PyObject
*_wrap_wxBitmap_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1838 PyObject
* _resultobj
;
1841 PyObject
* _argo0
= 0;
1842 char *_kwnames
[] = { "self","handle", NULL
};
1845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxBitmap_SetHandle",_kwnames
,&_argo0
,&_arg1
))
1848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1855 wxPy_BEGIN_ALLOW_THREADS
;
1856 wxBitmap_SetHandle(_arg0
,_arg1
);
1858 wxPy_END_ALLOW_THREADS
;
1859 if (PyErr_Occurred()) return NULL
;
1860 } Py_INCREF(Py_None
);
1861 _resultobj
= Py_None
;
1865 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1866 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1867 PyObject
* _resultobj
;
1870 PyObject
* _argo0
= 0;
1871 char *_kwnames
[] = { "self", NULL
};
1874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1877 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1878 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1884 wxPy_BEGIN_ALLOW_THREADS
;
1885 _result
= (bool )wxBitmap_Ok(_arg0
);
1887 wxPy_END_ALLOW_THREADS
;
1888 if (PyErr_Occurred()) return NULL
;
1889 } _resultobj
= Py_BuildValue("i",_result
);
1893 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1894 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1895 PyObject
* _resultobj
;
1898 PyObject
* _argo0
= 0;
1899 char *_kwnames
[] = { "self", NULL
};
1902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1905 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1906 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1912 wxPy_BEGIN_ALLOW_THREADS
;
1913 _result
= (int )wxBitmap_GetWidth(_arg0
);
1915 wxPy_END_ALLOW_THREADS
;
1916 if (PyErr_Occurred()) return NULL
;
1917 } _resultobj
= Py_BuildValue("i",_result
);
1921 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1922 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1923 PyObject
* _resultobj
;
1926 PyObject
* _argo0
= 0;
1927 char *_kwnames
[] = { "self", NULL
};
1930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1933 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1934 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1940 wxPy_BEGIN_ALLOW_THREADS
;
1941 _result
= (int )wxBitmap_GetHeight(_arg0
);
1943 wxPy_END_ALLOW_THREADS
;
1944 if (PyErr_Occurred()) return NULL
;
1945 } _resultobj
= Py_BuildValue("i",_result
);
1949 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1950 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1951 PyObject
* _resultobj
;
1954 PyObject
* _argo0
= 0;
1955 char *_kwnames
[] = { "self", NULL
};
1958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1961 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1962 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1968 wxPy_BEGIN_ALLOW_THREADS
;
1969 _result
= (int )wxBitmap_GetDepth(_arg0
);
1971 wxPy_END_ALLOW_THREADS
;
1972 if (PyErr_Occurred()) return NULL
;
1973 } _resultobj
= Py_BuildValue("i",_result
);
1977 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1978 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1979 PyObject
* _resultobj
;
1982 PyObject
* _argo0
= 0;
1983 char *_kwnames
[] = { "self","w", NULL
};
1986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1989 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1990 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1996 wxPy_BEGIN_ALLOW_THREADS
;
1997 wxBitmap_SetWidth(_arg0
,_arg1
);
1999 wxPy_END_ALLOW_THREADS
;
2000 if (PyErr_Occurred()) return NULL
;
2001 } Py_INCREF(Py_None
);
2002 _resultobj
= Py_None
;
2006 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2007 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2008 PyObject
* _resultobj
;
2011 PyObject
* _argo0
= 0;
2012 char *_kwnames
[] = { "self","h", NULL
};
2015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2018 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2019 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2025 wxPy_BEGIN_ALLOW_THREADS
;
2026 wxBitmap_SetHeight(_arg0
,_arg1
);
2028 wxPy_END_ALLOW_THREADS
;
2029 if (PyErr_Occurred()) return NULL
;
2030 } Py_INCREF(Py_None
);
2031 _resultobj
= Py_None
;
2035 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2036 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2037 PyObject
* _resultobj
;
2040 PyObject
* _argo0
= 0;
2041 char *_kwnames
[] = { "self","d", NULL
};
2044 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2047 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2048 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2049 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2054 wxPy_BEGIN_ALLOW_THREADS
;
2055 wxBitmap_SetDepth(_arg0
,_arg1
);
2057 wxPy_END_ALLOW_THREADS
;
2058 if (PyErr_Occurred()) return NULL
;
2059 } Py_INCREF(Py_None
);
2060 _resultobj
= Py_None
;
2064 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2065 static PyObject
*_wrap_wxBitmap_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2066 PyObject
* _resultobj
;
2069 PyObject
* _argo0
= 0;
2071 PyObject
* _obj1
= 0;
2072 char *_kwnames
[] = { "self","size", NULL
};
2075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetSize",_kwnames
,&_argo0
,&_obj1
))
2078 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2079 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2086 if (! wxSize_helper(_obj1
, &_arg1
))
2090 wxPy_BEGIN_ALLOW_THREADS
;
2091 wxBitmap_SetSize(_arg0
,*_arg1
);
2093 wxPy_END_ALLOW_THREADS
;
2094 if (PyErr_Occurred()) return NULL
;
2095 } Py_INCREF(Py_None
);
2096 _resultobj
= Py_None
;
2100 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2101 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2102 PyObject
* _resultobj
;
2106 PyObject
* _argo0
= 0;
2108 PyObject
* _obj1
= 0;
2109 char *_kwnames
[] = { "self","rect", NULL
};
2113 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
2116 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2117 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2118 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2124 if (! wxRect_helper(_obj1
, &_arg1
))
2128 wxPy_BEGIN_ALLOW_THREADS
;
2129 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2131 wxPy_END_ALLOW_THREADS
;
2132 if (PyErr_Occurred()) return NULL
;
2133 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2134 _resultobj
= Py_BuildValue("s",_ptemp
);
2138 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2139 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2140 PyObject
* _resultobj
;
2144 PyObject
* _argo0
= 0;
2145 PyObject
* _argo1
= 0;
2146 char *_kwnames
[] = { "self","icon", NULL
};
2149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2159 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2160 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2161 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2166 wxPy_BEGIN_ALLOW_THREADS
;
2167 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2169 wxPy_END_ALLOW_THREADS
;
2170 if (PyErr_Occurred()) return NULL
;
2171 } _resultobj
= Py_BuildValue("i",_result
);
2175 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2176 static PyObject
*_wrap_wxBitmap_CopyFromCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2177 PyObject
* _resultobj
;
2181 PyObject
* _argo0
= 0;
2182 PyObject
* _argo1
= 0;
2183 char *_kwnames
[] = { "self","cursor", NULL
};
2186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromCursor",_kwnames
,&_argo0
,&_argo1
))
2189 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2190 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2196 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2197 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2203 wxPy_BEGIN_ALLOW_THREADS
;
2204 _result
= (bool )wxBitmap_CopyFromCursor(_arg0
,*_arg1
);
2206 wxPy_END_ALLOW_THREADS
;
2207 if (PyErr_Occurred()) return NULL
;
2208 } _resultobj
= Py_BuildValue("i",_result
);
2212 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2213 static PyObject
*_wrap_wxBitmap_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2214 PyObject
* _resultobj
;
2217 PyObject
* _argo0
= 0;
2218 char *_kwnames
[] = { "self", NULL
};
2221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetQuality",_kwnames
,&_argo0
))
2224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2231 wxPy_BEGIN_ALLOW_THREADS
;
2232 _result
= (int )wxBitmap_GetQuality(_arg0
);
2234 wxPy_END_ALLOW_THREADS
;
2235 if (PyErr_Occurred()) return NULL
;
2236 } _resultobj
= Py_BuildValue("i",_result
);
2240 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2241 static PyObject
*_wrap_wxBitmap_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2242 PyObject
* _resultobj
;
2245 PyObject
* _argo0
= 0;
2246 char *_kwnames
[] = { "self","q", NULL
};
2249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetQuality",_kwnames
,&_argo0
,&_arg1
))
2252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2259 wxPy_BEGIN_ALLOW_THREADS
;
2260 wxBitmap_SetQuality(_arg0
,_arg1
);
2262 wxPy_END_ALLOW_THREADS
;
2263 if (PyErr_Occurred()) return NULL
;
2264 } Py_INCREF(Py_None
);
2265 _resultobj
= Py_None
;
2269 static void *SwigwxMaskTowxObject(void *ptr
) {
2272 src
= (wxMask
*) ptr
;
2273 dest
= (wxObject
*) src
;
2274 return (void *) dest
;
2277 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2278 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2279 PyObject
* _resultobj
;
2282 PyObject
* _argo0
= 0;
2283 char *_kwnames
[] = { "bitmap", NULL
};
2287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2297 wxPy_BEGIN_ALLOW_THREADS
;
2298 _result
= (wxMask
*)new_wxMask(*_arg0
);
2300 wxPy_END_ALLOW_THREADS
;
2301 if (PyErr_Occurred()) return NULL
;
2303 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2304 _resultobj
= Py_BuildValue("s",_ptemp
);
2307 _resultobj
= Py_None
;
2312 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2313 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2314 PyObject
* _resultobj
;
2316 PyObject
* _argo0
= 0;
2317 char *_kwnames
[] = { "self", NULL
};
2320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2323 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2324 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2330 wxPy_BEGIN_ALLOW_THREADS
;
2331 wxMask_Destroy(_arg0
);
2333 wxPy_END_ALLOW_THREADS
;
2334 if (PyErr_Occurred()) return NULL
;
2335 } Py_INCREF(Py_None
);
2336 _resultobj
= Py_None
;
2340 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2343 src
= (wxIcon
*) ptr
;
2344 dest
= (wxGDIObject
*) src
;
2345 return (void *) dest
;
2348 static void *SwigwxIconTowxObject(void *ptr
) {
2351 src
= (wxIcon
*) ptr
;
2352 dest
= (wxObject
*) src
;
2353 return (void *) dest
;
2356 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2357 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2358 PyObject
* _resultobj
;
2362 int _arg2
= (int ) -1;
2363 int _arg3
= (int ) -1;
2364 PyObject
* _obj0
= 0;
2365 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2372 #if PYTHON_API_VERSION >= 1009
2373 char* tmpPtr
; int tmpSize
;
2374 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2375 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2378 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2380 _arg0
= new wxString(tmpPtr
, tmpSize
);
2382 if (!PyString_Check(_obj0
)) {
2383 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2386 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2390 wxPy_BEGIN_ALLOW_THREADS
;
2391 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2393 wxPy_END_ALLOW_THREADS
;
2394 if (PyErr_Occurred()) return NULL
;
2396 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2397 _resultobj
= Py_BuildValue("s",_ptemp
);
2400 _resultobj
= Py_None
;
2409 #define delete_wxIcon(_swigobj) (delete _swigobj)
2410 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2411 PyObject
* _resultobj
;
2413 PyObject
* _argo0
= 0;
2414 char *_kwnames
[] = { "self", NULL
};
2417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2427 wxPy_BEGIN_ALLOW_THREADS
;
2428 delete_wxIcon(_arg0
);
2430 wxPy_END_ALLOW_THREADS
;
2431 if (PyErr_Occurred()) return NULL
;
2432 } Py_INCREF(Py_None
);
2433 _resultobj
= Py_None
;
2437 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2438 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2439 PyObject
* _resultobj
;
2444 PyObject
* _argo0
= 0;
2445 PyObject
* _obj1
= 0;
2446 char *_kwnames
[] = { "self","name","flags", NULL
};
2449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2459 #if PYTHON_API_VERSION >= 1009
2460 char* tmpPtr
; int tmpSize
;
2461 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2462 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2465 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2467 _arg1
= new wxString(tmpPtr
, tmpSize
);
2469 if (!PyString_Check(_obj1
)) {
2470 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2473 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2477 wxPy_BEGIN_ALLOW_THREADS
;
2478 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2480 wxPy_END_ALLOW_THREADS
;
2481 if (PyErr_Occurred()) return NULL
;
2482 } _resultobj
= Py_BuildValue("i",_result
);
2490 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2491 static PyObject
*_wrap_wxIcon_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2492 PyObject
* _resultobj
;
2495 PyObject
* _argo0
= 0;
2496 char *_kwnames
[] = { "self", NULL
};
2499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHandle",_kwnames
,&_argo0
))
2502 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2503 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2509 wxPy_BEGIN_ALLOW_THREADS
;
2510 _result
= (long )wxIcon_GetHandle(_arg0
);
2512 wxPy_END_ALLOW_THREADS
;
2513 if (PyErr_Occurred()) return NULL
;
2514 } _resultobj
= Py_BuildValue("l",_result
);
2518 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2519 static PyObject
*_wrap_wxIcon_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2520 PyObject
* _resultobj
;
2523 PyObject
* _argo0
= 0;
2524 char *_kwnames
[] = { "self","handle", NULL
};
2527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxIcon_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2537 wxPy_BEGIN_ALLOW_THREADS
;
2538 wxIcon_SetHandle(_arg0
,_arg1
);
2540 wxPy_END_ALLOW_THREADS
;
2541 if (PyErr_Occurred()) return NULL
;
2542 } Py_INCREF(Py_None
);
2543 _resultobj
= Py_None
;
2547 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2548 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2549 PyObject
* _resultobj
;
2552 PyObject
* _argo0
= 0;
2553 char *_kwnames
[] = { "self", NULL
};
2556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2559 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2560 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2566 wxPy_BEGIN_ALLOW_THREADS
;
2567 _result
= (bool )wxIcon_Ok(_arg0
);
2569 wxPy_END_ALLOW_THREADS
;
2570 if (PyErr_Occurred()) return NULL
;
2571 } _resultobj
= Py_BuildValue("i",_result
);
2575 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2576 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2577 PyObject
* _resultobj
;
2580 PyObject
* _argo0
= 0;
2581 char *_kwnames
[] = { "self", NULL
};
2584 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2587 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2588 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2589 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2594 wxPy_BEGIN_ALLOW_THREADS
;
2595 _result
= (int )wxIcon_GetWidth(_arg0
);
2597 wxPy_END_ALLOW_THREADS
;
2598 if (PyErr_Occurred()) return NULL
;
2599 } _resultobj
= Py_BuildValue("i",_result
);
2603 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2604 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2605 PyObject
* _resultobj
;
2608 PyObject
* _argo0
= 0;
2609 char *_kwnames
[] = { "self", NULL
};
2612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2615 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2616 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2622 wxPy_BEGIN_ALLOW_THREADS
;
2623 _result
= (int )wxIcon_GetHeight(_arg0
);
2625 wxPy_END_ALLOW_THREADS
;
2626 if (PyErr_Occurred()) return NULL
;
2627 } _resultobj
= Py_BuildValue("i",_result
);
2631 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2632 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2633 PyObject
* _resultobj
;
2636 PyObject
* _argo0
= 0;
2637 char *_kwnames
[] = { "self", NULL
};
2640 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2643 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2644 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2645 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2650 wxPy_BEGIN_ALLOW_THREADS
;
2651 _result
= (int )wxIcon_GetDepth(_arg0
);
2653 wxPy_END_ALLOW_THREADS
;
2654 if (PyErr_Occurred()) return NULL
;
2655 } _resultobj
= Py_BuildValue("i",_result
);
2659 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2660 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2661 PyObject
* _resultobj
;
2664 PyObject
* _argo0
= 0;
2665 char *_kwnames
[] = { "self","w", NULL
};
2668 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2671 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2672 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2673 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2678 wxPy_BEGIN_ALLOW_THREADS
;
2679 wxIcon_SetWidth(_arg0
,_arg1
);
2681 wxPy_END_ALLOW_THREADS
;
2682 if (PyErr_Occurred()) return NULL
;
2683 } Py_INCREF(Py_None
);
2684 _resultobj
= Py_None
;
2688 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2689 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2690 PyObject
* _resultobj
;
2693 PyObject
* _argo0
= 0;
2694 char *_kwnames
[] = { "self","h", NULL
};
2697 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2700 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2701 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2702 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2707 wxPy_BEGIN_ALLOW_THREADS
;
2708 wxIcon_SetHeight(_arg0
,_arg1
);
2710 wxPy_END_ALLOW_THREADS
;
2711 if (PyErr_Occurred()) return NULL
;
2712 } Py_INCREF(Py_None
);
2713 _resultobj
= Py_None
;
2717 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2718 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2719 PyObject
* _resultobj
;
2722 PyObject
* _argo0
= 0;
2723 char *_kwnames
[] = { "self","d", NULL
};
2726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2736 wxPy_BEGIN_ALLOW_THREADS
;
2737 wxIcon_SetDepth(_arg0
,_arg1
);
2739 wxPy_END_ALLOW_THREADS
;
2740 if (PyErr_Occurred()) return NULL
;
2741 } Py_INCREF(Py_None
);
2742 _resultobj
= Py_None
;
2746 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2747 static PyObject
*_wrap_wxIcon_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2748 PyObject
* _resultobj
;
2751 PyObject
* _argo0
= 0;
2753 PyObject
* _obj1
= 0;
2754 char *_kwnames
[] = { "self","size", NULL
};
2757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_SetSize",_kwnames
,&_argo0
,&_obj1
))
2760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2768 if (! wxSize_helper(_obj1
, &_arg1
))
2772 wxPy_BEGIN_ALLOW_THREADS
;
2773 wxIcon_SetSize(_arg0
,*_arg1
);
2775 wxPy_END_ALLOW_THREADS
;
2776 if (PyErr_Occurred()) return NULL
;
2777 } Py_INCREF(Py_None
);
2778 _resultobj
= Py_None
;
2782 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2783 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2784 PyObject
* _resultobj
;
2787 PyObject
* _argo0
= 0;
2788 PyObject
* _argo1
= 0;
2789 char *_kwnames
[] = { "self","bmp", NULL
};
2792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2795 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2796 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2797 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2802 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2803 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2809 wxPy_BEGIN_ALLOW_THREADS
;
2810 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2812 wxPy_END_ALLOW_THREADS
;
2813 if (PyErr_Occurred()) return NULL
;
2814 } Py_INCREF(Py_None
);
2815 _resultobj
= Py_None
;
2819 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2822 src
= (wxCursor
*) ptr
;
2823 dest
= (wxGDIObject
*) src
;
2824 return (void *) dest
;
2827 static void *SwigwxCursorTowxObject(void *ptr
) {
2830 src
= (wxCursor
*) ptr
;
2831 dest
= (wxObject
*) src
;
2832 return (void *) dest
;
2835 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2836 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2837 PyObject
* _resultobj
;
2841 int _arg2
= (int ) 0;
2842 int _arg3
= (int ) 0;
2843 PyObject
* _obj0
= 0;
2844 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
2848 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2851 #if PYTHON_API_VERSION >= 1009
2852 char* tmpPtr
; int tmpSize
;
2853 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2854 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2857 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2859 _arg0
= new wxString(tmpPtr
, tmpSize
);
2861 if (!PyString_Check(_obj0
)) {
2862 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2865 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2869 wxPy_BEGIN_ALLOW_THREADS
;
2870 _result
= (wxCursor
*)new_wxCursor(*_arg0
,_arg1
,_arg2
,_arg3
);
2872 wxPy_END_ALLOW_THREADS
;
2873 if (PyErr_Occurred()) return NULL
;
2875 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
2876 _resultobj
= Py_BuildValue("s",_ptemp
);
2879 _resultobj
= Py_None
;
2888 #define delete_wxCursor(_swigobj) (delete _swigobj)
2889 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2890 PyObject
* _resultobj
;
2892 PyObject
* _argo0
= 0;
2893 char *_kwnames
[] = { "self", NULL
};
2896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2899 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2900 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2901 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2906 wxPy_BEGIN_ALLOW_THREADS
;
2907 delete_wxCursor(_arg0
);
2909 wxPy_END_ALLOW_THREADS
;
2910 if (PyErr_Occurred()) return NULL
;
2911 } Py_INCREF(Py_None
);
2912 _resultobj
= Py_None
;
2916 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2917 static PyObject
*_wrap_wxCursor_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2918 PyObject
* _resultobj
;
2921 PyObject
* _argo0
= 0;
2922 char *_kwnames
[] = { "self", NULL
};
2925 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHandle",_kwnames
,&_argo0
))
2928 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2929 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2930 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2935 wxPy_BEGIN_ALLOW_THREADS
;
2936 _result
= (long )wxCursor_GetHandle(_arg0
);
2938 wxPy_END_ALLOW_THREADS
;
2939 if (PyErr_Occurred()) return NULL
;
2940 } _resultobj
= Py_BuildValue("l",_result
);
2944 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2945 static PyObject
*_wrap_wxCursor_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2946 PyObject
* _resultobj
;
2949 PyObject
* _argo0
= 0;
2950 char *_kwnames
[] = { "self","handle", NULL
};
2953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxCursor_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2963 wxPy_BEGIN_ALLOW_THREADS
;
2964 wxCursor_SetHandle(_arg0
,_arg1
);
2966 wxPy_END_ALLOW_THREADS
;
2967 if (PyErr_Occurred()) return NULL
;
2968 } Py_INCREF(Py_None
);
2969 _resultobj
= Py_None
;
2973 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2974 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2975 PyObject
* _resultobj
;
2978 PyObject
* _argo0
= 0;
2979 char *_kwnames
[] = { "self", NULL
};
2982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2992 wxPy_BEGIN_ALLOW_THREADS
;
2993 _result
= (bool )wxCursor_Ok(_arg0
);
2995 wxPy_END_ALLOW_THREADS
;
2996 if (PyErr_Occurred()) return NULL
;
2997 } _resultobj
= Py_BuildValue("i",_result
);
3001 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
3002 static PyObject
*_wrap_wxCursor_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3003 PyObject
* _resultobj
;
3006 PyObject
* _argo0
= 0;
3007 char *_kwnames
[] = { "self", NULL
};
3010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetWidth",_kwnames
,&_argo0
))
3013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3020 wxPy_BEGIN_ALLOW_THREADS
;
3021 _result
= (int )wxCursor_GetWidth(_arg0
);
3023 wxPy_END_ALLOW_THREADS
;
3024 if (PyErr_Occurred()) return NULL
;
3025 } _resultobj
= Py_BuildValue("i",_result
);
3029 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3030 static PyObject
*_wrap_wxCursor_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3031 PyObject
* _resultobj
;
3034 PyObject
* _argo0
= 0;
3035 char *_kwnames
[] = { "self", NULL
};
3038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHeight",_kwnames
,&_argo0
))
3041 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3042 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3043 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3048 wxPy_BEGIN_ALLOW_THREADS
;
3049 _result
= (int )wxCursor_GetHeight(_arg0
);
3051 wxPy_END_ALLOW_THREADS
;
3052 if (PyErr_Occurred()) return NULL
;
3053 } _resultobj
= Py_BuildValue("i",_result
);
3057 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3058 static PyObject
*_wrap_wxCursor_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3059 PyObject
* _resultobj
;
3062 PyObject
* _argo0
= 0;
3063 char *_kwnames
[] = { "self", NULL
};
3066 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetDepth",_kwnames
,&_argo0
))
3069 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3070 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3071 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3076 wxPy_BEGIN_ALLOW_THREADS
;
3077 _result
= (int )wxCursor_GetDepth(_arg0
);
3079 wxPy_END_ALLOW_THREADS
;
3080 if (PyErr_Occurred()) return NULL
;
3081 } _resultobj
= Py_BuildValue("i",_result
);
3085 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3086 static PyObject
*_wrap_wxCursor_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3087 PyObject
* _resultobj
;
3090 PyObject
* _argo0
= 0;
3091 char *_kwnames
[] = { "self","w", NULL
};
3094 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3097 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3098 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3099 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3104 wxPy_BEGIN_ALLOW_THREADS
;
3105 wxCursor_SetWidth(_arg0
,_arg1
);
3107 wxPy_END_ALLOW_THREADS
;
3108 if (PyErr_Occurred()) return NULL
;
3109 } Py_INCREF(Py_None
);
3110 _resultobj
= Py_None
;
3114 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3115 static PyObject
*_wrap_wxCursor_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3116 PyObject
* _resultobj
;
3119 PyObject
* _argo0
= 0;
3120 char *_kwnames
[] = { "self","h", NULL
};
3123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetHeight",_kwnames
,&_argo0
,&_arg1
))
3126 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3127 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3133 wxPy_BEGIN_ALLOW_THREADS
;
3134 wxCursor_SetHeight(_arg0
,_arg1
);
3136 wxPy_END_ALLOW_THREADS
;
3137 if (PyErr_Occurred()) return NULL
;
3138 } Py_INCREF(Py_None
);
3139 _resultobj
= Py_None
;
3143 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3144 static PyObject
*_wrap_wxCursor_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3145 PyObject
* _resultobj
;
3148 PyObject
* _argo0
= 0;
3149 char *_kwnames
[] = { "self","d", NULL
};
3152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetDepth",_kwnames
,&_argo0
,&_arg1
))
3155 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3156 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3157 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3162 wxPy_BEGIN_ALLOW_THREADS
;
3163 wxCursor_SetDepth(_arg0
,_arg1
);
3165 wxPy_END_ALLOW_THREADS
;
3166 if (PyErr_Occurred()) return NULL
;
3167 } Py_INCREF(Py_None
);
3168 _resultobj
= Py_None
;
3172 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3173 static PyObject
*_wrap_wxCursor_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3174 PyObject
* _resultobj
;
3177 PyObject
* _argo0
= 0;
3179 PyObject
* _obj1
= 0;
3180 char *_kwnames
[] = { "self","size", NULL
};
3183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCursor_SetSize",_kwnames
,&_argo0
,&_obj1
))
3186 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3187 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3194 if (! wxSize_helper(_obj1
, &_arg1
))
3198 wxPy_BEGIN_ALLOW_THREADS
;
3199 wxCursor_SetSize(_arg0
,*_arg1
);
3201 wxPy_END_ALLOW_THREADS
;
3202 if (PyErr_Occurred()) return NULL
;
3203 } Py_INCREF(Py_None
);
3204 _resultobj
= Py_None
;
3208 static void *SwigwxFontTowxGDIObject(void *ptr
) {
3211 src
= (wxFont
*) ptr
;
3212 dest
= (wxGDIObject
*) src
;
3213 return (void *) dest
;
3216 static void *SwigwxFontTowxObject(void *ptr
) {
3219 src
= (wxFont
*) ptr
;
3220 dest
= (wxObject
*) src
;
3221 return (void *) dest
;
3224 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3225 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3226 PyObject
* _resultobj
;
3232 int _arg4
= (int ) FALSE
;
3233 char * _arg5
= (char *) "";
3234 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3235 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
3239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3242 wxPy_BEGIN_ALLOW_THREADS
;
3243 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3245 wxPy_END_ALLOW_THREADS
;
3246 if (PyErr_Occurred()) return NULL
;
3248 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3249 _resultobj
= Py_BuildValue("s",_ptemp
);
3252 _resultobj
= Py_None
;
3257 #define delete_wxFont(_swigobj) (delete _swigobj)
3258 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3259 PyObject
* _resultobj
;
3261 PyObject
* _argo0
= 0;
3262 char *_kwnames
[] = { "self", NULL
};
3265 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3268 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3269 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3270 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3275 wxPy_BEGIN_ALLOW_THREADS
;
3276 delete_wxFont(_arg0
);
3278 wxPy_END_ALLOW_THREADS
;
3279 if (PyErr_Occurred()) return NULL
;
3280 } Py_INCREF(Py_None
);
3281 _resultobj
= Py_None
;
3285 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3286 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3287 PyObject
* _resultobj
;
3290 PyObject
* _argo0
= 0;
3291 char *_kwnames
[] = { "self", NULL
};
3294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3304 wxPy_BEGIN_ALLOW_THREADS
;
3305 _result
= (bool )wxFont_Ok(_arg0
);
3307 wxPy_END_ALLOW_THREADS
;
3308 if (PyErr_Occurred()) return NULL
;
3309 } _resultobj
= Py_BuildValue("i",_result
);
3313 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3314 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3315 PyObject
* _resultobj
;
3318 PyObject
* _argo0
= 0;
3319 char *_kwnames
[] = { "self", NULL
};
3322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
3325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3332 wxPy_BEGIN_ALLOW_THREADS
;
3333 _result
= new wxString (wxFont_GetFaceName(_arg0
));
3335 wxPy_END_ALLOW_THREADS
;
3336 if (PyErr_Occurred()) return NULL
;
3338 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3346 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3347 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3348 PyObject
* _resultobj
;
3351 PyObject
* _argo0
= 0;
3352 char *_kwnames
[] = { "self", NULL
};
3355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3365 wxPy_BEGIN_ALLOW_THREADS
;
3366 _result
= (int )wxFont_GetFamily(_arg0
);
3368 wxPy_END_ALLOW_THREADS
;
3369 if (PyErr_Occurred()) return NULL
;
3370 } _resultobj
= Py_BuildValue("i",_result
);
3374 #define wxFont_GetFontId(_swigobj) (_swigobj->GetFontId())
3375 static PyObject
*_wrap_wxFont_GetFontId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3376 PyObject
* _resultobj
;
3379 PyObject
* _argo0
= 0;
3380 char *_kwnames
[] = { "self", NULL
};
3383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFontId",_kwnames
,&_argo0
))
3386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFontId. Expected _wxFont_p.");
3393 wxPy_BEGIN_ALLOW_THREADS
;
3394 _result
= (int )wxFont_GetFontId(_arg0
);
3396 wxPy_END_ALLOW_THREADS
;
3397 if (PyErr_Occurred()) return NULL
;
3398 } _resultobj
= Py_BuildValue("i",_result
);
3402 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3403 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3404 PyObject
* _resultobj
;
3407 PyObject
* _argo0
= 0;
3408 char *_kwnames
[] = { "self", NULL
};
3411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3414 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3415 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3421 wxPy_BEGIN_ALLOW_THREADS
;
3422 _result
= (int )wxFont_GetPointSize(_arg0
);
3424 wxPy_END_ALLOW_THREADS
;
3425 if (PyErr_Occurred()) return NULL
;
3426 } _resultobj
= Py_BuildValue("i",_result
);
3430 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3431 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3432 PyObject
* _resultobj
;
3435 PyObject
* _argo0
= 0;
3436 char *_kwnames
[] = { "self", NULL
};
3439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3442 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3443 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3449 wxPy_BEGIN_ALLOW_THREADS
;
3450 _result
= (int )wxFont_GetStyle(_arg0
);
3452 wxPy_END_ALLOW_THREADS
;
3453 if (PyErr_Occurred()) return NULL
;
3454 } _resultobj
= Py_BuildValue("i",_result
);
3458 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3459 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3460 PyObject
* _resultobj
;
3463 PyObject
* _argo0
= 0;
3464 char *_kwnames
[] = { "self", NULL
};
3467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
3470 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3471 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3477 wxPy_BEGIN_ALLOW_THREADS
;
3478 _result
= (bool )wxFont_GetUnderlined(_arg0
);
3480 wxPy_END_ALLOW_THREADS
;
3481 if (PyErr_Occurred()) return NULL
;
3482 } _resultobj
= Py_BuildValue("i",_result
);
3486 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3487 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3488 PyObject
* _resultobj
;
3491 PyObject
* _argo0
= 0;
3492 char *_kwnames
[] = { "self", NULL
};
3495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
3498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3505 wxPy_BEGIN_ALLOW_THREADS
;
3506 _result
= (int )wxFont_GetWeight(_arg0
);
3508 wxPy_END_ALLOW_THREADS
;
3509 if (PyErr_Occurred()) return NULL
;
3510 } _resultobj
= Py_BuildValue("i",_result
);
3514 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3515 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3516 PyObject
* _resultobj
;
3517 wxFontEncoding _result
;
3519 PyObject
* _argo0
= 0;
3520 char *_kwnames
[] = { "self", NULL
};
3523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
3526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3533 wxPy_BEGIN_ALLOW_THREADS
;
3534 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
3536 wxPy_END_ALLOW_THREADS
;
3537 if (PyErr_Occurred()) return NULL
;
3538 } _resultobj
= Py_BuildValue("i",_result
);
3542 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3543 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3544 PyObject
* _resultobj
;
3547 PyObject
* _argo0
= 0;
3548 PyObject
* _obj1
= 0;
3549 char *_kwnames
[] = { "self","faceName", NULL
};
3552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
3555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
3562 #if PYTHON_API_VERSION >= 1009
3563 char* tmpPtr
; int tmpSize
;
3564 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3565 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3568 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3570 _arg1
= new wxString(tmpPtr
, tmpSize
);
3572 if (!PyString_Check(_obj1
)) {
3573 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3576 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3580 wxPy_BEGIN_ALLOW_THREADS
;
3581 wxFont_SetFaceName(_arg0
,*_arg1
);
3583 wxPy_END_ALLOW_THREADS
;
3584 if (PyErr_Occurred()) return NULL
;
3585 } Py_INCREF(Py_None
);
3586 _resultobj
= Py_None
;
3594 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3595 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3596 PyObject
* _resultobj
;
3599 PyObject
* _argo0
= 0;
3600 char *_kwnames
[] = { "self","family", NULL
};
3603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
3606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
3613 wxPy_BEGIN_ALLOW_THREADS
;
3614 wxFont_SetFamily(_arg0
,_arg1
);
3616 wxPy_END_ALLOW_THREADS
;
3617 if (PyErr_Occurred()) return NULL
;
3618 } Py_INCREF(Py_None
);
3619 _resultobj
= Py_None
;
3623 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3624 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3625 PyObject
* _resultobj
;
3628 PyObject
* _argo0
= 0;
3629 char *_kwnames
[] = { "self","pointSize", NULL
};
3632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
3635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
3642 wxPy_BEGIN_ALLOW_THREADS
;
3643 wxFont_SetPointSize(_arg0
,_arg1
);
3645 wxPy_END_ALLOW_THREADS
;
3646 if (PyErr_Occurred()) return NULL
;
3647 } Py_INCREF(Py_None
);
3648 _resultobj
= Py_None
;
3652 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3653 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3654 PyObject
* _resultobj
;
3657 PyObject
* _argo0
= 0;
3658 char *_kwnames
[] = { "self","style", NULL
};
3661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3664 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3665 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3666 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
3671 wxPy_BEGIN_ALLOW_THREADS
;
3672 wxFont_SetStyle(_arg0
,_arg1
);
3674 wxPy_END_ALLOW_THREADS
;
3675 if (PyErr_Occurred()) return NULL
;
3676 } Py_INCREF(Py_None
);
3677 _resultobj
= Py_None
;
3681 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3682 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3683 PyObject
* _resultobj
;
3686 PyObject
* _argo0
= 0;
3688 char *_kwnames
[] = { "self","underlined", NULL
};
3691 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
3694 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3695 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
3700 _arg1
= (bool ) tempbool1
;
3702 wxPy_BEGIN_ALLOW_THREADS
;
3703 wxFont_SetUnderlined(_arg0
,_arg1
);
3705 wxPy_END_ALLOW_THREADS
;
3706 if (PyErr_Occurred()) return NULL
;
3707 } Py_INCREF(Py_None
);
3708 _resultobj
= Py_None
;
3712 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3713 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3714 PyObject
* _resultobj
;
3717 PyObject
* _argo0
= 0;
3718 char *_kwnames
[] = { "self","weight", NULL
};
3721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
3724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
3731 wxPy_BEGIN_ALLOW_THREADS
;
3732 wxFont_SetWeight(_arg0
,_arg1
);
3734 wxPy_END_ALLOW_THREADS
;
3735 if (PyErr_Occurred()) return NULL
;
3736 } Py_INCREF(Py_None
);
3737 _resultobj
= Py_None
;
3741 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3742 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3743 PyObject
* _resultobj
;
3745 wxFontEncoding _arg1
;
3746 PyObject
* _argo0
= 0;
3747 char *_kwnames
[] = { "self","encoding", NULL
};
3750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
3753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
3760 wxPy_BEGIN_ALLOW_THREADS
;
3761 wxFont_SetEncoding(_arg0
,_arg1
);
3763 wxPy_END_ALLOW_THREADS
;
3764 if (PyErr_Occurred()) return NULL
;
3765 } Py_INCREF(Py_None
);
3766 _resultobj
= Py_None
;
3770 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
3771 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3772 PyObject
* _resultobj
;
3775 PyObject
* _argo0
= 0;
3776 char *_kwnames
[] = { "self", NULL
};
3779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
3782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
3789 wxPy_BEGIN_ALLOW_THREADS
;
3790 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
3792 wxPy_END_ALLOW_THREADS
;
3793 if (PyErr_Occurred()) return NULL
;
3795 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3803 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
3804 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3805 PyObject
* _resultobj
;
3808 PyObject
* _argo0
= 0;
3809 char *_kwnames
[] = { "self", NULL
};
3812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
3815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
3822 wxPy_BEGIN_ALLOW_THREADS
;
3823 _result
= new wxString (wxFont_GetStyleString(_arg0
));
3825 wxPy_END_ALLOW_THREADS
;
3826 if (PyErr_Occurred()) return NULL
;
3828 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3836 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
3837 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3838 PyObject
* _resultobj
;
3841 PyObject
* _argo0
= 0;
3842 char *_kwnames
[] = { "self", NULL
};
3845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
3848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
3855 wxPy_BEGIN_ALLOW_THREADS
;
3856 _result
= new wxString (wxFont_GetWeightString(_arg0
));
3858 wxPy_END_ALLOW_THREADS
;
3859 if (PyErr_Occurred()) return NULL
;
3861 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3869 static void *SwigwxFontListTowxObject(void *ptr
) {
3872 src
= (wxFontList
*) ptr
;
3873 dest
= (wxObject
*) src
;
3874 return (void *) dest
;
3877 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
3878 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3879 PyObject
* _resultobj
;
3882 PyObject
* _argo0
= 0;
3883 PyObject
* _argo1
= 0;
3884 char *_kwnames
[] = { "self","font", NULL
};
3887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
3890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
3897 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3898 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
3904 wxPy_BEGIN_ALLOW_THREADS
;
3905 wxFontList_AddFont(_arg0
,_arg1
);
3907 wxPy_END_ALLOW_THREADS
;
3908 if (PyErr_Occurred()) return NULL
;
3909 } Py_INCREF(Py_None
);
3910 _resultobj
= Py_None
;
3914 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3915 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3916 PyObject
* _resultobj
;
3923 bool _arg5
= (bool ) FALSE
;
3924 char * _arg6
= (char *) NULL
;
3925 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3926 PyObject
* _argo0
= 0;
3927 int tempbool5
= (int) FALSE
;
3928 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
3932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
3935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
3941 _arg5
= (bool ) tempbool5
;
3943 wxPy_BEGIN_ALLOW_THREADS
;
3944 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
3946 wxPy_END_ALLOW_THREADS
;
3947 if (PyErr_Occurred()) return NULL
;
3949 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3950 _resultobj
= Py_BuildValue("s",_ptemp
);
3953 _resultobj
= Py_None
;
3958 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
3959 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3960 PyObject
* _resultobj
;
3963 PyObject
* _argo0
= 0;
3964 PyObject
* _argo1
= 0;
3965 char *_kwnames
[] = { "self","font", NULL
};
3968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
3971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
3978 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3979 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
3985 wxPy_BEGIN_ALLOW_THREADS
;
3986 wxFontList_RemoveFont(_arg0
,_arg1
);
3988 wxPy_END_ALLOW_THREADS
;
3989 if (PyErr_Occurred()) return NULL
;
3990 } Py_INCREF(Py_None
);
3991 _resultobj
= Py_None
;
3995 static void *SwigwxColourTowxObject(void *ptr
) {
3998 src
= (wxColour
*) ptr
;
3999 dest
= (wxObject
*) src
;
4000 return (void *) dest
;
4003 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4004 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4005 PyObject
* _resultobj
;
4007 unsigned char _arg0
= (unsigned char ) 0;
4008 unsigned char _arg1
= (unsigned char ) 0;
4009 unsigned char _arg2
= (unsigned char ) 0;
4010 char *_kwnames
[] = { "red","green","blue", NULL
};
4014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
4017 wxPy_BEGIN_ALLOW_THREADS
;
4018 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
4020 wxPy_END_ALLOW_THREADS
;
4021 if (PyErr_Occurred()) return NULL
;
4023 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4024 _resultobj
= Py_BuildValue("s",_ptemp
);
4027 _resultobj
= Py_None
;
4032 #define delete_wxColour(_swigobj) (delete _swigobj)
4033 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4034 PyObject
* _resultobj
;
4037 PyObject
* _obj0
= 0;
4038 char *_kwnames
[] = { "self", NULL
};
4041 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
4045 if (! wxColour_helper(_obj0
, &_arg0
))
4049 wxPy_BEGIN_ALLOW_THREADS
;
4050 delete_wxColour(_arg0
);
4052 wxPy_END_ALLOW_THREADS
;
4053 if (PyErr_Occurred()) return NULL
;
4054 } Py_INCREF(Py_None
);
4055 _resultobj
= Py_None
;
4059 #define wxColour_Red(_swigobj) (_swigobj->Red())
4060 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4061 PyObject
* _resultobj
;
4062 unsigned char _result
;
4065 PyObject
* _obj0
= 0;
4066 char *_kwnames
[] = { "self", NULL
};
4069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
4073 if (! wxColour_helper(_obj0
, &_arg0
))
4077 wxPy_BEGIN_ALLOW_THREADS
;
4078 _result
= (unsigned char )wxColour_Red(_arg0
);
4080 wxPy_END_ALLOW_THREADS
;
4081 if (PyErr_Occurred()) return NULL
;
4082 } _resultobj
= Py_BuildValue("b",_result
);
4086 #define wxColour_Green(_swigobj) (_swigobj->Green())
4087 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4088 PyObject
* _resultobj
;
4089 unsigned char _result
;
4092 PyObject
* _obj0
= 0;
4093 char *_kwnames
[] = { "self", NULL
};
4096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
4100 if (! wxColour_helper(_obj0
, &_arg0
))
4104 wxPy_BEGIN_ALLOW_THREADS
;
4105 _result
= (unsigned char )wxColour_Green(_arg0
);
4107 wxPy_END_ALLOW_THREADS
;
4108 if (PyErr_Occurred()) return NULL
;
4109 } _resultobj
= Py_BuildValue("b",_result
);
4113 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4114 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4115 PyObject
* _resultobj
;
4116 unsigned char _result
;
4119 PyObject
* _obj0
= 0;
4120 char *_kwnames
[] = { "self", NULL
};
4123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
4127 if (! wxColour_helper(_obj0
, &_arg0
))
4131 wxPy_BEGIN_ALLOW_THREADS
;
4132 _result
= (unsigned char )wxColour_Blue(_arg0
);
4134 wxPy_END_ALLOW_THREADS
;
4135 if (PyErr_Occurred()) return NULL
;
4136 } _resultobj
= Py_BuildValue("b",_result
);
4140 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4141 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4142 PyObject
* _resultobj
;
4146 PyObject
* _obj0
= 0;
4147 char *_kwnames
[] = { "self", NULL
};
4150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
4154 if (! wxColour_helper(_obj0
, &_arg0
))
4158 wxPy_BEGIN_ALLOW_THREADS
;
4159 _result
= (bool )wxColour_Ok(_arg0
);
4161 wxPy_END_ALLOW_THREADS
;
4162 if (PyErr_Occurred()) return NULL
;
4163 } _resultobj
= Py_BuildValue("i",_result
);
4167 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4168 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4169 PyObject
* _resultobj
;
4171 unsigned char _arg1
;
4172 unsigned char _arg2
;
4173 unsigned char _arg3
;
4175 PyObject
* _obj0
= 0;
4176 char *_kwnames
[] = { "self","red","green","blue", NULL
};
4179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
4183 if (! wxColour_helper(_obj0
, &_arg0
))
4187 wxPy_BEGIN_ALLOW_THREADS
;
4188 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
4190 wxPy_END_ALLOW_THREADS
;
4191 if (PyErr_Occurred()) return NULL
;
4192 } Py_INCREF(Py_None
);
4193 _resultobj
= Py_None
;
4197 static PyObject
* wxColour_Get(wxColour
*self
) {
4198 PyObject
* rv
= PyTuple_New(3);
4199 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
4200 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
4201 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
4204 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4205 PyObject
* _resultobj
;
4209 PyObject
* _obj0
= 0;
4210 char *_kwnames
[] = { "self", NULL
};
4213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
4217 if (! wxColour_helper(_obj0
, &_arg0
))
4221 wxPy_BEGIN_ALLOW_THREADS
;
4222 _result
= (PyObject
*)wxColour_Get(_arg0
);
4224 wxPy_END_ALLOW_THREADS
;
4225 if (PyErr_Occurred()) return NULL
;
4227 _resultobj
= _result
;
4232 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4233 wxColourDatabase
*src
;
4235 src
= (wxColourDatabase
*) ptr
;
4236 dest
= (wxObject
*) src
;
4237 return (void *) dest
;
4240 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4241 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4242 PyObject
* _resultobj
;
4244 wxColourDatabase
* _arg0
;
4246 PyObject
* _argo0
= 0;
4247 PyObject
* _obj1
= 0;
4248 char *_kwnames
[] = { "self","colour", NULL
};
4252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
4255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4262 #if PYTHON_API_VERSION >= 1009
4263 char* tmpPtr
; int tmpSize
;
4264 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4265 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4268 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4270 _arg1
= new wxString(tmpPtr
, tmpSize
);
4272 if (!PyString_Check(_obj1
)) {
4273 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4276 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4280 wxPy_BEGIN_ALLOW_THREADS
;
4281 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
4283 wxPy_END_ALLOW_THREADS
;
4284 if (PyErr_Occurred()) return NULL
;
4286 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4287 _resultobj
= Py_BuildValue("s",_ptemp
);
4290 _resultobj
= Py_None
;
4299 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4300 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4301 PyObject
* _resultobj
;
4303 wxColourDatabase
* _arg0
;
4305 PyObject
* _argo0
= 0;
4307 PyObject
* _obj1
= 0;
4308 char *_kwnames
[] = { "self","colour", NULL
};
4311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
4314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
4322 if (! wxColour_helper(_obj1
, &_arg1
))
4326 wxPy_BEGIN_ALLOW_THREADS
;
4327 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
4329 wxPy_END_ALLOW_THREADS
;
4330 if (PyErr_Occurred()) return NULL
;
4332 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4340 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
4341 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
4343 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4344 PyObject
* _resultobj
;
4345 wxColourDatabase
* _arg0
;
4350 PyObject
* _argo0
= 0;
4351 PyObject
* _obj1
= 0;
4352 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
4355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4365 #if PYTHON_API_VERSION >= 1009
4366 char* tmpPtr
; int tmpSize
;
4367 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4368 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4371 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4373 _arg1
= new wxString(tmpPtr
, tmpSize
);
4375 if (!PyString_Check(_obj1
)) {
4376 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4379 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4383 wxPy_BEGIN_ALLOW_THREADS
;
4384 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
4386 wxPy_END_ALLOW_THREADS
;
4387 if (PyErr_Occurred()) return NULL
;
4388 } Py_INCREF(Py_None
);
4389 _resultobj
= Py_None
;
4397 static void *SwigwxPenTowxGDIObject(void *ptr
) {
4400 src
= (wxPen
*) ptr
;
4401 dest
= (wxGDIObject
*) src
;
4402 return (void *) dest
;
4405 static void *SwigwxPenTowxObject(void *ptr
) {
4408 src
= (wxPen
*) ptr
;
4409 dest
= (wxObject
*) src
;
4410 return (void *) dest
;
4413 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4414 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4415 PyObject
* _resultobj
;
4418 int _arg1
= (int ) 1;
4419 int _arg2
= (int ) wxSOLID
;
4421 PyObject
* _obj0
= 0;
4422 char *_kwnames
[] = { "colour","width","style", NULL
};
4426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4430 if (! wxColour_helper(_obj0
, &_arg0
))
4434 wxPy_BEGIN_ALLOW_THREADS
;
4435 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
4437 wxPy_END_ALLOW_THREADS
;
4438 if (PyErr_Occurred()) return NULL
;
4440 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4441 _resultobj
= Py_BuildValue("s",_ptemp
);
4444 _resultobj
= Py_None
;
4449 #define delete_wxPen(_swigobj) (delete _swigobj)
4450 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4451 PyObject
* _resultobj
;
4453 PyObject
* _argo0
= 0;
4454 char *_kwnames
[] = { "self", NULL
};
4457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
4460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4467 wxPy_BEGIN_ALLOW_THREADS
;
4468 delete_wxPen(_arg0
);
4470 wxPy_END_ALLOW_THREADS
;
4471 if (PyErr_Occurred()) return NULL
;
4472 } Py_INCREF(Py_None
);
4473 _resultobj
= Py_None
;
4477 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4478 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4479 PyObject
* _resultobj
;
4482 PyObject
* _argo0
= 0;
4483 char *_kwnames
[] = { "self", NULL
};
4486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
4489 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4490 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4496 wxPy_BEGIN_ALLOW_THREADS
;
4497 _result
= (int )wxPen_GetCap(_arg0
);
4499 wxPy_END_ALLOW_THREADS
;
4500 if (PyErr_Occurred()) return NULL
;
4501 } _resultobj
= Py_BuildValue("i",_result
);
4505 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4506 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4507 PyObject
* _resultobj
;
4510 PyObject
* _argo0
= 0;
4511 char *_kwnames
[] = { "self", NULL
};
4515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
4518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4525 wxPy_BEGIN_ALLOW_THREADS
;
4526 _result
= new wxColour (wxPen_GetColour(_arg0
));
4528 wxPy_END_ALLOW_THREADS
;
4529 if (PyErr_Occurred()) return NULL
;
4530 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4531 _resultobj
= Py_BuildValue("s",_ptemp
);
4535 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
4536 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4537 PyObject
* _resultobj
;
4540 PyObject
* _argo0
= 0;
4541 char *_kwnames
[] = { "self", NULL
};
4544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
4547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4554 wxPy_BEGIN_ALLOW_THREADS
;
4555 _result
= (int )wxPen_GetJoin(_arg0
);
4557 wxPy_END_ALLOW_THREADS
;
4558 if (PyErr_Occurred()) return NULL
;
4559 } _resultobj
= Py_BuildValue("i",_result
);
4563 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
4564 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4565 PyObject
* _resultobj
;
4568 PyObject
* _argo0
= 0;
4569 char *_kwnames
[] = { "self", NULL
};
4572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
4575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4582 wxPy_BEGIN_ALLOW_THREADS
;
4583 _result
= (int )wxPen_GetStyle(_arg0
);
4585 wxPy_END_ALLOW_THREADS
;
4586 if (PyErr_Occurred()) return NULL
;
4587 } _resultobj
= Py_BuildValue("i",_result
);
4591 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
4592 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4593 PyObject
* _resultobj
;
4596 PyObject
* _argo0
= 0;
4597 char *_kwnames
[] = { "self", NULL
};
4600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
4603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
4610 wxPy_BEGIN_ALLOW_THREADS
;
4611 _result
= (int )wxPen_GetWidth(_arg0
);
4613 wxPy_END_ALLOW_THREADS
;
4614 if (PyErr_Occurred()) return NULL
;
4615 } _resultobj
= Py_BuildValue("i",_result
);
4619 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
4620 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4621 PyObject
* _resultobj
;
4624 PyObject
* _argo0
= 0;
4625 char *_kwnames
[] = { "self", NULL
};
4628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
4631 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4632 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
4638 wxPy_BEGIN_ALLOW_THREADS
;
4639 _result
= (bool )wxPen_Ok(_arg0
);
4641 wxPy_END_ALLOW_THREADS
;
4642 if (PyErr_Occurred()) return NULL
;
4643 } _resultobj
= Py_BuildValue("i",_result
);
4647 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
4648 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4649 PyObject
* _resultobj
;
4652 PyObject
* _argo0
= 0;
4653 char *_kwnames
[] = { "self","cap_style", NULL
};
4656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
4659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4666 wxPy_BEGIN_ALLOW_THREADS
;
4667 wxPen_SetCap(_arg0
,_arg1
);
4669 wxPy_END_ALLOW_THREADS
;
4670 if (PyErr_Occurred()) return NULL
;
4671 } Py_INCREF(Py_None
);
4672 _resultobj
= Py_None
;
4676 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4677 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4678 PyObject
* _resultobj
;
4681 PyObject
* _argo0
= 0;
4683 PyObject
* _obj1
= 0;
4684 char *_kwnames
[] = { "self","colour", NULL
};
4687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
4690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4698 if (! wxColour_helper(_obj1
, &_arg1
))
4702 wxPy_BEGIN_ALLOW_THREADS
;
4703 wxPen_SetColour(_arg0
,*_arg1
);
4705 wxPy_END_ALLOW_THREADS
;
4706 if (PyErr_Occurred()) return NULL
;
4707 } Py_INCREF(Py_None
);
4708 _resultobj
= Py_None
;
4712 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4713 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4714 PyObject
* _resultobj
;
4717 PyObject
* _argo0
= 0;
4718 char *_kwnames
[] = { "self","join_style", NULL
};
4721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
4724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4731 wxPy_BEGIN_ALLOW_THREADS
;
4732 wxPen_SetJoin(_arg0
,_arg1
);
4734 wxPy_END_ALLOW_THREADS
;
4735 if (PyErr_Occurred()) return NULL
;
4736 } Py_INCREF(Py_None
);
4737 _resultobj
= Py_None
;
4741 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4742 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4743 PyObject
* _resultobj
;
4746 PyObject
* _argo0
= 0;
4747 char *_kwnames
[] = { "self","style", NULL
};
4750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4760 wxPy_BEGIN_ALLOW_THREADS
;
4761 wxPen_SetStyle(_arg0
,_arg1
);
4763 wxPy_END_ALLOW_THREADS
;
4764 if (PyErr_Occurred()) return NULL
;
4765 } Py_INCREF(Py_None
);
4766 _resultobj
= Py_None
;
4770 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4771 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4772 PyObject
* _resultobj
;
4775 PyObject
* _argo0
= 0;
4776 char *_kwnames
[] = { "self","width", NULL
};
4779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4789 wxPy_BEGIN_ALLOW_THREADS
;
4790 wxPen_SetWidth(_arg0
,_arg1
);
4792 wxPy_END_ALLOW_THREADS
;
4793 if (PyErr_Occurred()) return NULL
;
4794 } Py_INCREF(Py_None
);
4795 _resultobj
= Py_None
;
4799 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
4800 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4801 PyObject
* _resultobj
;
4805 PyObject
* _argo0
= 0;
4806 PyObject
* _argo1
= 0;
4807 char *_kwnames
[] = { "self","dashes", NULL
};
4810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_GetDashes",_kwnames
,&_argo0
,&_argo1
))
4813 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4814 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4820 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4821 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDash_pp")) {
4822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
4827 wxPy_BEGIN_ALLOW_THREADS
;
4828 _result
= (int )wxPen_GetDashes(_arg0
,_arg1
);
4830 wxPy_END_ALLOW_THREADS
;
4831 if (PyErr_Occurred()) return NULL
;
4832 } _resultobj
= Py_BuildValue("i",_result
);
4836 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4837 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4838 PyObject
* _resultobj
;
4842 PyObject
* _argo0
= 0;
4843 PyObject
* _obj2
= 0;
4844 char *_kwnames
[] = { "self","choices", NULL
};
4847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4858 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4859 if (_arg2
== NULL
) {
4865 _arg1
= PyList_Size(_obj2
);
4872 wxPy_BEGIN_ALLOW_THREADS
;
4873 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4875 wxPy_END_ALLOW_THREADS
;
4876 if (PyErr_Occurred()) return NULL
;
4877 } Py_INCREF(Py_None
);
4878 _resultobj
= Py_None
;
4885 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
4886 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4887 PyObject
* _resultobj
;
4890 PyObject
* _argo0
= 0;
4891 char *_kwnames
[] = { "self", NULL
};
4895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
4898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
4905 wxPy_BEGIN_ALLOW_THREADS
;
4906 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
4908 wxPy_END_ALLOW_THREADS
;
4909 if (PyErr_Occurred()) return NULL
;
4911 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4912 _resultobj
= Py_BuildValue("s",_ptemp
);
4915 _resultobj
= Py_None
;
4920 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4921 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4922 PyObject
* _resultobj
;
4925 PyObject
* _argo0
= 0;
4926 PyObject
* _argo1
= 0;
4927 char *_kwnames
[] = { "self","stipple", NULL
};
4930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4933 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4934 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
4940 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4941 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
4947 wxPy_BEGIN_ALLOW_THREADS
;
4948 wxPen_SetStipple(_arg0
,*_arg1
);
4950 wxPy_END_ALLOW_THREADS
;
4951 if (PyErr_Occurred()) return NULL
;
4952 } Py_INCREF(Py_None
);
4953 _resultobj
= Py_None
;
4957 static void *SwigwxPenListTowxObject(void *ptr
) {
4960 src
= (wxPenList
*) ptr
;
4961 dest
= (wxObject
*) src
;
4962 return (void *) dest
;
4965 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4966 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4967 PyObject
* _resultobj
;
4970 PyObject
* _argo0
= 0;
4971 PyObject
* _argo1
= 0;
4972 char *_kwnames
[] = { "self","pen", NULL
};
4975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
4978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4985 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4986 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4992 wxPy_BEGIN_ALLOW_THREADS
;
4993 wxPenList_AddPen(_arg0
,_arg1
);
4995 wxPy_END_ALLOW_THREADS
;
4996 if (PyErr_Occurred()) return NULL
;
4997 } Py_INCREF(Py_None
);
4998 _resultobj
= Py_None
;
5002 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5003 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5004 PyObject
* _resultobj
;
5010 PyObject
* _argo0
= 0;
5012 PyObject
* _obj1
= 0;
5013 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5028 if (! wxColour_helper(_obj1
, &_arg1
))
5032 wxPy_BEGIN_ALLOW_THREADS
;
5033 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5035 wxPy_END_ALLOW_THREADS
;
5036 if (PyErr_Occurred()) return NULL
;
5038 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5039 _resultobj
= Py_BuildValue("s",_ptemp
);
5042 _resultobj
= Py_None
;
5047 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5048 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5049 PyObject
* _resultobj
;
5052 PyObject
* _argo0
= 0;
5053 PyObject
* _argo1
= 0;
5054 char *_kwnames
[] = { "self","pen", NULL
};
5057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5060 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5061 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5067 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5068 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5074 wxPy_BEGIN_ALLOW_THREADS
;
5075 wxPenList_RemovePen(_arg0
,_arg1
);
5077 wxPy_END_ALLOW_THREADS
;
5078 if (PyErr_Occurred()) return NULL
;
5079 } Py_INCREF(Py_None
);
5080 _resultobj
= Py_None
;
5084 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5087 src
= (wxBrush
*) ptr
;
5088 dest
= (wxGDIObject
*) src
;
5089 return (void *) dest
;
5092 static void *SwigwxBrushTowxObject(void *ptr
) {
5095 src
= (wxBrush
*) ptr
;
5096 dest
= (wxObject
*) src
;
5097 return (void *) dest
;
5100 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5101 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5102 PyObject
* _resultobj
;
5105 int _arg1
= (int ) wxSOLID
;
5107 PyObject
* _obj0
= 0;
5108 char *_kwnames
[] = { "colour","style", NULL
};
5112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5116 if (! wxColour_helper(_obj0
, &_arg0
))
5120 wxPy_BEGIN_ALLOW_THREADS
;
5121 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5123 wxPy_END_ALLOW_THREADS
;
5124 if (PyErr_Occurred()) return NULL
;
5126 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5127 _resultobj
= Py_BuildValue("s",_ptemp
);
5130 _resultobj
= Py_None
;
5135 #define delete_wxBrush(_swigobj) (delete _swigobj)
5136 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5137 PyObject
* _resultobj
;
5139 PyObject
* _argo0
= 0;
5140 char *_kwnames
[] = { "self", NULL
};
5143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5153 wxPy_BEGIN_ALLOW_THREADS
;
5154 delete_wxBrush(_arg0
);
5156 wxPy_END_ALLOW_THREADS
;
5157 if (PyErr_Occurred()) return NULL
;
5158 } Py_INCREF(Py_None
);
5159 _resultobj
= Py_None
;
5163 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5164 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5165 PyObject
* _resultobj
;
5168 PyObject
* _argo0
= 0;
5169 char *_kwnames
[] = { "self", NULL
};
5173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5183 wxPy_BEGIN_ALLOW_THREADS
;
5184 _result
= new wxColour (wxBrush_GetColour(_arg0
));
5186 wxPy_END_ALLOW_THREADS
;
5187 if (PyErr_Occurred()) return NULL
;
5188 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5189 _resultobj
= Py_BuildValue("s",_ptemp
);
5193 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5194 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5195 PyObject
* _resultobj
;
5198 PyObject
* _argo0
= 0;
5199 char *_kwnames
[] = { "self", NULL
};
5203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
5206 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5207 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5208 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5213 wxPy_BEGIN_ALLOW_THREADS
;
5214 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
5216 wxPy_END_ALLOW_THREADS
;
5217 if (PyErr_Occurred()) return NULL
;
5219 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5220 _resultobj
= Py_BuildValue("s",_ptemp
);
5223 _resultobj
= Py_None
;
5228 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5229 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5230 PyObject
* _resultobj
;
5233 PyObject
* _argo0
= 0;
5234 char *_kwnames
[] = { "self", NULL
};
5237 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
5240 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5241 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5242 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5247 wxPy_BEGIN_ALLOW_THREADS
;
5248 _result
= (int )wxBrush_GetStyle(_arg0
);
5250 wxPy_END_ALLOW_THREADS
;
5251 if (PyErr_Occurred()) return NULL
;
5252 } _resultobj
= Py_BuildValue("i",_result
);
5256 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5257 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5258 PyObject
* _resultobj
;
5261 PyObject
* _argo0
= 0;
5262 char *_kwnames
[] = { "self", NULL
};
5265 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
5268 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5269 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5270 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5275 wxPy_BEGIN_ALLOW_THREADS
;
5276 _result
= (bool )wxBrush_Ok(_arg0
);
5278 wxPy_END_ALLOW_THREADS
;
5279 if (PyErr_Occurred()) return NULL
;
5280 } _resultobj
= Py_BuildValue("i",_result
);
5284 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5285 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5286 PyObject
* _resultobj
;
5289 PyObject
* _argo0
= 0;
5291 PyObject
* _obj1
= 0;
5292 char *_kwnames
[] = { "self","colour", NULL
};
5295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
5298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5306 if (! wxColour_helper(_obj1
, &_arg1
))
5310 wxPy_BEGIN_ALLOW_THREADS
;
5311 wxBrush_SetColour(_arg0
,*_arg1
);
5313 wxPy_END_ALLOW_THREADS
;
5314 if (PyErr_Occurred()) return NULL
;
5315 } Py_INCREF(Py_None
);
5316 _resultobj
= Py_None
;
5320 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5321 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5322 PyObject
* _resultobj
;
5325 PyObject
* _argo0
= 0;
5326 PyObject
* _argo1
= 0;
5327 char *_kwnames
[] = { "self","bitmap", NULL
};
5330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5333 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5334 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5340 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5341 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5342 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5347 wxPy_BEGIN_ALLOW_THREADS
;
5348 wxBrush_SetStipple(_arg0
,*_arg1
);
5350 wxPy_END_ALLOW_THREADS
;
5351 if (PyErr_Occurred()) return NULL
;
5352 } Py_INCREF(Py_None
);
5353 _resultobj
= Py_None
;
5357 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5358 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5359 PyObject
* _resultobj
;
5362 PyObject
* _argo0
= 0;
5363 char *_kwnames
[] = { "self","style", NULL
};
5366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5376 wxPy_BEGIN_ALLOW_THREADS
;
5377 wxBrush_SetStyle(_arg0
,_arg1
);
5379 wxPy_END_ALLOW_THREADS
;
5380 if (PyErr_Occurred()) return NULL
;
5381 } Py_INCREF(Py_None
);
5382 _resultobj
= Py_None
;
5386 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5387 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5388 PyObject
* _resultobj
;
5389 wxBrushList
* _arg0
;
5391 PyObject
* _argo0
= 0;
5392 PyObject
* _argo1
= 0;
5393 char *_kwnames
[] = { "self","brush", NULL
};
5396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
5399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5406 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5407 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5413 wxPy_BEGIN_ALLOW_THREADS
;
5414 wxBrushList_AddBrush(_arg0
,_arg1
);
5416 wxPy_END_ALLOW_THREADS
;
5417 if (PyErr_Occurred()) return NULL
;
5418 } Py_INCREF(Py_None
);
5419 _resultobj
= Py_None
;
5423 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5424 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5425 PyObject
* _resultobj
;
5427 wxBrushList
* _arg0
;
5430 PyObject
* _argo0
= 0;
5432 PyObject
* _obj1
= 0;
5433 char *_kwnames
[] = { "self","colour","style", NULL
};
5437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
5440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5448 if (! wxColour_helper(_obj1
, &_arg1
))
5452 wxPy_BEGIN_ALLOW_THREADS
;
5453 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
5455 wxPy_END_ALLOW_THREADS
;
5456 if (PyErr_Occurred()) return NULL
;
5458 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5459 _resultobj
= Py_BuildValue("s",_ptemp
);
5462 _resultobj
= Py_None
;
5467 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5468 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5469 PyObject
* _resultobj
;
5470 wxBrushList
* _arg0
;
5472 PyObject
* _argo0
= 0;
5473 PyObject
* _argo1
= 0;
5474 char *_kwnames
[] = { "self","brush", NULL
};
5477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
5480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5487 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5488 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5494 wxPy_BEGIN_ALLOW_THREADS
;
5495 wxBrushList_RemoveBrush(_arg0
,_arg1
);
5497 wxPy_END_ALLOW_THREADS
;
5498 if (PyErr_Occurred()) return NULL
;
5499 } Py_INCREF(Py_None
);
5500 _resultobj
= Py_None
;
5504 static void *SwigwxDCTowxObject(void *ptr
) {
5508 dest
= (wxObject
*) src
;
5509 return (void *) dest
;
5512 #define delete_wxDC(_swigobj) (delete _swigobj)
5513 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5514 PyObject
* _resultobj
;
5516 PyObject
* _argo0
= 0;
5517 char *_kwnames
[] = { "self", NULL
};
5520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
5523 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5524 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5530 wxPy_BEGIN_ALLOW_THREADS
;
5533 wxPy_END_ALLOW_THREADS
;
5534 if (PyErr_Occurred()) return NULL
;
5535 } Py_INCREF(Py_None
);
5536 _resultobj
= Py_None
;
5540 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
5541 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5542 PyObject
* _resultobj
;
5544 PyObject
* _argo0
= 0;
5545 char *_kwnames
[] = { "self", NULL
};
5548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
5551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5558 wxPy_BEGIN_ALLOW_THREADS
;
5559 wxDC_BeginDrawing(_arg0
);
5561 wxPy_END_ALLOW_THREADS
;
5562 if (PyErr_Occurred()) return NULL
;
5563 } Py_INCREF(Py_None
);
5564 _resultobj
= Py_None
;
5568 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5569 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5570 PyObject
* _resultobj
;
5580 int _arg8
= (int ) wxCOPY
;
5581 int _arg9
= (int ) FALSE
;
5582 PyObject
* _argo0
= 0;
5583 PyObject
* _argo5
= 0;
5584 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
5587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
5590 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5591 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5597 if (_argo5
== Py_None
) { _arg5
= NULL
; }
5598 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
5599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5604 wxPy_BEGIN_ALLOW_THREADS
;
5605 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
5607 wxPy_END_ALLOW_THREADS
;
5608 if (PyErr_Occurred()) return NULL
;
5609 } _resultobj
= Py_BuildValue("i",_result
);
5613 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
5614 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5615 PyObject
* _resultobj
;
5617 PyObject
* _argo0
= 0;
5618 char *_kwnames
[] = { "self", NULL
};
5621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
5624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5631 wxPy_BEGIN_ALLOW_THREADS
;
5634 wxPy_END_ALLOW_THREADS
;
5635 if (PyErr_Occurred()) return NULL
;
5636 } Py_INCREF(Py_None
);
5637 _resultobj
= Py_None
;
5641 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5642 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5643 PyObject
* _resultobj
;
5647 PyObject
* _argo0
= 0;
5648 char *_kwnames
[] = { "self","x","y", NULL
};
5651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5661 wxPy_BEGIN_ALLOW_THREADS
;
5662 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
5664 wxPy_END_ALLOW_THREADS
;
5665 if (PyErr_Occurred()) return NULL
;
5666 } Py_INCREF(Py_None
);
5667 _resultobj
= Py_None
;
5671 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5672 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5673 PyObject
* _resultobj
;
5675 PyObject
* _argo0
= 0;
5676 char *_kwnames
[] = { "self", NULL
};
5679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
5682 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5683 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5689 wxPy_BEGIN_ALLOW_THREADS
;
5690 wxDC_DestroyClippingRegion(_arg0
);
5692 wxPy_END_ALLOW_THREADS
;
5693 if (PyErr_Occurred()) return NULL
;
5694 } Py_INCREF(Py_None
);
5695 _resultobj
= Py_None
;
5699 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5700 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5701 PyObject
* _resultobj
;
5705 PyObject
* _argo0
= 0;
5706 char *_kwnames
[] = { "self","x", NULL
};
5709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
5712 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5713 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5719 wxPy_BEGIN_ALLOW_THREADS
;
5720 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
5722 wxPy_END_ALLOW_THREADS
;
5723 if (PyErr_Occurred()) return NULL
;
5724 } _resultobj
= Py_BuildValue("l",_result
);
5728 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5729 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5730 PyObject
* _resultobj
;
5734 PyObject
* _argo0
= 0;
5735 char *_kwnames
[] = { "self","x", NULL
};
5738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
5741 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5742 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5748 wxPy_BEGIN_ALLOW_THREADS
;
5749 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
5751 wxPy_END_ALLOW_THREADS
;
5752 if (PyErr_Occurred()) return NULL
;
5753 } _resultobj
= Py_BuildValue("l",_result
);
5757 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5758 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5759 PyObject
* _resultobj
;
5763 PyObject
* _argo0
= 0;
5764 char *_kwnames
[] = { "self","y", NULL
};
5767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
5770 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5771 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5777 wxPy_BEGIN_ALLOW_THREADS
;
5778 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
5780 wxPy_END_ALLOW_THREADS
;
5781 if (PyErr_Occurred()) return NULL
;
5782 } _resultobj
= Py_BuildValue("l",_result
);
5786 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5787 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5788 PyObject
* _resultobj
;
5792 PyObject
* _argo0
= 0;
5793 char *_kwnames
[] = { "self","y", NULL
};
5796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
5799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5806 wxPy_BEGIN_ALLOW_THREADS
;
5807 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5809 wxPy_END_ALLOW_THREADS
;
5810 if (PyErr_Occurred()) return NULL
;
5811 } _resultobj
= Py_BuildValue("l",_result
);
5815 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5816 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5817 PyObject
* _resultobj
;
5825 PyObject
* _argo0
= 0;
5826 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5839 wxPy_BEGIN_ALLOW_THREADS
;
5840 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5842 wxPy_END_ALLOW_THREADS
;
5843 if (PyErr_Occurred()) return NULL
;
5844 } Py_INCREF(Py_None
);
5845 _resultobj
= Py_None
;
5849 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5850 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5851 PyObject
* _resultobj
;
5856 PyObject
* _argo0
= 0;
5857 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5870 wxPy_BEGIN_ALLOW_THREADS
;
5871 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
5873 wxPy_END_ALLOW_THREADS
;
5874 if (PyErr_Occurred()) return NULL
;
5875 } Py_INCREF(Py_None
);
5876 _resultobj
= Py_None
;
5880 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5881 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5882 PyObject
* _resultobj
;
5888 PyObject
* _argo0
= 0;
5889 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5892 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5895 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5896 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5902 wxPy_BEGIN_ALLOW_THREADS
;
5903 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5905 wxPy_END_ALLOW_THREADS
;
5906 if (PyErr_Occurred()) return NULL
;
5907 } Py_INCREF(Py_None
);
5908 _resultobj
= Py_None
;
5912 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5913 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5914 PyObject
* _resultobj
;
5922 PyObject
* _argo0
= 0;
5923 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
5926 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5929 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5930 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5931 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
5936 wxPy_BEGIN_ALLOW_THREADS
;
5937 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5939 wxPy_END_ALLOW_THREADS
;
5940 if (PyErr_Occurred()) return NULL
;
5941 } Py_INCREF(Py_None
);
5942 _resultobj
= Py_None
;
5946 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
5947 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5948 PyObject
* _resultobj
;
5953 PyObject
* _argo0
= 0;
5954 PyObject
* _argo1
= 0;
5955 char *_kwnames
[] = { "self","icon","x","y", NULL
};
5958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
5961 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5962 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5968 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5969 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
5970 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5975 wxPy_BEGIN_ALLOW_THREADS
;
5976 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
5978 wxPy_END_ALLOW_THREADS
;
5979 if (PyErr_Occurred()) return NULL
;
5980 } Py_INCREF(Py_None
);
5981 _resultobj
= Py_None
;
5985 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5986 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5987 PyObject
* _resultobj
;
5993 PyObject
* _argo0
= 0;
5994 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
5997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6007 wxPy_BEGIN_ALLOW_THREADS
;
6008 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6010 wxPy_END_ALLOW_THREADS
;
6011 if (PyErr_Occurred()) return NULL
;
6012 } Py_INCREF(Py_None
);
6013 _resultobj
= Py_None
;
6017 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6018 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6019 PyObject
* _resultobj
;
6023 long _arg3
= (long ) 0;
6024 long _arg4
= (long ) 0;
6025 PyObject
* _argo0
= 0;
6027 PyObject
* _obj2
= 0;
6028 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
6031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
6034 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6035 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6042 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6043 if (_arg2
== NULL
) {
6051 wxPy_BEGIN_ALLOW_THREADS
;
6052 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6054 wxPy_END_ALLOW_THREADS
;
6055 if (PyErr_Occurred()) return NULL
;
6056 } Py_INCREF(Py_None
);
6057 _resultobj
= Py_None
;
6064 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6065 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6066 PyObject
* _resultobj
;
6070 long _arg3
= (long ) 0;
6071 long _arg4
= (long ) 0;
6072 int _arg5
= (int ) wxODDEVEN_RULE
;
6073 PyObject
* _argo0
= 0;
6075 PyObject
* _obj2
= 0;
6076 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6090 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6091 if (_arg2
== NULL
) {
6099 wxPy_BEGIN_ALLOW_THREADS
;
6100 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6102 wxPy_END_ALLOW_THREADS
;
6103 if (PyErr_Occurred()) return NULL
;
6104 } Py_INCREF(Py_None
);
6105 _resultobj
= Py_None
;
6112 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6113 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6114 PyObject
* _resultobj
;
6118 PyObject
* _argo0
= 0;
6119 char *_kwnames
[] = { "self","x","y", NULL
};
6122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6132 wxPy_BEGIN_ALLOW_THREADS
;
6133 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6135 wxPy_END_ALLOW_THREADS
;
6136 if (PyErr_Occurred()) return NULL
;
6137 } Py_INCREF(Py_None
);
6138 _resultobj
= Py_None
;
6142 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6143 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6144 PyObject
* _resultobj
;
6150 PyObject
* _argo0
= 0;
6151 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6157 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6158 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6164 wxPy_BEGIN_ALLOW_THREADS
;
6165 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6167 wxPy_END_ALLOW_THREADS
;
6168 if (PyErr_Occurred()) return NULL
;
6169 } Py_INCREF(Py_None
);
6170 _resultobj
= Py_None
;
6174 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6175 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6176 PyObject
* _resultobj
;
6182 PyObject
* _argo0
= 0;
6183 PyObject
* _obj1
= 0;
6184 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6190 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6191 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6192 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6197 #if PYTHON_API_VERSION >= 1009
6198 char* tmpPtr
; int tmpSize
;
6199 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6200 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6203 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6205 _arg1
= new wxString(tmpPtr
, tmpSize
);
6207 if (!PyString_Check(_obj1
)) {
6208 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6211 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6215 wxPy_BEGIN_ALLOW_THREADS
;
6216 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
6218 wxPy_END_ALLOW_THREADS
;
6219 if (PyErr_Occurred()) return NULL
;
6220 } Py_INCREF(Py_None
);
6221 _resultobj
= Py_None
;
6229 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6230 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6231 PyObject
* _resultobj
;
6237 long _arg5
= (long ) 20;
6238 PyObject
* _argo0
= 0;
6239 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
6242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
6245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6252 wxPy_BEGIN_ALLOW_THREADS
;
6253 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6255 wxPy_END_ALLOW_THREADS
;
6256 if (PyErr_Occurred()) return NULL
;
6257 } Py_INCREF(Py_None
);
6258 _resultobj
= Py_None
;
6262 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
6263 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6264 PyObject
* _resultobj
;
6268 PyObject
* _argo0
= 0;
6270 PyObject
* _obj2
= 0;
6271 char *_kwnames
[] = { "self","points", NULL
};
6274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
6277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6285 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6286 if (_arg2
== NULL
) {
6294 wxPy_BEGIN_ALLOW_THREADS
;
6295 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
6297 wxPy_END_ALLOW_THREADS
;
6298 if (PyErr_Occurred()) return NULL
;
6299 } Py_INCREF(Py_None
);
6300 _resultobj
= Py_None
;
6307 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
6308 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6309 PyObject
* _resultobj
;
6314 PyObject
* _argo0
= 0;
6315 PyObject
* _obj1
= 0;
6316 char *_kwnames
[] = { "self","text","x","y", NULL
};
6319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
6322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6329 #if PYTHON_API_VERSION >= 1009
6330 char* tmpPtr
; int tmpSize
;
6331 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6332 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6335 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6337 _arg1
= new wxString(tmpPtr
, tmpSize
);
6339 if (!PyString_Check(_obj1
)) {
6340 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6343 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6347 wxPy_BEGIN_ALLOW_THREADS
;
6348 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
6350 wxPy_END_ALLOW_THREADS
;
6351 if (PyErr_Occurred()) return NULL
;
6352 } Py_INCREF(Py_None
);
6353 _resultobj
= Py_None
;
6361 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
6362 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6363 PyObject
* _resultobj
;
6365 PyObject
* _argo0
= 0;
6366 char *_kwnames
[] = { "self", NULL
};
6369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
6372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6379 wxPy_BEGIN_ALLOW_THREADS
;
6382 wxPy_END_ALLOW_THREADS
;
6383 if (PyErr_Occurred()) return NULL
;
6384 } Py_INCREF(Py_None
);
6385 _resultobj
= Py_None
;
6389 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
6390 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6391 PyObject
* _resultobj
;
6393 PyObject
* _argo0
= 0;
6394 char *_kwnames
[] = { "self", NULL
};
6397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
6400 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6401 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6407 wxPy_BEGIN_ALLOW_THREADS
;
6408 wxDC_EndDrawing(_arg0
);
6410 wxPy_END_ALLOW_THREADS
;
6411 if (PyErr_Occurred()) return NULL
;
6412 } Py_INCREF(Py_None
);
6413 _resultobj
= Py_None
;
6417 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
6418 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6419 PyObject
* _resultobj
;
6421 PyObject
* _argo0
= 0;
6422 char *_kwnames
[] = { "self", NULL
};
6425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
6428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6435 wxPy_BEGIN_ALLOW_THREADS
;
6436 wxDC_EndPage(_arg0
);
6438 wxPy_END_ALLOW_THREADS
;
6439 if (PyErr_Occurred()) return NULL
;
6440 } Py_INCREF(Py_None
);
6441 _resultobj
= Py_None
;
6445 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6446 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6447 PyObject
* _resultobj
;
6452 int _arg4
= (int ) wxFLOOD_SURFACE
;
6453 PyObject
* _argo0
= 0;
6455 PyObject
* _obj3
= 0;
6456 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
6459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
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_FloodFill. Expected _wxDC_p.");
6470 if (! wxColour_helper(_obj3
, &_arg3
))
6474 wxPy_BEGIN_ALLOW_THREADS
;
6475 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
6477 wxPy_END_ALLOW_THREADS
;
6478 if (PyErr_Occurred()) return NULL
;
6479 } Py_INCREF(Py_None
);
6480 _resultobj
= Py_None
;
6484 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
6485 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6486 PyObject
* _resultobj
;
6489 PyObject
* _argo0
= 0;
6490 char *_kwnames
[] = { "self", NULL
};
6494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
6497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6504 wxPy_BEGIN_ALLOW_THREADS
;
6505 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
6506 _result
= (wxBrush
*) &_result_ref
;
6508 wxPy_END_ALLOW_THREADS
;
6509 if (PyErr_Occurred()) return NULL
;
6511 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6512 _resultobj
= Py_BuildValue("s",_ptemp
);
6515 _resultobj
= Py_None
;
6520 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
6521 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6522 PyObject
* _resultobj
;
6525 PyObject
* _argo0
= 0;
6526 char *_kwnames
[] = { "self", NULL
};
6530 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
6533 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6534 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6535 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6540 wxPy_BEGIN_ALLOW_THREADS
;
6541 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
6542 _result
= (wxBrush
*) &_result_ref
;
6544 wxPy_END_ALLOW_THREADS
;
6545 if (PyErr_Occurred()) return NULL
;
6547 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6548 _resultobj
= Py_BuildValue("s",_ptemp
);
6551 _resultobj
= Py_None
;
6556 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
6557 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6558 PyObject
* _resultobj
;
6561 PyObject
* _argo0
= 0;
6562 char *_kwnames
[] = { "self", NULL
};
6565 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
6568 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6569 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6570 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6575 wxPy_BEGIN_ALLOW_THREADS
;
6576 _result
= (long )wxDC_GetCharHeight(_arg0
);
6578 wxPy_END_ALLOW_THREADS
;
6579 if (PyErr_Occurred()) return NULL
;
6580 } _resultobj
= Py_BuildValue("l",_result
);
6584 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
6585 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6586 PyObject
* _resultobj
;
6589 PyObject
* _argo0
= 0;
6590 char *_kwnames
[] = { "self", NULL
};
6593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
6596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6603 wxPy_BEGIN_ALLOW_THREADS
;
6604 _result
= (long )wxDC_GetCharWidth(_arg0
);
6606 wxPy_END_ALLOW_THREADS
;
6607 if (PyErr_Occurred()) return NULL
;
6608 } _resultobj
= Py_BuildValue("l",_result
);
6612 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6613 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6614 PyObject
* _resultobj
;
6624 PyObject
* _argo0
= 0;
6625 char *_kwnames
[] = { "self", NULL
};
6640 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
6643 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6644 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6645 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6650 wxPy_BEGIN_ALLOW_THREADS
;
6651 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6653 wxPy_END_ALLOW_THREADS
;
6654 if (PyErr_Occurred()) return NULL
;
6655 } Py_INCREF(Py_None
);
6656 _resultobj
= Py_None
;
6659 o
= PyInt_FromLong((long) (*_arg1
));
6660 _resultobj
= t_output_helper(_resultobj
, o
);
6664 o
= PyInt_FromLong((long) (*_arg2
));
6665 _resultobj
= t_output_helper(_resultobj
, o
);
6669 o
= PyInt_FromLong((long) (*_arg3
));
6670 _resultobj
= t_output_helper(_resultobj
, o
);
6674 o
= PyInt_FromLong((long) (*_arg4
));
6675 _resultobj
= t_output_helper(_resultobj
, o
);
6680 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6681 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6682 PyObject
* _resultobj
;
6685 PyObject
* _argo0
= 0;
6686 char *_kwnames
[] = { "self", NULL
};
6690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
6693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6700 wxPy_BEGIN_ALLOW_THREADS
;
6701 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
6702 _result
= (wxFont
*) &_result_ref
;
6704 wxPy_END_ALLOW_THREADS
;
6705 if (PyErr_Occurred()) return NULL
;
6707 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
6708 _resultobj
= Py_BuildValue("s",_ptemp
);
6711 _resultobj
= Py_None
;
6716 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6717 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6718 PyObject
* _resultobj
;
6721 PyObject
* _argo0
= 0;
6722 char *_kwnames
[] = { "self", NULL
};
6725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
6728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6735 wxPy_BEGIN_ALLOW_THREADS
;
6736 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
6738 wxPy_END_ALLOW_THREADS
;
6739 if (PyErr_Occurred()) return NULL
;
6740 } _resultobj
= Py_BuildValue("i",_result
);
6744 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6745 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6746 PyObject
* _resultobj
;
6752 PyObject
* _argo0
= 0;
6753 char *_kwnames
[] = { "self", NULL
};
6762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
6765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
6772 wxPy_BEGIN_ALLOW_THREADS
;
6773 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
6775 wxPy_END_ALLOW_THREADS
;
6776 if (PyErr_Occurred()) return NULL
;
6777 } Py_INCREF(Py_None
);
6778 _resultobj
= Py_None
;
6781 o
= PyFloat_FromDouble((double) (*_arg1
));
6782 _resultobj
= t_output_helper(_resultobj
, o
);
6786 o
= PyFloat_FromDouble((double) (*_arg2
));
6787 _resultobj
= t_output_helper(_resultobj
, o
);
6792 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6793 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6794 PyObject
* _resultobj
;
6797 PyObject
* _argo0
= 0;
6798 char *_kwnames
[] = { "self", NULL
};
6801 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
6804 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6805 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6806 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6811 wxPy_BEGIN_ALLOW_THREADS
;
6812 _result
= (int )wxDC_GetMapMode(_arg0
);
6814 wxPy_END_ALLOW_THREADS
;
6815 if (PyErr_Occurred()) return NULL
;
6816 } _resultobj
= Py_BuildValue("i",_result
);
6820 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6821 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6822 PyObject
* _resultobj
;
6825 PyObject
* _argo0
= 0;
6826 char *_kwnames
[] = { "self", NULL
};
6829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
6832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6839 wxPy_BEGIN_ALLOW_THREADS
;
6840 _result
= (bool )wxDC_GetOptimization(_arg0
);
6842 wxPy_END_ALLOW_THREADS
;
6843 if (PyErr_Occurred()) return NULL
;
6844 } _resultobj
= Py_BuildValue("i",_result
);
6848 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6849 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6850 PyObject
* _resultobj
;
6853 PyObject
* _argo0
= 0;
6854 char *_kwnames
[] = { "self", NULL
};
6858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
6861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6868 wxPy_BEGIN_ALLOW_THREADS
;
6869 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
6870 _result
= (wxPen
*) &_result_ref
;
6872 wxPy_END_ALLOW_THREADS
;
6873 if (PyErr_Occurred()) return NULL
;
6875 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6876 _resultobj
= Py_BuildValue("s",_ptemp
);
6879 _resultobj
= Py_None
;
6884 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
6885 wxColour
* wc
= new wxColour();
6886 self
->GetPixel(x
, y
, wc
);
6889 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6890 PyObject
* _resultobj
;
6895 PyObject
* _argo0
= 0;
6896 char *_kwnames
[] = { "self","x","y", NULL
};
6900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6910 wxPy_BEGIN_ALLOW_THREADS
;
6911 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
6913 wxPy_END_ALLOW_THREADS
;
6914 if (PyErr_Occurred()) return NULL
;
6916 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6917 _resultobj
= Py_BuildValue("s",_ptemp
);
6920 _resultobj
= Py_None
;
6925 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6926 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6927 PyObject
* _resultobj
;
6933 PyObject
* _argo0
= 0;
6934 char *_kwnames
[] = { "self", NULL
};
6943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
6946 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6947 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6953 wxPy_BEGIN_ALLOW_THREADS
;
6954 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
6956 wxPy_END_ALLOW_THREADS
;
6957 if (PyErr_Occurred()) return NULL
;
6958 } Py_INCREF(Py_None
);
6959 _resultobj
= Py_None
;
6962 o
= PyInt_FromLong((long) (*_arg1
));
6963 _resultobj
= t_output_helper(_resultobj
, o
);
6967 o
= PyInt_FromLong((long) (*_arg2
));
6968 _resultobj
= t_output_helper(_resultobj
, o
);
6973 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6974 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6975 PyObject
* _resultobj
;
6978 PyObject
* _argo0
= 0;
6979 char *_kwnames
[] = { "self", NULL
};
6983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
6986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6993 wxPy_BEGIN_ALLOW_THREADS
;
6994 _result
= new wxSize (wxDC_GetSize(_arg0
));
6996 wxPy_END_ALLOW_THREADS
;
6997 if (PyErr_Occurred()) return NULL
;
6998 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6999 _resultobj
= Py_BuildValue("s",_ptemp
);
7003 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7004 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7005 PyObject
* _resultobj
;
7008 PyObject
* _argo0
= 0;
7009 char *_kwnames
[] = { "self", NULL
};
7013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7023 wxPy_BEGIN_ALLOW_THREADS
;
7024 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
7026 wxPy_END_ALLOW_THREADS
;
7027 if (PyErr_Occurred()) return NULL
;
7028 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7029 _resultobj
= Py_BuildValue("s",_ptemp
);
7033 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7034 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7035 PyObject
* _resultobj
;
7038 PyObject
* _argo0
= 0;
7039 char *_kwnames
[] = { "self", NULL
};
7043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
7046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7053 wxPy_BEGIN_ALLOW_THREADS
;
7054 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
7056 wxPy_END_ALLOW_THREADS
;
7057 if (PyErr_Occurred()) return NULL
;
7058 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7059 _resultobj
= Py_BuildValue("s",_ptemp
);
7063 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7064 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7065 PyObject
* _resultobj
;
7072 PyObject
* _argo0
= 0;
7073 PyObject
* _obj1
= 0;
7074 char *_kwnames
[] = { "self","string", NULL
};
7083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7086 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7087 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7093 #if PYTHON_API_VERSION >= 1009
7094 char* tmpPtr
; int tmpSize
;
7095 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7096 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7099 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7101 _arg1
= new wxString(tmpPtr
, tmpSize
);
7103 if (!PyString_Check(_obj1
)) {
7104 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7107 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7111 wxPy_BEGIN_ALLOW_THREADS
;
7112 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7114 wxPy_END_ALLOW_THREADS
;
7115 if (PyErr_Occurred()) return NULL
;
7116 } Py_INCREF(Py_None
);
7117 _resultobj
= Py_None
;
7120 o
= PyInt_FromLong((long) (*_arg2
));
7121 _resultobj
= t_output_helper(_resultobj
, o
);
7125 o
= PyInt_FromLong((long) (*_arg3
));
7126 _resultobj
= t_output_helper(_resultobj
, o
);
7135 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7136 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7137 PyObject
* _resultobj
;
7148 wxFont
* _arg6
= (wxFont
*) NULL
;
7149 PyObject
* _argo0
= 0;
7150 PyObject
* _obj1
= 0;
7151 PyObject
* _argo6
= 0;
7152 char *_kwnames
[] = { "self","string","font", NULL
};
7167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7177 #if PYTHON_API_VERSION >= 1009
7178 char* tmpPtr
; int tmpSize
;
7179 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7180 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7183 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7185 _arg1
= new wxString(tmpPtr
, tmpSize
);
7187 if (!PyString_Check(_obj1
)) {
7188 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7191 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7195 if (_argo6
== Py_None
) { _arg6
= NULL
; }
7196 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
7197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7202 wxPy_BEGIN_ALLOW_THREADS
;
7203 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7205 wxPy_END_ALLOW_THREADS
;
7206 if (PyErr_Occurred()) return NULL
;
7207 } Py_INCREF(Py_None
);
7208 _resultobj
= Py_None
;
7211 o
= PyInt_FromLong((long) (*_arg2
));
7212 _resultobj
= t_output_helper(_resultobj
, o
);
7216 o
= PyInt_FromLong((long) (*_arg3
));
7217 _resultobj
= t_output_helper(_resultobj
, o
);
7221 o
= PyInt_FromLong((long) (*_arg4
));
7222 _resultobj
= t_output_helper(_resultobj
, o
);
7226 o
= PyInt_FromLong((long) (*_arg5
));
7227 _resultobj
= t_output_helper(_resultobj
, o
);
7236 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
7237 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7238 PyObject
* _resultobj
;
7241 PyObject
* _argo0
= 0;
7242 char *_kwnames
[] = { "self", NULL
};
7246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
7249 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7250 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7256 wxPy_BEGIN_ALLOW_THREADS
;
7257 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
7259 wxPy_END_ALLOW_THREADS
;
7260 if (PyErr_Occurred()) return NULL
;
7261 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7262 _resultobj
= Py_BuildValue("s",_ptemp
);
7266 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7267 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7268 PyObject
* _resultobj
;
7274 PyObject
* _argo0
= 0;
7275 char *_kwnames
[] = { "self", NULL
};
7284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
7287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7294 wxPy_BEGIN_ALLOW_THREADS
;
7295 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
7297 wxPy_END_ALLOW_THREADS
;
7298 if (PyErr_Occurred()) return NULL
;
7299 } Py_INCREF(Py_None
);
7300 _resultobj
= Py_None
;
7303 o
= PyFloat_FromDouble((double) (*_arg1
));
7304 _resultobj
= t_output_helper(_resultobj
, o
);
7308 o
= PyFloat_FromDouble((double) (*_arg2
));
7309 _resultobj
= t_output_helper(_resultobj
, o
);
7314 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
7315 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7316 PyObject
* _resultobj
;
7320 PyObject
* _argo0
= 0;
7321 char *_kwnames
[] = { "self","x", NULL
};
7324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
7327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7334 wxPy_BEGIN_ALLOW_THREADS
;
7335 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
7337 wxPy_END_ALLOW_THREADS
;
7338 if (PyErr_Occurred()) return NULL
;
7339 } _resultobj
= Py_BuildValue("l",_result
);
7343 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
7344 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7345 PyObject
* _resultobj
;
7349 PyObject
* _argo0
= 0;
7350 char *_kwnames
[] = { "self","x", NULL
};
7353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
7356 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7357 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7358 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7363 wxPy_BEGIN_ALLOW_THREADS
;
7364 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
7366 wxPy_END_ALLOW_THREADS
;
7367 if (PyErr_Occurred()) return NULL
;
7368 } _resultobj
= Py_BuildValue("l",_result
);
7372 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
7373 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7374 PyObject
* _resultobj
;
7378 PyObject
* _argo0
= 0;
7379 char *_kwnames
[] = { "self","y", NULL
};
7382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
7385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7392 wxPy_BEGIN_ALLOW_THREADS
;
7393 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
7395 wxPy_END_ALLOW_THREADS
;
7396 if (PyErr_Occurred()) return NULL
;
7397 } _resultobj
= Py_BuildValue("l",_result
);
7401 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
7402 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7403 PyObject
* _resultobj
;
7407 PyObject
* _argo0
= 0;
7408 char *_kwnames
[] = { "self","y", NULL
};
7411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
7414 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7415 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7421 wxPy_BEGIN_ALLOW_THREADS
;
7422 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
7424 wxPy_END_ALLOW_THREADS
;
7425 if (PyErr_Occurred()) return NULL
;
7426 } _resultobj
= Py_BuildValue("l",_result
);
7430 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
7431 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7432 PyObject
* _resultobj
;
7435 PyObject
* _argo0
= 0;
7436 char *_kwnames
[] = { "self", NULL
};
7439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
7442 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7443 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7449 wxPy_BEGIN_ALLOW_THREADS
;
7450 _result
= (long )wxDC_MaxX(_arg0
);
7452 wxPy_END_ALLOW_THREADS
;
7453 if (PyErr_Occurred()) return NULL
;
7454 } _resultobj
= Py_BuildValue("l",_result
);
7458 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7459 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7460 PyObject
* _resultobj
;
7463 PyObject
* _argo0
= 0;
7464 char *_kwnames
[] = { "self", NULL
};
7467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
7470 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7471 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7477 wxPy_BEGIN_ALLOW_THREADS
;
7478 _result
= (long )wxDC_MaxY(_arg0
);
7480 wxPy_END_ALLOW_THREADS
;
7481 if (PyErr_Occurred()) return NULL
;
7482 } _resultobj
= Py_BuildValue("l",_result
);
7486 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
7487 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7488 PyObject
* _resultobj
;
7491 PyObject
* _argo0
= 0;
7492 char *_kwnames
[] = { "self", NULL
};
7495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
7498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7505 wxPy_BEGIN_ALLOW_THREADS
;
7506 _result
= (long )wxDC_MinX(_arg0
);
7508 wxPy_END_ALLOW_THREADS
;
7509 if (PyErr_Occurred()) return NULL
;
7510 } _resultobj
= Py_BuildValue("l",_result
);
7514 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
7515 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7516 PyObject
* _resultobj
;
7519 PyObject
* _argo0
= 0;
7520 char *_kwnames
[] = { "self", NULL
};
7523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
7526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7533 wxPy_BEGIN_ALLOW_THREADS
;
7534 _result
= (long )wxDC_MinY(_arg0
);
7536 wxPy_END_ALLOW_THREADS
;
7537 if (PyErr_Occurred()) return NULL
;
7538 } _resultobj
= Py_BuildValue("l",_result
);
7542 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
7543 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7544 PyObject
* _resultobj
;
7547 PyObject
* _argo0
= 0;
7548 char *_kwnames
[] = { "self", NULL
};
7551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
7554 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7555 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7561 wxPy_BEGIN_ALLOW_THREADS
;
7562 _result
= (bool )wxDC_Ok(_arg0
);
7564 wxPy_END_ALLOW_THREADS
;
7565 if (PyErr_Occurred()) return NULL
;
7566 } _resultobj
= Py_BuildValue("i",_result
);
7570 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
7571 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7572 PyObject
* _resultobj
;
7576 PyObject
* _argo0
= 0;
7577 char *_kwnames
[] = { "self","x","y", NULL
};
7580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7583 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7584 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7585 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7590 wxPy_BEGIN_ALLOW_THREADS
;
7591 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7593 wxPy_END_ALLOW_THREADS
;
7594 if (PyErr_Occurred()) return NULL
;
7595 } Py_INCREF(Py_None
);
7596 _resultobj
= Py_None
;
7600 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
7601 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7602 PyObject
* _resultobj
;
7605 PyObject
* _argo0
= 0;
7606 PyObject
* _argo1
= 0;
7607 char *_kwnames
[] = { "self","brush", NULL
};
7610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
7613 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7614 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7620 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7621 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7627 wxPy_BEGIN_ALLOW_THREADS
;
7628 wxDC_SetBackground(_arg0
,*_arg1
);
7630 wxPy_END_ALLOW_THREADS
;
7631 if (PyErr_Occurred()) return NULL
;
7632 } Py_INCREF(Py_None
);
7633 _resultobj
= Py_None
;
7637 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
7638 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7639 PyObject
* _resultobj
;
7642 PyObject
* _argo0
= 0;
7643 char *_kwnames
[] = { "self","mode", NULL
};
7646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
7649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
7656 wxPy_BEGIN_ALLOW_THREADS
;
7657 wxDC_SetBackgroundMode(_arg0
,_arg1
);
7659 wxPy_END_ALLOW_THREADS
;
7660 if (PyErr_Occurred()) return NULL
;
7661 } Py_INCREF(Py_None
);
7662 _resultobj
= Py_None
;
7666 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7667 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7668 PyObject
* _resultobj
;
7674 PyObject
* _argo0
= 0;
7675 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7688 wxPy_BEGIN_ALLOW_THREADS
;
7689 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7691 wxPy_END_ALLOW_THREADS
;
7692 if (PyErr_Occurred()) return NULL
;
7693 } Py_INCREF(Py_None
);
7694 _resultobj
= Py_None
;
7698 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
7699 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7700 PyObject
* _resultobj
;
7703 PyObject
* _argo0
= 0;
7704 PyObject
* _argo1
= 0;
7705 char *_kwnames
[] = { "self","colourMap", NULL
};
7708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
7711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
7718 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7719 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
7720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
7725 wxPy_BEGIN_ALLOW_THREADS
;
7726 wxDC_SetPalette(_arg0
,*_arg1
);
7728 wxPy_END_ALLOW_THREADS
;
7729 if (PyErr_Occurred()) return NULL
;
7730 } Py_INCREF(Py_None
);
7731 _resultobj
= Py_None
;
7735 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
7736 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7737 PyObject
* _resultobj
;
7740 PyObject
* _argo0
= 0;
7741 PyObject
* _argo1
= 0;
7742 char *_kwnames
[] = { "self","brush", NULL
};
7745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
7748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
7755 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7756 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7757 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
7762 wxPy_BEGIN_ALLOW_THREADS
;
7763 wxDC_SetBrush(_arg0
,*_arg1
);
7765 wxPy_END_ALLOW_THREADS
;
7766 if (PyErr_Occurred()) return NULL
;
7767 } Py_INCREF(Py_None
);
7768 _resultobj
= Py_None
;
7772 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7773 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7774 PyObject
* _resultobj
;
7777 PyObject
* _argo0
= 0;
7778 PyObject
* _argo1
= 0;
7779 char *_kwnames
[] = { "self","font", NULL
};
7782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
7785 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7786 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7792 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7793 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
7794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7799 wxPy_BEGIN_ALLOW_THREADS
;
7800 wxDC_SetFont(_arg0
,*_arg1
);
7802 wxPy_END_ALLOW_THREADS
;
7803 if (PyErr_Occurred()) return NULL
;
7804 } Py_INCREF(Py_None
);
7805 _resultobj
= Py_None
;
7809 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7810 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7811 PyObject
* _resultobj
;
7814 PyObject
* _argo0
= 0;
7815 char *_kwnames
[] = { "self","function", NULL
};
7818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7821 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7822 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7828 wxPy_BEGIN_ALLOW_THREADS
;
7829 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7831 wxPy_END_ALLOW_THREADS
;
7832 if (PyErr_Occurred()) return NULL
;
7833 } Py_INCREF(Py_None
);
7834 _resultobj
= Py_None
;
7838 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7839 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7840 PyObject
* _resultobj
;
7844 PyObject
* _argo0
= 0;
7845 char *_kwnames
[] = { "self","x","y", NULL
};
7848 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7851 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7852 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7853 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7858 wxPy_BEGIN_ALLOW_THREADS
;
7859 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7861 wxPy_END_ALLOW_THREADS
;
7862 if (PyErr_Occurred()) return NULL
;
7863 } Py_INCREF(Py_None
);
7864 _resultobj
= Py_None
;
7868 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7869 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7870 PyObject
* _resultobj
;
7873 PyObject
* _argo0
= 0;
7874 char *_kwnames
[] = { "self","mode", NULL
};
7877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
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 wxDC_SetMapMode. Expected _wxDC_p.");
7887 wxPy_BEGIN_ALLOW_THREADS
;
7888 wxDC_SetMapMode(_arg0
,_arg1
);
7890 wxPy_END_ALLOW_THREADS
;
7891 if (PyErr_Occurred()) return NULL
;
7892 } Py_INCREF(Py_None
);
7893 _resultobj
= Py_None
;
7897 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7898 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7899 PyObject
* _resultobj
;
7902 PyObject
* _argo0
= 0;
7904 char *_kwnames
[] = { "self","optimize", NULL
};
7907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
7910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7916 _arg1
= (bool ) tempbool1
;
7918 wxPy_BEGIN_ALLOW_THREADS
;
7919 wxDC_SetOptimization(_arg0
,_arg1
);
7921 wxPy_END_ALLOW_THREADS
;
7922 if (PyErr_Occurred()) return NULL
;
7923 } Py_INCREF(Py_None
);
7924 _resultobj
= Py_None
;
7928 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7929 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7930 PyObject
* _resultobj
;
7933 PyObject
* _argo0
= 0;
7934 PyObject
* _argo1
= 0;
7935 char *_kwnames
[] = { "self","pen", NULL
};
7938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
7941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7948 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7949 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
7950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7955 wxPy_BEGIN_ALLOW_THREADS
;
7956 wxDC_SetPen(_arg0
,*_arg1
);
7958 wxPy_END_ALLOW_THREADS
;
7959 if (PyErr_Occurred()) return NULL
;
7960 } Py_INCREF(Py_None
);
7961 _resultobj
= Py_None
;
7965 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7966 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7967 PyObject
* _resultobj
;
7970 PyObject
* _argo0
= 0;
7972 PyObject
* _obj1
= 0;
7973 char *_kwnames
[] = { "self","colour", NULL
};
7976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
7979 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7980 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7987 if (! wxColour_helper(_obj1
, &_arg1
))
7991 wxPy_BEGIN_ALLOW_THREADS
;
7992 wxDC_SetTextBackground(_arg0
,*_arg1
);
7994 wxPy_END_ALLOW_THREADS
;
7995 if (PyErr_Occurred()) return NULL
;
7996 } Py_INCREF(Py_None
);
7997 _resultobj
= Py_None
;
8001 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8002 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8003 PyObject
* _resultobj
;
8006 PyObject
* _argo0
= 0;
8008 PyObject
* _obj1
= 0;
8009 char *_kwnames
[] = { "self","colour", NULL
};
8012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
8015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8023 if (! wxColour_helper(_obj1
, &_arg1
))
8027 wxPy_BEGIN_ALLOW_THREADS
;
8028 wxDC_SetTextForeground(_arg0
,*_arg1
);
8030 wxPy_END_ALLOW_THREADS
;
8031 if (PyErr_Occurred()) return NULL
;
8032 } Py_INCREF(Py_None
);
8033 _resultobj
= Py_None
;
8037 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8038 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8039 PyObject
* _resultobj
;
8043 PyObject
* _argo0
= 0;
8044 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8057 wxPy_BEGIN_ALLOW_THREADS
;
8058 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8060 wxPy_END_ALLOW_THREADS
;
8061 if (PyErr_Occurred()) return NULL
;
8062 } Py_INCREF(Py_None
);
8063 _resultobj
= Py_None
;
8067 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8068 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8069 PyObject
* _resultobj
;
8073 PyObject
* _argo0
= 0;
8074 PyObject
* _obj1
= 0;
8075 char *_kwnames
[] = { "self","message", NULL
};
8078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8088 #if PYTHON_API_VERSION >= 1009
8089 char* tmpPtr
; int tmpSize
;
8090 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8091 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8094 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8096 _arg1
= new wxString(tmpPtr
, tmpSize
);
8098 if (!PyString_Check(_obj1
)) {
8099 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8102 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8106 wxPy_BEGIN_ALLOW_THREADS
;
8107 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8109 wxPy_END_ALLOW_THREADS
;
8110 if (PyErr_Occurred()) return NULL
;
8111 } _resultobj
= Py_BuildValue("i",_result
);
8119 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8120 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8121 PyObject
* _resultobj
;
8123 PyObject
* _argo0
= 0;
8124 char *_kwnames
[] = { "self", NULL
};
8127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8130 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8131 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8132 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8137 wxPy_BEGIN_ALLOW_THREADS
;
8138 wxDC_StartPage(_arg0
);
8140 wxPy_END_ALLOW_THREADS
;
8141 if (PyErr_Occurred()) return NULL
;
8142 } Py_INCREF(Py_None
);
8143 _resultobj
= Py_None
;
8147 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8148 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8149 PyObject
* _resultobj
;
8154 int _arg4
= (int ) FALSE
;
8155 PyObject
* _argo0
= 0;
8156 PyObject
* _argo1
= 0;
8157 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
8160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
8163 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8164 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8170 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8171 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8177 wxPy_BEGIN_ALLOW_THREADS
;
8178 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
8180 wxPy_END_ALLOW_THREADS
;
8181 if (PyErr_Occurred()) return NULL
;
8182 } Py_INCREF(Py_None
);
8183 _resultobj
= Py_None
;
8187 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8188 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8189 PyObject
* _resultobj
;
8192 PyObject
* _argo0
= 0;
8193 char *_kwnames
[] = { "self", NULL
};
8196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
8199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8206 wxPy_BEGIN_ALLOW_THREADS
;
8207 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
8209 wxPy_END_ALLOW_THREADS
;
8210 if (PyErr_Occurred()) return NULL
;
8211 } _resultobj
= Py_BuildValue("i",_result
);
8215 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8216 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8217 PyObject
* _resultobj
;
8220 PyObject
* _argo0
= 0;
8221 char *_kwnames
[] = { "self", NULL
};
8224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
8227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8234 wxPy_BEGIN_ALLOW_THREADS
;
8235 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
8237 wxPy_END_ALLOW_THREADS
;
8238 if (PyErr_Occurred()) return NULL
;
8239 } _resultobj
= Py_BuildValue("i",_result
);
8243 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8244 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8245 PyObject
* _resultobj
;
8248 PyObject
* _argo0
= 0;
8249 char *_kwnames
[] = { "self", NULL
};
8252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
8255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8262 wxPy_BEGIN_ALLOW_THREADS
;
8263 _result
= (int )wxDC_GetDepth(_arg0
);
8265 wxPy_END_ALLOW_THREADS
;
8266 if (PyErr_Occurred()) return NULL
;
8267 } _resultobj
= Py_BuildValue("i",_result
);
8271 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8272 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8273 PyObject
* _resultobj
;
8276 PyObject
* _argo0
= 0;
8277 char *_kwnames
[] = { "self", NULL
};
8281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
8284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8291 wxPy_BEGIN_ALLOW_THREADS
;
8292 _result
= new wxSize (wxDC_GetPPI(_arg0
));
8294 wxPy_END_ALLOW_THREADS
;
8295 if (PyErr_Occurred()) return NULL
;
8296 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8297 _resultobj
= Py_BuildValue("s",_ptemp
);
8301 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8302 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8303 PyObject
* _resultobj
;
8309 PyObject
* _argo0
= 0;
8310 char *_kwnames
[] = { "self", NULL
};
8319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
8322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8329 wxPy_BEGIN_ALLOW_THREADS
;
8330 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8332 wxPy_END_ALLOW_THREADS
;
8333 if (PyErr_Occurred()) return NULL
;
8334 } Py_INCREF(Py_None
);
8335 _resultobj
= Py_None
;
8338 o
= PyInt_FromLong((long) (*_arg1
));
8339 _resultobj
= t_output_helper(_resultobj
, o
);
8343 o
= PyInt_FromLong((long) (*_arg2
));
8344 _resultobj
= t_output_helper(_resultobj
, o
);
8349 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8350 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8351 PyObject
* _resultobj
;
8355 PyObject
* _argo0
= 0;
8356 char *_kwnames
[] = { "self","x","y", NULL
};
8359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8369 wxPy_BEGIN_ALLOW_THREADS
;
8370 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8372 wxPy_END_ALLOW_THREADS
;
8373 if (PyErr_Occurred()) return NULL
;
8374 } Py_INCREF(Py_None
);
8375 _resultobj
= Py_None
;
8379 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8380 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8381 PyObject
* _resultobj
;
8387 PyObject
* _argo0
= 0;
8388 char *_kwnames
[] = { "self", NULL
};
8397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
8400 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8401 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8407 wxPy_BEGIN_ALLOW_THREADS
;
8408 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8410 wxPy_END_ALLOW_THREADS
;
8411 if (PyErr_Occurred()) return NULL
;
8412 } Py_INCREF(Py_None
);
8413 _resultobj
= Py_None
;
8416 o
= PyInt_FromLong((long) (*_arg1
));
8417 _resultobj
= t_output_helper(_resultobj
, o
);
8421 o
= PyInt_FromLong((long) (*_arg2
));
8422 _resultobj
= t_output_helper(_resultobj
, o
);
8427 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8428 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8429 PyObject
* _resultobj
;
8433 PyObject
* _argo0
= 0;
8436 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
8439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
8442 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8443 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8448 _arg1
= (bool ) tempbool1
;
8449 _arg2
= (bool ) tempbool2
;
8451 wxPy_BEGIN_ALLOW_THREADS
;
8452 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
8454 wxPy_END_ALLOW_THREADS
;
8455 if (PyErr_Occurred()) return NULL
;
8456 } Py_INCREF(Py_None
);
8457 _resultobj
= Py_None
;
8461 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
8462 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8463 PyObject
* _resultobj
;
8467 PyObject
* _argo0
= 0;
8468 char *_kwnames
[] = { "self","x","y", NULL
};
8471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8474 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8475 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8481 wxPy_BEGIN_ALLOW_THREADS
;
8482 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
8484 wxPy_END_ALLOW_THREADS
;
8485 if (PyErr_Occurred()) return NULL
;
8486 } Py_INCREF(Py_None
);
8487 _resultobj
= Py_None
;
8491 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8492 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8493 PyObject
* _resultobj
;
8495 PyObject
* _argo0
= 0;
8496 char *_kwnames
[] = { "self", NULL
};
8499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
8502 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8503 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8509 wxPy_BEGIN_ALLOW_THREADS
;
8510 wxDC_ResetBoundingBox(_arg0
);
8512 wxPy_END_ALLOW_THREADS
;
8513 if (PyErr_Occurred()) return NULL
;
8514 } Py_INCREF(Py_None
);
8515 _resultobj
= Py_None
;
8519 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
8522 src
= (wxMemoryDC
*) ptr
;
8523 dest
= (wxDC
*) src
;
8524 return (void *) dest
;
8527 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
8530 src
= (wxMemoryDC
*) ptr
;
8531 dest
= (wxObject
*) src
;
8532 return (void *) dest
;
8535 #define new_wxMemoryDC() (new wxMemoryDC())
8536 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8537 PyObject
* _resultobj
;
8538 wxMemoryDC
* _result
;
8539 char *_kwnames
[] = { NULL
};
8543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
8546 wxPy_BEGIN_ALLOW_THREADS
;
8547 _result
= (wxMemoryDC
*)new_wxMemoryDC();
8549 wxPy_END_ALLOW_THREADS
;
8550 if (PyErr_Occurred()) return NULL
;
8552 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
8553 _resultobj
= Py_BuildValue("s",_ptemp
);
8556 _resultobj
= Py_None
;
8561 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
8562 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8563 PyObject
* _resultobj
;
8566 PyObject
* _argo0
= 0;
8567 PyObject
* _argo1
= 0;
8568 char *_kwnames
[] = { "self","bitmap", NULL
};
8571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
8574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
8576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
8581 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8582 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
8588 wxPy_BEGIN_ALLOW_THREADS
;
8589 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
8591 wxPy_END_ALLOW_THREADS
;
8592 if (PyErr_Occurred()) return NULL
;
8593 } Py_INCREF(Py_None
);
8594 _resultobj
= Py_None
;
8598 static void *SwigwxScreenDCTowxDC(void *ptr
) {
8601 src
= (wxScreenDC
*) ptr
;
8602 dest
= (wxDC
*) src
;
8603 return (void *) dest
;
8606 static void *SwigwxScreenDCTowxObject(void *ptr
) {
8609 src
= (wxScreenDC
*) ptr
;
8610 dest
= (wxObject
*) src
;
8611 return (void *) dest
;
8614 #define new_wxScreenDC() (new wxScreenDC())
8615 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8616 PyObject
* _resultobj
;
8617 wxScreenDC
* _result
;
8618 char *_kwnames
[] = { NULL
};
8622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
8625 wxPy_BEGIN_ALLOW_THREADS
;
8626 _result
= (wxScreenDC
*)new_wxScreenDC();
8628 wxPy_END_ALLOW_THREADS
;
8629 if (PyErr_Occurred()) return NULL
;
8631 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
8632 _resultobj
= Py_BuildValue("s",_ptemp
);
8635 _resultobj
= Py_None
;
8640 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8641 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8642 PyObject
* _resultobj
;
8646 PyObject
* _argo0
= 0;
8647 PyObject
* _argo1
= 0;
8648 char *_kwnames
[] = { "self","window", NULL
};
8651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
8654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
8661 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8662 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
8668 wxPy_BEGIN_ALLOW_THREADS
;
8669 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
8671 wxPy_END_ALLOW_THREADS
;
8672 if (PyErr_Occurred()) return NULL
;
8673 } _resultobj
= Py_BuildValue("i",_result
);
8677 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8678 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8679 PyObject
* _resultobj
;
8682 wxRect
* _arg1
= (wxRect
*) NULL
;
8683 PyObject
* _argo0
= 0;
8685 PyObject
* _obj1
= 0;
8686 char *_kwnames
[] = { "self","rect", NULL
};
8689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
8692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
8701 if (! wxRect_helper(_obj1
, &_arg1
))
8705 wxPy_BEGIN_ALLOW_THREADS
;
8706 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
8708 wxPy_END_ALLOW_THREADS
;
8709 if (PyErr_Occurred()) return NULL
;
8710 } _resultobj
= Py_BuildValue("i",_result
);
8714 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
8715 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8716 PyObject
* _resultobj
;
8719 PyObject
* _argo0
= 0;
8720 char *_kwnames
[] = { "self", NULL
};
8723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
8726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8733 wxPy_BEGIN_ALLOW_THREADS
;
8734 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
8736 wxPy_END_ALLOW_THREADS
;
8737 if (PyErr_Occurred()) return NULL
;
8738 } _resultobj
= Py_BuildValue("i",_result
);
8742 static void *SwigwxClientDCTowxDC(void *ptr
) {
8745 src
= (wxClientDC
*) ptr
;
8746 dest
= (wxDC
*) src
;
8747 return (void *) dest
;
8750 static void *SwigwxClientDCTowxObject(void *ptr
) {
8753 src
= (wxClientDC
*) ptr
;
8754 dest
= (wxObject
*) src
;
8755 return (void *) dest
;
8758 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
8759 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8760 PyObject
* _resultobj
;
8761 wxClientDC
* _result
;
8763 PyObject
* _argo0
= 0;
8764 char *_kwnames
[] = { "win", NULL
};
8768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
8771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8778 wxPy_BEGIN_ALLOW_THREADS
;
8779 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
8781 wxPy_END_ALLOW_THREADS
;
8782 if (PyErr_Occurred()) return NULL
;
8784 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
8785 _resultobj
= Py_BuildValue("s",_ptemp
);
8788 _resultobj
= Py_None
;
8793 static void *SwigwxPaintDCTowxDC(void *ptr
) {
8796 src
= (wxPaintDC
*) ptr
;
8797 dest
= (wxDC
*) src
;
8798 return (void *) dest
;
8801 static void *SwigwxPaintDCTowxObject(void *ptr
) {
8804 src
= (wxPaintDC
*) ptr
;
8805 dest
= (wxObject
*) src
;
8806 return (void *) dest
;
8809 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8810 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8811 PyObject
* _resultobj
;
8812 wxPaintDC
* _result
;
8814 PyObject
* _argo0
= 0;
8815 char *_kwnames
[] = { "win", NULL
};
8819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8829 wxPy_BEGIN_ALLOW_THREADS
;
8830 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8832 wxPy_END_ALLOW_THREADS
;
8833 if (PyErr_Occurred()) return NULL
;
8835 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8836 _resultobj
= Py_BuildValue("s",_ptemp
);
8839 _resultobj
= Py_None
;
8844 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8847 src
= (wxWindowDC
*) ptr
;
8848 dest
= (wxDC
*) src
;
8849 return (void *) dest
;
8852 static void *SwigwxWindowDCTowxObject(void *ptr
) {
8855 src
= (wxWindowDC
*) ptr
;
8856 dest
= (wxObject
*) src
;
8857 return (void *) dest
;
8860 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8861 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8862 PyObject
* _resultobj
;
8863 wxWindowDC
* _result
;
8865 PyObject
* _argo0
= 0;
8866 char *_kwnames
[] = { "win", NULL
};
8870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
8873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8880 wxPy_BEGIN_ALLOW_THREADS
;
8881 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
8883 wxPy_END_ALLOW_THREADS
;
8884 if (PyErr_Occurred()) return NULL
;
8886 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
8887 _resultobj
= Py_BuildValue("s",_ptemp
);
8890 _resultobj
= Py_None
;
8895 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
8898 src
= (wxMetaFileDC
*) ptr
;
8899 dest
= (wxDC
*) src
;
8900 return (void *) dest
;
8903 static void *SwigwxMetaFileDCTowxObject(void *ptr
) {
8906 src
= (wxMetaFileDC
*) ptr
;
8907 dest
= (wxObject
*) src
;
8908 return (void *) dest
;
8911 #define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0))
8912 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8913 PyObject
* _resultobj
;
8914 wxMetaFileDC
* _result
;
8915 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
8916 PyObject
* _obj0
= 0;
8917 char *_kwnames
[] = { "filename", NULL
};
8921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFileDC",_kwnames
,&_obj0
))
8925 #if PYTHON_API_VERSION >= 1009
8926 char* tmpPtr
; int tmpSize
;
8927 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
8928 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8931 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
8933 _arg0
= new wxString(tmpPtr
, tmpSize
);
8935 if (!PyString_Check(_obj0
)) {
8936 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8939 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
8943 wxPy_BEGIN_ALLOW_THREADS
;
8944 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
);
8946 wxPy_END_ALLOW_THREADS
;
8947 if (PyErr_Occurred()) return NULL
;
8949 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
8950 _resultobj
= Py_BuildValue("s",_ptemp
);
8953 _resultobj
= Py_None
;
8962 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
8963 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8964 PyObject
* _resultobj
;
8965 wxMetaFile
* _result
;
8966 wxMetaFileDC
* _arg0
;
8967 PyObject
* _argo0
= 0;
8968 char *_kwnames
[] = { "self", NULL
};
8972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
8975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
8977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
8982 wxPy_BEGIN_ALLOW_THREADS
;
8983 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
8985 wxPy_END_ALLOW_THREADS
;
8986 if (PyErr_Occurred()) return NULL
;
8988 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
8989 _resultobj
= Py_BuildValue("s",_ptemp
);
8992 _resultobj
= Py_None
;
8997 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
9000 src
= (wxPalette
*) ptr
;
9001 dest
= (wxGDIObject
*) src
;
9002 return (void *) dest
;
9005 static void *SwigwxPaletteTowxObject(void *ptr
) {
9008 src
= (wxPalette
*) ptr
;
9009 dest
= (wxObject
*) src
;
9010 return (void *) dest
;
9013 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9014 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9015 PyObject
* _resultobj
;
9016 wxPalette
* _result
;
9021 PyObject
* _obj1
= 0;
9022 PyObject
* _obj2
= 0;
9023 PyObject
* _obj3
= 0;
9024 char *_kwnames
[] = { "choices","choices","choices", NULL
};
9028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
9031 _arg1
= byte_LIST_helper(_obj1
);
9032 if (_arg1
== NULL
) {
9037 _arg2
= byte_LIST_helper(_obj2
);
9038 if (_arg2
== NULL
) {
9044 _arg3
= byte_LIST_helper(_obj3
);
9045 if (_arg3
== NULL
) {
9051 _arg0
= PyList_Size(_obj1
);
9058 wxPy_BEGIN_ALLOW_THREADS
;
9059 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
9061 wxPy_END_ALLOW_THREADS
;
9062 if (PyErr_Occurred()) return NULL
;
9064 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
9065 _resultobj
= Py_BuildValue("s",_ptemp
);
9068 _resultobj
= Py_None
;
9082 #define delete_wxPalette(_swigobj) (delete _swigobj)
9083 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9084 PyObject
* _resultobj
;
9086 PyObject
* _argo0
= 0;
9087 char *_kwnames
[] = { "self", NULL
};
9090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
9093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
9100 wxPy_BEGIN_ALLOW_THREADS
;
9101 delete_wxPalette(_arg0
);
9103 wxPy_END_ALLOW_THREADS
;
9104 if (PyErr_Occurred()) return NULL
;
9105 } Py_INCREF(Py_None
);
9106 _resultobj
= Py_None
;
9110 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
9111 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9112 PyObject
* _resultobj
;
9118 PyObject
* _argo0
= 0;
9119 char *_kwnames
[] = { "self","red","green","blue", NULL
};
9122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
9125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
9132 wxPy_BEGIN_ALLOW_THREADS
;
9133 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
9135 wxPy_END_ALLOW_THREADS
;
9136 if (PyErr_Occurred()) return NULL
;
9137 } _resultobj
= Py_BuildValue("i",_result
);
9141 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9142 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9143 PyObject
* _resultobj
;
9150 PyObject
* _argo0
= 0;
9151 PyObject
* _argo2
= 0;
9152 PyObject
* _argo3
= 0;
9153 PyObject
* _argo4
= 0;
9154 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
9157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
9160 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9161 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9162 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
9167 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9168 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
9169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
9174 if (_argo3
== Py_None
) { _arg3
= NULL
; }
9175 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
9176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
9181 if (_argo4
== Py_None
) { _arg4
= NULL
; }
9182 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
9183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
9188 wxPy_BEGIN_ALLOW_THREADS
;
9189 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9191 wxPy_END_ALLOW_THREADS
;
9192 if (PyErr_Occurred()) return NULL
;
9193 } _resultobj
= Py_BuildValue("i",_result
);
9197 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
9198 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9199 PyObject
* _resultobj
;
9202 PyObject
* _argo0
= 0;
9203 char *_kwnames
[] = { "self", NULL
};
9206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
9209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
9216 wxPy_BEGIN_ALLOW_THREADS
;
9217 _result
= (bool )wxPalette_Ok(_arg0
);
9219 wxPy_END_ALLOW_THREADS
;
9220 if (PyErr_Occurred()) return NULL
;
9221 } _resultobj
= Py_BuildValue("i",_result
);
9225 static void *SwigwxImageListTowxObject(void *ptr
) {
9228 src
= (wxImageList
*) ptr
;
9229 dest
= (wxObject
*) src
;
9230 return (void *) dest
;
9233 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9234 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9235 PyObject
* _resultobj
;
9236 wxImageList
* _result
;
9239 int _arg2
= (int ) TRUE
;
9240 int _arg3
= (int ) 1;
9241 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
9245 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9248 wxPy_BEGIN_ALLOW_THREADS
;
9249 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
9251 wxPy_END_ALLOW_THREADS
;
9252 if (PyErr_Occurred()) return NULL
;
9254 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
9255 _resultobj
= Py_BuildValue("s",_ptemp
);
9258 _resultobj
= Py_None
;
9263 #define delete_wxImageList(_swigobj) (delete _swigobj)
9264 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9265 PyObject
* _resultobj
;
9266 wxImageList
* _arg0
;
9267 PyObject
* _argo0
= 0;
9268 char *_kwnames
[] = { "self", NULL
};
9271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
9274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
9281 wxPy_BEGIN_ALLOW_THREADS
;
9282 delete_wxImageList(_arg0
);
9284 wxPy_END_ALLOW_THREADS
;
9285 if (PyErr_Occurred()) return NULL
;
9286 } Py_INCREF(Py_None
);
9287 _resultobj
= Py_None
;
9291 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9292 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9293 PyObject
* _resultobj
;
9295 wxImageList
* _arg0
;
9297 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
9298 PyObject
* _argo0
= 0;
9299 PyObject
* _argo1
= 0;
9300 PyObject
* _argo2
= 0;
9301 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
9304 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
9307 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9308 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9309 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
9314 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9315 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
9321 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9322 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
9328 wxPy_BEGIN_ALLOW_THREADS
;
9329 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
9331 wxPy_END_ALLOW_THREADS
;
9332 if (PyErr_Occurred()) return NULL
;
9333 } _resultobj
= Py_BuildValue("i",_result
);
9337 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9338 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9339 PyObject
* _resultobj
;
9341 wxImageList
* _arg0
;
9344 PyObject
* _argo0
= 0;
9345 PyObject
* _argo1
= 0;
9347 PyObject
* _obj2
= 0;
9348 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
9351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
9354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
9361 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9362 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
9369 if (! wxColour_helper(_obj2
, &_arg2
))
9373 wxPy_BEGIN_ALLOW_THREADS
;
9374 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
9376 wxPy_END_ALLOW_THREADS
;
9377 if (PyErr_Occurred()) return NULL
;
9378 } _resultobj
= Py_BuildValue("i",_result
);
9382 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
9383 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9384 PyObject
* _resultobj
;
9386 wxImageList
* _arg0
;
9388 PyObject
* _argo0
= 0;
9389 PyObject
* _argo1
= 0;
9390 char *_kwnames
[] = { "self","icon", NULL
};
9393 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
9396 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9397 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9398 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
9403 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9404 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
9405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
9410 wxPy_BEGIN_ALLOW_THREADS
;
9411 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
9413 wxPy_END_ALLOW_THREADS
;
9414 if (PyErr_Occurred()) return NULL
;
9415 } _resultobj
= Py_BuildValue("i",_result
);
9419 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
9420 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9421 PyObject
* _resultobj
;
9423 wxImageList
* _arg0
;
9426 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
9427 PyObject
* _argo0
= 0;
9428 PyObject
* _argo2
= 0;
9429 PyObject
* _argo3
= 0;
9430 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
9433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
9436 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9437 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
9443 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9444 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
9450 if (_argo3
== Py_None
) { _arg3
= NULL
; }
9451 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
9452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
9457 wxPy_BEGIN_ALLOW_THREADS
;
9458 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
9460 wxPy_END_ALLOW_THREADS
;
9461 if (PyErr_Occurred()) return NULL
;
9462 } _resultobj
= Py_BuildValue("i",_result
);
9466 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9467 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9468 PyObject
* _resultobj
;
9470 wxImageList
* _arg0
;
9475 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
9476 bool _arg6
= (bool ) FALSE
;
9477 PyObject
* _argo0
= 0;
9478 PyObject
* _argo2
= 0;
9479 int tempbool6
= (int) FALSE
;
9480 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
9483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
9486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
9493 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9494 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
9495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
9499 _arg6
= (bool ) tempbool6
;
9501 wxPy_BEGIN_ALLOW_THREADS
;
9502 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
9504 wxPy_END_ALLOW_THREADS
;
9505 if (PyErr_Occurred()) return NULL
;
9506 } _resultobj
= Py_BuildValue("i",_result
);
9510 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
9511 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9512 PyObject
* _resultobj
;
9514 wxImageList
* _arg0
;
9515 PyObject
* _argo0
= 0;
9516 char *_kwnames
[] = { "self", NULL
};
9519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
9522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
9529 wxPy_BEGIN_ALLOW_THREADS
;
9530 _result
= (int )wxImageList_GetImageCount(_arg0
);
9532 wxPy_END_ALLOW_THREADS
;
9533 if (PyErr_Occurred()) return NULL
;
9534 } _resultobj
= Py_BuildValue("i",_result
);
9538 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
9539 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9540 PyObject
* _resultobj
;
9542 wxImageList
* _arg0
;
9544 PyObject
* _argo0
= 0;
9545 char *_kwnames
[] = { "self","index", NULL
};
9548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
9551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
9558 wxPy_BEGIN_ALLOW_THREADS
;
9559 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
9561 wxPy_END_ALLOW_THREADS
;
9562 if (PyErr_Occurred()) return NULL
;
9563 } _resultobj
= Py_BuildValue("i",_result
);
9567 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
9568 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9569 PyObject
* _resultobj
;
9571 wxImageList
* _arg0
;
9572 PyObject
* _argo0
= 0;
9573 char *_kwnames
[] = { "self", NULL
};
9576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
9579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9586 wxPy_BEGIN_ALLOW_THREADS
;
9587 _result
= (bool )wxImageList_RemoveAll(_arg0
);
9589 wxPy_END_ALLOW_THREADS
;
9590 if (PyErr_Occurred()) return NULL
;
9591 } _resultobj
= Py_BuildValue("i",_result
);
9595 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9596 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9597 PyObject
* _resultobj
;
9598 wxImageList
* _arg0
;
9604 PyObject
* _argo0
= 0;
9605 char *_kwnames
[] = { "self","index", NULL
};
9614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
9617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9624 wxPy_BEGIN_ALLOW_THREADS
;
9625 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
9627 wxPy_END_ALLOW_THREADS
;
9628 if (PyErr_Occurred()) return NULL
;
9629 } Py_INCREF(Py_None
);
9630 _resultobj
= Py_None
;
9633 o
= PyInt_FromLong((long) (*_arg2
));
9634 _resultobj
= t_output_helper(_resultobj
, o
);
9638 o
= PyInt_FromLong((long) (*_arg3
));
9639 _resultobj
= t_output_helper(_resultobj
, o
);
9644 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
9647 src
= (wxRegion
*) ptr
;
9648 dest
= (wxGDIObject
*) src
;
9649 return (void *) dest
;
9652 static void *SwigwxRegionTowxObject(void *ptr
) {
9655 src
= (wxRegion
*) ptr
;
9656 dest
= (wxObject
*) src
;
9657 return (void *) dest
;
9660 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9661 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9662 PyObject
* _resultobj
;
9664 long _arg0
= (long ) 0;
9665 long _arg1
= (long ) 0;
9666 long _arg2
= (long ) 0;
9667 long _arg3
= (long ) 0;
9668 char *_kwnames
[] = { "x","y","width","height", NULL
};
9672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9675 wxPy_BEGIN_ALLOW_THREADS
;
9676 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
9678 wxPy_END_ALLOW_THREADS
;
9679 if (PyErr_Occurred()) return NULL
;
9681 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
9682 _resultobj
= Py_BuildValue("s",_ptemp
);
9685 _resultobj
= Py_None
;
9690 #define delete_wxRegion(_swigobj) (delete _swigobj)
9691 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9692 PyObject
* _resultobj
;
9694 PyObject
* _argo0
= 0;
9695 char *_kwnames
[] = { "self", NULL
};
9698 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
9701 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9702 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9703 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
9708 wxPy_BEGIN_ALLOW_THREADS
;
9709 delete_wxRegion(_arg0
);
9711 wxPy_END_ALLOW_THREADS
;
9712 if (PyErr_Occurred()) return NULL
;
9713 } Py_INCREF(Py_None
);
9714 _resultobj
= Py_None
;
9718 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
9719 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9720 PyObject
* _resultobj
;
9722 PyObject
* _argo0
= 0;
9723 char *_kwnames
[] = { "self", NULL
};
9726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
9729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
9736 wxPy_BEGIN_ALLOW_THREADS
;
9737 wxRegion_Clear(_arg0
);
9739 wxPy_END_ALLOW_THREADS
;
9740 if (PyErr_Occurred()) return NULL
;
9741 } Py_INCREF(Py_None
);
9742 _resultobj
= Py_None
;
9746 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
9747 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9748 PyObject
* _resultobj
;
9749 wxRegionContain _result
;
9753 PyObject
* _argo0
= 0;
9754 char *_kwnames
[] = { "self","x","y", NULL
};
9757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
9767 wxPy_BEGIN_ALLOW_THREADS
;
9768 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
9770 wxPy_END_ALLOW_THREADS
;
9771 if (PyErr_Occurred()) return NULL
;
9772 } _resultobj
= Py_BuildValue("i",_result
);
9776 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9777 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9778 PyObject
* _resultobj
;
9779 wxRegionContain _result
;
9782 PyObject
* _argo0
= 0;
9784 PyObject
* _obj1
= 0;
9785 char *_kwnames
[] = { "self","pt", NULL
};
9788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
9791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
9799 if (! wxPoint_helper(_obj1
, &_arg1
))
9803 wxPy_BEGIN_ALLOW_THREADS
;
9804 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
9806 wxPy_END_ALLOW_THREADS
;
9807 if (PyErr_Occurred()) return NULL
;
9808 } _resultobj
= Py_BuildValue("i",_result
);
9812 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9813 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9814 PyObject
* _resultobj
;
9815 wxRegionContain _result
;
9818 PyObject
* _argo0
= 0;
9820 PyObject
* _obj1
= 0;
9821 char *_kwnames
[] = { "self","rect", NULL
};
9824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
9827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9835 if (! wxRect_helper(_obj1
, &_arg1
))
9839 wxPy_BEGIN_ALLOW_THREADS
;
9840 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
9842 wxPy_END_ALLOW_THREADS
;
9843 if (PyErr_Occurred()) return NULL
;
9844 } _resultobj
= Py_BuildValue("i",_result
);
9848 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9849 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9850 PyObject
* _resultobj
;
9851 wxRegionContain _result
;
9857 PyObject
* _argo0
= 0;
9858 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
9861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9864 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9865 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9871 wxPy_BEGIN_ALLOW_THREADS
;
9872 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9874 wxPy_END_ALLOW_THREADS
;
9875 if (PyErr_Occurred()) return NULL
;
9876 } _resultobj
= Py_BuildValue("i",_result
);
9880 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9881 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9882 PyObject
* _resultobj
;
9885 PyObject
* _argo0
= 0;
9886 char *_kwnames
[] = { "self", NULL
};
9890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
9893 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9894 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9900 wxPy_BEGIN_ALLOW_THREADS
;
9901 _result
= new wxRect (wxRegion_GetBox(_arg0
));
9903 wxPy_END_ALLOW_THREADS
;
9904 if (PyErr_Occurred()) return NULL
;
9905 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9906 _resultobj
= Py_BuildValue("s",_ptemp
);
9910 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9911 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9912 PyObject
* _resultobj
;
9919 PyObject
* _argo0
= 0;
9920 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9933 wxPy_BEGIN_ALLOW_THREADS
;
9934 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9936 wxPy_END_ALLOW_THREADS
;
9937 if (PyErr_Occurred()) return NULL
;
9938 } _resultobj
= Py_BuildValue("i",_result
);
9942 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9943 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9944 PyObject
* _resultobj
;
9948 PyObject
* _argo0
= 0;
9950 PyObject
* _obj1
= 0;
9951 char *_kwnames
[] = { "self","rect", NULL
};
9954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
9957 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9958 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9965 if (! wxRect_helper(_obj1
, &_arg1
))
9969 wxPy_BEGIN_ALLOW_THREADS
;
9970 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
9972 wxPy_END_ALLOW_THREADS
;
9973 if (PyErr_Occurred()) return NULL
;
9974 } _resultobj
= Py_BuildValue("i",_result
);
9978 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9979 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9980 PyObject
* _resultobj
;
9984 PyObject
* _argo0
= 0;
9985 PyObject
* _argo1
= 0;
9986 char *_kwnames
[] = { "self","region", NULL
};
9989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
9992 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9993 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9999 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10000 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10006 wxPy_BEGIN_ALLOW_THREADS
;
10007 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
10009 wxPy_END_ALLOW_THREADS
;
10010 if (PyErr_Occurred()) return NULL
;
10011 } _resultobj
= Py_BuildValue("i",_result
);
10015 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10016 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10017 PyObject
* _resultobj
;
10020 PyObject
* _argo0
= 0;
10021 char *_kwnames
[] = { "self", NULL
};
10024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
10027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
10034 wxPy_BEGIN_ALLOW_THREADS
;
10035 _result
= (bool )wxRegion_IsEmpty(_arg0
);
10037 wxPy_END_ALLOW_THREADS
;
10038 if (PyErr_Occurred()) return NULL
;
10039 } _resultobj
= Py_BuildValue("i",_result
);
10043 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10044 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10045 PyObject
* _resultobj
;
10052 PyObject
* _argo0
= 0;
10053 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10056 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10059 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10060 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
10066 wxPy_BEGIN_ALLOW_THREADS
;
10067 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10069 wxPy_END_ALLOW_THREADS
;
10070 if (PyErr_Occurred()) return NULL
;
10071 } _resultobj
= Py_BuildValue("i",_result
);
10075 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10076 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10077 PyObject
* _resultobj
;
10081 PyObject
* _argo0
= 0;
10083 PyObject
* _obj1
= 0;
10084 char *_kwnames
[] = { "self","rect", NULL
};
10087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
10090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
10098 if (! wxRect_helper(_obj1
, &_arg1
))
10102 wxPy_BEGIN_ALLOW_THREADS
;
10103 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
10105 wxPy_END_ALLOW_THREADS
;
10106 if (PyErr_Occurred()) return NULL
;
10107 } _resultobj
= Py_BuildValue("i",_result
);
10111 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10112 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10113 PyObject
* _resultobj
;
10117 PyObject
* _argo0
= 0;
10118 PyObject
* _argo1
= 0;
10119 char *_kwnames
[] = { "self","region", NULL
};
10122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
10125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10132 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10133 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10134 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10139 wxPy_BEGIN_ALLOW_THREADS
;
10140 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
10142 wxPy_END_ALLOW_THREADS
;
10143 if (PyErr_Occurred()) return NULL
;
10144 } _resultobj
= Py_BuildValue("i",_result
);
10148 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10149 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10150 PyObject
* _resultobj
;
10157 PyObject
* _argo0
= 0;
10158 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10164 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10165 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
10171 wxPy_BEGIN_ALLOW_THREADS
;
10172 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10174 wxPy_END_ALLOW_THREADS
;
10175 if (PyErr_Occurred()) return NULL
;
10176 } _resultobj
= Py_BuildValue("i",_result
);
10180 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10181 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10182 PyObject
* _resultobj
;
10186 PyObject
* _argo0
= 0;
10188 PyObject
* _obj1
= 0;
10189 char *_kwnames
[] = { "self","rect", NULL
};
10192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
10195 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10196 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
10203 if (! wxRect_helper(_obj1
, &_arg1
))
10207 wxPy_BEGIN_ALLOW_THREADS
;
10208 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
10210 wxPy_END_ALLOW_THREADS
;
10211 if (PyErr_Occurred()) return NULL
;
10212 } _resultobj
= Py_BuildValue("i",_result
);
10216 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10217 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10218 PyObject
* _resultobj
;
10222 PyObject
* _argo0
= 0;
10223 PyObject
* _argo1
= 0;
10224 char *_kwnames
[] = { "self","region", NULL
};
10227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
10230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10237 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10238 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10244 wxPy_BEGIN_ALLOW_THREADS
;
10245 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
10247 wxPy_END_ALLOW_THREADS
;
10248 if (PyErr_Occurred()) return NULL
;
10249 } _resultobj
= Py_BuildValue("i",_result
);
10253 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10254 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10255 PyObject
* _resultobj
;
10262 PyObject
* _argo0
= 0;
10263 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
10276 wxPy_BEGIN_ALLOW_THREADS
;
10277 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10279 wxPy_END_ALLOW_THREADS
;
10280 if (PyErr_Occurred()) return NULL
;
10281 } _resultobj
= Py_BuildValue("i",_result
);
10285 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10286 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10287 PyObject
* _resultobj
;
10291 PyObject
* _argo0
= 0;
10293 PyObject
* _obj1
= 0;
10294 char *_kwnames
[] = { "self","rect", NULL
};
10297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
10300 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10301 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10302 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
10308 if (! wxRect_helper(_obj1
, &_arg1
))
10312 wxPy_BEGIN_ALLOW_THREADS
;
10313 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
10315 wxPy_END_ALLOW_THREADS
;
10316 if (PyErr_Occurred()) return NULL
;
10317 } _resultobj
= Py_BuildValue("i",_result
);
10321 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10322 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10323 PyObject
* _resultobj
;
10327 PyObject
* _argo0
= 0;
10328 PyObject
* _argo1
= 0;
10329 char *_kwnames
[] = { "self","region", NULL
};
10332 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
10335 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10336 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10337 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
10342 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10343 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
10349 wxPy_BEGIN_ALLOW_THREADS
;
10350 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
10352 wxPy_END_ALLOW_THREADS
;
10353 if (PyErr_Occurred()) return NULL
;
10354 } _resultobj
= Py_BuildValue("i",_result
);
10358 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
10359 wxRegionIterator
*src
;
10361 src
= (wxRegionIterator
*) ptr
;
10362 dest
= (wxObject
*) src
;
10363 return (void *) dest
;
10366 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
10367 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10368 PyObject
* _resultobj
;
10369 wxRegionIterator
* _result
;
10371 PyObject
* _argo0
= 0;
10372 char *_kwnames
[] = { "region", NULL
};
10376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
10379 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10380 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10381 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
10386 wxPy_BEGIN_ALLOW_THREADS
;
10387 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
10389 wxPy_END_ALLOW_THREADS
;
10390 if (PyErr_Occurred()) return NULL
;
10392 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
10393 _resultobj
= Py_BuildValue("s",_ptemp
);
10395 Py_INCREF(Py_None
);
10396 _resultobj
= Py_None
;
10401 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
10402 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10403 PyObject
* _resultobj
;
10404 wxRegionIterator
* _arg0
;
10405 PyObject
* _argo0
= 0;
10406 char *_kwnames
[] = { "self", NULL
};
10409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
10412 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10413 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
10419 wxPy_BEGIN_ALLOW_THREADS
;
10420 delete_wxRegionIterator(_arg0
);
10422 wxPy_END_ALLOW_THREADS
;
10423 if (PyErr_Occurred()) return NULL
;
10424 } Py_INCREF(Py_None
);
10425 _resultobj
= Py_None
;
10429 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
10430 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10431 PyObject
* _resultobj
;
10433 wxRegionIterator
* _arg0
;
10434 PyObject
* _argo0
= 0;
10435 char *_kwnames
[] = { "self", NULL
};
10438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
10441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
10448 wxPy_BEGIN_ALLOW_THREADS
;
10449 _result
= (long )wxRegionIterator_GetX(_arg0
);
10451 wxPy_END_ALLOW_THREADS
;
10452 if (PyErr_Occurred()) return NULL
;
10453 } _resultobj
= Py_BuildValue("l",_result
);
10457 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
10458 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10459 PyObject
* _resultobj
;
10461 wxRegionIterator
* _arg0
;
10462 PyObject
* _argo0
= 0;
10463 char *_kwnames
[] = { "self", NULL
};
10466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
10469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
10476 wxPy_BEGIN_ALLOW_THREADS
;
10477 _result
= (long )wxRegionIterator_GetY(_arg0
);
10479 wxPy_END_ALLOW_THREADS
;
10480 if (PyErr_Occurred()) return NULL
;
10481 } _resultobj
= Py_BuildValue("l",_result
);
10485 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
10486 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10487 PyObject
* _resultobj
;
10489 wxRegionIterator
* _arg0
;
10490 PyObject
* _argo0
= 0;
10491 char *_kwnames
[] = { "self", NULL
};
10494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
10497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
10504 wxPy_BEGIN_ALLOW_THREADS
;
10505 _result
= (long )wxRegionIterator_GetW(_arg0
);
10507 wxPy_END_ALLOW_THREADS
;
10508 if (PyErr_Occurred()) return NULL
;
10509 } _resultobj
= Py_BuildValue("l",_result
);
10513 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
10514 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10515 PyObject
* _resultobj
;
10517 wxRegionIterator
* _arg0
;
10518 PyObject
* _argo0
= 0;
10519 char *_kwnames
[] = { "self", NULL
};
10522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
10525 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10526 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
10532 wxPy_BEGIN_ALLOW_THREADS
;
10533 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
10535 wxPy_END_ALLOW_THREADS
;
10536 if (PyErr_Occurred()) return NULL
;
10537 } _resultobj
= Py_BuildValue("l",_result
);
10541 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
10542 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10543 PyObject
* _resultobj
;
10545 wxRegionIterator
* _arg0
;
10546 PyObject
* _argo0
= 0;
10547 char *_kwnames
[] = { "self", NULL
};
10550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
10553 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10554 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
10560 wxPy_BEGIN_ALLOW_THREADS
;
10561 _result
= (long )wxRegionIterator_GetH(_arg0
);
10563 wxPy_END_ALLOW_THREADS
;
10564 if (PyErr_Occurred()) return NULL
;
10565 } _resultobj
= Py_BuildValue("l",_result
);
10569 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
10570 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10571 PyObject
* _resultobj
;
10573 wxRegionIterator
* _arg0
;
10574 PyObject
* _argo0
= 0;
10575 char *_kwnames
[] = { "self", NULL
};
10578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
10581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
10588 wxPy_BEGIN_ALLOW_THREADS
;
10589 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
10591 wxPy_END_ALLOW_THREADS
;
10592 if (PyErr_Occurred()) return NULL
;
10593 } _resultobj
= Py_BuildValue("l",_result
);
10597 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
10598 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10599 PyObject
* _resultobj
;
10601 wxRegionIterator
* _arg0
;
10602 PyObject
* _argo0
= 0;
10603 char *_kwnames
[] = { "self", NULL
};
10607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
10610 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10611 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
10617 wxPy_BEGIN_ALLOW_THREADS
;
10618 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
10620 wxPy_END_ALLOW_THREADS
;
10621 if (PyErr_Occurred()) return NULL
;
10622 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10623 _resultobj
= Py_BuildValue("s",_ptemp
);
10627 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
10628 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10629 PyObject
* _resultobj
;
10631 wxRegionIterator
* _arg0
;
10632 PyObject
* _argo0
= 0;
10633 char *_kwnames
[] = { "self", NULL
};
10636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
10639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
10646 wxPy_BEGIN_ALLOW_THREADS
;
10647 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
10649 wxPy_END_ALLOW_THREADS
;
10650 if (PyErr_Occurred()) return NULL
;
10651 } _resultobj
= Py_BuildValue("i",_result
);
10655 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
10656 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10657 PyObject
* _resultobj
;
10658 wxRegionIterator
* _arg0
;
10659 PyObject
* _argo0
= 0;
10660 char *_kwnames
[] = { "self", NULL
};
10663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
10666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
10673 wxPy_BEGIN_ALLOW_THREADS
;
10674 wxRegionIterator_Reset(_arg0
);
10676 wxPy_END_ALLOW_THREADS
;
10677 if (PyErr_Occurred()) return NULL
;
10678 } Py_INCREF(Py_None
);
10679 _resultobj
= Py_None
;
10683 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
10686 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10687 PyObject
* _resultobj
;
10688 wxRegionIterator
* _arg0
;
10689 PyObject
* _argo0
= 0;
10690 char *_kwnames
[] = { "self", NULL
};
10693 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
10696 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10697 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10698 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
10703 wxPy_BEGIN_ALLOW_THREADS
;
10704 wxRegionIterator_Next(_arg0
);
10706 wxPy_END_ALLOW_THREADS
;
10707 if (PyErr_Occurred()) return NULL
;
10708 } Py_INCREF(Py_None
);
10709 _resultobj
= Py_None
;
10713 static PyMethodDef gdicMethods
[] = {
10714 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
10715 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
10716 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
10717 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10718 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10719 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
10720 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10721 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
10722 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
10723 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
10724 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10725 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10726 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
10727 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
10728 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
10729 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
10730 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
10731 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
10732 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
10733 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
10734 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
10735 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
10736 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
10737 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
10738 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
10739 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
10740 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
10741 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
10742 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
10743 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
10744 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10745 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10746 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10747 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10748 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
10749 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10750 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
10751 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
10752 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10753 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
10754 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
10755 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
10756 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10757 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10758 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10759 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
10760 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10761 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10762 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10763 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
10764 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
10765 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
10766 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
10767 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
10768 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10769 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10770 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
10771 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
10772 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
10773 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
10774 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10775 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10776 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
10777 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10778 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10779 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10780 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
10781 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10782 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10783 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10784 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10785 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
10786 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
10787 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10788 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10789 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10790 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
10791 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10792 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10793 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10794 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10795 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10796 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10797 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10798 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10799 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
10800 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10801 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10802 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10803 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
10804 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
10805 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
10806 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
10807 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
10808 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
10809 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
10810 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
10811 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10812 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10813 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10814 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10815 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10816 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
10817 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10818 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10819 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10820 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
10821 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10822 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10823 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10824 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10825 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10826 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
10827 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10828 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10829 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10830 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10831 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
10832 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
10833 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10834 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
10835 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
10836 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
10837 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10838 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
10839 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10840 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
10841 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
10842 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
10843 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
10844 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
10845 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
10846 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
10847 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
10848 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
10849 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
10850 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
10851 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
10852 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
10853 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10854 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
10855 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10856 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
10857 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10858 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
10859 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
10860 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
10861 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
10862 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10863 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10864 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10865 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10866 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10867 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10868 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10869 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10870 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10871 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
10872 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
10873 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
10874 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10875 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10876 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10877 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10878 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10879 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10880 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10881 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10882 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
10883 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10884 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10885 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10886 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10887 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10888 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
10889 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10890 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10891 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
10892 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
10893 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
10894 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
10895 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
10896 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10897 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
10898 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
10899 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
10900 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10901 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10902 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
10903 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
10904 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
10905 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
10906 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
10907 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
10908 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10909 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
10910 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
10911 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10912 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
10913 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
10914 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
10915 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10916 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
10917 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
10918 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10919 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
10920 { "wxFont_GetFontId", (PyCFunction
) _wrap_wxFont_GetFontId
, METH_VARARGS
| METH_KEYWORDS
},
10921 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
10922 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
10923 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10924 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
10925 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
10926 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10927 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10928 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10929 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10930 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10931 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10932 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10933 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10934 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10935 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10936 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
10937 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
10938 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10939 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10940 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10941 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10942 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10943 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10944 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10945 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10946 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10947 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10948 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10949 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10950 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10951 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10952 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10953 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
10954 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
10955 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
10956 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
10957 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10958 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10959 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10960 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10961 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10962 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10963 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10964 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10965 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10966 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10967 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10968 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10969 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10970 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
10971 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
10972 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10973 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
10974 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10975 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10976 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10977 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
10978 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10979 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10980 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10981 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10982 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
10983 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
10984 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10985 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10986 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
10987 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10988 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
10989 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
10990 { "wxBitmapFromData", (PyCFunction
) _wrap_wxBitmapFromData
, METH_VARARGS
| METH_KEYWORDS
},
10991 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10992 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10993 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11000 * This table is used by the pointer type-checker
11002 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
11003 { "_signed_long","_long",0},
11004 { "_wxPrintQuality","_wxCoord",0},
11005 { "_wxPrintQuality","_int",0},
11006 { "_wxPrintQuality","_signed_int",0},
11007 { "_wxPrintQuality","_unsigned_int",0},
11008 { "_wxPrintQuality","_wxWindowID",0},
11009 { "_wxPrintQuality","_uint",0},
11010 { "_wxPrintQuality","_EBool",0},
11011 { "_wxPrintQuality","_size_t",0},
11012 { "_wxPrintQuality","_time_t",0},
11013 { "_byte","_unsigned_char",0},
11014 { "_long","_unsigned_long",0},
11015 { "_long","_signed_long",0},
11016 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
11017 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
11018 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
11019 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
11020 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
11021 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
11022 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
11023 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
11024 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
11025 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
11026 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
11027 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
11028 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
11029 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11030 { "_size_t","_wxCoord",0},
11031 { "_size_t","_wxPrintQuality",0},
11032 { "_size_t","_time_t",0},
11033 { "_size_t","_unsigned_int",0},
11034 { "_size_t","_int",0},
11035 { "_size_t","_wxWindowID",0},
11036 { "_size_t","_uint",0},
11037 { "_uint","_wxCoord",0},
11038 { "_uint","_wxPrintQuality",0},
11039 { "_uint","_time_t",0},
11040 { "_uint","_size_t",0},
11041 { "_uint","_unsigned_int",0},
11042 { "_uint","_int",0},
11043 { "_uint","_wxWindowID",0},
11044 { "_wxChar","_char",0},
11045 { "_char","_wxChar",0},
11046 { "_EBool","_wxCoord",0},
11047 { "_EBool","_wxPrintQuality",0},
11048 { "_EBool","_signed_int",0},
11049 { "_EBool","_int",0},
11050 { "_EBool","_wxWindowID",0},
11051 { "_unsigned_long","_long",0},
11052 { "_signed_int","_wxCoord",0},
11053 { "_signed_int","_wxPrintQuality",0},
11054 { "_signed_int","_EBool",0},
11055 { "_signed_int","_wxWindowID",0},
11056 { "_signed_int","_int",0},
11057 { "_WXTYPE","_short",0},
11058 { "_WXTYPE","_signed_short",0},
11059 { "_WXTYPE","_unsigned_short",0},
11060 { "_unsigned_short","_WXTYPE",0},
11061 { "_unsigned_short","_short",0},
11062 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11063 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
11064 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
11065 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
11066 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject
},
11067 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
11068 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
11069 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
11070 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
11071 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11072 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
11073 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
11074 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
11075 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
11076 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11077 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
11078 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
11079 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
11080 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
11081 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
11082 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
11083 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
11084 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
11085 { "_signed_short","_WXTYPE",0},
11086 { "_signed_short","_short",0},
11087 { "_unsigned_char","_byte",0},
11088 { "_unsigned_int","_wxCoord",0},
11089 { "_unsigned_int","_wxPrintQuality",0},
11090 { "_unsigned_int","_time_t",0},
11091 { "_unsigned_int","_size_t",0},
11092 { "_unsigned_int","_uint",0},
11093 { "_unsigned_int","_wxWindowID",0},
11094 { "_unsigned_int","_int",0},
11095 { "_short","_WXTYPE",0},
11096 { "_short","_unsigned_short",0},
11097 { "_short","_signed_short",0},
11098 { "_wxWindowID","_wxCoord",0},
11099 { "_wxWindowID","_wxPrintQuality",0},
11100 { "_wxWindowID","_time_t",0},
11101 { "_wxWindowID","_size_t",0},
11102 { "_wxWindowID","_EBool",0},
11103 { "_wxWindowID","_uint",0},
11104 { "_wxWindowID","_int",0},
11105 { "_wxWindowID","_signed_int",0},
11106 { "_wxWindowID","_unsigned_int",0},
11107 { "_int","_wxCoord",0},
11108 { "_int","_wxPrintQuality",0},
11109 { "_int","_time_t",0},
11110 { "_int","_size_t",0},
11111 { "_int","_EBool",0},
11112 { "_int","_uint",0},
11113 { "_int","_wxWindowID",0},
11114 { "_int","_unsigned_int",0},
11115 { "_int","_signed_int",0},
11116 { "_time_t","_wxCoord",0},
11117 { "_time_t","_wxPrintQuality",0},
11118 { "_time_t","_unsigned_int",0},
11119 { "_time_t","_int",0},
11120 { "_time_t","_wxWindowID",0},
11121 { "_time_t","_uint",0},
11122 { "_time_t","_size_t",0},
11123 { "_wxCoord","_int",0},
11124 { "_wxCoord","_signed_int",0},
11125 { "_wxCoord","_unsigned_int",0},
11126 { "_wxCoord","_wxWindowID",0},
11127 { "_wxCoord","_uint",0},
11128 { "_wxCoord","_EBool",0},
11129 { "_wxCoord","_size_t",0},
11130 { "_wxCoord","_time_t",0},
11131 { "_wxCoord","_wxPrintQuality",0},
11134 static PyObject
*SWIG_globals
;
11138 SWIGEXPORT(void) initgdic() {
11140 SWIG_globals
= SWIG_newvarlink();
11141 m
= Py_InitModule("gdic", gdicMethods
);
11142 d
= PyModule_GetDict(m
);
11143 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
11144 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
11145 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
11146 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
11147 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
11148 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
11149 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
11150 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
11151 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
11152 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
11153 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
11154 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
11155 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
11156 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
11157 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
11158 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
11159 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
11160 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
11161 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
11162 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
11163 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
11164 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
11165 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
11166 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
11167 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
11168 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
11169 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
11170 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
11171 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
11172 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
11173 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
11174 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
11175 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
11176 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
11177 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
11178 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
11179 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
11180 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
11181 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
11182 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
11183 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
11184 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
11185 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
11186 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
11187 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
11188 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
11189 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
11190 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
11191 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
11192 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
11193 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
11194 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
11195 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
11196 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
11197 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
11198 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
11199 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
11200 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
11201 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
11202 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
11203 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
11204 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
11205 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
11206 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
11207 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
11208 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
11209 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
11210 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
11211 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
11212 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
11213 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
11214 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
11215 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
11216 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
11217 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
11218 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
11219 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
11220 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
11221 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
11222 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
11223 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
11224 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
11225 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
11226 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
11227 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
11228 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
11231 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
11232 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);