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 wxColour
& _result_ref
= wxPen_GetColour(_arg0
);
4527 _result
= (wxColour
*) &_result_ref
;
4529 wxPy_END_ALLOW_THREADS
;
4530 if (PyErr_Occurred()) return NULL
;
4532 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4533 _resultobj
= Py_BuildValue("s",_ptemp
);
4536 _resultobj
= Py_None
;
4541 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
4542 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4543 PyObject
* _resultobj
;
4546 PyObject
* _argo0
= 0;
4547 char *_kwnames
[] = { "self", NULL
};
4550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
4553 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4554 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4560 wxPy_BEGIN_ALLOW_THREADS
;
4561 _result
= (int )wxPen_GetJoin(_arg0
);
4563 wxPy_END_ALLOW_THREADS
;
4564 if (PyErr_Occurred()) return NULL
;
4565 } _resultobj
= Py_BuildValue("i",_result
);
4569 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
4570 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4571 PyObject
* _resultobj
;
4574 PyObject
* _argo0
= 0;
4575 char *_kwnames
[] = { "self", NULL
};
4578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
4581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4588 wxPy_BEGIN_ALLOW_THREADS
;
4589 _result
= (int )wxPen_GetStyle(_arg0
);
4591 wxPy_END_ALLOW_THREADS
;
4592 if (PyErr_Occurred()) return NULL
;
4593 } _resultobj
= Py_BuildValue("i",_result
);
4597 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
4598 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4599 PyObject
* _resultobj
;
4602 PyObject
* _argo0
= 0;
4603 char *_kwnames
[] = { "self", NULL
};
4606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
4609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
4616 wxPy_BEGIN_ALLOW_THREADS
;
4617 _result
= (int )wxPen_GetWidth(_arg0
);
4619 wxPy_END_ALLOW_THREADS
;
4620 if (PyErr_Occurred()) return NULL
;
4621 } _resultobj
= Py_BuildValue("i",_result
);
4625 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
4626 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4627 PyObject
* _resultobj
;
4630 PyObject
* _argo0
= 0;
4631 char *_kwnames
[] = { "self", NULL
};
4634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
4637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
4644 wxPy_BEGIN_ALLOW_THREADS
;
4645 _result
= (bool )wxPen_Ok(_arg0
);
4647 wxPy_END_ALLOW_THREADS
;
4648 if (PyErr_Occurred()) return NULL
;
4649 } _resultobj
= Py_BuildValue("i",_result
);
4653 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
4654 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4655 PyObject
* _resultobj
;
4658 PyObject
* _argo0
= 0;
4659 char *_kwnames
[] = { "self","cap_style", NULL
};
4662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
4665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4672 wxPy_BEGIN_ALLOW_THREADS
;
4673 wxPen_SetCap(_arg0
,_arg1
);
4675 wxPy_END_ALLOW_THREADS
;
4676 if (PyErr_Occurred()) return NULL
;
4677 } Py_INCREF(Py_None
);
4678 _resultobj
= Py_None
;
4682 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4683 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4684 PyObject
* _resultobj
;
4687 PyObject
* _argo0
= 0;
4689 PyObject
* _obj1
= 0;
4690 char *_kwnames
[] = { "self","colour", NULL
};
4693 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
4696 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4697 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4698 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4704 if (! wxColour_helper(_obj1
, &_arg1
))
4708 wxPy_BEGIN_ALLOW_THREADS
;
4709 wxPen_SetColour(_arg0
,*_arg1
);
4711 wxPy_END_ALLOW_THREADS
;
4712 if (PyErr_Occurred()) return NULL
;
4713 } Py_INCREF(Py_None
);
4714 _resultobj
= Py_None
;
4718 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4719 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4720 PyObject
* _resultobj
;
4723 PyObject
* _argo0
= 0;
4724 char *_kwnames
[] = { "self","join_style", NULL
};
4727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
4730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4737 wxPy_BEGIN_ALLOW_THREADS
;
4738 wxPen_SetJoin(_arg0
,_arg1
);
4740 wxPy_END_ALLOW_THREADS
;
4741 if (PyErr_Occurred()) return NULL
;
4742 } Py_INCREF(Py_None
);
4743 _resultobj
= Py_None
;
4747 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4748 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4749 PyObject
* _resultobj
;
4752 PyObject
* _argo0
= 0;
4753 char *_kwnames
[] = { "self","style", NULL
};
4756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4766 wxPy_BEGIN_ALLOW_THREADS
;
4767 wxPen_SetStyle(_arg0
,_arg1
);
4769 wxPy_END_ALLOW_THREADS
;
4770 if (PyErr_Occurred()) return NULL
;
4771 } Py_INCREF(Py_None
);
4772 _resultobj
= Py_None
;
4776 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4777 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4778 PyObject
* _resultobj
;
4781 PyObject
* _argo0
= 0;
4782 char *_kwnames
[] = { "self","width", NULL
};
4785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4795 wxPy_BEGIN_ALLOW_THREADS
;
4796 wxPen_SetWidth(_arg0
,_arg1
);
4798 wxPy_END_ALLOW_THREADS
;
4799 if (PyErr_Occurred()) return NULL
;
4800 } Py_INCREF(Py_None
);
4801 _resultobj
= Py_None
;
4805 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
4806 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4807 PyObject
* _resultobj
;
4811 PyObject
* _argo0
= 0;
4812 PyObject
* _argo1
= 0;
4813 char *_kwnames
[] = { "self","dashes", NULL
};
4816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_GetDashes",_kwnames
,&_argo0
,&_argo1
))
4819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4826 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4827 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDash_pp")) {
4828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
4833 wxPy_BEGIN_ALLOW_THREADS
;
4834 _result
= (int )wxPen_GetDashes(_arg0
,_arg1
);
4836 wxPy_END_ALLOW_THREADS
;
4837 if (PyErr_Occurred()) return NULL
;
4838 } _resultobj
= Py_BuildValue("i",_result
);
4842 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4843 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4844 PyObject
* _resultobj
;
4848 PyObject
* _argo0
= 0;
4849 PyObject
* _obj2
= 0;
4850 char *_kwnames
[] = { "self","choices", NULL
};
4853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4856 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4857 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4864 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4865 if (_arg2
== NULL
) {
4871 _arg1
= PyList_Size(_obj2
);
4878 wxPy_BEGIN_ALLOW_THREADS
;
4879 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4881 wxPy_END_ALLOW_THREADS
;
4882 if (PyErr_Occurred()) return NULL
;
4883 } Py_INCREF(Py_None
);
4884 _resultobj
= Py_None
;
4891 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
4892 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4893 PyObject
* _resultobj
;
4896 PyObject
* _argo0
= 0;
4897 char *_kwnames
[] = { "self", NULL
};
4901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
4904 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4905 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
4911 wxPy_BEGIN_ALLOW_THREADS
;
4912 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
4914 wxPy_END_ALLOW_THREADS
;
4915 if (PyErr_Occurred()) return NULL
;
4917 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4918 _resultobj
= Py_BuildValue("s",_ptemp
);
4921 _resultobj
= Py_None
;
4926 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4927 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4928 PyObject
* _resultobj
;
4931 PyObject
* _argo0
= 0;
4932 PyObject
* _argo1
= 0;
4933 char *_kwnames
[] = { "self","stipple", NULL
};
4936 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4939 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4940 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4941 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
4946 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4947 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
4953 wxPy_BEGIN_ALLOW_THREADS
;
4954 wxPen_SetStipple(_arg0
,*_arg1
);
4956 wxPy_END_ALLOW_THREADS
;
4957 if (PyErr_Occurred()) return NULL
;
4958 } Py_INCREF(Py_None
);
4959 _resultobj
= Py_None
;
4963 static void *SwigwxPenListTowxObject(void *ptr
) {
4966 src
= (wxPenList
*) ptr
;
4967 dest
= (wxObject
*) src
;
4968 return (void *) dest
;
4971 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4972 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4973 PyObject
* _resultobj
;
4976 PyObject
* _argo0
= 0;
4977 PyObject
* _argo1
= 0;
4978 char *_kwnames
[] = { "self","pen", NULL
};
4981 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
4984 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4985 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4991 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4992 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4998 wxPy_BEGIN_ALLOW_THREADS
;
4999 wxPenList_AddPen(_arg0
,_arg1
);
5001 wxPy_END_ALLOW_THREADS
;
5002 if (PyErr_Occurred()) return NULL
;
5003 } Py_INCREF(Py_None
);
5004 _resultobj
= Py_None
;
5008 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5009 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5010 PyObject
* _resultobj
;
5016 PyObject
* _argo0
= 0;
5018 PyObject
* _obj1
= 0;
5019 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5034 if (! wxColour_helper(_obj1
, &_arg1
))
5038 wxPy_BEGIN_ALLOW_THREADS
;
5039 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5041 wxPy_END_ALLOW_THREADS
;
5042 if (PyErr_Occurred()) return NULL
;
5044 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5045 _resultobj
= Py_BuildValue("s",_ptemp
);
5048 _resultobj
= Py_None
;
5053 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5054 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5055 PyObject
* _resultobj
;
5058 PyObject
* _argo0
= 0;
5059 PyObject
* _argo1
= 0;
5060 char *_kwnames
[] = { "self","pen", NULL
};
5063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5066 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5067 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5068 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5073 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5074 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5075 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5080 wxPy_BEGIN_ALLOW_THREADS
;
5081 wxPenList_RemovePen(_arg0
,_arg1
);
5083 wxPy_END_ALLOW_THREADS
;
5084 if (PyErr_Occurred()) return NULL
;
5085 } Py_INCREF(Py_None
);
5086 _resultobj
= Py_None
;
5090 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5093 src
= (wxBrush
*) ptr
;
5094 dest
= (wxGDIObject
*) src
;
5095 return (void *) dest
;
5098 static void *SwigwxBrushTowxObject(void *ptr
) {
5101 src
= (wxBrush
*) ptr
;
5102 dest
= (wxObject
*) src
;
5103 return (void *) dest
;
5106 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5107 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5108 PyObject
* _resultobj
;
5111 int _arg1
= (int ) wxSOLID
;
5113 PyObject
* _obj0
= 0;
5114 char *_kwnames
[] = { "colour","style", NULL
};
5118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5122 if (! wxColour_helper(_obj0
, &_arg0
))
5126 wxPy_BEGIN_ALLOW_THREADS
;
5127 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5129 wxPy_END_ALLOW_THREADS
;
5130 if (PyErr_Occurred()) return NULL
;
5132 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5133 _resultobj
= Py_BuildValue("s",_ptemp
);
5136 _resultobj
= Py_None
;
5141 #define delete_wxBrush(_swigobj) (delete _swigobj)
5142 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5143 PyObject
* _resultobj
;
5145 PyObject
* _argo0
= 0;
5146 char *_kwnames
[] = { "self", NULL
};
5149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5159 wxPy_BEGIN_ALLOW_THREADS
;
5160 delete_wxBrush(_arg0
);
5162 wxPy_END_ALLOW_THREADS
;
5163 if (PyErr_Occurred()) return NULL
;
5164 } Py_INCREF(Py_None
);
5165 _resultobj
= Py_None
;
5169 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5170 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5171 PyObject
* _resultobj
;
5174 PyObject
* _argo0
= 0;
5175 char *_kwnames
[] = { "self", NULL
};
5179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5182 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5183 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5184 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5189 wxPy_BEGIN_ALLOW_THREADS
;
5190 wxColour
& _result_ref
= wxBrush_GetColour(_arg0
);
5191 _result
= (wxColour
*) &_result_ref
;
5193 wxPy_END_ALLOW_THREADS
;
5194 if (PyErr_Occurred()) return NULL
;
5196 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5197 _resultobj
= Py_BuildValue("s",_ptemp
);
5200 _resultobj
= Py_None
;
5205 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5206 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5207 PyObject
* _resultobj
;
5210 PyObject
* _argo0
= 0;
5211 char *_kwnames
[] = { "self", NULL
};
5215 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
5218 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5219 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5220 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5225 wxPy_BEGIN_ALLOW_THREADS
;
5226 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
5228 wxPy_END_ALLOW_THREADS
;
5229 if (PyErr_Occurred()) return NULL
;
5231 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5232 _resultobj
= Py_BuildValue("s",_ptemp
);
5235 _resultobj
= Py_None
;
5240 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5241 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5242 PyObject
* _resultobj
;
5245 PyObject
* _argo0
= 0;
5246 char *_kwnames
[] = { "self", NULL
};
5249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
5252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5259 wxPy_BEGIN_ALLOW_THREADS
;
5260 _result
= (int )wxBrush_GetStyle(_arg0
);
5262 wxPy_END_ALLOW_THREADS
;
5263 if (PyErr_Occurred()) return NULL
;
5264 } _resultobj
= Py_BuildValue("i",_result
);
5268 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5269 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5270 PyObject
* _resultobj
;
5273 PyObject
* _argo0
= 0;
5274 char *_kwnames
[] = { "self", NULL
};
5277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
5280 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5281 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5287 wxPy_BEGIN_ALLOW_THREADS
;
5288 _result
= (bool )wxBrush_Ok(_arg0
);
5290 wxPy_END_ALLOW_THREADS
;
5291 if (PyErr_Occurred()) return NULL
;
5292 } _resultobj
= Py_BuildValue("i",_result
);
5296 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5297 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5298 PyObject
* _resultobj
;
5301 PyObject
* _argo0
= 0;
5303 PyObject
* _obj1
= 0;
5304 char *_kwnames
[] = { "self","colour", NULL
};
5307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
5310 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5311 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5312 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5318 if (! wxColour_helper(_obj1
, &_arg1
))
5322 wxPy_BEGIN_ALLOW_THREADS
;
5323 wxBrush_SetColour(_arg0
,*_arg1
);
5325 wxPy_END_ALLOW_THREADS
;
5326 if (PyErr_Occurred()) return NULL
;
5327 } Py_INCREF(Py_None
);
5328 _resultobj
= Py_None
;
5332 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5333 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5334 PyObject
* _resultobj
;
5337 PyObject
* _argo0
= 0;
5338 PyObject
* _argo1
= 0;
5339 char *_kwnames
[] = { "self","bitmap", NULL
};
5342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5352 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5353 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5359 wxPy_BEGIN_ALLOW_THREADS
;
5360 wxBrush_SetStipple(_arg0
,*_arg1
);
5362 wxPy_END_ALLOW_THREADS
;
5363 if (PyErr_Occurred()) return NULL
;
5364 } Py_INCREF(Py_None
);
5365 _resultobj
= Py_None
;
5369 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5370 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5371 PyObject
* _resultobj
;
5374 PyObject
* _argo0
= 0;
5375 char *_kwnames
[] = { "self","style", NULL
};
5378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5388 wxPy_BEGIN_ALLOW_THREADS
;
5389 wxBrush_SetStyle(_arg0
,_arg1
);
5391 wxPy_END_ALLOW_THREADS
;
5392 if (PyErr_Occurred()) return NULL
;
5393 } Py_INCREF(Py_None
);
5394 _resultobj
= Py_None
;
5398 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5399 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5400 PyObject
* _resultobj
;
5401 wxBrushList
* _arg0
;
5403 PyObject
* _argo0
= 0;
5404 PyObject
* _argo1
= 0;
5405 char *_kwnames
[] = { "self","brush", NULL
};
5408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
5411 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5412 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5413 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5418 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5419 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5425 wxPy_BEGIN_ALLOW_THREADS
;
5426 wxBrushList_AddBrush(_arg0
,_arg1
);
5428 wxPy_END_ALLOW_THREADS
;
5429 if (PyErr_Occurred()) return NULL
;
5430 } Py_INCREF(Py_None
);
5431 _resultobj
= Py_None
;
5435 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5436 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5437 PyObject
* _resultobj
;
5439 wxBrushList
* _arg0
;
5442 PyObject
* _argo0
= 0;
5444 PyObject
* _obj1
= 0;
5445 char *_kwnames
[] = { "self","colour","style", NULL
};
5449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
5452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5460 if (! wxColour_helper(_obj1
, &_arg1
))
5464 wxPy_BEGIN_ALLOW_THREADS
;
5465 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
5467 wxPy_END_ALLOW_THREADS
;
5468 if (PyErr_Occurred()) return NULL
;
5470 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5471 _resultobj
= Py_BuildValue("s",_ptemp
);
5474 _resultobj
= Py_None
;
5479 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5480 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5481 PyObject
* _resultobj
;
5482 wxBrushList
* _arg0
;
5484 PyObject
* _argo0
= 0;
5485 PyObject
* _argo1
= 0;
5486 char *_kwnames
[] = { "self","brush", NULL
};
5489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
5492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5499 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5500 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5506 wxPy_BEGIN_ALLOW_THREADS
;
5507 wxBrushList_RemoveBrush(_arg0
,_arg1
);
5509 wxPy_END_ALLOW_THREADS
;
5510 if (PyErr_Occurred()) return NULL
;
5511 } Py_INCREF(Py_None
);
5512 _resultobj
= Py_None
;
5516 static void *SwigwxDCTowxObject(void *ptr
) {
5520 dest
= (wxObject
*) src
;
5521 return (void *) dest
;
5524 #define delete_wxDC(_swigobj) (delete _swigobj)
5525 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5526 PyObject
* _resultobj
;
5528 PyObject
* _argo0
= 0;
5529 char *_kwnames
[] = { "self", NULL
};
5532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
5535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5542 wxPy_BEGIN_ALLOW_THREADS
;
5545 wxPy_END_ALLOW_THREADS
;
5546 if (PyErr_Occurred()) return NULL
;
5547 } Py_INCREF(Py_None
);
5548 _resultobj
= Py_None
;
5552 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
5553 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5554 PyObject
* _resultobj
;
5556 PyObject
* _argo0
= 0;
5557 char *_kwnames
[] = { "self", NULL
};
5560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
5563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5570 wxPy_BEGIN_ALLOW_THREADS
;
5571 wxDC_BeginDrawing(_arg0
);
5573 wxPy_END_ALLOW_THREADS
;
5574 if (PyErr_Occurred()) return NULL
;
5575 } Py_INCREF(Py_None
);
5576 _resultobj
= Py_None
;
5580 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5581 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5582 PyObject
* _resultobj
;
5592 int _arg8
= (int ) wxCOPY
;
5593 int _arg9
= (int ) FALSE
;
5594 PyObject
* _argo0
= 0;
5595 PyObject
* _argo5
= 0;
5596 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
5599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
5602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5609 if (_argo5
== Py_None
) { _arg5
= NULL
; }
5610 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
5611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5616 wxPy_BEGIN_ALLOW_THREADS
;
5617 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
5619 wxPy_END_ALLOW_THREADS
;
5620 if (PyErr_Occurred()) return NULL
;
5621 } _resultobj
= Py_BuildValue("i",_result
);
5625 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
5626 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5627 PyObject
* _resultobj
;
5629 PyObject
* _argo0
= 0;
5630 char *_kwnames
[] = { "self", NULL
};
5633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
5636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5643 wxPy_BEGIN_ALLOW_THREADS
;
5646 wxPy_END_ALLOW_THREADS
;
5647 if (PyErr_Occurred()) return NULL
;
5648 } Py_INCREF(Py_None
);
5649 _resultobj
= Py_None
;
5653 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5654 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5655 PyObject
* _resultobj
;
5659 PyObject
* _argo0
= 0;
5660 char *_kwnames
[] = { "self","x","y", NULL
};
5663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5673 wxPy_BEGIN_ALLOW_THREADS
;
5674 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
5676 wxPy_END_ALLOW_THREADS
;
5677 if (PyErr_Occurred()) return NULL
;
5678 } Py_INCREF(Py_None
);
5679 _resultobj
= Py_None
;
5683 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5684 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5685 PyObject
* _resultobj
;
5687 PyObject
* _argo0
= 0;
5688 char *_kwnames
[] = { "self", NULL
};
5691 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
5694 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5695 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5701 wxPy_BEGIN_ALLOW_THREADS
;
5702 wxDC_DestroyClippingRegion(_arg0
);
5704 wxPy_END_ALLOW_THREADS
;
5705 if (PyErr_Occurred()) return NULL
;
5706 } Py_INCREF(Py_None
);
5707 _resultobj
= Py_None
;
5711 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5712 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5713 PyObject
* _resultobj
;
5717 PyObject
* _argo0
= 0;
5718 char *_kwnames
[] = { "self","x", NULL
};
5721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
5724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5731 wxPy_BEGIN_ALLOW_THREADS
;
5732 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
5734 wxPy_END_ALLOW_THREADS
;
5735 if (PyErr_Occurred()) return NULL
;
5736 } _resultobj
= Py_BuildValue("l",_result
);
5740 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5741 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5742 PyObject
* _resultobj
;
5746 PyObject
* _argo0
= 0;
5747 char *_kwnames
[] = { "self","x", NULL
};
5750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
5753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5760 wxPy_BEGIN_ALLOW_THREADS
;
5761 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
5763 wxPy_END_ALLOW_THREADS
;
5764 if (PyErr_Occurred()) return NULL
;
5765 } _resultobj
= Py_BuildValue("l",_result
);
5769 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5770 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5771 PyObject
* _resultobj
;
5775 PyObject
* _argo0
= 0;
5776 char *_kwnames
[] = { "self","y", NULL
};
5779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
5782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5789 wxPy_BEGIN_ALLOW_THREADS
;
5790 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
5792 wxPy_END_ALLOW_THREADS
;
5793 if (PyErr_Occurred()) return NULL
;
5794 } _resultobj
= Py_BuildValue("l",_result
);
5798 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5799 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5800 PyObject
* _resultobj
;
5804 PyObject
* _argo0
= 0;
5805 char *_kwnames
[] = { "self","y", NULL
};
5808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
5811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5818 wxPy_BEGIN_ALLOW_THREADS
;
5819 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5821 wxPy_END_ALLOW_THREADS
;
5822 if (PyErr_Occurred()) return NULL
;
5823 } _resultobj
= Py_BuildValue("l",_result
);
5827 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5828 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5829 PyObject
* _resultobj
;
5837 PyObject
* _argo0
= 0;
5838 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5851 wxPy_BEGIN_ALLOW_THREADS
;
5852 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5854 wxPy_END_ALLOW_THREADS
;
5855 if (PyErr_Occurred()) return NULL
;
5856 } Py_INCREF(Py_None
);
5857 _resultobj
= Py_None
;
5861 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5862 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5863 PyObject
* _resultobj
;
5868 PyObject
* _argo0
= 0;
5869 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5882 wxPy_BEGIN_ALLOW_THREADS
;
5883 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
5885 wxPy_END_ALLOW_THREADS
;
5886 if (PyErr_Occurred()) return NULL
;
5887 } Py_INCREF(Py_None
);
5888 _resultobj
= Py_None
;
5892 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5893 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5894 PyObject
* _resultobj
;
5900 PyObject
* _argo0
= 0;
5901 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5907 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5908 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5909 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5914 wxPy_BEGIN_ALLOW_THREADS
;
5915 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5917 wxPy_END_ALLOW_THREADS
;
5918 if (PyErr_Occurred()) return NULL
;
5919 } Py_INCREF(Py_None
);
5920 _resultobj
= Py_None
;
5924 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5925 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5926 PyObject
* _resultobj
;
5934 PyObject
* _argo0
= 0;
5935 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
5938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
5948 wxPy_BEGIN_ALLOW_THREADS
;
5949 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5951 wxPy_END_ALLOW_THREADS
;
5952 if (PyErr_Occurred()) return NULL
;
5953 } Py_INCREF(Py_None
);
5954 _resultobj
= Py_None
;
5958 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
5959 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5960 PyObject
* _resultobj
;
5965 PyObject
* _argo0
= 0;
5966 PyObject
* _argo1
= 0;
5967 char *_kwnames
[] = { "self","icon","x","y", NULL
};
5970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
5973 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5974 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5975 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5980 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5981 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
5982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5987 wxPy_BEGIN_ALLOW_THREADS
;
5988 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
5990 wxPy_END_ALLOW_THREADS
;
5991 if (PyErr_Occurred()) return NULL
;
5992 } Py_INCREF(Py_None
);
5993 _resultobj
= Py_None
;
5997 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5998 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5999 PyObject
* _resultobj
;
6005 PyObject
* _argo0
= 0;
6006 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
6009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6012 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6013 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6014 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6019 wxPy_BEGIN_ALLOW_THREADS
;
6020 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6022 wxPy_END_ALLOW_THREADS
;
6023 if (PyErr_Occurred()) return NULL
;
6024 } Py_INCREF(Py_None
);
6025 _resultobj
= Py_None
;
6029 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6030 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6031 PyObject
* _resultobj
;
6035 long _arg3
= (long ) 0;
6036 long _arg4
= (long ) 0;
6037 PyObject
* _argo0
= 0;
6039 PyObject
* _obj2
= 0;
6040 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
6043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
6046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6054 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6055 if (_arg2
== NULL
) {
6063 wxPy_BEGIN_ALLOW_THREADS
;
6064 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6066 wxPy_END_ALLOW_THREADS
;
6067 if (PyErr_Occurred()) return NULL
;
6068 } Py_INCREF(Py_None
);
6069 _resultobj
= Py_None
;
6076 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6077 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6078 PyObject
* _resultobj
;
6082 long _arg3
= (long ) 0;
6083 long _arg4
= (long ) 0;
6084 int _arg5
= (int ) wxODDEVEN_RULE
;
6085 PyObject
* _argo0
= 0;
6087 PyObject
* _obj2
= 0;
6088 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6102 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6103 if (_arg2
== NULL
) {
6111 wxPy_BEGIN_ALLOW_THREADS
;
6112 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6114 wxPy_END_ALLOW_THREADS
;
6115 if (PyErr_Occurred()) return NULL
;
6116 } Py_INCREF(Py_None
);
6117 _resultobj
= Py_None
;
6124 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6125 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6126 PyObject
* _resultobj
;
6130 PyObject
* _argo0
= 0;
6131 char *_kwnames
[] = { "self","x","y", NULL
};
6134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6137 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6138 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6144 wxPy_BEGIN_ALLOW_THREADS
;
6145 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6147 wxPy_END_ALLOW_THREADS
;
6148 if (PyErr_Occurred()) return NULL
;
6149 } Py_INCREF(Py_None
);
6150 _resultobj
= Py_None
;
6154 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6155 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6156 PyObject
* _resultobj
;
6162 PyObject
* _argo0
= 0;
6163 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6176 wxPy_BEGIN_ALLOW_THREADS
;
6177 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6179 wxPy_END_ALLOW_THREADS
;
6180 if (PyErr_Occurred()) return NULL
;
6181 } Py_INCREF(Py_None
);
6182 _resultobj
= Py_None
;
6186 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6187 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6188 PyObject
* _resultobj
;
6194 PyObject
* _argo0
= 0;
6195 PyObject
* _obj1
= 0;
6196 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6209 #if PYTHON_API_VERSION >= 1009
6210 char* tmpPtr
; int tmpSize
;
6211 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6212 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6215 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6217 _arg1
= new wxString(tmpPtr
, tmpSize
);
6219 if (!PyString_Check(_obj1
)) {
6220 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6223 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6227 wxPy_BEGIN_ALLOW_THREADS
;
6228 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
6230 wxPy_END_ALLOW_THREADS
;
6231 if (PyErr_Occurred()) return NULL
;
6232 } Py_INCREF(Py_None
);
6233 _resultobj
= Py_None
;
6241 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6242 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6243 PyObject
* _resultobj
;
6249 long _arg5
= (long ) 20;
6250 PyObject
* _argo0
= 0;
6251 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
6254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
6257 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6258 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6264 wxPy_BEGIN_ALLOW_THREADS
;
6265 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6267 wxPy_END_ALLOW_THREADS
;
6268 if (PyErr_Occurred()) return NULL
;
6269 } Py_INCREF(Py_None
);
6270 _resultobj
= Py_None
;
6274 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
6275 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6276 PyObject
* _resultobj
;
6280 PyObject
* _argo0
= 0;
6282 PyObject
* _obj2
= 0;
6283 char *_kwnames
[] = { "self","points", NULL
};
6286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
6289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6297 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6298 if (_arg2
== NULL
) {
6306 wxPy_BEGIN_ALLOW_THREADS
;
6307 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
6309 wxPy_END_ALLOW_THREADS
;
6310 if (PyErr_Occurred()) return NULL
;
6311 } Py_INCREF(Py_None
);
6312 _resultobj
= Py_None
;
6319 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
6320 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6321 PyObject
* _resultobj
;
6326 PyObject
* _argo0
= 0;
6327 PyObject
* _obj1
= 0;
6328 char *_kwnames
[] = { "self","text","x","y", NULL
};
6331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
6334 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6335 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6336 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6341 #if PYTHON_API_VERSION >= 1009
6342 char* tmpPtr
; int tmpSize
;
6343 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6344 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6347 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6349 _arg1
= new wxString(tmpPtr
, tmpSize
);
6351 if (!PyString_Check(_obj1
)) {
6352 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6355 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6359 wxPy_BEGIN_ALLOW_THREADS
;
6360 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
6362 wxPy_END_ALLOW_THREADS
;
6363 if (PyErr_Occurred()) return NULL
;
6364 } Py_INCREF(Py_None
);
6365 _resultobj
= Py_None
;
6373 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
6374 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6375 PyObject
* _resultobj
;
6377 PyObject
* _argo0
= 0;
6378 char *_kwnames
[] = { "self", NULL
};
6381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
6384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6391 wxPy_BEGIN_ALLOW_THREADS
;
6394 wxPy_END_ALLOW_THREADS
;
6395 if (PyErr_Occurred()) return NULL
;
6396 } Py_INCREF(Py_None
);
6397 _resultobj
= Py_None
;
6401 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
6402 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6403 PyObject
* _resultobj
;
6405 PyObject
* _argo0
= 0;
6406 char *_kwnames
[] = { "self", NULL
};
6409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
6412 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6413 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6419 wxPy_BEGIN_ALLOW_THREADS
;
6420 wxDC_EndDrawing(_arg0
);
6422 wxPy_END_ALLOW_THREADS
;
6423 if (PyErr_Occurred()) return NULL
;
6424 } Py_INCREF(Py_None
);
6425 _resultobj
= Py_None
;
6429 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
6430 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6431 PyObject
* _resultobj
;
6433 PyObject
* _argo0
= 0;
6434 char *_kwnames
[] = { "self", NULL
};
6437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
6440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6447 wxPy_BEGIN_ALLOW_THREADS
;
6448 wxDC_EndPage(_arg0
);
6450 wxPy_END_ALLOW_THREADS
;
6451 if (PyErr_Occurred()) return NULL
;
6452 } Py_INCREF(Py_None
);
6453 _resultobj
= Py_None
;
6457 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6458 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6459 PyObject
* _resultobj
;
6464 int _arg4
= (int ) wxFLOOD_SURFACE
;
6465 PyObject
* _argo0
= 0;
6467 PyObject
* _obj3
= 0;
6468 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
6471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
6474 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6475 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6482 if (! wxColour_helper(_obj3
, &_arg3
))
6486 wxPy_BEGIN_ALLOW_THREADS
;
6487 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
6489 wxPy_END_ALLOW_THREADS
;
6490 if (PyErr_Occurred()) return NULL
;
6491 } Py_INCREF(Py_None
);
6492 _resultobj
= Py_None
;
6496 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
6497 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6498 PyObject
* _resultobj
;
6501 PyObject
* _argo0
= 0;
6502 char *_kwnames
[] = { "self", NULL
};
6506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
6509 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6510 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6516 wxPy_BEGIN_ALLOW_THREADS
;
6517 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
6518 _result
= (wxBrush
*) &_result_ref
;
6520 wxPy_END_ALLOW_THREADS
;
6521 if (PyErr_Occurred()) return NULL
;
6523 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6524 _resultobj
= Py_BuildValue("s",_ptemp
);
6527 _resultobj
= Py_None
;
6532 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
6533 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6534 PyObject
* _resultobj
;
6537 PyObject
* _argo0
= 0;
6538 char *_kwnames
[] = { "self", NULL
};
6542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
6545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6552 wxPy_BEGIN_ALLOW_THREADS
;
6553 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
6554 _result
= (wxBrush
*) &_result_ref
;
6556 wxPy_END_ALLOW_THREADS
;
6557 if (PyErr_Occurred()) return NULL
;
6559 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6560 _resultobj
= Py_BuildValue("s",_ptemp
);
6563 _resultobj
= Py_None
;
6568 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
6569 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6570 PyObject
* _resultobj
;
6573 PyObject
* _argo0
= 0;
6574 char *_kwnames
[] = { "self", NULL
};
6577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
6580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6587 wxPy_BEGIN_ALLOW_THREADS
;
6588 _result
= (long )wxDC_GetCharHeight(_arg0
);
6590 wxPy_END_ALLOW_THREADS
;
6591 if (PyErr_Occurred()) return NULL
;
6592 } _resultobj
= Py_BuildValue("l",_result
);
6596 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
6597 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6598 PyObject
* _resultobj
;
6601 PyObject
* _argo0
= 0;
6602 char *_kwnames
[] = { "self", NULL
};
6605 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
6608 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6609 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6615 wxPy_BEGIN_ALLOW_THREADS
;
6616 _result
= (long )wxDC_GetCharWidth(_arg0
);
6618 wxPy_END_ALLOW_THREADS
;
6619 if (PyErr_Occurred()) return NULL
;
6620 } _resultobj
= Py_BuildValue("l",_result
);
6624 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6625 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6626 PyObject
* _resultobj
;
6636 PyObject
* _argo0
= 0;
6637 char *_kwnames
[] = { "self", NULL
};
6652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
6655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6662 wxPy_BEGIN_ALLOW_THREADS
;
6663 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6665 wxPy_END_ALLOW_THREADS
;
6666 if (PyErr_Occurred()) return NULL
;
6667 } Py_INCREF(Py_None
);
6668 _resultobj
= Py_None
;
6671 o
= PyInt_FromLong((long) (*_arg1
));
6672 _resultobj
= t_output_helper(_resultobj
, o
);
6676 o
= PyInt_FromLong((long) (*_arg2
));
6677 _resultobj
= t_output_helper(_resultobj
, o
);
6681 o
= PyInt_FromLong((long) (*_arg3
));
6682 _resultobj
= t_output_helper(_resultobj
, o
);
6686 o
= PyInt_FromLong((long) (*_arg4
));
6687 _resultobj
= t_output_helper(_resultobj
, o
);
6692 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6693 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6694 PyObject
* _resultobj
;
6697 PyObject
* _argo0
= 0;
6698 char *_kwnames
[] = { "self", NULL
};
6702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
6705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6712 wxPy_BEGIN_ALLOW_THREADS
;
6713 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
6714 _result
= (wxFont
*) &_result_ref
;
6716 wxPy_END_ALLOW_THREADS
;
6717 if (PyErr_Occurred()) return NULL
;
6719 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
6720 _resultobj
= Py_BuildValue("s",_ptemp
);
6723 _resultobj
= Py_None
;
6728 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6729 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6730 PyObject
* _resultobj
;
6733 PyObject
* _argo0
= 0;
6734 char *_kwnames
[] = { "self", NULL
};
6737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
6740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6747 wxPy_BEGIN_ALLOW_THREADS
;
6748 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
6750 wxPy_END_ALLOW_THREADS
;
6751 if (PyErr_Occurred()) return NULL
;
6752 } _resultobj
= Py_BuildValue("i",_result
);
6756 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6757 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6758 PyObject
* _resultobj
;
6764 PyObject
* _argo0
= 0;
6765 char *_kwnames
[] = { "self", NULL
};
6774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
6777 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6778 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
6784 wxPy_BEGIN_ALLOW_THREADS
;
6785 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
6787 wxPy_END_ALLOW_THREADS
;
6788 if (PyErr_Occurred()) return NULL
;
6789 } Py_INCREF(Py_None
);
6790 _resultobj
= Py_None
;
6793 o
= PyFloat_FromDouble((double) (*_arg1
));
6794 _resultobj
= t_output_helper(_resultobj
, o
);
6798 o
= PyFloat_FromDouble((double) (*_arg2
));
6799 _resultobj
= t_output_helper(_resultobj
, o
);
6804 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6805 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6806 PyObject
* _resultobj
;
6809 PyObject
* _argo0
= 0;
6810 char *_kwnames
[] = { "self", NULL
};
6813 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
6816 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6817 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6823 wxPy_BEGIN_ALLOW_THREADS
;
6824 _result
= (int )wxDC_GetMapMode(_arg0
);
6826 wxPy_END_ALLOW_THREADS
;
6827 if (PyErr_Occurred()) return NULL
;
6828 } _resultobj
= Py_BuildValue("i",_result
);
6832 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6833 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6834 PyObject
* _resultobj
;
6837 PyObject
* _argo0
= 0;
6838 char *_kwnames
[] = { "self", NULL
};
6841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
6844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6851 wxPy_BEGIN_ALLOW_THREADS
;
6852 _result
= (bool )wxDC_GetOptimization(_arg0
);
6854 wxPy_END_ALLOW_THREADS
;
6855 if (PyErr_Occurred()) return NULL
;
6856 } _resultobj
= Py_BuildValue("i",_result
);
6860 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6861 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6862 PyObject
* _resultobj
;
6865 PyObject
* _argo0
= 0;
6866 char *_kwnames
[] = { "self", NULL
};
6870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
6873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6880 wxPy_BEGIN_ALLOW_THREADS
;
6881 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
6882 _result
= (wxPen
*) &_result_ref
;
6884 wxPy_END_ALLOW_THREADS
;
6885 if (PyErr_Occurred()) return NULL
;
6887 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6888 _resultobj
= Py_BuildValue("s",_ptemp
);
6891 _resultobj
= Py_None
;
6896 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
6897 wxColour
* wc
= new wxColour();
6898 self
->GetPixel(x
, y
, wc
);
6901 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6902 PyObject
* _resultobj
;
6907 PyObject
* _argo0
= 0;
6908 char *_kwnames
[] = { "self","x","y", NULL
};
6912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6922 wxPy_BEGIN_ALLOW_THREADS
;
6923 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
6925 wxPy_END_ALLOW_THREADS
;
6926 if (PyErr_Occurred()) return NULL
;
6928 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6929 _resultobj
= Py_BuildValue("s",_ptemp
);
6932 _resultobj
= Py_None
;
6937 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6938 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6939 PyObject
* _resultobj
;
6945 PyObject
* _argo0
= 0;
6946 char *_kwnames
[] = { "self", NULL
};
6955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
6958 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6959 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6960 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6965 wxPy_BEGIN_ALLOW_THREADS
;
6966 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
6968 wxPy_END_ALLOW_THREADS
;
6969 if (PyErr_Occurred()) return NULL
;
6970 } Py_INCREF(Py_None
);
6971 _resultobj
= Py_None
;
6974 o
= PyInt_FromLong((long) (*_arg1
));
6975 _resultobj
= t_output_helper(_resultobj
, o
);
6979 o
= PyInt_FromLong((long) (*_arg2
));
6980 _resultobj
= t_output_helper(_resultobj
, o
);
6985 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6986 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6987 PyObject
* _resultobj
;
6990 PyObject
* _argo0
= 0;
6991 char *_kwnames
[] = { "self", NULL
};
6995 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
6998 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6999 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7000 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7005 wxPy_BEGIN_ALLOW_THREADS
;
7006 _result
= new wxSize (wxDC_GetSize(_arg0
));
7008 wxPy_END_ALLOW_THREADS
;
7009 if (PyErr_Occurred()) return NULL
;
7010 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7011 _resultobj
= Py_BuildValue("s",_ptemp
);
7015 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7016 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7017 PyObject
* _resultobj
;
7020 PyObject
* _argo0
= 0;
7021 char *_kwnames
[] = { "self", NULL
};
7025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7035 wxPy_BEGIN_ALLOW_THREADS
;
7036 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
7038 wxPy_END_ALLOW_THREADS
;
7039 if (PyErr_Occurred()) return NULL
;
7040 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7041 _resultobj
= Py_BuildValue("s",_ptemp
);
7045 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7046 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7047 PyObject
* _resultobj
;
7050 PyObject
* _argo0
= 0;
7051 char *_kwnames
[] = { "self", NULL
};
7055 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
7058 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7059 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7060 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7065 wxPy_BEGIN_ALLOW_THREADS
;
7066 wxColour
& _result_ref
= wxDC_GetTextBackground(_arg0
);
7067 _result
= (wxColour
*) &_result_ref
;
7069 wxPy_END_ALLOW_THREADS
;
7070 if (PyErr_Occurred()) return NULL
;
7072 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7073 _resultobj
= Py_BuildValue("s",_ptemp
);
7076 _resultobj
= Py_None
;
7081 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7082 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7083 PyObject
* _resultobj
;
7090 PyObject
* _argo0
= 0;
7091 PyObject
* _obj1
= 0;
7092 char *_kwnames
[] = { "self","string", NULL
};
7101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7111 #if PYTHON_API_VERSION >= 1009
7112 char* tmpPtr
; int tmpSize
;
7113 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7114 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7117 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7119 _arg1
= new wxString(tmpPtr
, tmpSize
);
7121 if (!PyString_Check(_obj1
)) {
7122 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7125 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7129 wxPy_BEGIN_ALLOW_THREADS
;
7130 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7132 wxPy_END_ALLOW_THREADS
;
7133 if (PyErr_Occurred()) return NULL
;
7134 } Py_INCREF(Py_None
);
7135 _resultobj
= Py_None
;
7138 o
= PyInt_FromLong((long) (*_arg2
));
7139 _resultobj
= t_output_helper(_resultobj
, o
);
7143 o
= PyInt_FromLong((long) (*_arg3
));
7144 _resultobj
= t_output_helper(_resultobj
, o
);
7153 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7154 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7155 PyObject
* _resultobj
;
7166 wxFont
* _arg6
= (wxFont
*) NULL
;
7167 PyObject
* _argo0
= 0;
7168 PyObject
* _obj1
= 0;
7169 PyObject
* _argo6
= 0;
7170 char *_kwnames
[] = { "self","string","font", NULL
};
7185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7195 #if PYTHON_API_VERSION >= 1009
7196 char* tmpPtr
; int tmpSize
;
7197 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7198 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7201 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7203 _arg1
= new wxString(tmpPtr
, tmpSize
);
7205 if (!PyString_Check(_obj1
)) {
7206 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7209 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7213 if (_argo6
== Py_None
) { _arg6
= NULL
; }
7214 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
7215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7220 wxPy_BEGIN_ALLOW_THREADS
;
7221 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7223 wxPy_END_ALLOW_THREADS
;
7224 if (PyErr_Occurred()) return NULL
;
7225 } Py_INCREF(Py_None
);
7226 _resultobj
= Py_None
;
7229 o
= PyInt_FromLong((long) (*_arg2
));
7230 _resultobj
= t_output_helper(_resultobj
, o
);
7234 o
= PyInt_FromLong((long) (*_arg3
));
7235 _resultobj
= t_output_helper(_resultobj
, o
);
7239 o
= PyInt_FromLong((long) (*_arg4
));
7240 _resultobj
= t_output_helper(_resultobj
, o
);
7244 o
= PyInt_FromLong((long) (*_arg5
));
7245 _resultobj
= t_output_helper(_resultobj
, o
);
7254 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
7255 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7256 PyObject
* _resultobj
;
7259 PyObject
* _argo0
= 0;
7260 char *_kwnames
[] = { "self", NULL
};
7264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
7267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7274 wxPy_BEGIN_ALLOW_THREADS
;
7275 wxColour
& _result_ref
= wxDC_GetTextForeground(_arg0
);
7276 _result
= (wxColour
*) &_result_ref
;
7278 wxPy_END_ALLOW_THREADS
;
7279 if (PyErr_Occurred()) return NULL
;
7281 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7282 _resultobj
= Py_BuildValue("s",_ptemp
);
7285 _resultobj
= Py_None
;
7290 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7291 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7292 PyObject
* _resultobj
;
7298 PyObject
* _argo0
= 0;
7299 char *_kwnames
[] = { "self", NULL
};
7308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
7311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7318 wxPy_BEGIN_ALLOW_THREADS
;
7319 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
7321 wxPy_END_ALLOW_THREADS
;
7322 if (PyErr_Occurred()) return NULL
;
7323 } Py_INCREF(Py_None
);
7324 _resultobj
= Py_None
;
7327 o
= PyFloat_FromDouble((double) (*_arg1
));
7328 _resultobj
= t_output_helper(_resultobj
, o
);
7332 o
= PyFloat_FromDouble((double) (*_arg2
));
7333 _resultobj
= t_output_helper(_resultobj
, o
);
7338 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
7339 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7340 PyObject
* _resultobj
;
7344 PyObject
* _argo0
= 0;
7345 char *_kwnames
[] = { "self","x", NULL
};
7348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
7351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7358 wxPy_BEGIN_ALLOW_THREADS
;
7359 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
7361 wxPy_END_ALLOW_THREADS
;
7362 if (PyErr_Occurred()) return NULL
;
7363 } _resultobj
= Py_BuildValue("l",_result
);
7367 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
7368 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7369 PyObject
* _resultobj
;
7373 PyObject
* _argo0
= 0;
7374 char *_kwnames
[] = { "self","x", NULL
};
7377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
7380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7387 wxPy_BEGIN_ALLOW_THREADS
;
7388 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
7390 wxPy_END_ALLOW_THREADS
;
7391 if (PyErr_Occurred()) return NULL
;
7392 } _resultobj
= Py_BuildValue("l",_result
);
7396 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
7397 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7398 PyObject
* _resultobj
;
7402 PyObject
* _argo0
= 0;
7403 char *_kwnames
[] = { "self","y", NULL
};
7406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
7409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7416 wxPy_BEGIN_ALLOW_THREADS
;
7417 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
7419 wxPy_END_ALLOW_THREADS
;
7420 if (PyErr_Occurred()) return NULL
;
7421 } _resultobj
= Py_BuildValue("l",_result
);
7425 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
7426 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7427 PyObject
* _resultobj
;
7431 PyObject
* _argo0
= 0;
7432 char *_kwnames
[] = { "self","y", NULL
};
7435 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
7438 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7439 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7445 wxPy_BEGIN_ALLOW_THREADS
;
7446 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
7448 wxPy_END_ALLOW_THREADS
;
7449 if (PyErr_Occurred()) return NULL
;
7450 } _resultobj
= Py_BuildValue("l",_result
);
7454 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
7455 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7456 PyObject
* _resultobj
;
7459 PyObject
* _argo0
= 0;
7460 char *_kwnames
[] = { "self", NULL
};
7463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
7466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7473 wxPy_BEGIN_ALLOW_THREADS
;
7474 _result
= (long )wxDC_MaxX(_arg0
);
7476 wxPy_END_ALLOW_THREADS
;
7477 if (PyErr_Occurred()) return NULL
;
7478 } _resultobj
= Py_BuildValue("l",_result
);
7482 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7483 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7484 PyObject
* _resultobj
;
7487 PyObject
* _argo0
= 0;
7488 char *_kwnames
[] = { "self", NULL
};
7491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
7494 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7495 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7501 wxPy_BEGIN_ALLOW_THREADS
;
7502 _result
= (long )wxDC_MaxY(_arg0
);
7504 wxPy_END_ALLOW_THREADS
;
7505 if (PyErr_Occurred()) return NULL
;
7506 } _resultobj
= Py_BuildValue("l",_result
);
7510 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
7511 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7512 PyObject
* _resultobj
;
7515 PyObject
* _argo0
= 0;
7516 char *_kwnames
[] = { "self", NULL
};
7519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
7522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7529 wxPy_BEGIN_ALLOW_THREADS
;
7530 _result
= (long )wxDC_MinX(_arg0
);
7532 wxPy_END_ALLOW_THREADS
;
7533 if (PyErr_Occurred()) return NULL
;
7534 } _resultobj
= Py_BuildValue("l",_result
);
7538 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
7539 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7540 PyObject
* _resultobj
;
7543 PyObject
* _argo0
= 0;
7544 char *_kwnames
[] = { "self", NULL
};
7547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
7550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7557 wxPy_BEGIN_ALLOW_THREADS
;
7558 _result
= (long )wxDC_MinY(_arg0
);
7560 wxPy_END_ALLOW_THREADS
;
7561 if (PyErr_Occurred()) return NULL
;
7562 } _resultobj
= Py_BuildValue("l",_result
);
7566 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
7567 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7568 PyObject
* _resultobj
;
7571 PyObject
* _argo0
= 0;
7572 char *_kwnames
[] = { "self", NULL
};
7575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
7578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7585 wxPy_BEGIN_ALLOW_THREADS
;
7586 _result
= (bool )wxDC_Ok(_arg0
);
7588 wxPy_END_ALLOW_THREADS
;
7589 if (PyErr_Occurred()) return NULL
;
7590 } _resultobj
= Py_BuildValue("i",_result
);
7594 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
7595 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7596 PyObject
* _resultobj
;
7600 PyObject
* _argo0
= 0;
7601 char *_kwnames
[] = { "self","x","y", NULL
};
7604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7614 wxPy_BEGIN_ALLOW_THREADS
;
7615 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7617 wxPy_END_ALLOW_THREADS
;
7618 if (PyErr_Occurred()) return NULL
;
7619 } Py_INCREF(Py_None
);
7620 _resultobj
= Py_None
;
7624 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
7625 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7626 PyObject
* _resultobj
;
7629 PyObject
* _argo0
= 0;
7630 PyObject
* _argo1
= 0;
7631 char *_kwnames
[] = { "self","brush", NULL
};
7634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
7637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7644 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7645 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7646 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7651 wxPy_BEGIN_ALLOW_THREADS
;
7652 wxDC_SetBackground(_arg0
,*_arg1
);
7654 wxPy_END_ALLOW_THREADS
;
7655 if (PyErr_Occurred()) return NULL
;
7656 } Py_INCREF(Py_None
);
7657 _resultobj
= Py_None
;
7661 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
7662 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7663 PyObject
* _resultobj
;
7666 PyObject
* _argo0
= 0;
7667 char *_kwnames
[] = { "self","mode", NULL
};
7670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
7673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
7680 wxPy_BEGIN_ALLOW_THREADS
;
7681 wxDC_SetBackgroundMode(_arg0
,_arg1
);
7683 wxPy_END_ALLOW_THREADS
;
7684 if (PyErr_Occurred()) return NULL
;
7685 } Py_INCREF(Py_None
);
7686 _resultobj
= Py_None
;
7690 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7691 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7692 PyObject
* _resultobj
;
7698 PyObject
* _argo0
= 0;
7699 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7712 wxPy_BEGIN_ALLOW_THREADS
;
7713 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7715 wxPy_END_ALLOW_THREADS
;
7716 if (PyErr_Occurred()) return NULL
;
7717 } Py_INCREF(Py_None
);
7718 _resultobj
= Py_None
;
7722 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
7723 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7724 PyObject
* _resultobj
;
7727 PyObject
* _argo0
= 0;
7728 PyObject
* _argo1
= 0;
7729 char *_kwnames
[] = { "self","colourMap", NULL
};
7732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
7735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
7742 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7743 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
7744 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
7749 wxPy_BEGIN_ALLOW_THREADS
;
7750 wxDC_SetPalette(_arg0
,*_arg1
);
7752 wxPy_END_ALLOW_THREADS
;
7753 if (PyErr_Occurred()) return NULL
;
7754 } Py_INCREF(Py_None
);
7755 _resultobj
= Py_None
;
7759 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
7760 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7761 PyObject
* _resultobj
;
7764 PyObject
* _argo0
= 0;
7765 PyObject
* _argo1
= 0;
7766 char *_kwnames
[] = { "self","brush", NULL
};
7769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
7772 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7773 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
7779 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7780 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
7786 wxPy_BEGIN_ALLOW_THREADS
;
7787 wxDC_SetBrush(_arg0
,*_arg1
);
7789 wxPy_END_ALLOW_THREADS
;
7790 if (PyErr_Occurred()) return NULL
;
7791 } Py_INCREF(Py_None
);
7792 _resultobj
= Py_None
;
7796 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7797 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7798 PyObject
* _resultobj
;
7801 PyObject
* _argo0
= 0;
7802 PyObject
* _argo1
= 0;
7803 char *_kwnames
[] = { "self","font", NULL
};
7806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
7809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7816 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7817 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
7818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7823 wxPy_BEGIN_ALLOW_THREADS
;
7824 wxDC_SetFont(_arg0
,*_arg1
);
7826 wxPy_END_ALLOW_THREADS
;
7827 if (PyErr_Occurred()) return NULL
;
7828 } Py_INCREF(Py_None
);
7829 _resultobj
= Py_None
;
7833 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7834 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7835 PyObject
* _resultobj
;
7838 PyObject
* _argo0
= 0;
7839 char *_kwnames
[] = { "self","function", NULL
};
7842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7845 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7846 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7852 wxPy_BEGIN_ALLOW_THREADS
;
7853 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7855 wxPy_END_ALLOW_THREADS
;
7856 if (PyErr_Occurred()) return NULL
;
7857 } Py_INCREF(Py_None
);
7858 _resultobj
= Py_None
;
7862 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7863 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7864 PyObject
* _resultobj
;
7868 PyObject
* _argo0
= 0;
7869 char *_kwnames
[] = { "self","x","y", NULL
};
7872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7882 wxPy_BEGIN_ALLOW_THREADS
;
7883 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7885 wxPy_END_ALLOW_THREADS
;
7886 if (PyErr_Occurred()) return NULL
;
7887 } Py_INCREF(Py_None
);
7888 _resultobj
= Py_None
;
7892 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7893 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7894 PyObject
* _resultobj
;
7897 PyObject
* _argo0
= 0;
7898 char *_kwnames
[] = { "self","mode", NULL
};
7901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
7904 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7905 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7911 wxPy_BEGIN_ALLOW_THREADS
;
7912 wxDC_SetMapMode(_arg0
,_arg1
);
7914 wxPy_END_ALLOW_THREADS
;
7915 if (PyErr_Occurred()) return NULL
;
7916 } Py_INCREF(Py_None
);
7917 _resultobj
= Py_None
;
7921 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7922 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7923 PyObject
* _resultobj
;
7926 PyObject
* _argo0
= 0;
7928 char *_kwnames
[] = { "self","optimize", NULL
};
7931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
7934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7940 _arg1
= (bool ) tempbool1
;
7942 wxPy_BEGIN_ALLOW_THREADS
;
7943 wxDC_SetOptimization(_arg0
,_arg1
);
7945 wxPy_END_ALLOW_THREADS
;
7946 if (PyErr_Occurred()) return NULL
;
7947 } Py_INCREF(Py_None
);
7948 _resultobj
= Py_None
;
7952 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7953 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7954 PyObject
* _resultobj
;
7957 PyObject
* _argo0
= 0;
7958 PyObject
* _argo1
= 0;
7959 char *_kwnames
[] = { "self","pen", NULL
};
7962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
7965 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7966 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7972 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7973 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
7974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7979 wxPy_BEGIN_ALLOW_THREADS
;
7980 wxDC_SetPen(_arg0
,*_arg1
);
7982 wxPy_END_ALLOW_THREADS
;
7983 if (PyErr_Occurred()) return NULL
;
7984 } Py_INCREF(Py_None
);
7985 _resultobj
= Py_None
;
7989 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7990 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7991 PyObject
* _resultobj
;
7994 PyObject
* _argo0
= 0;
7996 PyObject
* _obj1
= 0;
7997 char *_kwnames
[] = { "self","colour", NULL
};
8000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
8003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8011 if (! wxColour_helper(_obj1
, &_arg1
))
8015 wxPy_BEGIN_ALLOW_THREADS
;
8016 wxDC_SetTextBackground(_arg0
,*_arg1
);
8018 wxPy_END_ALLOW_THREADS
;
8019 if (PyErr_Occurred()) return NULL
;
8020 } Py_INCREF(Py_None
);
8021 _resultobj
= Py_None
;
8025 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8026 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8027 PyObject
* _resultobj
;
8030 PyObject
* _argo0
= 0;
8032 PyObject
* _obj1
= 0;
8033 char *_kwnames
[] = { "self","colour", NULL
};
8036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
8039 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8040 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8047 if (! wxColour_helper(_obj1
, &_arg1
))
8051 wxPy_BEGIN_ALLOW_THREADS
;
8052 wxDC_SetTextForeground(_arg0
,*_arg1
);
8054 wxPy_END_ALLOW_THREADS
;
8055 if (PyErr_Occurred()) return NULL
;
8056 } Py_INCREF(Py_None
);
8057 _resultobj
= Py_None
;
8061 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8062 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8063 PyObject
* _resultobj
;
8067 PyObject
* _argo0
= 0;
8068 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8071 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8074 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8075 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8076 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8081 wxPy_BEGIN_ALLOW_THREADS
;
8082 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8084 wxPy_END_ALLOW_THREADS
;
8085 if (PyErr_Occurred()) return NULL
;
8086 } Py_INCREF(Py_None
);
8087 _resultobj
= Py_None
;
8091 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8092 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8093 PyObject
* _resultobj
;
8097 PyObject
* _argo0
= 0;
8098 PyObject
* _obj1
= 0;
8099 char *_kwnames
[] = { "self","message", NULL
};
8102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8105 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8106 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8107 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8112 #if PYTHON_API_VERSION >= 1009
8113 char* tmpPtr
; int tmpSize
;
8114 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8115 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8118 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8120 _arg1
= new wxString(tmpPtr
, tmpSize
);
8122 if (!PyString_Check(_obj1
)) {
8123 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8126 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8130 wxPy_BEGIN_ALLOW_THREADS
;
8131 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8133 wxPy_END_ALLOW_THREADS
;
8134 if (PyErr_Occurred()) return NULL
;
8135 } _resultobj
= Py_BuildValue("i",_result
);
8143 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8144 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8145 PyObject
* _resultobj
;
8147 PyObject
* _argo0
= 0;
8148 char *_kwnames
[] = { "self", NULL
};
8151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8161 wxPy_BEGIN_ALLOW_THREADS
;
8162 wxDC_StartPage(_arg0
);
8164 wxPy_END_ALLOW_THREADS
;
8165 if (PyErr_Occurred()) return NULL
;
8166 } Py_INCREF(Py_None
);
8167 _resultobj
= Py_None
;
8171 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8172 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8173 PyObject
* _resultobj
;
8178 int _arg4
= (int ) FALSE
;
8179 PyObject
* _argo0
= 0;
8180 PyObject
* _argo1
= 0;
8181 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
8184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
8187 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8188 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8194 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8195 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8201 wxPy_BEGIN_ALLOW_THREADS
;
8202 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
8204 wxPy_END_ALLOW_THREADS
;
8205 if (PyErr_Occurred()) return NULL
;
8206 } Py_INCREF(Py_None
);
8207 _resultobj
= Py_None
;
8211 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8212 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8213 PyObject
* _resultobj
;
8216 PyObject
* _argo0
= 0;
8217 char *_kwnames
[] = { "self", NULL
};
8220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
8223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8230 wxPy_BEGIN_ALLOW_THREADS
;
8231 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
8233 wxPy_END_ALLOW_THREADS
;
8234 if (PyErr_Occurred()) return NULL
;
8235 } _resultobj
= Py_BuildValue("i",_result
);
8239 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8240 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8241 PyObject
* _resultobj
;
8244 PyObject
* _argo0
= 0;
8245 char *_kwnames
[] = { "self", NULL
};
8248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
8251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8258 wxPy_BEGIN_ALLOW_THREADS
;
8259 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
8261 wxPy_END_ALLOW_THREADS
;
8262 if (PyErr_Occurred()) return NULL
;
8263 } _resultobj
= Py_BuildValue("i",_result
);
8267 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8268 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8269 PyObject
* _resultobj
;
8272 PyObject
* _argo0
= 0;
8273 char *_kwnames
[] = { "self", NULL
};
8276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
8279 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8280 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8286 wxPy_BEGIN_ALLOW_THREADS
;
8287 _result
= (int )wxDC_GetDepth(_arg0
);
8289 wxPy_END_ALLOW_THREADS
;
8290 if (PyErr_Occurred()) return NULL
;
8291 } _resultobj
= Py_BuildValue("i",_result
);
8295 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8296 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8297 PyObject
* _resultobj
;
8300 PyObject
* _argo0
= 0;
8301 char *_kwnames
[] = { "self", NULL
};
8305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
8308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8315 wxPy_BEGIN_ALLOW_THREADS
;
8316 _result
= new wxSize (wxDC_GetPPI(_arg0
));
8318 wxPy_END_ALLOW_THREADS
;
8319 if (PyErr_Occurred()) return NULL
;
8320 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8321 _resultobj
= Py_BuildValue("s",_ptemp
);
8325 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8326 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8327 PyObject
* _resultobj
;
8333 PyObject
* _argo0
= 0;
8334 char *_kwnames
[] = { "self", NULL
};
8343 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
8346 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8347 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8348 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8353 wxPy_BEGIN_ALLOW_THREADS
;
8354 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8356 wxPy_END_ALLOW_THREADS
;
8357 if (PyErr_Occurred()) return NULL
;
8358 } Py_INCREF(Py_None
);
8359 _resultobj
= Py_None
;
8362 o
= PyInt_FromLong((long) (*_arg1
));
8363 _resultobj
= t_output_helper(_resultobj
, o
);
8367 o
= PyInt_FromLong((long) (*_arg2
));
8368 _resultobj
= t_output_helper(_resultobj
, o
);
8373 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8374 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8375 PyObject
* _resultobj
;
8379 PyObject
* _argo0
= 0;
8380 char *_kwnames
[] = { "self","x","y", NULL
};
8383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8393 wxPy_BEGIN_ALLOW_THREADS
;
8394 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8396 wxPy_END_ALLOW_THREADS
;
8397 if (PyErr_Occurred()) return NULL
;
8398 } Py_INCREF(Py_None
);
8399 _resultobj
= Py_None
;
8403 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8404 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8405 PyObject
* _resultobj
;
8411 PyObject
* _argo0
= 0;
8412 char *_kwnames
[] = { "self", NULL
};
8421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
8424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8431 wxPy_BEGIN_ALLOW_THREADS
;
8432 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8434 wxPy_END_ALLOW_THREADS
;
8435 if (PyErr_Occurred()) return NULL
;
8436 } Py_INCREF(Py_None
);
8437 _resultobj
= Py_None
;
8440 o
= PyInt_FromLong((long) (*_arg1
));
8441 _resultobj
= t_output_helper(_resultobj
, o
);
8445 o
= PyInt_FromLong((long) (*_arg2
));
8446 _resultobj
= t_output_helper(_resultobj
, o
);
8451 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8452 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8453 PyObject
* _resultobj
;
8457 PyObject
* _argo0
= 0;
8460 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
8463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
8466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8472 _arg1
= (bool ) tempbool1
;
8473 _arg2
= (bool ) tempbool2
;
8475 wxPy_BEGIN_ALLOW_THREADS
;
8476 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
8478 wxPy_END_ALLOW_THREADS
;
8479 if (PyErr_Occurred()) return NULL
;
8480 } Py_INCREF(Py_None
);
8481 _resultobj
= Py_None
;
8485 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
8486 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8487 PyObject
* _resultobj
;
8491 PyObject
* _argo0
= 0;
8492 char *_kwnames
[] = { "self","x","y", NULL
};
8495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8505 wxPy_BEGIN_ALLOW_THREADS
;
8506 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
8508 wxPy_END_ALLOW_THREADS
;
8509 if (PyErr_Occurred()) return NULL
;
8510 } Py_INCREF(Py_None
);
8511 _resultobj
= Py_None
;
8515 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8516 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8517 PyObject
* _resultobj
;
8519 PyObject
* _argo0
= 0;
8520 char *_kwnames
[] = { "self", NULL
};
8523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
8526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8533 wxPy_BEGIN_ALLOW_THREADS
;
8534 wxDC_ResetBoundingBox(_arg0
);
8536 wxPy_END_ALLOW_THREADS
;
8537 if (PyErr_Occurred()) return NULL
;
8538 } Py_INCREF(Py_None
);
8539 _resultobj
= Py_None
;
8543 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
8546 src
= (wxMemoryDC
*) ptr
;
8547 dest
= (wxDC
*) src
;
8548 return (void *) dest
;
8551 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
8554 src
= (wxMemoryDC
*) ptr
;
8555 dest
= (wxObject
*) src
;
8556 return (void *) dest
;
8559 #define new_wxMemoryDC() (new wxMemoryDC())
8560 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8561 PyObject
* _resultobj
;
8562 wxMemoryDC
* _result
;
8563 char *_kwnames
[] = { NULL
};
8567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
8570 wxPy_BEGIN_ALLOW_THREADS
;
8571 _result
= (wxMemoryDC
*)new_wxMemoryDC();
8573 wxPy_END_ALLOW_THREADS
;
8574 if (PyErr_Occurred()) return NULL
;
8576 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
8577 _resultobj
= Py_BuildValue("s",_ptemp
);
8580 _resultobj
= Py_None
;
8585 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
8586 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8587 PyObject
* _resultobj
;
8590 PyObject
* _argo0
= 0;
8591 PyObject
* _argo1
= 0;
8592 char *_kwnames
[] = { "self","bitmap", NULL
};
8595 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
8598 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8599 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
8600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
8605 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8606 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
8612 wxPy_BEGIN_ALLOW_THREADS
;
8613 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
8615 wxPy_END_ALLOW_THREADS
;
8616 if (PyErr_Occurred()) return NULL
;
8617 } Py_INCREF(Py_None
);
8618 _resultobj
= Py_None
;
8622 static void *SwigwxScreenDCTowxDC(void *ptr
) {
8625 src
= (wxScreenDC
*) ptr
;
8626 dest
= (wxDC
*) src
;
8627 return (void *) dest
;
8630 static void *SwigwxScreenDCTowxObject(void *ptr
) {
8633 src
= (wxScreenDC
*) ptr
;
8634 dest
= (wxObject
*) src
;
8635 return (void *) dest
;
8638 #define new_wxScreenDC() (new wxScreenDC())
8639 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8640 PyObject
* _resultobj
;
8641 wxScreenDC
* _result
;
8642 char *_kwnames
[] = { NULL
};
8646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
8649 wxPy_BEGIN_ALLOW_THREADS
;
8650 _result
= (wxScreenDC
*)new_wxScreenDC();
8652 wxPy_END_ALLOW_THREADS
;
8653 if (PyErr_Occurred()) return NULL
;
8655 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
8656 _resultobj
= Py_BuildValue("s",_ptemp
);
8659 _resultobj
= Py_None
;
8664 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8665 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8666 PyObject
* _resultobj
;
8670 PyObject
* _argo0
= 0;
8671 PyObject
* _argo1
= 0;
8672 char *_kwnames
[] = { "self","window", NULL
};
8675 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
8678 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8679 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8680 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
8685 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8686 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
8692 wxPy_BEGIN_ALLOW_THREADS
;
8693 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
8695 wxPy_END_ALLOW_THREADS
;
8696 if (PyErr_Occurred()) return NULL
;
8697 } _resultobj
= Py_BuildValue("i",_result
);
8701 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8702 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8703 PyObject
* _resultobj
;
8706 wxRect
* _arg1
= (wxRect
*) NULL
;
8707 PyObject
* _argo0
= 0;
8709 PyObject
* _obj1
= 0;
8710 char *_kwnames
[] = { "self","rect", NULL
};
8713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
8716 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8717 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
8725 if (! wxRect_helper(_obj1
, &_arg1
))
8729 wxPy_BEGIN_ALLOW_THREADS
;
8730 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
8732 wxPy_END_ALLOW_THREADS
;
8733 if (PyErr_Occurred()) return NULL
;
8734 } _resultobj
= Py_BuildValue("i",_result
);
8738 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
8739 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8740 PyObject
* _resultobj
;
8743 PyObject
* _argo0
= 0;
8744 char *_kwnames
[] = { "self", NULL
};
8747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
8750 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8751 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8757 wxPy_BEGIN_ALLOW_THREADS
;
8758 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
8760 wxPy_END_ALLOW_THREADS
;
8761 if (PyErr_Occurred()) return NULL
;
8762 } _resultobj
= Py_BuildValue("i",_result
);
8766 static void *SwigwxClientDCTowxDC(void *ptr
) {
8769 src
= (wxClientDC
*) ptr
;
8770 dest
= (wxDC
*) src
;
8771 return (void *) dest
;
8774 static void *SwigwxClientDCTowxObject(void *ptr
) {
8777 src
= (wxClientDC
*) ptr
;
8778 dest
= (wxObject
*) src
;
8779 return (void *) dest
;
8782 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
8783 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8784 PyObject
* _resultobj
;
8785 wxClientDC
* _result
;
8787 PyObject
* _argo0
= 0;
8788 char *_kwnames
[] = { "win", NULL
};
8792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
8795 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8796 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8797 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8802 wxPy_BEGIN_ALLOW_THREADS
;
8803 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
8805 wxPy_END_ALLOW_THREADS
;
8806 if (PyErr_Occurred()) return NULL
;
8808 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
8809 _resultobj
= Py_BuildValue("s",_ptemp
);
8812 _resultobj
= Py_None
;
8817 static void *SwigwxPaintDCTowxDC(void *ptr
) {
8820 src
= (wxPaintDC
*) ptr
;
8821 dest
= (wxDC
*) src
;
8822 return (void *) dest
;
8825 static void *SwigwxPaintDCTowxObject(void *ptr
) {
8828 src
= (wxPaintDC
*) ptr
;
8829 dest
= (wxObject
*) src
;
8830 return (void *) dest
;
8833 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8834 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8835 PyObject
* _resultobj
;
8836 wxPaintDC
* _result
;
8838 PyObject
* _argo0
= 0;
8839 char *_kwnames
[] = { "win", NULL
};
8843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8853 wxPy_BEGIN_ALLOW_THREADS
;
8854 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8856 wxPy_END_ALLOW_THREADS
;
8857 if (PyErr_Occurred()) return NULL
;
8859 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8860 _resultobj
= Py_BuildValue("s",_ptemp
);
8863 _resultobj
= Py_None
;
8868 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8871 src
= (wxWindowDC
*) ptr
;
8872 dest
= (wxDC
*) src
;
8873 return (void *) dest
;
8876 static void *SwigwxWindowDCTowxObject(void *ptr
) {
8879 src
= (wxWindowDC
*) ptr
;
8880 dest
= (wxObject
*) src
;
8881 return (void *) dest
;
8884 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8885 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8886 PyObject
* _resultobj
;
8887 wxWindowDC
* _result
;
8889 PyObject
* _argo0
= 0;
8890 char *_kwnames
[] = { "win", NULL
};
8894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
8897 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8898 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8904 wxPy_BEGIN_ALLOW_THREADS
;
8905 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
8907 wxPy_END_ALLOW_THREADS
;
8908 if (PyErr_Occurred()) return NULL
;
8910 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
8911 _resultobj
= Py_BuildValue("s",_ptemp
);
8914 _resultobj
= Py_None
;
8919 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
8922 src
= (wxMetaFileDC
*) ptr
;
8923 dest
= (wxDC
*) src
;
8924 return (void *) dest
;
8927 static void *SwigwxMetaFileDCTowxObject(void *ptr
) {
8930 src
= (wxMetaFileDC
*) ptr
;
8931 dest
= (wxObject
*) src
;
8932 return (void *) dest
;
8935 #define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0))
8936 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8937 PyObject
* _resultobj
;
8938 wxMetaFileDC
* _result
;
8939 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
8940 PyObject
* _obj0
= 0;
8941 char *_kwnames
[] = { "filename", NULL
};
8945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFileDC",_kwnames
,&_obj0
))
8949 #if PYTHON_API_VERSION >= 1009
8950 char* tmpPtr
; int tmpSize
;
8951 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
8952 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8955 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
8957 _arg0
= new wxString(tmpPtr
, tmpSize
);
8959 if (!PyString_Check(_obj0
)) {
8960 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8963 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
8967 wxPy_BEGIN_ALLOW_THREADS
;
8968 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
);
8970 wxPy_END_ALLOW_THREADS
;
8971 if (PyErr_Occurred()) return NULL
;
8973 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
8974 _resultobj
= Py_BuildValue("s",_ptemp
);
8977 _resultobj
= Py_None
;
8986 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
8987 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8988 PyObject
* _resultobj
;
8989 wxMetaFile
* _result
;
8990 wxMetaFileDC
* _arg0
;
8991 PyObject
* _argo0
= 0;
8992 char *_kwnames
[] = { "self", NULL
};
8996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
8999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
9001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
9006 wxPy_BEGIN_ALLOW_THREADS
;
9007 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
9009 wxPy_END_ALLOW_THREADS
;
9010 if (PyErr_Occurred()) return NULL
;
9012 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
9013 _resultobj
= Py_BuildValue("s",_ptemp
);
9016 _resultobj
= Py_None
;
9021 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
9024 src
= (wxPalette
*) ptr
;
9025 dest
= (wxGDIObject
*) src
;
9026 return (void *) dest
;
9029 static void *SwigwxPaletteTowxObject(void *ptr
) {
9032 src
= (wxPalette
*) ptr
;
9033 dest
= (wxObject
*) src
;
9034 return (void *) dest
;
9037 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9038 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9039 PyObject
* _resultobj
;
9040 wxPalette
* _result
;
9045 PyObject
* _obj1
= 0;
9046 PyObject
* _obj2
= 0;
9047 PyObject
* _obj3
= 0;
9048 char *_kwnames
[] = { "choices","choices","choices", NULL
};
9052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
9055 _arg1
= byte_LIST_helper(_obj1
);
9056 if (_arg1
== NULL
) {
9061 _arg2
= byte_LIST_helper(_obj2
);
9062 if (_arg2
== NULL
) {
9068 _arg3
= byte_LIST_helper(_obj3
);
9069 if (_arg3
== NULL
) {
9075 _arg0
= PyList_Size(_obj1
);
9082 wxPy_BEGIN_ALLOW_THREADS
;
9083 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
9085 wxPy_END_ALLOW_THREADS
;
9086 if (PyErr_Occurred()) return NULL
;
9088 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
9089 _resultobj
= Py_BuildValue("s",_ptemp
);
9092 _resultobj
= Py_None
;
9106 #define delete_wxPalette(_swigobj) (delete _swigobj)
9107 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9108 PyObject
* _resultobj
;
9110 PyObject
* _argo0
= 0;
9111 char *_kwnames
[] = { "self", NULL
};
9114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
9117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
9124 wxPy_BEGIN_ALLOW_THREADS
;
9125 delete_wxPalette(_arg0
);
9127 wxPy_END_ALLOW_THREADS
;
9128 if (PyErr_Occurred()) return NULL
;
9129 } Py_INCREF(Py_None
);
9130 _resultobj
= Py_None
;
9134 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
9135 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9136 PyObject
* _resultobj
;
9142 PyObject
* _argo0
= 0;
9143 char *_kwnames
[] = { "self","red","green","blue", NULL
};
9146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
9149 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9150 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
9156 wxPy_BEGIN_ALLOW_THREADS
;
9157 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
9159 wxPy_END_ALLOW_THREADS
;
9160 if (PyErr_Occurred()) return NULL
;
9161 } _resultobj
= Py_BuildValue("i",_result
);
9165 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9166 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9167 PyObject
* _resultobj
;
9174 PyObject
* _argo0
= 0;
9175 PyObject
* _argo2
= 0;
9176 PyObject
* _argo3
= 0;
9177 PyObject
* _argo4
= 0;
9178 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
9181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
9184 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9185 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
9191 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9192 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
9193 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
9198 if (_argo3
== Py_None
) { _arg3
= NULL
; }
9199 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
9200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
9205 if (_argo4
== Py_None
) { _arg4
= NULL
; }
9206 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
9207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
9212 wxPy_BEGIN_ALLOW_THREADS
;
9213 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9215 wxPy_END_ALLOW_THREADS
;
9216 if (PyErr_Occurred()) return NULL
;
9217 } _resultobj
= Py_BuildValue("i",_result
);
9221 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
9222 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9223 PyObject
* _resultobj
;
9226 PyObject
* _argo0
= 0;
9227 char *_kwnames
[] = { "self", NULL
};
9230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
9233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
9240 wxPy_BEGIN_ALLOW_THREADS
;
9241 _result
= (bool )wxPalette_Ok(_arg0
);
9243 wxPy_END_ALLOW_THREADS
;
9244 if (PyErr_Occurred()) return NULL
;
9245 } _resultobj
= Py_BuildValue("i",_result
);
9249 static void *SwigwxImageListTowxObject(void *ptr
) {
9252 src
= (wxImageList
*) ptr
;
9253 dest
= (wxObject
*) src
;
9254 return (void *) dest
;
9257 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9258 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9259 PyObject
* _resultobj
;
9260 wxImageList
* _result
;
9263 int _arg2
= (int ) TRUE
;
9264 int _arg3
= (int ) 1;
9265 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
9269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9272 wxPy_BEGIN_ALLOW_THREADS
;
9273 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
9275 wxPy_END_ALLOW_THREADS
;
9276 if (PyErr_Occurred()) return NULL
;
9278 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
9279 _resultobj
= Py_BuildValue("s",_ptemp
);
9282 _resultobj
= Py_None
;
9287 #define delete_wxImageList(_swigobj) (delete _swigobj)
9288 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9289 PyObject
* _resultobj
;
9290 wxImageList
* _arg0
;
9291 PyObject
* _argo0
= 0;
9292 char *_kwnames
[] = { "self", NULL
};
9295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
9298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
9305 wxPy_BEGIN_ALLOW_THREADS
;
9306 delete_wxImageList(_arg0
);
9308 wxPy_END_ALLOW_THREADS
;
9309 if (PyErr_Occurred()) return NULL
;
9310 } Py_INCREF(Py_None
);
9311 _resultobj
= Py_None
;
9315 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9316 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9317 PyObject
* _resultobj
;
9319 wxImageList
* _arg0
;
9321 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
9322 PyObject
* _argo0
= 0;
9323 PyObject
* _argo1
= 0;
9324 PyObject
* _argo2
= 0;
9325 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
9328 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
9331 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9332 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9333 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
9338 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9339 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
9345 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9346 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
9352 wxPy_BEGIN_ALLOW_THREADS
;
9353 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
9355 wxPy_END_ALLOW_THREADS
;
9356 if (PyErr_Occurred()) return NULL
;
9357 } _resultobj
= Py_BuildValue("i",_result
);
9361 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9362 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9363 PyObject
* _resultobj
;
9365 wxImageList
* _arg0
;
9368 PyObject
* _argo0
= 0;
9369 PyObject
* _argo1
= 0;
9371 PyObject
* _obj2
= 0;
9372 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
9375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
9378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
9385 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9386 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
9393 if (! wxColour_helper(_obj2
, &_arg2
))
9397 wxPy_BEGIN_ALLOW_THREADS
;
9398 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
9400 wxPy_END_ALLOW_THREADS
;
9401 if (PyErr_Occurred()) return NULL
;
9402 } _resultobj
= Py_BuildValue("i",_result
);
9406 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
9407 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9408 PyObject
* _resultobj
;
9410 wxImageList
* _arg0
;
9412 PyObject
* _argo0
= 0;
9413 PyObject
* _argo1
= 0;
9414 char *_kwnames
[] = { "self","icon", NULL
};
9417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
9420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
9427 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9428 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
9429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
9434 wxPy_BEGIN_ALLOW_THREADS
;
9435 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
9437 wxPy_END_ALLOW_THREADS
;
9438 if (PyErr_Occurred()) return NULL
;
9439 } _resultobj
= Py_BuildValue("i",_result
);
9443 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
9444 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9445 PyObject
* _resultobj
;
9447 wxImageList
* _arg0
;
9450 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
9451 PyObject
* _argo0
= 0;
9452 PyObject
* _argo2
= 0;
9453 PyObject
* _argo3
= 0;
9454 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
9457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
9460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
9467 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9468 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
9474 if (_argo3
== Py_None
) { _arg3
= NULL
; }
9475 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
9476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
9481 wxPy_BEGIN_ALLOW_THREADS
;
9482 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
9484 wxPy_END_ALLOW_THREADS
;
9485 if (PyErr_Occurred()) return NULL
;
9486 } _resultobj
= Py_BuildValue("i",_result
);
9490 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9491 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9492 PyObject
* _resultobj
;
9494 wxImageList
* _arg0
;
9499 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
9500 bool _arg6
= (bool ) FALSE
;
9501 PyObject
* _argo0
= 0;
9502 PyObject
* _argo2
= 0;
9503 int tempbool6
= (int) FALSE
;
9504 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
9507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
9510 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9511 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9512 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
9517 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9518 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
9519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
9523 _arg6
= (bool ) tempbool6
;
9525 wxPy_BEGIN_ALLOW_THREADS
;
9526 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
9528 wxPy_END_ALLOW_THREADS
;
9529 if (PyErr_Occurred()) return NULL
;
9530 } _resultobj
= Py_BuildValue("i",_result
);
9534 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
9535 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9536 PyObject
* _resultobj
;
9538 wxImageList
* _arg0
;
9539 PyObject
* _argo0
= 0;
9540 char *_kwnames
[] = { "self", NULL
};
9543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
9546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
9553 wxPy_BEGIN_ALLOW_THREADS
;
9554 _result
= (int )wxImageList_GetImageCount(_arg0
);
9556 wxPy_END_ALLOW_THREADS
;
9557 if (PyErr_Occurred()) return NULL
;
9558 } _resultobj
= Py_BuildValue("i",_result
);
9562 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
9563 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9564 PyObject
* _resultobj
;
9566 wxImageList
* _arg0
;
9568 PyObject
* _argo0
= 0;
9569 char *_kwnames
[] = { "self","index", NULL
};
9572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
9575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
9582 wxPy_BEGIN_ALLOW_THREADS
;
9583 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
9585 wxPy_END_ALLOW_THREADS
;
9586 if (PyErr_Occurred()) return NULL
;
9587 } _resultobj
= Py_BuildValue("i",_result
);
9591 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
9592 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9593 PyObject
* _resultobj
;
9595 wxImageList
* _arg0
;
9596 PyObject
* _argo0
= 0;
9597 char *_kwnames
[] = { "self", NULL
};
9600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
9603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9610 wxPy_BEGIN_ALLOW_THREADS
;
9611 _result
= (bool )wxImageList_RemoveAll(_arg0
);
9613 wxPy_END_ALLOW_THREADS
;
9614 if (PyErr_Occurred()) return NULL
;
9615 } _resultobj
= Py_BuildValue("i",_result
);
9619 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9620 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9621 PyObject
* _resultobj
;
9622 wxImageList
* _arg0
;
9628 PyObject
* _argo0
= 0;
9629 char *_kwnames
[] = { "self","index", NULL
};
9638 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
9641 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9642 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9643 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9648 wxPy_BEGIN_ALLOW_THREADS
;
9649 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
9651 wxPy_END_ALLOW_THREADS
;
9652 if (PyErr_Occurred()) return NULL
;
9653 } Py_INCREF(Py_None
);
9654 _resultobj
= Py_None
;
9657 o
= PyInt_FromLong((long) (*_arg2
));
9658 _resultobj
= t_output_helper(_resultobj
, o
);
9662 o
= PyInt_FromLong((long) (*_arg3
));
9663 _resultobj
= t_output_helper(_resultobj
, o
);
9668 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
9671 src
= (wxRegion
*) ptr
;
9672 dest
= (wxGDIObject
*) src
;
9673 return (void *) dest
;
9676 static void *SwigwxRegionTowxObject(void *ptr
) {
9679 src
= (wxRegion
*) ptr
;
9680 dest
= (wxObject
*) src
;
9681 return (void *) dest
;
9684 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9685 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9686 PyObject
* _resultobj
;
9688 long _arg0
= (long ) 0;
9689 long _arg1
= (long ) 0;
9690 long _arg2
= (long ) 0;
9691 long _arg3
= (long ) 0;
9692 char *_kwnames
[] = { "x","y","width","height", NULL
};
9696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9699 wxPy_BEGIN_ALLOW_THREADS
;
9700 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
9702 wxPy_END_ALLOW_THREADS
;
9703 if (PyErr_Occurred()) return NULL
;
9705 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
9706 _resultobj
= Py_BuildValue("s",_ptemp
);
9709 _resultobj
= Py_None
;
9714 #define delete_wxRegion(_swigobj) (delete _swigobj)
9715 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9716 PyObject
* _resultobj
;
9718 PyObject
* _argo0
= 0;
9719 char *_kwnames
[] = { "self", NULL
};
9722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
9725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
9732 wxPy_BEGIN_ALLOW_THREADS
;
9733 delete_wxRegion(_arg0
);
9735 wxPy_END_ALLOW_THREADS
;
9736 if (PyErr_Occurred()) return NULL
;
9737 } Py_INCREF(Py_None
);
9738 _resultobj
= Py_None
;
9742 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
9743 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9744 PyObject
* _resultobj
;
9746 PyObject
* _argo0
= 0;
9747 char *_kwnames
[] = { "self", NULL
};
9750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
9753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
9760 wxPy_BEGIN_ALLOW_THREADS
;
9761 wxRegion_Clear(_arg0
);
9763 wxPy_END_ALLOW_THREADS
;
9764 if (PyErr_Occurred()) return NULL
;
9765 } Py_INCREF(Py_None
);
9766 _resultobj
= Py_None
;
9770 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
9771 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9772 PyObject
* _resultobj
;
9773 wxRegionContain _result
;
9777 PyObject
* _argo0
= 0;
9778 char *_kwnames
[] = { "self","x","y", NULL
};
9781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9784 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9785 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9786 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
9791 wxPy_BEGIN_ALLOW_THREADS
;
9792 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
9794 wxPy_END_ALLOW_THREADS
;
9795 if (PyErr_Occurred()) return NULL
;
9796 } _resultobj
= Py_BuildValue("i",_result
);
9800 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9801 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9802 PyObject
* _resultobj
;
9803 wxRegionContain _result
;
9806 PyObject
* _argo0
= 0;
9808 PyObject
* _obj1
= 0;
9809 char *_kwnames
[] = { "self","pt", NULL
};
9812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
9815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
9823 if (! wxPoint_helper(_obj1
, &_arg1
))
9827 wxPy_BEGIN_ALLOW_THREADS
;
9828 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
9830 wxPy_END_ALLOW_THREADS
;
9831 if (PyErr_Occurred()) return NULL
;
9832 } _resultobj
= Py_BuildValue("i",_result
);
9836 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9837 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9838 PyObject
* _resultobj
;
9839 wxRegionContain _result
;
9842 PyObject
* _argo0
= 0;
9844 PyObject
* _obj1
= 0;
9845 char *_kwnames
[] = { "self","rect", NULL
};
9848 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
9851 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9852 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9853 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9859 if (! wxRect_helper(_obj1
, &_arg1
))
9863 wxPy_BEGIN_ALLOW_THREADS
;
9864 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
9866 wxPy_END_ALLOW_THREADS
;
9867 if (PyErr_Occurred()) return NULL
;
9868 } _resultobj
= Py_BuildValue("i",_result
);
9872 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9873 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9874 PyObject
* _resultobj
;
9875 wxRegionContain _result
;
9881 PyObject
* _argo0
= 0;
9882 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
9885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9895 wxPy_BEGIN_ALLOW_THREADS
;
9896 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9898 wxPy_END_ALLOW_THREADS
;
9899 if (PyErr_Occurred()) return NULL
;
9900 } _resultobj
= Py_BuildValue("i",_result
);
9904 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9905 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9906 PyObject
* _resultobj
;
9909 PyObject
* _argo0
= 0;
9910 char *_kwnames
[] = { "self", NULL
};
9914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
9917 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9918 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9919 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9924 wxPy_BEGIN_ALLOW_THREADS
;
9925 _result
= new wxRect (wxRegion_GetBox(_arg0
));
9927 wxPy_END_ALLOW_THREADS
;
9928 if (PyErr_Occurred()) return NULL
;
9929 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9930 _resultobj
= Py_BuildValue("s",_ptemp
);
9934 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9935 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9936 PyObject
* _resultobj
;
9943 PyObject
* _argo0
= 0;
9944 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9957 wxPy_BEGIN_ALLOW_THREADS
;
9958 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9960 wxPy_END_ALLOW_THREADS
;
9961 if (PyErr_Occurred()) return NULL
;
9962 } _resultobj
= Py_BuildValue("i",_result
);
9966 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9967 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9968 PyObject
* _resultobj
;
9972 PyObject
* _argo0
= 0;
9974 PyObject
* _obj1
= 0;
9975 char *_kwnames
[] = { "self","rect", NULL
};
9978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
9981 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9982 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9989 if (! wxRect_helper(_obj1
, &_arg1
))
9993 wxPy_BEGIN_ALLOW_THREADS
;
9994 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
9996 wxPy_END_ALLOW_THREADS
;
9997 if (PyErr_Occurred()) return NULL
;
9998 } _resultobj
= Py_BuildValue("i",_result
);
10002 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10003 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10004 PyObject
* _resultobj
;
10008 PyObject
* _argo0
= 0;
10009 PyObject
* _argo1
= 0;
10010 char *_kwnames
[] = { "self","region", NULL
};
10013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
10016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10023 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10024 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10025 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10030 wxPy_BEGIN_ALLOW_THREADS
;
10031 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
10033 wxPy_END_ALLOW_THREADS
;
10034 if (PyErr_Occurred()) return NULL
;
10035 } _resultobj
= Py_BuildValue("i",_result
);
10039 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10040 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10041 PyObject
* _resultobj
;
10044 PyObject
* _argo0
= 0;
10045 char *_kwnames
[] = { "self", NULL
};
10048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
10051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
10058 wxPy_BEGIN_ALLOW_THREADS
;
10059 _result
= (bool )wxRegion_IsEmpty(_arg0
);
10061 wxPy_END_ALLOW_THREADS
;
10062 if (PyErr_Occurred()) return NULL
;
10063 } _resultobj
= Py_BuildValue("i",_result
);
10067 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10068 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10069 PyObject
* _resultobj
;
10076 PyObject
* _argo0
= 0;
10077 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10083 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10084 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
10090 wxPy_BEGIN_ALLOW_THREADS
;
10091 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10093 wxPy_END_ALLOW_THREADS
;
10094 if (PyErr_Occurred()) return NULL
;
10095 } _resultobj
= Py_BuildValue("i",_result
);
10099 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10100 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10101 PyObject
* _resultobj
;
10105 PyObject
* _argo0
= 0;
10107 PyObject
* _obj1
= 0;
10108 char *_kwnames
[] = { "self","rect", NULL
};
10111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
10114 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10115 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10116 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
10122 if (! wxRect_helper(_obj1
, &_arg1
))
10126 wxPy_BEGIN_ALLOW_THREADS
;
10127 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
10129 wxPy_END_ALLOW_THREADS
;
10130 if (PyErr_Occurred()) return NULL
;
10131 } _resultobj
= Py_BuildValue("i",_result
);
10135 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10136 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10137 PyObject
* _resultobj
;
10141 PyObject
* _argo0
= 0;
10142 PyObject
* _argo1
= 0;
10143 char *_kwnames
[] = { "self","region", NULL
};
10146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
10149 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10150 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10156 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10157 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10163 wxPy_BEGIN_ALLOW_THREADS
;
10164 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
10166 wxPy_END_ALLOW_THREADS
;
10167 if (PyErr_Occurred()) return NULL
;
10168 } _resultobj
= Py_BuildValue("i",_result
);
10172 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10173 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10174 PyObject
* _resultobj
;
10181 PyObject
* _argo0
= 0;
10182 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
10195 wxPy_BEGIN_ALLOW_THREADS
;
10196 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10198 wxPy_END_ALLOW_THREADS
;
10199 if (PyErr_Occurred()) return NULL
;
10200 } _resultobj
= Py_BuildValue("i",_result
);
10204 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10205 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10206 PyObject
* _resultobj
;
10210 PyObject
* _argo0
= 0;
10212 PyObject
* _obj1
= 0;
10213 char *_kwnames
[] = { "self","rect", NULL
};
10216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
10219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
10227 if (! wxRect_helper(_obj1
, &_arg1
))
10231 wxPy_BEGIN_ALLOW_THREADS
;
10232 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
10234 wxPy_END_ALLOW_THREADS
;
10235 if (PyErr_Occurred()) return NULL
;
10236 } _resultobj
= Py_BuildValue("i",_result
);
10240 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10241 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10242 PyObject
* _resultobj
;
10246 PyObject
* _argo0
= 0;
10247 PyObject
* _argo1
= 0;
10248 char *_kwnames
[] = { "self","region", NULL
};
10251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
10254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10261 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10262 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10268 wxPy_BEGIN_ALLOW_THREADS
;
10269 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
10271 wxPy_END_ALLOW_THREADS
;
10272 if (PyErr_Occurred()) return NULL
;
10273 } _resultobj
= Py_BuildValue("i",_result
);
10277 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10278 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10279 PyObject
* _resultobj
;
10286 PyObject
* _argo0
= 0;
10287 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10293 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10294 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
10300 wxPy_BEGIN_ALLOW_THREADS
;
10301 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10303 wxPy_END_ALLOW_THREADS
;
10304 if (PyErr_Occurred()) return NULL
;
10305 } _resultobj
= Py_BuildValue("i",_result
);
10309 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10310 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10311 PyObject
* _resultobj
;
10315 PyObject
* _argo0
= 0;
10317 PyObject
* _obj1
= 0;
10318 char *_kwnames
[] = { "self","rect", NULL
};
10321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
10324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
10332 if (! wxRect_helper(_obj1
, &_arg1
))
10336 wxPy_BEGIN_ALLOW_THREADS
;
10337 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
10339 wxPy_END_ALLOW_THREADS
;
10340 if (PyErr_Occurred()) return NULL
;
10341 } _resultobj
= Py_BuildValue("i",_result
);
10345 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10346 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10347 PyObject
* _resultobj
;
10351 PyObject
* _argo0
= 0;
10352 PyObject
* _argo1
= 0;
10353 char *_kwnames
[] = { "self","region", NULL
};
10356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
10359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
10366 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10367 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
10373 wxPy_BEGIN_ALLOW_THREADS
;
10374 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
10376 wxPy_END_ALLOW_THREADS
;
10377 if (PyErr_Occurred()) return NULL
;
10378 } _resultobj
= Py_BuildValue("i",_result
);
10382 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
10383 wxRegionIterator
*src
;
10385 src
= (wxRegionIterator
*) ptr
;
10386 dest
= (wxObject
*) src
;
10387 return (void *) dest
;
10390 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
10391 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10392 PyObject
* _resultobj
;
10393 wxRegionIterator
* _result
;
10395 PyObject
* _argo0
= 0;
10396 char *_kwnames
[] = { "region", NULL
};
10400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
10403 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10404 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
10410 wxPy_BEGIN_ALLOW_THREADS
;
10411 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
10413 wxPy_END_ALLOW_THREADS
;
10414 if (PyErr_Occurred()) return NULL
;
10416 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
10417 _resultobj
= Py_BuildValue("s",_ptemp
);
10419 Py_INCREF(Py_None
);
10420 _resultobj
= Py_None
;
10425 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
10426 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10427 PyObject
* _resultobj
;
10428 wxRegionIterator
* _arg0
;
10429 PyObject
* _argo0
= 0;
10430 char *_kwnames
[] = { "self", NULL
};
10433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
10436 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10437 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
10443 wxPy_BEGIN_ALLOW_THREADS
;
10444 delete_wxRegionIterator(_arg0
);
10446 wxPy_END_ALLOW_THREADS
;
10447 if (PyErr_Occurred()) return NULL
;
10448 } Py_INCREF(Py_None
);
10449 _resultobj
= Py_None
;
10453 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
10454 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10455 PyObject
* _resultobj
;
10457 wxRegionIterator
* _arg0
;
10458 PyObject
* _argo0
= 0;
10459 char *_kwnames
[] = { "self", NULL
};
10462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
10465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
10472 wxPy_BEGIN_ALLOW_THREADS
;
10473 _result
= (long )wxRegionIterator_GetX(_arg0
);
10475 wxPy_END_ALLOW_THREADS
;
10476 if (PyErr_Occurred()) return NULL
;
10477 } _resultobj
= Py_BuildValue("l",_result
);
10481 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
10482 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10483 PyObject
* _resultobj
;
10485 wxRegionIterator
* _arg0
;
10486 PyObject
* _argo0
= 0;
10487 char *_kwnames
[] = { "self", NULL
};
10490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
10493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
10500 wxPy_BEGIN_ALLOW_THREADS
;
10501 _result
= (long )wxRegionIterator_GetY(_arg0
);
10503 wxPy_END_ALLOW_THREADS
;
10504 if (PyErr_Occurred()) return NULL
;
10505 } _resultobj
= Py_BuildValue("l",_result
);
10509 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
10510 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10511 PyObject
* _resultobj
;
10513 wxRegionIterator
* _arg0
;
10514 PyObject
* _argo0
= 0;
10515 char *_kwnames
[] = { "self", NULL
};
10518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
10521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
10528 wxPy_BEGIN_ALLOW_THREADS
;
10529 _result
= (long )wxRegionIterator_GetW(_arg0
);
10531 wxPy_END_ALLOW_THREADS
;
10532 if (PyErr_Occurred()) return NULL
;
10533 } _resultobj
= Py_BuildValue("l",_result
);
10537 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
10538 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10539 PyObject
* _resultobj
;
10541 wxRegionIterator
* _arg0
;
10542 PyObject
* _argo0
= 0;
10543 char *_kwnames
[] = { "self", NULL
};
10546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
10549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
10556 wxPy_BEGIN_ALLOW_THREADS
;
10557 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
10559 wxPy_END_ALLOW_THREADS
;
10560 if (PyErr_Occurred()) return NULL
;
10561 } _resultobj
= Py_BuildValue("l",_result
);
10565 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
10566 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10567 PyObject
* _resultobj
;
10569 wxRegionIterator
* _arg0
;
10570 PyObject
* _argo0
= 0;
10571 char *_kwnames
[] = { "self", NULL
};
10574 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
10577 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10578 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
10584 wxPy_BEGIN_ALLOW_THREADS
;
10585 _result
= (long )wxRegionIterator_GetH(_arg0
);
10587 wxPy_END_ALLOW_THREADS
;
10588 if (PyErr_Occurred()) return NULL
;
10589 } _resultobj
= Py_BuildValue("l",_result
);
10593 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
10594 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10595 PyObject
* _resultobj
;
10597 wxRegionIterator
* _arg0
;
10598 PyObject
* _argo0
= 0;
10599 char *_kwnames
[] = { "self", NULL
};
10602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
10605 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10606 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
10612 wxPy_BEGIN_ALLOW_THREADS
;
10613 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
10615 wxPy_END_ALLOW_THREADS
;
10616 if (PyErr_Occurred()) return NULL
;
10617 } _resultobj
= Py_BuildValue("l",_result
);
10621 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
10622 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10623 PyObject
* _resultobj
;
10625 wxRegionIterator
* _arg0
;
10626 PyObject
* _argo0
= 0;
10627 char *_kwnames
[] = { "self", NULL
};
10631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
10634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
10641 wxPy_BEGIN_ALLOW_THREADS
;
10642 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
10644 wxPy_END_ALLOW_THREADS
;
10645 if (PyErr_Occurred()) return NULL
;
10646 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10647 _resultobj
= Py_BuildValue("s",_ptemp
);
10651 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
10652 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10653 PyObject
* _resultobj
;
10655 wxRegionIterator
* _arg0
;
10656 PyObject
* _argo0
= 0;
10657 char *_kwnames
[] = { "self", NULL
};
10660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
10663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
10670 wxPy_BEGIN_ALLOW_THREADS
;
10671 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
10673 wxPy_END_ALLOW_THREADS
;
10674 if (PyErr_Occurred()) return NULL
;
10675 } _resultobj
= Py_BuildValue("i",_result
);
10679 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
10680 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10681 PyObject
* _resultobj
;
10682 wxRegionIterator
* _arg0
;
10683 PyObject
* _argo0
= 0;
10684 char *_kwnames
[] = { "self", NULL
};
10687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
10690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
10697 wxPy_BEGIN_ALLOW_THREADS
;
10698 wxRegionIterator_Reset(_arg0
);
10700 wxPy_END_ALLOW_THREADS
;
10701 if (PyErr_Occurred()) return NULL
;
10702 } Py_INCREF(Py_None
);
10703 _resultobj
= Py_None
;
10707 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
10710 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10711 PyObject
* _resultobj
;
10712 wxRegionIterator
* _arg0
;
10713 PyObject
* _argo0
= 0;
10714 char *_kwnames
[] = { "self", NULL
};
10717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
10720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
10727 wxPy_BEGIN_ALLOW_THREADS
;
10728 wxRegionIterator_Next(_arg0
);
10730 wxPy_END_ALLOW_THREADS
;
10731 if (PyErr_Occurred()) return NULL
;
10732 } Py_INCREF(Py_None
);
10733 _resultobj
= Py_None
;
10737 static PyMethodDef gdicMethods
[] = {
10738 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
10739 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
10740 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
10741 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10742 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10743 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
10744 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10745 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
10746 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
10747 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
10748 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10749 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10750 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
10751 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
10752 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
10753 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
10754 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
10755 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
10756 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
10757 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
10758 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
10759 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
10760 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
10761 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
10762 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
10763 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
10764 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
10765 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
10766 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
10767 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
10768 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10769 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10770 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10771 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10772 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
10773 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10774 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
10775 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
10776 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10777 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
10778 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
10779 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
10780 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10781 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10782 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10783 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
10784 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10785 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10786 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10787 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
10788 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
10789 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
10790 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
10791 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
10792 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10793 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10794 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
10795 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
10796 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
10797 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
10798 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10799 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10800 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
10801 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10802 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10803 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10804 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
10805 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10806 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10807 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10808 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10809 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
10810 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
10811 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10812 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10813 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10814 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
10815 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10816 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10817 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10818 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10819 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10820 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10821 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10822 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10823 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
10824 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10825 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10826 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10827 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
10828 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
10829 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
10830 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
10831 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
10832 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
10833 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
10834 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
10835 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10836 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10837 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10838 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10839 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10840 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
10841 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10842 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10843 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10844 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
10845 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10846 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10847 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10848 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10849 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10850 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
10851 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10852 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10853 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10854 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10855 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
10856 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
10857 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10858 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
10859 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
10860 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
10861 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10862 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
10863 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10864 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
10865 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
10866 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
10867 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
10868 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
10869 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
10870 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
10871 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
10872 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
10873 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
10874 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
10875 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
10876 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
10877 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10878 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
10879 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10880 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
10881 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10882 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
10883 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
10884 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
10885 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
10886 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10887 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10888 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10889 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10890 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10891 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10892 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10893 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10894 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10895 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
10896 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
10897 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
10898 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10899 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10900 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10901 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10902 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10903 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10904 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10905 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10906 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
10907 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10908 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10909 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10910 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10911 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10912 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
10913 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10914 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10915 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
10916 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
10917 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
10918 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
10919 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
10920 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10921 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
10922 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
10923 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
10924 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10925 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10926 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
10927 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
10928 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
10929 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
10930 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
10931 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
10932 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10933 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
10934 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
10935 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10936 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
10937 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
10938 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
10939 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10940 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
10941 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
10942 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10943 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
10944 { "wxFont_GetFontId", (PyCFunction
) _wrap_wxFont_GetFontId
, METH_VARARGS
| METH_KEYWORDS
},
10945 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
10946 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
10947 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10948 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
10949 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
10950 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10951 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10952 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10953 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10954 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10955 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10956 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10957 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10958 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10959 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10960 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
10961 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
10962 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10963 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10964 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10965 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10966 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10967 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10968 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10969 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10970 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10971 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10972 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10973 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10974 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10975 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10976 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10977 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
10978 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
10979 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
10980 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
10981 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10982 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10983 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10984 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10985 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10986 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10987 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10988 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10989 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10990 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10991 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10992 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10993 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10994 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
10995 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
10996 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10997 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
10998 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10999 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11000 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11001 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
11002 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11003 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11004 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11005 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11006 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
11007 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
11008 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11009 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11010 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
11011 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11012 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
11013 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
11014 { "wxBitmapFromData", (PyCFunction
) _wrap_wxBitmapFromData
, METH_VARARGS
| METH_KEYWORDS
},
11015 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11016 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11017 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11024 * This table is used by the pointer type-checker
11026 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
11027 { "_signed_long","_long",0},
11028 { "_wxPrintQuality","_wxCoord",0},
11029 { "_wxPrintQuality","_int",0},
11030 { "_wxPrintQuality","_signed_int",0},
11031 { "_wxPrintQuality","_unsigned_int",0},
11032 { "_wxPrintQuality","_wxWindowID",0},
11033 { "_wxPrintQuality","_uint",0},
11034 { "_wxPrintQuality","_EBool",0},
11035 { "_wxPrintQuality","_size_t",0},
11036 { "_wxPrintQuality","_time_t",0},
11037 { "_byte","_unsigned_char",0},
11038 { "_long","_unsigned_long",0},
11039 { "_long","_signed_long",0},
11040 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
11041 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
11042 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
11043 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
11044 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
11045 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
11046 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
11047 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
11048 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
11049 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
11050 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
11051 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
11052 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
11053 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11054 { "_size_t","_wxCoord",0},
11055 { "_size_t","_wxPrintQuality",0},
11056 { "_size_t","_time_t",0},
11057 { "_size_t","_unsigned_int",0},
11058 { "_size_t","_int",0},
11059 { "_size_t","_wxWindowID",0},
11060 { "_size_t","_uint",0},
11061 { "_uint","_wxCoord",0},
11062 { "_uint","_wxPrintQuality",0},
11063 { "_uint","_time_t",0},
11064 { "_uint","_size_t",0},
11065 { "_uint","_unsigned_int",0},
11066 { "_uint","_int",0},
11067 { "_uint","_wxWindowID",0},
11068 { "_wxChar","_char",0},
11069 { "_char","_wxChar",0},
11070 { "_EBool","_wxCoord",0},
11071 { "_EBool","_wxPrintQuality",0},
11072 { "_EBool","_signed_int",0},
11073 { "_EBool","_int",0},
11074 { "_EBool","_wxWindowID",0},
11075 { "_unsigned_long","_long",0},
11076 { "_signed_int","_wxCoord",0},
11077 { "_signed_int","_wxPrintQuality",0},
11078 { "_signed_int","_EBool",0},
11079 { "_signed_int","_wxWindowID",0},
11080 { "_signed_int","_int",0},
11081 { "_WXTYPE","_short",0},
11082 { "_WXTYPE","_signed_short",0},
11083 { "_WXTYPE","_unsigned_short",0},
11084 { "_unsigned_short","_WXTYPE",0},
11085 { "_unsigned_short","_short",0},
11086 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11087 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
11088 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
11089 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
11090 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject
},
11091 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
11092 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
11093 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
11094 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
11095 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11096 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
11097 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
11098 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
11099 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
11100 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11101 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
11102 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
11103 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
11104 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
11105 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
11106 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
11107 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
11108 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
11109 { "_signed_short","_WXTYPE",0},
11110 { "_signed_short","_short",0},
11111 { "_unsigned_char","_byte",0},
11112 { "_unsigned_int","_wxCoord",0},
11113 { "_unsigned_int","_wxPrintQuality",0},
11114 { "_unsigned_int","_time_t",0},
11115 { "_unsigned_int","_size_t",0},
11116 { "_unsigned_int","_uint",0},
11117 { "_unsigned_int","_wxWindowID",0},
11118 { "_unsigned_int","_int",0},
11119 { "_short","_WXTYPE",0},
11120 { "_short","_unsigned_short",0},
11121 { "_short","_signed_short",0},
11122 { "_wxWindowID","_wxCoord",0},
11123 { "_wxWindowID","_wxPrintQuality",0},
11124 { "_wxWindowID","_time_t",0},
11125 { "_wxWindowID","_size_t",0},
11126 { "_wxWindowID","_EBool",0},
11127 { "_wxWindowID","_uint",0},
11128 { "_wxWindowID","_int",0},
11129 { "_wxWindowID","_signed_int",0},
11130 { "_wxWindowID","_unsigned_int",0},
11131 { "_int","_wxCoord",0},
11132 { "_int","_wxPrintQuality",0},
11133 { "_int","_time_t",0},
11134 { "_int","_size_t",0},
11135 { "_int","_EBool",0},
11136 { "_int","_uint",0},
11137 { "_int","_wxWindowID",0},
11138 { "_int","_unsigned_int",0},
11139 { "_int","_signed_int",0},
11140 { "_time_t","_wxCoord",0},
11141 { "_time_t","_wxPrintQuality",0},
11142 { "_time_t","_unsigned_int",0},
11143 { "_time_t","_int",0},
11144 { "_time_t","_wxWindowID",0},
11145 { "_time_t","_uint",0},
11146 { "_time_t","_size_t",0},
11147 { "_wxCoord","_int",0},
11148 { "_wxCoord","_signed_int",0},
11149 { "_wxCoord","_unsigned_int",0},
11150 { "_wxCoord","_wxWindowID",0},
11151 { "_wxCoord","_uint",0},
11152 { "_wxCoord","_EBool",0},
11153 { "_wxCoord","_size_t",0},
11154 { "_wxCoord","_time_t",0},
11155 { "_wxCoord","_wxPrintQuality",0},
11158 static PyObject
*SWIG_globals
;
11162 SWIGEXPORT(void) initgdic() {
11164 SWIG_globals
= SWIG_newvarlink();
11165 m
= Py_InitModule("gdic", gdicMethods
);
11166 d
= PyModule_GetDict(m
);
11167 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
11168 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
11169 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
11170 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
11171 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
11172 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
11173 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
11174 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
11175 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
11176 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
11177 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
11178 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
11179 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
11180 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
11181 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
11182 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
11183 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
11184 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
11185 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
11186 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
11187 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
11188 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
11189 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
11190 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
11191 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
11192 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
11193 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
11194 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
11195 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
11196 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
11197 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
11198 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
11199 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
11200 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
11201 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
11202 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
11203 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
11204 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
11205 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
11206 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
11207 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
11208 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
11209 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
11210 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
11211 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
11212 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
11213 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
11214 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
11215 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
11216 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
11217 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
11218 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
11219 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
11220 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
11221 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
11222 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
11223 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
11224 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
11225 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
11226 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
11227 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
11228 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
11229 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
11230 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
11231 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
11232 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
11233 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
11234 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
11235 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
11236 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
11237 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
11238 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
11239 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
11240 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
11241 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
11242 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
11243 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
11244 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
11245 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
11246 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
11247 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
11248 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
11249 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
11250 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
11251 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
11252 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
11255 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
11256 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);