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
));
124 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
125 char** cArray
= NULL
;
128 cArray
= ConvertListOfStrings(listOfStrings
);
131 bmp
= new wxBitmap(cArray
);
137 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
138 return new wxBitmap(icon
);
142 wxBitmap
* wxBitmapFromBits(char* bits
, int width
, int height
, int depth
= 1 ) {
143 return new wxBitmap(bits
, width
, height
, depth
);
148 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
149 // int width, int height, int depth = 1) {
150 // if (! PyString_Check(data)) {
151 // PyErr_SetString(PyExc_TypeError, "Expected string object");
154 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
158 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
159 return new wxMask(bitmap
, colour
);
161 // Implementations of some alternate "constructors"
162 wxIcon
* wxEmptyIcon() {
166 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
167 char** cArray
= NULL
;
170 cArray
= ConvertListOfStrings(listOfStrings
);
173 icon
= new wxIcon(cArray
);
177 // Alternate 'constructor'
178 wxCursor
* wxPyStockCursor(int id
) {
179 return new wxCursor(id
);
182 wxFontEncoding
wxFont_GetDefaultEncoding() {
183 return wxFont::GetDefaultEncoding();
186 void wxFont_SetDefaultEncoding(wxFontEncoding encoding
) {
187 wxFont::SetDefaultEncoding(encoding
);
189 // Alternate 'constructor'
190 wxColour
* wxNamedColour(const wxString
& colorName
) {
191 return new wxColour(colorName
);
193 // Alternate 'constructor'
194 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
195 return new wxMemoryDC(oldDC
);
199 extern wxFont
* wxNORMAL_FONT
;
200 extern wxFont
* wxSMALL_FONT
;
201 extern wxFont
* wxITALIC_FONT
;
202 extern wxFont
* wxSWISS_FONT
;
203 extern wxPen
* wxRED_PEN
;
204 extern wxPen
* wxCYAN_PEN
;
205 extern wxPen
* wxGREEN_PEN
;
206 extern wxPen
* wxBLACK_PEN
;
207 extern wxPen
* wxWHITE_PEN
;
208 extern wxPen
* wxTRANSPARENT_PEN
;
209 extern wxPen
* wxBLACK_DASHED_PEN
;
210 extern wxPen
* wxGREY_PEN
;
211 extern wxPen
* wxMEDIUM_GREY_PEN
;
212 extern wxPen
* wxLIGHT_GREY_PEN
;
213 extern wxBrush
* wxBLUE_BRUSH
;
214 extern wxBrush
* wxGREEN_BRUSH
;
215 extern wxBrush
* wxWHITE_BRUSH
;
216 extern wxBrush
* wxBLACK_BRUSH
;
217 extern wxBrush
* wxTRANSPARENT_BRUSH
;
218 extern wxBrush
* wxCYAN_BRUSH
;
219 extern wxBrush
* wxRED_BRUSH
;
220 extern wxBrush
* wxGREY_BRUSH
;
221 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
222 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
223 extern wxColour
* wxBLACK
;
224 extern wxColour
* wxWHITE
;
225 extern wxColour
* wxRED
;
226 extern wxColour
* wxBLUE
;
227 extern wxColour
* wxGREEN
;
228 extern wxColour
* wxCYAN
;
229 extern wxColour
* wxLIGHT_GREY
;
230 extern wxCursor
* wxSTANDARD_CURSOR
;
231 extern wxCursor
* wxHOURGLASS_CURSOR
;
232 extern wxCursor
* wxCROSS_CURSOR
;
233 extern wxBitmap wxNullBitmap
;
234 extern wxIcon wxNullIcon
;
235 extern wxCursor wxNullCursor
;
236 extern wxPen wxNullPen
;
237 extern wxBrush wxNullBrush
;
238 extern wxPalette wxNullPalette
;
239 extern wxFont wxNullFont
;
240 extern wxColour wxNullColour
;
241 extern wxFontList
* wxTheFontList
;
242 extern wxPenList
* wxThePenList
;
243 extern wxBrushlist
* wxTheBrushList
;
244 extern wxColourDatabase
* wxTheColourDatabase
;
250 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
251 PyObject
* _resultobj
;
255 int _arg2
= (int ) -1;
256 char *_kwnames
[] = { "width","height","depth", NULL
};
260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
263 wxPy_BEGIN_ALLOW_THREADS
;
264 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
266 wxPy_END_ALLOW_THREADS
;
267 if (PyErr_Occurred()) return NULL
;
269 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
270 _resultobj
= Py_BuildValue("s",_ptemp
);
273 _resultobj
= Py_None
;
278 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
279 PyObject
* _resultobj
;
282 PyObject
* _obj0
= 0;
283 char *_kwnames
[] = { "listOfStrings", NULL
};
287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
293 wxPy_BEGIN_ALLOW_THREADS
;
294 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
296 wxPy_END_ALLOW_THREADS
;
297 if (PyErr_Occurred()) return NULL
;
299 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
300 _resultobj
= Py_BuildValue("s",_ptemp
);
303 _resultobj
= Py_None
;
308 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
309 PyObject
* _resultobj
;
312 PyObject
* _argo0
= 0;
313 char *_kwnames
[] = { "icon", NULL
};
317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
327 wxPy_BEGIN_ALLOW_THREADS
;
328 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
330 wxPy_END_ALLOW_THREADS
;
331 if (PyErr_Occurred()) return NULL
;
333 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
334 _resultobj
= Py_BuildValue("s",_ptemp
);
337 _resultobj
= Py_None
;
342 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
343 PyObject
* _resultobj
;
348 int _arg3
= (int ) 1;
349 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"sii|i:wxBitmapFromBits",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
356 wxPy_BEGIN_ALLOW_THREADS
;
357 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
359 wxPy_END_ALLOW_THREADS
;
360 if (PyErr_Occurred()) return NULL
;
362 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
363 _resultobj
= Py_BuildValue("s",_ptemp
);
366 _resultobj
= Py_None
;
371 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
372 PyObject
* _resultobj
;
376 PyObject
* _argo0
= 0;
378 PyObject
* _obj1
= 0;
379 char *_kwnames
[] = { "bitmap","colour", NULL
};
383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
394 if (! wxColour_helper(_obj1
, &_arg1
))
398 wxPy_BEGIN_ALLOW_THREADS
;
399 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
401 wxPy_END_ALLOW_THREADS
;
402 if (PyErr_Occurred()) return NULL
;
404 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
405 _resultobj
= Py_BuildValue("s",_ptemp
);
408 _resultobj
= Py_None
;
413 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
414 PyObject
* _resultobj
;
416 char *_kwnames
[] = { NULL
};
420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
423 wxPy_BEGIN_ALLOW_THREADS
;
424 _result
= (wxIcon
*)wxEmptyIcon();
426 wxPy_END_ALLOW_THREADS
;
427 if (PyErr_Occurred()) return NULL
;
429 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
430 _resultobj
= Py_BuildValue("s",_ptemp
);
433 _resultobj
= Py_None
;
438 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
439 PyObject
* _resultobj
;
442 PyObject
* _obj0
= 0;
443 char *_kwnames
[] = { "listOfStrings", NULL
};
447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
453 wxPy_BEGIN_ALLOW_THREADS
;
454 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
456 wxPy_END_ALLOW_THREADS
;
457 if (PyErr_Occurred()) return NULL
;
459 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
460 _resultobj
= Py_BuildValue("s",_ptemp
);
463 _resultobj
= Py_None
;
468 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
469 PyObject
* _resultobj
;
472 char *_kwnames
[] = { "id", NULL
};
476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
479 wxPy_BEGIN_ALLOW_THREADS
;
480 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
482 wxPy_END_ALLOW_THREADS
;
483 if (PyErr_Occurred()) return NULL
;
485 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
486 _resultobj
= Py_BuildValue("s",_ptemp
);
489 _resultobj
= Py_None
;
494 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
495 PyObject
* _resultobj
;
496 wxFontEncoding _result
;
497 char *_kwnames
[] = { NULL
};
500 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
503 wxPy_BEGIN_ALLOW_THREADS
;
504 _result
= (wxFontEncoding
)wxFont_GetDefaultEncoding();
506 wxPy_END_ALLOW_THREADS
;
507 if (PyErr_Occurred()) return NULL
;
508 } _resultobj
= Py_BuildValue("i",_result
);
512 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
513 PyObject
* _resultobj
;
514 wxFontEncoding _arg0
;
515 char *_kwnames
[] = { "encoding", NULL
};
518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
521 wxPy_BEGIN_ALLOW_THREADS
;
522 wxFont_SetDefaultEncoding(_arg0
);
524 wxPy_END_ALLOW_THREADS
;
525 if (PyErr_Occurred()) return NULL
;
526 } Py_INCREF(Py_None
);
527 _resultobj
= Py_None
;
531 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
532 PyObject
* _resultobj
;
535 PyObject
* _obj0
= 0;
536 char *_kwnames
[] = { "colorName", NULL
};
540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
543 #if PYTHON_API_VERSION >= 1009
544 char* tmpPtr
; int tmpSize
;
545 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
546 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
549 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
551 _arg0
= new wxString(tmpPtr
, tmpSize
);
553 if (!PyString_Check(_obj0
)) {
554 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
557 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
561 wxPy_BEGIN_ALLOW_THREADS
;
562 _result
= (wxColour
*)wxNamedColour(*_arg0
);
564 wxPy_END_ALLOW_THREADS
;
565 if (PyErr_Occurred()) return NULL
;
567 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
568 _resultobj
= Py_BuildValue("s",_ptemp
);
571 _resultobj
= Py_None
;
580 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
581 PyObject
* _resultobj
;
582 wxMemoryDC
* _result
;
584 PyObject
* _argo0
= 0;
585 char *_kwnames
[] = { "oldDC", NULL
};
589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
599 wxPy_BEGIN_ALLOW_THREADS
;
600 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
602 wxPy_END_ALLOW_THREADS
;
603 if (PyErr_Occurred()) return NULL
;
605 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
606 _resultobj
= Py_BuildValue("s",_ptemp
);
609 _resultobj
= Py_None
;
614 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
616 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
620 static PyObject
*_wrap_wxNORMAL_FONT_get() {
624 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
625 pyobj
= PyString_FromString(ptemp
);
629 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
631 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
635 static PyObject
*_wrap_wxSMALL_FONT_get() {
639 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
640 pyobj
= PyString_FromString(ptemp
);
644 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
646 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
650 static PyObject
*_wrap_wxITALIC_FONT_get() {
654 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
655 pyobj
= PyString_FromString(ptemp
);
659 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
661 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
665 static PyObject
*_wrap_wxSWISS_FONT_get() {
669 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
670 pyobj
= PyString_FromString(ptemp
);
674 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
676 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
680 static PyObject
*_wrap_wxRED_PEN_get() {
684 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
685 pyobj
= PyString_FromString(ptemp
);
689 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
691 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
695 static PyObject
*_wrap_wxCYAN_PEN_get() {
699 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
700 pyobj
= PyString_FromString(ptemp
);
704 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
706 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
710 static PyObject
*_wrap_wxGREEN_PEN_get() {
714 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
715 pyobj
= PyString_FromString(ptemp
);
719 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
721 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
725 static PyObject
*_wrap_wxBLACK_PEN_get() {
729 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
730 pyobj
= PyString_FromString(ptemp
);
734 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
736 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
740 static PyObject
*_wrap_wxWHITE_PEN_get() {
744 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
745 pyobj
= PyString_FromString(ptemp
);
749 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
751 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
755 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
759 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
760 pyobj
= PyString_FromString(ptemp
);
764 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
766 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
770 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
774 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
775 pyobj
= PyString_FromString(ptemp
);
779 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
781 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
785 static PyObject
*_wrap_wxGREY_PEN_get() {
789 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
790 pyobj
= PyString_FromString(ptemp
);
794 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
796 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
800 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
804 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
805 pyobj
= PyString_FromString(ptemp
);
809 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
811 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
815 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
819 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
820 pyobj
= PyString_FromString(ptemp
);
824 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
826 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
830 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
834 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
835 pyobj
= PyString_FromString(ptemp
);
839 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
841 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
845 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
849 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
850 pyobj
= PyString_FromString(ptemp
);
854 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
856 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
860 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
864 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
865 pyobj
= PyString_FromString(ptemp
);
869 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
871 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
875 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
879 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
880 pyobj
= PyString_FromString(ptemp
);
884 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
886 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
890 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
894 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
895 pyobj
= PyString_FromString(ptemp
);
899 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
901 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
905 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
909 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
910 pyobj
= PyString_FromString(ptemp
);
914 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
916 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
920 static PyObject
*_wrap_wxRED_BRUSH_get() {
924 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
925 pyobj
= PyString_FromString(ptemp
);
929 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
931 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
935 static PyObject
*_wrap_wxGREY_BRUSH_get() {
939 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
940 pyobj
= PyString_FromString(ptemp
);
944 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
946 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
950 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
954 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
955 pyobj
= PyString_FromString(ptemp
);
959 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
961 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
965 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
969 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
970 pyobj
= PyString_FromString(ptemp
);
974 static int _wrap_wxBLACK_set(PyObject
*val
) {
976 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
980 static PyObject
*_wrap_wxBLACK_get() {
984 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
985 pyobj
= PyString_FromString(ptemp
);
989 static int _wrap_wxWHITE_set(PyObject
*val
) {
991 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
995 static PyObject
*_wrap_wxWHITE_get() {
999 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
1000 pyobj
= PyString_FromString(ptemp
);
1004 static int _wrap_wxRED_set(PyObject
*val
) {
1006 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
1010 static PyObject
*_wrap_wxRED_get() {
1014 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1015 pyobj
= PyString_FromString(ptemp
);
1019 static int _wrap_wxBLUE_set(PyObject
*val
) {
1021 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1025 static PyObject
*_wrap_wxBLUE_get() {
1029 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1030 pyobj
= PyString_FromString(ptemp
);
1034 static int _wrap_wxGREEN_set(PyObject
*val
) {
1036 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1040 static PyObject
*_wrap_wxGREEN_get() {
1044 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1045 pyobj
= PyString_FromString(ptemp
);
1049 static int _wrap_wxCYAN_set(PyObject
*val
) {
1051 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1055 static PyObject
*_wrap_wxCYAN_get() {
1059 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1060 pyobj
= PyString_FromString(ptemp
);
1064 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1066 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1070 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1074 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1075 pyobj
= PyString_FromString(ptemp
);
1079 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1081 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1085 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1089 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1090 pyobj
= PyString_FromString(ptemp
);
1094 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1096 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1100 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1104 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1105 pyobj
= PyString_FromString(ptemp
);
1109 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1111 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1115 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1119 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1120 pyobj
= PyString_FromString(ptemp
);
1124 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1126 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1130 static PyObject
*_wrap_wxNullBitmap_get() {
1134 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1135 pyobj
= PyString_FromString(ptemp
);
1139 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1141 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1145 static PyObject
*_wrap_wxNullIcon_get() {
1149 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1150 pyobj
= PyString_FromString(ptemp
);
1154 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1156 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1160 static PyObject
*_wrap_wxNullCursor_get() {
1164 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1165 pyobj
= PyString_FromString(ptemp
);
1169 static int _wrap_wxNullPen_set(PyObject
*val
) {
1171 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1175 static PyObject
*_wrap_wxNullPen_get() {
1179 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1180 pyobj
= PyString_FromString(ptemp
);
1184 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1186 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1190 static PyObject
*_wrap_wxNullBrush_get() {
1194 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1195 pyobj
= PyString_FromString(ptemp
);
1199 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1201 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1205 static PyObject
*_wrap_wxNullPalette_get() {
1209 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1210 pyobj
= PyString_FromString(ptemp
);
1214 static int _wrap_wxNullFont_set(PyObject
*val
) {
1216 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1220 static PyObject
*_wrap_wxNullFont_get() {
1224 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1225 pyobj
= PyString_FromString(ptemp
);
1229 static int _wrap_wxNullColour_set(PyObject
*val
) {
1231 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1235 static PyObject
*_wrap_wxNullColour_get() {
1239 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1240 pyobj
= PyString_FromString(ptemp
);
1244 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1246 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1250 static PyObject
*_wrap_wxTheFontList_get() {
1254 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1255 pyobj
= PyString_FromString(ptemp
);
1259 static int _wrap_wxThePenList_set(PyObject
*val
) {
1261 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1265 static PyObject
*_wrap_wxThePenList_get() {
1269 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1270 pyobj
= PyString_FromString(ptemp
);
1274 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1276 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1280 static PyObject
*_wrap_wxTheBrushList_get() {
1284 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushlist_p");
1285 pyobj
= PyString_FromString(ptemp
);
1289 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1291 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1295 static PyObject
*_wrap_wxTheColourDatabase_get() {
1299 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1300 pyobj
= PyString_FromString(ptemp
);
1304 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1307 src
= (wxGDIObject
*) ptr
;
1308 dest
= (wxObject
*) src
;
1309 return (void *) dest
;
1312 #define new_wxGDIObject() (new wxGDIObject())
1313 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1314 PyObject
* _resultobj
;
1315 wxGDIObject
* _result
;
1316 char *_kwnames
[] = { NULL
};
1320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1323 wxPy_BEGIN_ALLOW_THREADS
;
1324 _result
= (wxGDIObject
*)new_wxGDIObject();
1326 wxPy_END_ALLOW_THREADS
;
1327 if (PyErr_Occurred()) return NULL
;
1329 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1330 _resultobj
= Py_BuildValue("s",_ptemp
);
1333 _resultobj
= Py_None
;
1338 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1339 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1340 PyObject
* _resultobj
;
1341 wxGDIObject
* _arg0
;
1342 PyObject
* _argo0
= 0;
1343 char *_kwnames
[] = { "self", NULL
};
1346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1356 wxPy_BEGIN_ALLOW_THREADS
;
1357 delete_wxGDIObject(_arg0
);
1359 wxPy_END_ALLOW_THREADS
;
1360 if (PyErr_Occurred()) return NULL
;
1361 } Py_INCREF(Py_None
);
1362 _resultobj
= Py_None
;
1366 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1367 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1368 PyObject
* _resultobj
;
1370 wxGDIObject
* _arg0
;
1371 PyObject
* _argo0
= 0;
1372 char *_kwnames
[] = { "self", NULL
};
1375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1385 wxPy_BEGIN_ALLOW_THREADS
;
1386 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1388 wxPy_END_ALLOW_THREADS
;
1389 if (PyErr_Occurred()) return NULL
;
1390 } _resultobj
= Py_BuildValue("i",_result
);
1394 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1395 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1396 PyObject
* _resultobj
;
1397 wxGDIObject
* _arg0
;
1399 PyObject
* _argo0
= 0;
1401 char *_kwnames
[] = { "self","visible", NULL
};
1404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1413 _arg1
= (bool ) tempbool1
;
1415 wxPy_BEGIN_ALLOW_THREADS
;
1416 wxGDIObject_SetVisible(_arg0
,_arg1
);
1418 wxPy_END_ALLOW_THREADS
;
1419 if (PyErr_Occurred()) return NULL
;
1420 } Py_INCREF(Py_None
);
1421 _resultobj
= Py_None
;
1425 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1426 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1427 PyObject
* _resultobj
;
1429 wxGDIObject
* _arg0
;
1430 PyObject
* _argo0
= 0;
1431 char *_kwnames
[] = { "self", NULL
};
1434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1444 wxPy_BEGIN_ALLOW_THREADS
;
1445 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1447 wxPy_END_ALLOW_THREADS
;
1448 if (PyErr_Occurred()) return NULL
;
1449 } _resultobj
= Py_BuildValue("i",_result
);
1453 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1456 src
= (wxBitmap
*) ptr
;
1457 dest
= (wxGDIObject
*) src
;
1458 return (void *) dest
;
1461 static void *SwigwxBitmapTowxObject(void *ptr
) {
1464 src
= (wxBitmap
*) ptr
;
1465 dest
= (wxObject
*) src
;
1466 return (void *) dest
;
1469 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1470 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1471 PyObject
* _resultobj
;
1475 PyObject
* _obj0
= 0;
1476 char *_kwnames
[] = { "name","type", NULL
};
1480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1483 #if PYTHON_API_VERSION >= 1009
1484 char* tmpPtr
; int tmpSize
;
1485 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1486 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1489 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1491 _arg0
= new wxString(tmpPtr
, tmpSize
);
1493 if (!PyString_Check(_obj0
)) {
1494 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1497 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1501 wxPy_BEGIN_ALLOW_THREADS
;
1502 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1504 wxPy_END_ALLOW_THREADS
;
1505 if (PyErr_Occurred()) return NULL
;
1507 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1508 _resultobj
= Py_BuildValue("s",_ptemp
);
1511 _resultobj
= Py_None
;
1520 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1521 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1522 PyObject
* _resultobj
;
1524 PyObject
* _argo0
= 0;
1525 char *_kwnames
[] = { "self", NULL
};
1528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1531 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1532 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1538 wxPy_BEGIN_ALLOW_THREADS
;
1539 delete_wxBitmap(_arg0
);
1541 wxPy_END_ALLOW_THREADS
;
1542 if (PyErr_Occurred()) return NULL
;
1543 } Py_INCREF(Py_None
);
1544 _resultobj
= Py_None
;
1548 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1549 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1550 PyObject
* _resultobj
;
1551 wxPalette
* _result
;
1553 PyObject
* _argo0
= 0;
1554 char *_kwnames
[] = { "self", NULL
};
1558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1561 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1562 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1563 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1568 wxPy_BEGIN_ALLOW_THREADS
;
1569 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1571 wxPy_END_ALLOW_THREADS
;
1572 if (PyErr_Occurred()) return NULL
;
1574 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1575 _resultobj
= Py_BuildValue("s",_ptemp
);
1578 _resultobj
= Py_None
;
1583 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1584 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1585 PyObject
* _resultobj
;
1588 PyObject
* _argo0
= 0;
1589 char *_kwnames
[] = { "self", NULL
};
1593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1603 wxPy_BEGIN_ALLOW_THREADS
;
1604 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1606 wxPy_END_ALLOW_THREADS
;
1607 if (PyErr_Occurred()) return NULL
;
1609 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1610 _resultobj
= Py_BuildValue("s",_ptemp
);
1613 _resultobj
= Py_None
;
1618 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1619 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1620 PyObject
* _resultobj
;
1625 PyObject
* _argo0
= 0;
1626 PyObject
* _obj1
= 0;
1627 char *_kwnames
[] = { "self","name","flags", NULL
};
1630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1640 #if PYTHON_API_VERSION >= 1009
1641 char* tmpPtr
; int tmpSize
;
1642 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1643 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1646 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1648 _arg1
= new wxString(tmpPtr
, tmpSize
);
1650 if (!PyString_Check(_obj1
)) {
1651 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1654 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1658 wxPy_BEGIN_ALLOW_THREADS
;
1659 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1661 wxPy_END_ALLOW_THREADS
;
1662 if (PyErr_Occurred()) return NULL
;
1663 } _resultobj
= Py_BuildValue("i",_result
);
1671 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1672 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1673 PyObject
* _resultobj
;
1678 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1679 PyObject
* _argo0
= 0;
1680 PyObject
* _obj1
= 0;
1681 PyObject
* _argo3
= 0;
1682 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1695 #if PYTHON_API_VERSION >= 1009
1696 char* tmpPtr
; int tmpSize
;
1697 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1698 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1701 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1703 _arg1
= new wxString(tmpPtr
, tmpSize
);
1705 if (!PyString_Check(_obj1
)) {
1706 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1709 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1713 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1714 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1720 wxPy_BEGIN_ALLOW_THREADS
;
1721 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1723 wxPy_END_ALLOW_THREADS
;
1724 if (PyErr_Occurred()) return NULL
;
1725 } _resultobj
= Py_BuildValue("i",_result
);
1733 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1734 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1735 PyObject
* _resultobj
;
1738 PyObject
* _argo0
= 0;
1739 PyObject
* _argo1
= 0;
1740 char *_kwnames
[] = { "self","mask", NULL
};
1743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1753 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1754 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1760 wxPy_BEGIN_ALLOW_THREADS
;
1761 wxBitmap_SetMask(_arg0
,_arg1
);
1763 wxPy_END_ALLOW_THREADS
;
1764 if (PyErr_Occurred()) return NULL
;
1765 } Py_INCREF(Py_None
);
1766 _resultobj
= Py_None
;
1770 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1771 static PyObject
*_wrap_wxBitmap_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1772 PyObject
* _resultobj
;
1775 PyObject
* _argo0
= 0;
1776 PyObject
* _argo1
= 0;
1777 char *_kwnames
[] = { "self","palette", NULL
};
1780 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetPalette",_kwnames
,&_argo0
,&_argo1
))
1783 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1784 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1785 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1790 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1791 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
1792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1797 wxPy_BEGIN_ALLOW_THREADS
;
1798 wxBitmap_SetPalette(_arg0
,*_arg1
);
1800 wxPy_END_ALLOW_THREADS
;
1801 if (PyErr_Occurred()) return NULL
;
1802 } Py_INCREF(Py_None
);
1803 _resultobj
= Py_None
;
1807 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1808 static PyObject
*_wrap_wxBitmap_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1809 PyObject
* _resultobj
;
1812 PyObject
* _argo0
= 0;
1813 char *_kwnames
[] = { "self", NULL
};
1816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHandle",_kwnames
,&_argo0
))
1819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1826 wxPy_BEGIN_ALLOW_THREADS
;
1827 _result
= (long )wxBitmap_GetHandle(_arg0
);
1829 wxPy_END_ALLOW_THREADS
;
1830 if (PyErr_Occurred()) return NULL
;
1831 } _resultobj
= Py_BuildValue("l",_result
);
1835 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1836 static PyObject
*_wrap_wxBitmap_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1837 PyObject
* _resultobj
;
1840 PyObject
* _argo0
= 0;
1841 char *_kwnames
[] = { "self","handle", NULL
};
1844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxBitmap_SetHandle",_kwnames
,&_argo0
,&_arg1
))
1847 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1848 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1849 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1854 wxPy_BEGIN_ALLOW_THREADS
;
1855 wxBitmap_SetHandle(_arg0
,_arg1
);
1857 wxPy_END_ALLOW_THREADS
;
1858 if (PyErr_Occurred()) return NULL
;
1859 } Py_INCREF(Py_None
);
1860 _resultobj
= Py_None
;
1864 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1865 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1866 PyObject
* _resultobj
;
1869 PyObject
* _argo0
= 0;
1870 char *_kwnames
[] = { "self", NULL
};
1873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1883 wxPy_BEGIN_ALLOW_THREADS
;
1884 _result
= (bool )wxBitmap_Ok(_arg0
);
1886 wxPy_END_ALLOW_THREADS
;
1887 if (PyErr_Occurred()) return NULL
;
1888 } _resultobj
= Py_BuildValue("i",_result
);
1892 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1893 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1894 PyObject
* _resultobj
;
1897 PyObject
* _argo0
= 0;
1898 char *_kwnames
[] = { "self", NULL
};
1901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1904 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1905 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1911 wxPy_BEGIN_ALLOW_THREADS
;
1912 _result
= (int )wxBitmap_GetWidth(_arg0
);
1914 wxPy_END_ALLOW_THREADS
;
1915 if (PyErr_Occurred()) return NULL
;
1916 } _resultobj
= Py_BuildValue("i",_result
);
1920 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1921 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1922 PyObject
* _resultobj
;
1925 PyObject
* _argo0
= 0;
1926 char *_kwnames
[] = { "self", NULL
};
1929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1932 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1933 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1939 wxPy_BEGIN_ALLOW_THREADS
;
1940 _result
= (int )wxBitmap_GetHeight(_arg0
);
1942 wxPy_END_ALLOW_THREADS
;
1943 if (PyErr_Occurred()) return NULL
;
1944 } _resultobj
= Py_BuildValue("i",_result
);
1948 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1949 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1950 PyObject
* _resultobj
;
1953 PyObject
* _argo0
= 0;
1954 char *_kwnames
[] = { "self", NULL
};
1957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1960 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1961 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1967 wxPy_BEGIN_ALLOW_THREADS
;
1968 _result
= (int )wxBitmap_GetDepth(_arg0
);
1970 wxPy_END_ALLOW_THREADS
;
1971 if (PyErr_Occurred()) return NULL
;
1972 } _resultobj
= Py_BuildValue("i",_result
);
1976 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1977 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1978 PyObject
* _resultobj
;
1981 PyObject
* _argo0
= 0;
1982 char *_kwnames
[] = { "self","w", NULL
};
1985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1995 wxPy_BEGIN_ALLOW_THREADS
;
1996 wxBitmap_SetWidth(_arg0
,_arg1
);
1998 wxPy_END_ALLOW_THREADS
;
1999 if (PyErr_Occurred()) return NULL
;
2000 } Py_INCREF(Py_None
);
2001 _resultobj
= Py_None
;
2005 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2006 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2007 PyObject
* _resultobj
;
2010 PyObject
* _argo0
= 0;
2011 char *_kwnames
[] = { "self","h", NULL
};
2014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2024 wxPy_BEGIN_ALLOW_THREADS
;
2025 wxBitmap_SetHeight(_arg0
,_arg1
);
2027 wxPy_END_ALLOW_THREADS
;
2028 if (PyErr_Occurred()) return NULL
;
2029 } Py_INCREF(Py_None
);
2030 _resultobj
= Py_None
;
2034 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2035 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2036 PyObject
* _resultobj
;
2039 PyObject
* _argo0
= 0;
2040 char *_kwnames
[] = { "self","d", NULL
};
2043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2053 wxPy_BEGIN_ALLOW_THREADS
;
2054 wxBitmap_SetDepth(_arg0
,_arg1
);
2056 wxPy_END_ALLOW_THREADS
;
2057 if (PyErr_Occurred()) return NULL
;
2058 } Py_INCREF(Py_None
);
2059 _resultobj
= Py_None
;
2063 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2064 static PyObject
*_wrap_wxBitmap_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2065 PyObject
* _resultobj
;
2068 PyObject
* _argo0
= 0;
2070 PyObject
* _obj1
= 0;
2071 char *_kwnames
[] = { "self","size", NULL
};
2074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetSize",_kwnames
,&_argo0
,&_obj1
))
2077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2085 if (! wxSize_helper(_obj1
, &_arg1
))
2089 wxPy_BEGIN_ALLOW_THREADS
;
2090 wxBitmap_SetSize(_arg0
,*_arg1
);
2092 wxPy_END_ALLOW_THREADS
;
2093 if (PyErr_Occurred()) return NULL
;
2094 } Py_INCREF(Py_None
);
2095 _resultobj
= Py_None
;
2099 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2100 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2101 PyObject
* _resultobj
;
2105 PyObject
* _argo0
= 0;
2107 PyObject
* _obj1
= 0;
2108 char *_kwnames
[] = { "self","rect", NULL
};
2112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
2115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2123 if (! wxRect_helper(_obj1
, &_arg1
))
2127 wxPy_BEGIN_ALLOW_THREADS
;
2128 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2130 wxPy_END_ALLOW_THREADS
;
2131 if (PyErr_Occurred()) return NULL
;
2132 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2133 _resultobj
= Py_BuildValue("s",_ptemp
);
2137 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2138 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2139 PyObject
* _resultobj
;
2143 PyObject
* _argo0
= 0;
2144 PyObject
* _argo1
= 0;
2145 char *_kwnames
[] = { "self","icon", NULL
};
2148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2151 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2152 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2153 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2158 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2159 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2165 wxPy_BEGIN_ALLOW_THREADS
;
2166 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2168 wxPy_END_ALLOW_THREADS
;
2169 if (PyErr_Occurred()) return NULL
;
2170 } _resultobj
= Py_BuildValue("i",_result
);
2174 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2175 static PyObject
*_wrap_wxBitmap_CopyFromCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2176 PyObject
* _resultobj
;
2180 PyObject
* _argo0
= 0;
2181 PyObject
* _argo1
= 0;
2182 char *_kwnames
[] = { "self","cursor", NULL
};
2185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromCursor",_kwnames
,&_argo0
,&_argo1
))
2188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2195 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2196 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2202 wxPy_BEGIN_ALLOW_THREADS
;
2203 _result
= (bool )wxBitmap_CopyFromCursor(_arg0
,*_arg1
);
2205 wxPy_END_ALLOW_THREADS
;
2206 if (PyErr_Occurred()) return NULL
;
2207 } _resultobj
= Py_BuildValue("i",_result
);
2211 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2212 static PyObject
*_wrap_wxBitmap_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2213 PyObject
* _resultobj
;
2216 PyObject
* _argo0
= 0;
2217 char *_kwnames
[] = { "self", NULL
};
2220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetQuality",_kwnames
,&_argo0
))
2223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2230 wxPy_BEGIN_ALLOW_THREADS
;
2231 _result
= (int )wxBitmap_GetQuality(_arg0
);
2233 wxPy_END_ALLOW_THREADS
;
2234 if (PyErr_Occurred()) return NULL
;
2235 } _resultobj
= Py_BuildValue("i",_result
);
2239 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2240 static PyObject
*_wrap_wxBitmap_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2241 PyObject
* _resultobj
;
2244 PyObject
* _argo0
= 0;
2245 char *_kwnames
[] = { "self","q", NULL
};
2248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetQuality",_kwnames
,&_argo0
,&_arg1
))
2251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2258 wxPy_BEGIN_ALLOW_THREADS
;
2259 wxBitmap_SetQuality(_arg0
,_arg1
);
2261 wxPy_END_ALLOW_THREADS
;
2262 if (PyErr_Occurred()) return NULL
;
2263 } Py_INCREF(Py_None
);
2264 _resultobj
= Py_None
;
2268 static void *SwigwxMaskTowxObject(void *ptr
) {
2271 src
= (wxMask
*) ptr
;
2272 dest
= (wxObject
*) src
;
2273 return (void *) dest
;
2276 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2277 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2278 PyObject
* _resultobj
;
2281 PyObject
* _argo0
= 0;
2282 char *_kwnames
[] = { "bitmap", NULL
};
2286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2296 wxPy_BEGIN_ALLOW_THREADS
;
2297 _result
= (wxMask
*)new_wxMask(*_arg0
);
2299 wxPy_END_ALLOW_THREADS
;
2300 if (PyErr_Occurred()) return NULL
;
2302 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2303 _resultobj
= Py_BuildValue("s",_ptemp
);
2306 _resultobj
= Py_None
;
2311 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2312 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2313 PyObject
* _resultobj
;
2315 PyObject
* _argo0
= 0;
2316 char *_kwnames
[] = { "self", NULL
};
2319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2329 wxPy_BEGIN_ALLOW_THREADS
;
2330 wxMask_Destroy(_arg0
);
2332 wxPy_END_ALLOW_THREADS
;
2333 if (PyErr_Occurred()) return NULL
;
2334 } Py_INCREF(Py_None
);
2335 _resultobj
= Py_None
;
2339 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2342 src
= (wxIcon
*) ptr
;
2343 dest
= (wxGDIObject
*) src
;
2344 return (void *) dest
;
2347 static void *SwigwxIconTowxObject(void *ptr
) {
2350 src
= (wxIcon
*) ptr
;
2351 dest
= (wxObject
*) src
;
2352 return (void *) dest
;
2355 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2356 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2357 PyObject
* _resultobj
;
2361 int _arg2
= (int ) -1;
2362 int _arg3
= (int ) -1;
2363 PyObject
* _obj0
= 0;
2364 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2371 #if PYTHON_API_VERSION >= 1009
2372 char* tmpPtr
; int tmpSize
;
2373 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2374 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2377 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2379 _arg0
= new wxString(tmpPtr
, tmpSize
);
2381 if (!PyString_Check(_obj0
)) {
2382 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2385 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2389 wxPy_BEGIN_ALLOW_THREADS
;
2390 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2392 wxPy_END_ALLOW_THREADS
;
2393 if (PyErr_Occurred()) return NULL
;
2395 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2396 _resultobj
= Py_BuildValue("s",_ptemp
);
2399 _resultobj
= Py_None
;
2408 #define delete_wxIcon(_swigobj) (delete _swigobj)
2409 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2410 PyObject
* _resultobj
;
2412 PyObject
* _argo0
= 0;
2413 char *_kwnames
[] = { "self", NULL
};
2416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2426 wxPy_BEGIN_ALLOW_THREADS
;
2427 delete_wxIcon(_arg0
);
2429 wxPy_END_ALLOW_THREADS
;
2430 if (PyErr_Occurred()) return NULL
;
2431 } Py_INCREF(Py_None
);
2432 _resultobj
= Py_None
;
2436 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2437 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2438 PyObject
* _resultobj
;
2443 PyObject
* _argo0
= 0;
2444 PyObject
* _obj1
= 0;
2445 char *_kwnames
[] = { "self","name","flags", NULL
};
2448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2458 #if PYTHON_API_VERSION >= 1009
2459 char* tmpPtr
; int tmpSize
;
2460 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2461 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2464 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2466 _arg1
= new wxString(tmpPtr
, tmpSize
);
2468 if (!PyString_Check(_obj1
)) {
2469 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2472 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2476 wxPy_BEGIN_ALLOW_THREADS
;
2477 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2479 wxPy_END_ALLOW_THREADS
;
2480 if (PyErr_Occurred()) return NULL
;
2481 } _resultobj
= Py_BuildValue("i",_result
);
2489 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2490 static PyObject
*_wrap_wxIcon_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2491 PyObject
* _resultobj
;
2494 PyObject
* _argo0
= 0;
2495 char *_kwnames
[] = { "self", NULL
};
2498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHandle",_kwnames
,&_argo0
))
2501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2508 wxPy_BEGIN_ALLOW_THREADS
;
2509 _result
= (long )wxIcon_GetHandle(_arg0
);
2511 wxPy_END_ALLOW_THREADS
;
2512 if (PyErr_Occurred()) return NULL
;
2513 } _resultobj
= Py_BuildValue("l",_result
);
2517 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2518 static PyObject
*_wrap_wxIcon_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2519 PyObject
* _resultobj
;
2522 PyObject
* _argo0
= 0;
2523 char *_kwnames
[] = { "self","handle", NULL
};
2526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxIcon_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2536 wxPy_BEGIN_ALLOW_THREADS
;
2537 wxIcon_SetHandle(_arg0
,_arg1
);
2539 wxPy_END_ALLOW_THREADS
;
2540 if (PyErr_Occurred()) return NULL
;
2541 } Py_INCREF(Py_None
);
2542 _resultobj
= Py_None
;
2546 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2547 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2548 PyObject
* _resultobj
;
2551 PyObject
* _argo0
= 0;
2552 char *_kwnames
[] = { "self", NULL
};
2555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2565 wxPy_BEGIN_ALLOW_THREADS
;
2566 _result
= (bool )wxIcon_Ok(_arg0
);
2568 wxPy_END_ALLOW_THREADS
;
2569 if (PyErr_Occurred()) return NULL
;
2570 } _resultobj
= Py_BuildValue("i",_result
);
2574 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2575 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2576 PyObject
* _resultobj
;
2579 PyObject
* _argo0
= 0;
2580 char *_kwnames
[] = { "self", NULL
};
2583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2593 wxPy_BEGIN_ALLOW_THREADS
;
2594 _result
= (int )wxIcon_GetWidth(_arg0
);
2596 wxPy_END_ALLOW_THREADS
;
2597 if (PyErr_Occurred()) return NULL
;
2598 } _resultobj
= Py_BuildValue("i",_result
);
2602 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2603 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2604 PyObject
* _resultobj
;
2607 PyObject
* _argo0
= 0;
2608 char *_kwnames
[] = { "self", NULL
};
2611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2614 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2615 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2616 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2621 wxPy_BEGIN_ALLOW_THREADS
;
2622 _result
= (int )wxIcon_GetHeight(_arg0
);
2624 wxPy_END_ALLOW_THREADS
;
2625 if (PyErr_Occurred()) return NULL
;
2626 } _resultobj
= Py_BuildValue("i",_result
);
2630 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2631 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2632 PyObject
* _resultobj
;
2635 PyObject
* _argo0
= 0;
2636 char *_kwnames
[] = { "self", NULL
};
2639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2642 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2643 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2644 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2649 wxPy_BEGIN_ALLOW_THREADS
;
2650 _result
= (int )wxIcon_GetDepth(_arg0
);
2652 wxPy_END_ALLOW_THREADS
;
2653 if (PyErr_Occurred()) return NULL
;
2654 } _resultobj
= Py_BuildValue("i",_result
);
2658 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2659 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2660 PyObject
* _resultobj
;
2663 PyObject
* _argo0
= 0;
2664 char *_kwnames
[] = { "self","w", NULL
};
2667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2670 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2671 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2677 wxPy_BEGIN_ALLOW_THREADS
;
2678 wxIcon_SetWidth(_arg0
,_arg1
);
2680 wxPy_END_ALLOW_THREADS
;
2681 if (PyErr_Occurred()) return NULL
;
2682 } Py_INCREF(Py_None
);
2683 _resultobj
= Py_None
;
2687 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2688 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2689 PyObject
* _resultobj
;
2692 PyObject
* _argo0
= 0;
2693 char *_kwnames
[] = { "self","h", NULL
};
2696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2706 wxPy_BEGIN_ALLOW_THREADS
;
2707 wxIcon_SetHeight(_arg0
,_arg1
);
2709 wxPy_END_ALLOW_THREADS
;
2710 if (PyErr_Occurred()) return NULL
;
2711 } Py_INCREF(Py_None
);
2712 _resultobj
= Py_None
;
2716 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2717 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2718 PyObject
* _resultobj
;
2721 PyObject
* _argo0
= 0;
2722 char *_kwnames
[] = { "self","d", NULL
};
2725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2735 wxPy_BEGIN_ALLOW_THREADS
;
2736 wxIcon_SetDepth(_arg0
,_arg1
);
2738 wxPy_END_ALLOW_THREADS
;
2739 if (PyErr_Occurred()) return NULL
;
2740 } Py_INCREF(Py_None
);
2741 _resultobj
= Py_None
;
2745 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2746 static PyObject
*_wrap_wxIcon_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2747 PyObject
* _resultobj
;
2750 PyObject
* _argo0
= 0;
2752 PyObject
* _obj1
= 0;
2753 char *_kwnames
[] = { "self","size", NULL
};
2756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_SetSize",_kwnames
,&_argo0
,&_obj1
))
2759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2767 if (! wxSize_helper(_obj1
, &_arg1
))
2771 wxPy_BEGIN_ALLOW_THREADS
;
2772 wxIcon_SetSize(_arg0
,*_arg1
);
2774 wxPy_END_ALLOW_THREADS
;
2775 if (PyErr_Occurred()) return NULL
;
2776 } Py_INCREF(Py_None
);
2777 _resultobj
= Py_None
;
2781 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2782 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2783 PyObject
* _resultobj
;
2786 PyObject
* _argo0
= 0;
2787 PyObject
* _argo1
= 0;
2788 char *_kwnames
[] = { "self","bmp", NULL
};
2791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2794 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2795 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2801 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2802 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2808 wxPy_BEGIN_ALLOW_THREADS
;
2809 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2811 wxPy_END_ALLOW_THREADS
;
2812 if (PyErr_Occurred()) return NULL
;
2813 } Py_INCREF(Py_None
);
2814 _resultobj
= Py_None
;
2818 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2821 src
= (wxCursor
*) ptr
;
2822 dest
= (wxGDIObject
*) src
;
2823 return (void *) dest
;
2826 static void *SwigwxCursorTowxObject(void *ptr
) {
2829 src
= (wxCursor
*) ptr
;
2830 dest
= (wxObject
*) src
;
2831 return (void *) dest
;
2834 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2835 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2836 PyObject
* _resultobj
;
2840 int _arg2
= (int ) 0;
2841 int _arg3
= (int ) 0;
2842 PyObject
* _obj0
= 0;
2843 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
2847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2850 #if PYTHON_API_VERSION >= 1009
2851 char* tmpPtr
; int tmpSize
;
2852 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2853 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2856 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2858 _arg0
= new wxString(tmpPtr
, tmpSize
);
2860 if (!PyString_Check(_obj0
)) {
2861 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2864 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2868 wxPy_BEGIN_ALLOW_THREADS
;
2869 _result
= (wxCursor
*)new_wxCursor(*_arg0
,_arg1
,_arg2
,_arg3
);
2871 wxPy_END_ALLOW_THREADS
;
2872 if (PyErr_Occurred()) return NULL
;
2874 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
2875 _resultobj
= Py_BuildValue("s",_ptemp
);
2878 _resultobj
= Py_None
;
2887 #define delete_wxCursor(_swigobj) (delete _swigobj)
2888 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2889 PyObject
* _resultobj
;
2891 PyObject
* _argo0
= 0;
2892 char *_kwnames
[] = { "self", NULL
};
2895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2905 wxPy_BEGIN_ALLOW_THREADS
;
2906 delete_wxCursor(_arg0
);
2908 wxPy_END_ALLOW_THREADS
;
2909 if (PyErr_Occurred()) return NULL
;
2910 } Py_INCREF(Py_None
);
2911 _resultobj
= Py_None
;
2915 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2916 static PyObject
*_wrap_wxCursor_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2917 PyObject
* _resultobj
;
2920 PyObject
* _argo0
= 0;
2921 char *_kwnames
[] = { "self", NULL
};
2924 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHandle",_kwnames
,&_argo0
))
2927 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2928 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2929 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2934 wxPy_BEGIN_ALLOW_THREADS
;
2935 _result
= (long )wxCursor_GetHandle(_arg0
);
2937 wxPy_END_ALLOW_THREADS
;
2938 if (PyErr_Occurred()) return NULL
;
2939 } _resultobj
= Py_BuildValue("l",_result
);
2943 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2944 static PyObject
*_wrap_wxCursor_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2945 PyObject
* _resultobj
;
2948 PyObject
* _argo0
= 0;
2949 char *_kwnames
[] = { "self","handle", NULL
};
2952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxCursor_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2962 wxPy_BEGIN_ALLOW_THREADS
;
2963 wxCursor_SetHandle(_arg0
,_arg1
);
2965 wxPy_END_ALLOW_THREADS
;
2966 if (PyErr_Occurred()) return NULL
;
2967 } Py_INCREF(Py_None
);
2968 _resultobj
= Py_None
;
2972 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2973 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2974 PyObject
* _resultobj
;
2977 PyObject
* _argo0
= 0;
2978 char *_kwnames
[] = { "self", NULL
};
2981 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2984 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2985 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2991 wxPy_BEGIN_ALLOW_THREADS
;
2992 _result
= (bool )wxCursor_Ok(_arg0
);
2994 wxPy_END_ALLOW_THREADS
;
2995 if (PyErr_Occurred()) return NULL
;
2996 } _resultobj
= Py_BuildValue("i",_result
);
3000 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
3001 static PyObject
*_wrap_wxCursor_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3002 PyObject
* _resultobj
;
3005 PyObject
* _argo0
= 0;
3006 char *_kwnames
[] = { "self", NULL
};
3009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetWidth",_kwnames
,&_argo0
))
3012 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3013 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3014 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3019 wxPy_BEGIN_ALLOW_THREADS
;
3020 _result
= (int )wxCursor_GetWidth(_arg0
);
3022 wxPy_END_ALLOW_THREADS
;
3023 if (PyErr_Occurred()) return NULL
;
3024 } _resultobj
= Py_BuildValue("i",_result
);
3028 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3029 static PyObject
*_wrap_wxCursor_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3030 PyObject
* _resultobj
;
3033 PyObject
* _argo0
= 0;
3034 char *_kwnames
[] = { "self", NULL
};
3037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHeight",_kwnames
,&_argo0
))
3040 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3041 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3042 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3047 wxPy_BEGIN_ALLOW_THREADS
;
3048 _result
= (int )wxCursor_GetHeight(_arg0
);
3050 wxPy_END_ALLOW_THREADS
;
3051 if (PyErr_Occurred()) return NULL
;
3052 } _resultobj
= Py_BuildValue("i",_result
);
3056 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3057 static PyObject
*_wrap_wxCursor_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3058 PyObject
* _resultobj
;
3061 PyObject
* _argo0
= 0;
3062 char *_kwnames
[] = { "self", NULL
};
3065 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetDepth",_kwnames
,&_argo0
))
3068 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3069 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3070 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3075 wxPy_BEGIN_ALLOW_THREADS
;
3076 _result
= (int )wxCursor_GetDepth(_arg0
);
3078 wxPy_END_ALLOW_THREADS
;
3079 if (PyErr_Occurred()) return NULL
;
3080 } _resultobj
= Py_BuildValue("i",_result
);
3084 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3085 static PyObject
*_wrap_wxCursor_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3086 PyObject
* _resultobj
;
3089 PyObject
* _argo0
= 0;
3090 char *_kwnames
[] = { "self","w", NULL
};
3093 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3096 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3097 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3098 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3103 wxPy_BEGIN_ALLOW_THREADS
;
3104 wxCursor_SetWidth(_arg0
,_arg1
);
3106 wxPy_END_ALLOW_THREADS
;
3107 if (PyErr_Occurred()) return NULL
;
3108 } Py_INCREF(Py_None
);
3109 _resultobj
= Py_None
;
3113 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3114 static PyObject
*_wrap_wxCursor_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3115 PyObject
* _resultobj
;
3118 PyObject
* _argo0
= 0;
3119 char *_kwnames
[] = { "self","h", NULL
};
3122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetHeight",_kwnames
,&_argo0
,&_arg1
))
3125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3132 wxPy_BEGIN_ALLOW_THREADS
;
3133 wxCursor_SetHeight(_arg0
,_arg1
);
3135 wxPy_END_ALLOW_THREADS
;
3136 if (PyErr_Occurred()) return NULL
;
3137 } Py_INCREF(Py_None
);
3138 _resultobj
= Py_None
;
3142 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3143 static PyObject
*_wrap_wxCursor_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3144 PyObject
* _resultobj
;
3147 PyObject
* _argo0
= 0;
3148 char *_kwnames
[] = { "self","d", NULL
};
3151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetDepth",_kwnames
,&_argo0
,&_arg1
))
3154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3161 wxPy_BEGIN_ALLOW_THREADS
;
3162 wxCursor_SetDepth(_arg0
,_arg1
);
3164 wxPy_END_ALLOW_THREADS
;
3165 if (PyErr_Occurred()) return NULL
;
3166 } Py_INCREF(Py_None
);
3167 _resultobj
= Py_None
;
3171 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3172 static PyObject
*_wrap_wxCursor_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3173 PyObject
* _resultobj
;
3176 PyObject
* _argo0
= 0;
3178 PyObject
* _obj1
= 0;
3179 char *_kwnames
[] = { "self","size", NULL
};
3182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCursor_SetSize",_kwnames
,&_argo0
,&_obj1
))
3185 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3186 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3187 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3193 if (! wxSize_helper(_obj1
, &_arg1
))
3197 wxPy_BEGIN_ALLOW_THREADS
;
3198 wxCursor_SetSize(_arg0
,*_arg1
);
3200 wxPy_END_ALLOW_THREADS
;
3201 if (PyErr_Occurred()) return NULL
;
3202 } Py_INCREF(Py_None
);
3203 _resultobj
= Py_None
;
3207 static void *SwigwxFontTowxGDIObject(void *ptr
) {
3210 src
= (wxFont
*) ptr
;
3211 dest
= (wxGDIObject
*) src
;
3212 return (void *) dest
;
3215 static void *SwigwxFontTowxObject(void *ptr
) {
3218 src
= (wxFont
*) ptr
;
3219 dest
= (wxObject
*) src
;
3220 return (void *) dest
;
3223 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3224 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3225 PyObject
* _resultobj
;
3231 int _arg4
= (int ) FALSE
;
3232 char * _arg5
= (char *) "";
3233 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3234 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
3238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3241 wxPy_BEGIN_ALLOW_THREADS
;
3242 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3244 wxPy_END_ALLOW_THREADS
;
3245 if (PyErr_Occurred()) return NULL
;
3247 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3248 _resultobj
= Py_BuildValue("s",_ptemp
);
3251 _resultobj
= Py_None
;
3256 #define delete_wxFont(_swigobj) (delete _swigobj)
3257 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3258 PyObject
* _resultobj
;
3260 PyObject
* _argo0
= 0;
3261 char *_kwnames
[] = { "self", NULL
};
3264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3274 wxPy_BEGIN_ALLOW_THREADS
;
3275 delete_wxFont(_arg0
);
3277 wxPy_END_ALLOW_THREADS
;
3278 if (PyErr_Occurred()) return NULL
;
3279 } Py_INCREF(Py_None
);
3280 _resultobj
= Py_None
;
3284 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3285 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3286 PyObject
* _resultobj
;
3289 PyObject
* _argo0
= 0;
3290 char *_kwnames
[] = { "self", NULL
};
3293 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3296 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3297 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3303 wxPy_BEGIN_ALLOW_THREADS
;
3304 _result
= (bool )wxFont_Ok(_arg0
);
3306 wxPy_END_ALLOW_THREADS
;
3307 if (PyErr_Occurred()) return NULL
;
3308 } _resultobj
= Py_BuildValue("i",_result
);
3312 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3313 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3314 PyObject
* _resultobj
;
3317 PyObject
* _argo0
= 0;
3318 char *_kwnames
[] = { "self", NULL
};
3321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
3324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3331 wxPy_BEGIN_ALLOW_THREADS
;
3332 _result
= new wxString (wxFont_GetFaceName(_arg0
));
3334 wxPy_END_ALLOW_THREADS
;
3335 if (PyErr_Occurred()) return NULL
;
3337 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3345 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3346 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3347 PyObject
* _resultobj
;
3350 PyObject
* _argo0
= 0;
3351 char *_kwnames
[] = { "self", NULL
};
3354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3364 wxPy_BEGIN_ALLOW_THREADS
;
3365 _result
= (int )wxFont_GetFamily(_arg0
);
3367 wxPy_END_ALLOW_THREADS
;
3368 if (PyErr_Occurred()) return NULL
;
3369 } _resultobj
= Py_BuildValue("i",_result
);
3373 #define wxFont_GetFontId(_swigobj) (_swigobj->GetFontId())
3374 static PyObject
*_wrap_wxFont_GetFontId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3375 PyObject
* _resultobj
;
3378 PyObject
* _argo0
= 0;
3379 char *_kwnames
[] = { "self", NULL
};
3382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFontId",_kwnames
,&_argo0
))
3385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFontId. Expected _wxFont_p.");
3392 wxPy_BEGIN_ALLOW_THREADS
;
3393 _result
= (int )wxFont_GetFontId(_arg0
);
3395 wxPy_END_ALLOW_THREADS
;
3396 if (PyErr_Occurred()) return NULL
;
3397 } _resultobj
= Py_BuildValue("i",_result
);
3401 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3402 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3403 PyObject
* _resultobj
;
3406 PyObject
* _argo0
= 0;
3407 char *_kwnames
[] = { "self", NULL
};
3410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3420 wxPy_BEGIN_ALLOW_THREADS
;
3421 _result
= (int )wxFont_GetPointSize(_arg0
);
3423 wxPy_END_ALLOW_THREADS
;
3424 if (PyErr_Occurred()) return NULL
;
3425 } _resultobj
= Py_BuildValue("i",_result
);
3429 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3430 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3431 PyObject
* _resultobj
;
3434 PyObject
* _argo0
= 0;
3435 char *_kwnames
[] = { "self", NULL
};
3438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3448 wxPy_BEGIN_ALLOW_THREADS
;
3449 _result
= (int )wxFont_GetStyle(_arg0
);
3451 wxPy_END_ALLOW_THREADS
;
3452 if (PyErr_Occurred()) return NULL
;
3453 } _resultobj
= Py_BuildValue("i",_result
);
3457 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3458 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3459 PyObject
* _resultobj
;
3462 PyObject
* _argo0
= 0;
3463 char *_kwnames
[] = { "self", NULL
};
3466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
3469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3476 wxPy_BEGIN_ALLOW_THREADS
;
3477 _result
= (bool )wxFont_GetUnderlined(_arg0
);
3479 wxPy_END_ALLOW_THREADS
;
3480 if (PyErr_Occurred()) return NULL
;
3481 } _resultobj
= Py_BuildValue("i",_result
);
3485 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3486 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3487 PyObject
* _resultobj
;
3490 PyObject
* _argo0
= 0;
3491 char *_kwnames
[] = { "self", NULL
};
3494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
3497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3504 wxPy_BEGIN_ALLOW_THREADS
;
3505 _result
= (int )wxFont_GetWeight(_arg0
);
3507 wxPy_END_ALLOW_THREADS
;
3508 if (PyErr_Occurred()) return NULL
;
3509 } _resultobj
= Py_BuildValue("i",_result
);
3513 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3514 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3515 PyObject
* _resultobj
;
3516 wxFontEncoding _result
;
3518 PyObject
* _argo0
= 0;
3519 char *_kwnames
[] = { "self", NULL
};
3522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
3525 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3526 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3532 wxPy_BEGIN_ALLOW_THREADS
;
3533 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
3535 wxPy_END_ALLOW_THREADS
;
3536 if (PyErr_Occurred()) return NULL
;
3537 } _resultobj
= Py_BuildValue("i",_result
);
3541 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3542 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3543 PyObject
* _resultobj
;
3546 PyObject
* _argo0
= 0;
3547 PyObject
* _obj1
= 0;
3548 char *_kwnames
[] = { "self","faceName", NULL
};
3551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
3554 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3555 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
3561 #if PYTHON_API_VERSION >= 1009
3562 char* tmpPtr
; int tmpSize
;
3563 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3564 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3567 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3569 _arg1
= new wxString(tmpPtr
, tmpSize
);
3571 if (!PyString_Check(_obj1
)) {
3572 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3575 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3579 wxPy_BEGIN_ALLOW_THREADS
;
3580 wxFont_SetFaceName(_arg0
,*_arg1
);
3582 wxPy_END_ALLOW_THREADS
;
3583 if (PyErr_Occurred()) return NULL
;
3584 } Py_INCREF(Py_None
);
3585 _resultobj
= Py_None
;
3593 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3594 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3595 PyObject
* _resultobj
;
3598 PyObject
* _argo0
= 0;
3599 char *_kwnames
[] = { "self","family", NULL
};
3602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
3605 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3606 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
3612 wxPy_BEGIN_ALLOW_THREADS
;
3613 wxFont_SetFamily(_arg0
,_arg1
);
3615 wxPy_END_ALLOW_THREADS
;
3616 if (PyErr_Occurred()) return NULL
;
3617 } Py_INCREF(Py_None
);
3618 _resultobj
= Py_None
;
3622 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3623 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3624 PyObject
* _resultobj
;
3627 PyObject
* _argo0
= 0;
3628 char *_kwnames
[] = { "self","pointSize", NULL
};
3631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
3634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
3641 wxPy_BEGIN_ALLOW_THREADS
;
3642 wxFont_SetPointSize(_arg0
,_arg1
);
3644 wxPy_END_ALLOW_THREADS
;
3645 if (PyErr_Occurred()) return NULL
;
3646 } Py_INCREF(Py_None
);
3647 _resultobj
= Py_None
;
3651 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3652 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3653 PyObject
* _resultobj
;
3656 PyObject
* _argo0
= 0;
3657 char *_kwnames
[] = { "self","style", NULL
};
3660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
3670 wxPy_BEGIN_ALLOW_THREADS
;
3671 wxFont_SetStyle(_arg0
,_arg1
);
3673 wxPy_END_ALLOW_THREADS
;
3674 if (PyErr_Occurred()) return NULL
;
3675 } Py_INCREF(Py_None
);
3676 _resultobj
= Py_None
;
3680 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3681 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3682 PyObject
* _resultobj
;
3685 PyObject
* _argo0
= 0;
3687 char *_kwnames
[] = { "self","underlined", NULL
};
3690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
3693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
3699 _arg1
= (bool ) tempbool1
;
3701 wxPy_BEGIN_ALLOW_THREADS
;
3702 wxFont_SetUnderlined(_arg0
,_arg1
);
3704 wxPy_END_ALLOW_THREADS
;
3705 if (PyErr_Occurred()) return NULL
;
3706 } Py_INCREF(Py_None
);
3707 _resultobj
= Py_None
;
3711 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3712 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3713 PyObject
* _resultobj
;
3716 PyObject
* _argo0
= 0;
3717 char *_kwnames
[] = { "self","weight", NULL
};
3720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
3723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
3730 wxPy_BEGIN_ALLOW_THREADS
;
3731 wxFont_SetWeight(_arg0
,_arg1
);
3733 wxPy_END_ALLOW_THREADS
;
3734 if (PyErr_Occurred()) return NULL
;
3735 } Py_INCREF(Py_None
);
3736 _resultobj
= Py_None
;
3740 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3741 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3742 PyObject
* _resultobj
;
3744 wxFontEncoding _arg1
;
3745 PyObject
* _argo0
= 0;
3746 char *_kwnames
[] = { "self","encoding", NULL
};
3749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
3752 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3753 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
3759 wxPy_BEGIN_ALLOW_THREADS
;
3760 wxFont_SetEncoding(_arg0
,_arg1
);
3762 wxPy_END_ALLOW_THREADS
;
3763 if (PyErr_Occurred()) return NULL
;
3764 } Py_INCREF(Py_None
);
3765 _resultobj
= Py_None
;
3769 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
3770 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3771 PyObject
* _resultobj
;
3774 PyObject
* _argo0
= 0;
3775 char *_kwnames
[] = { "self", NULL
};
3778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
3781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
3788 wxPy_BEGIN_ALLOW_THREADS
;
3789 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
3791 wxPy_END_ALLOW_THREADS
;
3792 if (PyErr_Occurred()) return NULL
;
3794 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3802 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
3803 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3804 PyObject
* _resultobj
;
3807 PyObject
* _argo0
= 0;
3808 char *_kwnames
[] = { "self", NULL
};
3811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
3814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
3821 wxPy_BEGIN_ALLOW_THREADS
;
3822 _result
= new wxString (wxFont_GetStyleString(_arg0
));
3824 wxPy_END_ALLOW_THREADS
;
3825 if (PyErr_Occurred()) return NULL
;
3827 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3835 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
3836 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3837 PyObject
* _resultobj
;
3840 PyObject
* _argo0
= 0;
3841 char *_kwnames
[] = { "self", NULL
};
3844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
3847 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3848 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3849 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
3854 wxPy_BEGIN_ALLOW_THREADS
;
3855 _result
= new wxString (wxFont_GetWeightString(_arg0
));
3857 wxPy_END_ALLOW_THREADS
;
3858 if (PyErr_Occurred()) return NULL
;
3860 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3868 static void *SwigwxFontListTowxObject(void *ptr
) {
3871 src
= (wxFontList
*) ptr
;
3872 dest
= (wxObject
*) src
;
3873 return (void *) dest
;
3876 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
3877 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3878 PyObject
* _resultobj
;
3881 PyObject
* _argo0
= 0;
3882 PyObject
* _argo1
= 0;
3883 char *_kwnames
[] = { "self","font", NULL
};
3886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
3889 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3890 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
3896 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3897 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
3903 wxPy_BEGIN_ALLOW_THREADS
;
3904 wxFontList_AddFont(_arg0
,_arg1
);
3906 wxPy_END_ALLOW_THREADS
;
3907 if (PyErr_Occurred()) return NULL
;
3908 } Py_INCREF(Py_None
);
3909 _resultobj
= Py_None
;
3913 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3914 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3915 PyObject
* _resultobj
;
3922 bool _arg5
= (bool ) FALSE
;
3923 char * _arg6
= (char *) NULL
;
3924 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3925 PyObject
* _argo0
= 0;
3926 int tempbool5
= (int) FALSE
;
3927 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
3931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
3934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
3940 _arg5
= (bool ) tempbool5
;
3942 wxPy_BEGIN_ALLOW_THREADS
;
3943 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
3945 wxPy_END_ALLOW_THREADS
;
3946 if (PyErr_Occurred()) return NULL
;
3948 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3949 _resultobj
= Py_BuildValue("s",_ptemp
);
3952 _resultobj
= Py_None
;
3957 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
3958 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3959 PyObject
* _resultobj
;
3962 PyObject
* _argo0
= 0;
3963 PyObject
* _argo1
= 0;
3964 char *_kwnames
[] = { "self","font", NULL
};
3967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
3970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
3977 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3978 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
3984 wxPy_BEGIN_ALLOW_THREADS
;
3985 wxFontList_RemoveFont(_arg0
,_arg1
);
3987 wxPy_END_ALLOW_THREADS
;
3988 if (PyErr_Occurred()) return NULL
;
3989 } Py_INCREF(Py_None
);
3990 _resultobj
= Py_None
;
3994 static void *SwigwxColourTowxObject(void *ptr
) {
3997 src
= (wxColour
*) ptr
;
3998 dest
= (wxObject
*) src
;
3999 return (void *) dest
;
4002 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4003 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4004 PyObject
* _resultobj
;
4006 unsigned char _arg0
= (unsigned char ) 0;
4007 unsigned char _arg1
= (unsigned char ) 0;
4008 unsigned char _arg2
= (unsigned char ) 0;
4009 char *_kwnames
[] = { "red","green","blue", NULL
};
4013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
4016 wxPy_BEGIN_ALLOW_THREADS
;
4017 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
4019 wxPy_END_ALLOW_THREADS
;
4020 if (PyErr_Occurred()) return NULL
;
4022 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4023 _resultobj
= Py_BuildValue("s",_ptemp
);
4026 _resultobj
= Py_None
;
4031 #define delete_wxColour(_swigobj) (delete _swigobj)
4032 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4033 PyObject
* _resultobj
;
4036 PyObject
* _obj0
= 0;
4037 char *_kwnames
[] = { "self", NULL
};
4040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
4044 if (! wxColour_helper(_obj0
, &_arg0
))
4048 wxPy_BEGIN_ALLOW_THREADS
;
4049 delete_wxColour(_arg0
);
4051 wxPy_END_ALLOW_THREADS
;
4052 if (PyErr_Occurred()) return NULL
;
4053 } Py_INCREF(Py_None
);
4054 _resultobj
= Py_None
;
4058 #define wxColour_Red(_swigobj) (_swigobj->Red())
4059 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4060 PyObject
* _resultobj
;
4061 unsigned char _result
;
4064 PyObject
* _obj0
= 0;
4065 char *_kwnames
[] = { "self", NULL
};
4068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
4072 if (! wxColour_helper(_obj0
, &_arg0
))
4076 wxPy_BEGIN_ALLOW_THREADS
;
4077 _result
= (unsigned char )wxColour_Red(_arg0
);
4079 wxPy_END_ALLOW_THREADS
;
4080 if (PyErr_Occurred()) return NULL
;
4081 } _resultobj
= Py_BuildValue("b",_result
);
4085 #define wxColour_Green(_swigobj) (_swigobj->Green())
4086 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4087 PyObject
* _resultobj
;
4088 unsigned char _result
;
4091 PyObject
* _obj0
= 0;
4092 char *_kwnames
[] = { "self", NULL
};
4095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
4099 if (! wxColour_helper(_obj0
, &_arg0
))
4103 wxPy_BEGIN_ALLOW_THREADS
;
4104 _result
= (unsigned char )wxColour_Green(_arg0
);
4106 wxPy_END_ALLOW_THREADS
;
4107 if (PyErr_Occurred()) return NULL
;
4108 } _resultobj
= Py_BuildValue("b",_result
);
4112 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4113 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4114 PyObject
* _resultobj
;
4115 unsigned char _result
;
4118 PyObject
* _obj0
= 0;
4119 char *_kwnames
[] = { "self", NULL
};
4122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
4126 if (! wxColour_helper(_obj0
, &_arg0
))
4130 wxPy_BEGIN_ALLOW_THREADS
;
4131 _result
= (unsigned char )wxColour_Blue(_arg0
);
4133 wxPy_END_ALLOW_THREADS
;
4134 if (PyErr_Occurred()) return NULL
;
4135 } _resultobj
= Py_BuildValue("b",_result
);
4139 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4140 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4141 PyObject
* _resultobj
;
4145 PyObject
* _obj0
= 0;
4146 char *_kwnames
[] = { "self", NULL
};
4149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
4153 if (! wxColour_helper(_obj0
, &_arg0
))
4157 wxPy_BEGIN_ALLOW_THREADS
;
4158 _result
= (bool )wxColour_Ok(_arg0
);
4160 wxPy_END_ALLOW_THREADS
;
4161 if (PyErr_Occurred()) return NULL
;
4162 } _resultobj
= Py_BuildValue("i",_result
);
4166 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4167 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4168 PyObject
* _resultobj
;
4170 unsigned char _arg1
;
4171 unsigned char _arg2
;
4172 unsigned char _arg3
;
4174 PyObject
* _obj0
= 0;
4175 char *_kwnames
[] = { "self","red","green","blue", NULL
};
4178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
4182 if (! wxColour_helper(_obj0
, &_arg0
))
4186 wxPy_BEGIN_ALLOW_THREADS
;
4187 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
4189 wxPy_END_ALLOW_THREADS
;
4190 if (PyErr_Occurred()) return NULL
;
4191 } Py_INCREF(Py_None
);
4192 _resultobj
= Py_None
;
4196 static PyObject
* wxColour_Get(wxColour
*self
) {
4197 PyObject
* rv
= PyTuple_New(3);
4198 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
4199 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
4200 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
4203 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4204 PyObject
* _resultobj
;
4208 PyObject
* _obj0
= 0;
4209 char *_kwnames
[] = { "self", NULL
};
4212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
4216 if (! wxColour_helper(_obj0
, &_arg0
))
4220 wxPy_BEGIN_ALLOW_THREADS
;
4221 _result
= (PyObject
*)wxColour_Get(_arg0
);
4223 wxPy_END_ALLOW_THREADS
;
4224 if (PyErr_Occurred()) return NULL
;
4226 _resultobj
= _result
;
4231 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4232 wxColourDatabase
*src
;
4234 src
= (wxColourDatabase
*) ptr
;
4235 dest
= (wxObject
*) src
;
4236 return (void *) dest
;
4239 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4240 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4241 PyObject
* _resultobj
;
4243 wxColourDatabase
* _arg0
;
4245 PyObject
* _argo0
= 0;
4246 PyObject
* _obj1
= 0;
4247 char *_kwnames
[] = { "self","colour", NULL
};
4251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
4254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4261 #if PYTHON_API_VERSION >= 1009
4262 char* tmpPtr
; int tmpSize
;
4263 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4264 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4267 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4269 _arg1
= new wxString(tmpPtr
, tmpSize
);
4271 if (!PyString_Check(_obj1
)) {
4272 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4275 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4279 wxPy_BEGIN_ALLOW_THREADS
;
4280 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
4282 wxPy_END_ALLOW_THREADS
;
4283 if (PyErr_Occurred()) return NULL
;
4285 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4286 _resultobj
= Py_BuildValue("s",_ptemp
);
4289 _resultobj
= Py_None
;
4298 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4299 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4300 PyObject
* _resultobj
;
4302 wxColourDatabase
* _arg0
;
4304 PyObject
* _argo0
= 0;
4306 PyObject
* _obj1
= 0;
4307 char *_kwnames
[] = { "self","colour", NULL
};
4310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
4313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
4321 if (! wxColour_helper(_obj1
, &_arg1
))
4325 wxPy_BEGIN_ALLOW_THREADS
;
4326 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
4328 wxPy_END_ALLOW_THREADS
;
4329 if (PyErr_Occurred()) return NULL
;
4331 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4339 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
4340 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
4342 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4343 PyObject
* _resultobj
;
4344 wxColourDatabase
* _arg0
;
4349 PyObject
* _argo0
= 0;
4350 PyObject
* _obj1
= 0;
4351 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
4354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4364 #if PYTHON_API_VERSION >= 1009
4365 char* tmpPtr
; int tmpSize
;
4366 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4367 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4370 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4372 _arg1
= new wxString(tmpPtr
, tmpSize
);
4374 if (!PyString_Check(_obj1
)) {
4375 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4378 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4382 wxPy_BEGIN_ALLOW_THREADS
;
4383 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
4385 wxPy_END_ALLOW_THREADS
;
4386 if (PyErr_Occurred()) return NULL
;
4387 } Py_INCREF(Py_None
);
4388 _resultobj
= Py_None
;
4396 static void *SwigwxPenTowxGDIObject(void *ptr
) {
4399 src
= (wxPen
*) ptr
;
4400 dest
= (wxGDIObject
*) src
;
4401 return (void *) dest
;
4404 static void *SwigwxPenTowxObject(void *ptr
) {
4407 src
= (wxPen
*) ptr
;
4408 dest
= (wxObject
*) src
;
4409 return (void *) dest
;
4412 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4413 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4414 PyObject
* _resultobj
;
4417 int _arg1
= (int ) 1;
4418 int _arg2
= (int ) wxSOLID
;
4420 PyObject
* _obj0
= 0;
4421 char *_kwnames
[] = { "colour","width","style", NULL
};
4425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4429 if (! wxColour_helper(_obj0
, &_arg0
))
4433 wxPy_BEGIN_ALLOW_THREADS
;
4434 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
4436 wxPy_END_ALLOW_THREADS
;
4437 if (PyErr_Occurred()) return NULL
;
4439 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4440 _resultobj
= Py_BuildValue("s",_ptemp
);
4443 _resultobj
= Py_None
;
4448 #define delete_wxPen(_swigobj) (delete _swigobj)
4449 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4450 PyObject
* _resultobj
;
4452 PyObject
* _argo0
= 0;
4453 char *_kwnames
[] = { "self", NULL
};
4456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
4459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4466 wxPy_BEGIN_ALLOW_THREADS
;
4467 delete_wxPen(_arg0
);
4469 wxPy_END_ALLOW_THREADS
;
4470 if (PyErr_Occurred()) return NULL
;
4471 } Py_INCREF(Py_None
);
4472 _resultobj
= Py_None
;
4476 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4477 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4478 PyObject
* _resultobj
;
4481 PyObject
* _argo0
= 0;
4482 char *_kwnames
[] = { "self", NULL
};
4485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
4488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4495 wxPy_BEGIN_ALLOW_THREADS
;
4496 _result
= (int )wxPen_GetCap(_arg0
);
4498 wxPy_END_ALLOW_THREADS
;
4499 if (PyErr_Occurred()) return NULL
;
4500 } _resultobj
= Py_BuildValue("i",_result
);
4504 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4505 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4506 PyObject
* _resultobj
;
4509 PyObject
* _argo0
= 0;
4510 char *_kwnames
[] = { "self", NULL
};
4514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
4517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4524 wxPy_BEGIN_ALLOW_THREADS
;
4525 _result
= new wxColour (wxPen_GetColour(_arg0
));
4527 wxPy_END_ALLOW_THREADS
;
4528 if (PyErr_Occurred()) return NULL
;
4529 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4530 _resultobj
= Py_BuildValue("s",_ptemp
);
4534 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
4535 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4536 PyObject
* _resultobj
;
4539 PyObject
* _argo0
= 0;
4540 char *_kwnames
[] = { "self", NULL
};
4543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
4546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4553 wxPy_BEGIN_ALLOW_THREADS
;
4554 _result
= (int )wxPen_GetJoin(_arg0
);
4556 wxPy_END_ALLOW_THREADS
;
4557 if (PyErr_Occurred()) return NULL
;
4558 } _resultobj
= Py_BuildValue("i",_result
);
4562 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
4563 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4564 PyObject
* _resultobj
;
4567 PyObject
* _argo0
= 0;
4568 char *_kwnames
[] = { "self", NULL
};
4571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
4574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4581 wxPy_BEGIN_ALLOW_THREADS
;
4582 _result
= (int )wxPen_GetStyle(_arg0
);
4584 wxPy_END_ALLOW_THREADS
;
4585 if (PyErr_Occurred()) return NULL
;
4586 } _resultobj
= Py_BuildValue("i",_result
);
4590 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
4591 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4592 PyObject
* _resultobj
;
4595 PyObject
* _argo0
= 0;
4596 char *_kwnames
[] = { "self", NULL
};
4599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
4602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
4609 wxPy_BEGIN_ALLOW_THREADS
;
4610 _result
= (int )wxPen_GetWidth(_arg0
);
4612 wxPy_END_ALLOW_THREADS
;
4613 if (PyErr_Occurred()) return NULL
;
4614 } _resultobj
= Py_BuildValue("i",_result
);
4618 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
4619 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4620 PyObject
* _resultobj
;
4623 PyObject
* _argo0
= 0;
4624 char *_kwnames
[] = { "self", NULL
};
4627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
4630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
4637 wxPy_BEGIN_ALLOW_THREADS
;
4638 _result
= (bool )wxPen_Ok(_arg0
);
4640 wxPy_END_ALLOW_THREADS
;
4641 if (PyErr_Occurred()) return NULL
;
4642 } _resultobj
= Py_BuildValue("i",_result
);
4646 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
4647 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4648 PyObject
* _resultobj
;
4651 PyObject
* _argo0
= 0;
4652 char *_kwnames
[] = { "self","cap_style", NULL
};
4655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
4658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4665 wxPy_BEGIN_ALLOW_THREADS
;
4666 wxPen_SetCap(_arg0
,_arg1
);
4668 wxPy_END_ALLOW_THREADS
;
4669 if (PyErr_Occurred()) return NULL
;
4670 } Py_INCREF(Py_None
);
4671 _resultobj
= Py_None
;
4675 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4676 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4677 PyObject
* _resultobj
;
4680 PyObject
* _argo0
= 0;
4682 PyObject
* _obj1
= 0;
4683 char *_kwnames
[] = { "self","colour", NULL
};
4686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
4689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4697 if (! wxColour_helper(_obj1
, &_arg1
))
4701 wxPy_BEGIN_ALLOW_THREADS
;
4702 wxPen_SetColour(_arg0
,*_arg1
);
4704 wxPy_END_ALLOW_THREADS
;
4705 if (PyErr_Occurred()) return NULL
;
4706 } Py_INCREF(Py_None
);
4707 _resultobj
= Py_None
;
4711 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4712 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4713 PyObject
* _resultobj
;
4716 PyObject
* _argo0
= 0;
4717 char *_kwnames
[] = { "self","join_style", NULL
};
4720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
4723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4730 wxPy_BEGIN_ALLOW_THREADS
;
4731 wxPen_SetJoin(_arg0
,_arg1
);
4733 wxPy_END_ALLOW_THREADS
;
4734 if (PyErr_Occurred()) return NULL
;
4735 } Py_INCREF(Py_None
);
4736 _resultobj
= Py_None
;
4740 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4741 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4742 PyObject
* _resultobj
;
4745 PyObject
* _argo0
= 0;
4746 char *_kwnames
[] = { "self","style", NULL
};
4749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4752 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4753 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4759 wxPy_BEGIN_ALLOW_THREADS
;
4760 wxPen_SetStyle(_arg0
,_arg1
);
4762 wxPy_END_ALLOW_THREADS
;
4763 if (PyErr_Occurred()) return NULL
;
4764 } Py_INCREF(Py_None
);
4765 _resultobj
= Py_None
;
4769 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4770 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4771 PyObject
* _resultobj
;
4774 PyObject
* _argo0
= 0;
4775 char *_kwnames
[] = { "self","width", NULL
};
4778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4788 wxPy_BEGIN_ALLOW_THREADS
;
4789 wxPen_SetWidth(_arg0
,_arg1
);
4791 wxPy_END_ALLOW_THREADS
;
4792 if (PyErr_Occurred()) return NULL
;
4793 } Py_INCREF(Py_None
);
4794 _resultobj
= Py_None
;
4798 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
4799 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4800 PyObject
* _resultobj
;
4804 PyObject
* _argo0
= 0;
4805 PyObject
* _argo1
= 0;
4806 char *_kwnames
[] = { "self","dashes", NULL
};
4809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_GetDashes",_kwnames
,&_argo0
,&_argo1
))
4812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4819 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4820 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDash_pp")) {
4821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
4826 wxPy_BEGIN_ALLOW_THREADS
;
4827 _result
= (int )wxPen_GetDashes(_arg0
,_arg1
);
4829 wxPy_END_ALLOW_THREADS
;
4830 if (PyErr_Occurred()) return NULL
;
4831 } _resultobj
= Py_BuildValue("i",_result
);
4835 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4836 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4837 PyObject
* _resultobj
;
4841 PyObject
* _argo0
= 0;
4842 PyObject
* _obj2
= 0;
4843 char *_kwnames
[] = { "self","choices", NULL
};
4846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4857 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4858 if (_arg2
== NULL
) {
4864 _arg1
= PyList_Size(_obj2
);
4871 wxPy_BEGIN_ALLOW_THREADS
;
4872 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4874 wxPy_END_ALLOW_THREADS
;
4875 if (PyErr_Occurred()) return NULL
;
4876 } Py_INCREF(Py_None
);
4877 _resultobj
= Py_None
;
4884 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
4885 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4886 PyObject
* _resultobj
;
4889 PyObject
* _argo0
= 0;
4890 char *_kwnames
[] = { "self", NULL
};
4894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
4897 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4898 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
4904 wxPy_BEGIN_ALLOW_THREADS
;
4905 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
4907 wxPy_END_ALLOW_THREADS
;
4908 if (PyErr_Occurred()) return NULL
;
4910 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4911 _resultobj
= Py_BuildValue("s",_ptemp
);
4914 _resultobj
= Py_None
;
4919 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4920 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4921 PyObject
* _resultobj
;
4924 PyObject
* _argo0
= 0;
4925 PyObject
* _argo1
= 0;
4926 char *_kwnames
[] = { "self","stipple", NULL
};
4929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4932 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4933 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
4939 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4940 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4941 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
4946 wxPy_BEGIN_ALLOW_THREADS
;
4947 wxPen_SetStipple(_arg0
,*_arg1
);
4949 wxPy_END_ALLOW_THREADS
;
4950 if (PyErr_Occurred()) return NULL
;
4951 } Py_INCREF(Py_None
);
4952 _resultobj
= Py_None
;
4956 static void *SwigwxPenListTowxObject(void *ptr
) {
4959 src
= (wxPenList
*) ptr
;
4960 dest
= (wxObject
*) src
;
4961 return (void *) dest
;
4964 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4965 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4966 PyObject
* _resultobj
;
4969 PyObject
* _argo0
= 0;
4970 PyObject
* _argo1
= 0;
4971 char *_kwnames
[] = { "self","pen", NULL
};
4974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
4977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4984 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4985 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4991 wxPy_BEGIN_ALLOW_THREADS
;
4992 wxPenList_AddPen(_arg0
,_arg1
);
4994 wxPy_END_ALLOW_THREADS
;
4995 if (PyErr_Occurred()) return NULL
;
4996 } Py_INCREF(Py_None
);
4997 _resultobj
= Py_None
;
5001 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5002 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5003 PyObject
* _resultobj
;
5009 PyObject
* _argo0
= 0;
5011 PyObject
* _obj1
= 0;
5012 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5019 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5020 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5027 if (! wxColour_helper(_obj1
, &_arg1
))
5031 wxPy_BEGIN_ALLOW_THREADS
;
5032 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5034 wxPy_END_ALLOW_THREADS
;
5035 if (PyErr_Occurred()) return NULL
;
5037 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5038 _resultobj
= Py_BuildValue("s",_ptemp
);
5041 _resultobj
= Py_None
;
5046 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5047 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5048 PyObject
* _resultobj
;
5051 PyObject
* _argo0
= 0;
5052 PyObject
* _argo1
= 0;
5053 char *_kwnames
[] = { "self","pen", NULL
};
5056 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5059 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5060 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5066 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5067 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5068 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5073 wxPy_BEGIN_ALLOW_THREADS
;
5074 wxPenList_RemovePen(_arg0
,_arg1
);
5076 wxPy_END_ALLOW_THREADS
;
5077 if (PyErr_Occurred()) return NULL
;
5078 } Py_INCREF(Py_None
);
5079 _resultobj
= Py_None
;
5083 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5086 src
= (wxBrush
*) ptr
;
5087 dest
= (wxGDIObject
*) src
;
5088 return (void *) dest
;
5091 static void *SwigwxBrushTowxObject(void *ptr
) {
5094 src
= (wxBrush
*) ptr
;
5095 dest
= (wxObject
*) src
;
5096 return (void *) dest
;
5099 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5100 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5101 PyObject
* _resultobj
;
5104 int _arg1
= (int ) wxSOLID
;
5106 PyObject
* _obj0
= 0;
5107 char *_kwnames
[] = { "colour","style", NULL
};
5111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5115 if (! wxColour_helper(_obj0
, &_arg0
))
5119 wxPy_BEGIN_ALLOW_THREADS
;
5120 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5122 wxPy_END_ALLOW_THREADS
;
5123 if (PyErr_Occurred()) return NULL
;
5125 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5126 _resultobj
= Py_BuildValue("s",_ptemp
);
5129 _resultobj
= Py_None
;
5134 #define delete_wxBrush(_swigobj) (delete _swigobj)
5135 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5136 PyObject
* _resultobj
;
5138 PyObject
* _argo0
= 0;
5139 char *_kwnames
[] = { "self", NULL
};
5142 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5145 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5146 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5147 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5152 wxPy_BEGIN_ALLOW_THREADS
;
5153 delete_wxBrush(_arg0
);
5155 wxPy_END_ALLOW_THREADS
;
5156 if (PyErr_Occurred()) return NULL
;
5157 } Py_INCREF(Py_None
);
5158 _resultobj
= Py_None
;
5162 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5163 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5164 PyObject
* _resultobj
;
5167 PyObject
* _argo0
= 0;
5168 char *_kwnames
[] = { "self", NULL
};
5172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5182 wxPy_BEGIN_ALLOW_THREADS
;
5183 _result
= new wxColour (wxBrush_GetColour(_arg0
));
5185 wxPy_END_ALLOW_THREADS
;
5186 if (PyErr_Occurred()) return NULL
;
5187 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5188 _resultobj
= Py_BuildValue("s",_ptemp
);
5192 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5193 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5194 PyObject
* _resultobj
;
5197 PyObject
* _argo0
= 0;
5198 char *_kwnames
[] = { "self", NULL
};
5202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
5205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5212 wxPy_BEGIN_ALLOW_THREADS
;
5213 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
5215 wxPy_END_ALLOW_THREADS
;
5216 if (PyErr_Occurred()) return NULL
;
5218 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5219 _resultobj
= Py_BuildValue("s",_ptemp
);
5222 _resultobj
= Py_None
;
5227 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5228 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5229 PyObject
* _resultobj
;
5232 PyObject
* _argo0
= 0;
5233 char *_kwnames
[] = { "self", NULL
};
5236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
5239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5246 wxPy_BEGIN_ALLOW_THREADS
;
5247 _result
= (int )wxBrush_GetStyle(_arg0
);
5249 wxPy_END_ALLOW_THREADS
;
5250 if (PyErr_Occurred()) return NULL
;
5251 } _resultobj
= Py_BuildValue("i",_result
);
5255 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5256 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5257 PyObject
* _resultobj
;
5260 PyObject
* _argo0
= 0;
5261 char *_kwnames
[] = { "self", NULL
};
5264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
5267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5274 wxPy_BEGIN_ALLOW_THREADS
;
5275 _result
= (bool )wxBrush_Ok(_arg0
);
5277 wxPy_END_ALLOW_THREADS
;
5278 if (PyErr_Occurred()) return NULL
;
5279 } _resultobj
= Py_BuildValue("i",_result
);
5283 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5284 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5285 PyObject
* _resultobj
;
5288 PyObject
* _argo0
= 0;
5290 PyObject
* _obj1
= 0;
5291 char *_kwnames
[] = { "self","colour", NULL
};
5294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
5297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5305 if (! wxColour_helper(_obj1
, &_arg1
))
5309 wxPy_BEGIN_ALLOW_THREADS
;
5310 wxBrush_SetColour(_arg0
,*_arg1
);
5312 wxPy_END_ALLOW_THREADS
;
5313 if (PyErr_Occurred()) return NULL
;
5314 } Py_INCREF(Py_None
);
5315 _resultobj
= Py_None
;
5319 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5320 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5321 PyObject
* _resultobj
;
5324 PyObject
* _argo0
= 0;
5325 PyObject
* _argo1
= 0;
5326 char *_kwnames
[] = { "self","bitmap", NULL
};
5329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5332 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5333 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5339 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5340 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5346 wxPy_BEGIN_ALLOW_THREADS
;
5347 wxBrush_SetStipple(_arg0
,*_arg1
);
5349 wxPy_END_ALLOW_THREADS
;
5350 if (PyErr_Occurred()) return NULL
;
5351 } Py_INCREF(Py_None
);
5352 _resultobj
= Py_None
;
5356 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5357 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5358 PyObject
* _resultobj
;
5361 PyObject
* _argo0
= 0;
5362 char *_kwnames
[] = { "self","style", NULL
};
5365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5368 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5369 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5370 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5375 wxPy_BEGIN_ALLOW_THREADS
;
5376 wxBrush_SetStyle(_arg0
,_arg1
);
5378 wxPy_END_ALLOW_THREADS
;
5379 if (PyErr_Occurred()) return NULL
;
5380 } Py_INCREF(Py_None
);
5381 _resultobj
= Py_None
;
5385 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5386 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5387 PyObject
* _resultobj
;
5388 wxBrushList
* _arg0
;
5390 PyObject
* _argo0
= 0;
5391 PyObject
* _argo1
= 0;
5392 char *_kwnames
[] = { "self","brush", NULL
};
5395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
5398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5405 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5406 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5412 wxPy_BEGIN_ALLOW_THREADS
;
5413 wxBrushList_AddBrush(_arg0
,_arg1
);
5415 wxPy_END_ALLOW_THREADS
;
5416 if (PyErr_Occurred()) return NULL
;
5417 } Py_INCREF(Py_None
);
5418 _resultobj
= Py_None
;
5422 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5423 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5424 PyObject
* _resultobj
;
5426 wxBrushList
* _arg0
;
5429 PyObject
* _argo0
= 0;
5431 PyObject
* _obj1
= 0;
5432 char *_kwnames
[] = { "self","colour","style", NULL
};
5436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
5439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5447 if (! wxColour_helper(_obj1
, &_arg1
))
5451 wxPy_BEGIN_ALLOW_THREADS
;
5452 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
5454 wxPy_END_ALLOW_THREADS
;
5455 if (PyErr_Occurred()) return NULL
;
5457 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5458 _resultobj
= Py_BuildValue("s",_ptemp
);
5461 _resultobj
= Py_None
;
5466 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5467 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5468 PyObject
* _resultobj
;
5469 wxBrushList
* _arg0
;
5471 PyObject
* _argo0
= 0;
5472 PyObject
* _argo1
= 0;
5473 char *_kwnames
[] = { "self","brush", NULL
};
5476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
5479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5486 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5487 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5493 wxPy_BEGIN_ALLOW_THREADS
;
5494 wxBrushList_RemoveBrush(_arg0
,_arg1
);
5496 wxPy_END_ALLOW_THREADS
;
5497 if (PyErr_Occurred()) return NULL
;
5498 } Py_INCREF(Py_None
);
5499 _resultobj
= Py_None
;
5503 static void *SwigwxDCTowxObject(void *ptr
) {
5507 dest
= (wxObject
*) src
;
5508 return (void *) dest
;
5511 #define delete_wxDC(_swigobj) (delete _swigobj)
5512 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5513 PyObject
* _resultobj
;
5515 PyObject
* _argo0
= 0;
5516 char *_kwnames
[] = { "self", NULL
};
5519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
5522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5529 wxPy_BEGIN_ALLOW_THREADS
;
5532 wxPy_END_ALLOW_THREADS
;
5533 if (PyErr_Occurred()) return NULL
;
5534 } Py_INCREF(Py_None
);
5535 _resultobj
= Py_None
;
5539 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
5540 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5541 PyObject
* _resultobj
;
5543 PyObject
* _argo0
= 0;
5544 char *_kwnames
[] = { "self", NULL
};
5547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
5550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5557 wxPy_BEGIN_ALLOW_THREADS
;
5558 wxDC_BeginDrawing(_arg0
);
5560 wxPy_END_ALLOW_THREADS
;
5561 if (PyErr_Occurred()) return NULL
;
5562 } Py_INCREF(Py_None
);
5563 _resultobj
= Py_None
;
5567 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5568 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5569 PyObject
* _resultobj
;
5579 int _arg8
= (int ) wxCOPY
;
5580 int _arg9
= (int ) FALSE
;
5581 PyObject
* _argo0
= 0;
5582 PyObject
* _argo5
= 0;
5583 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
5586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
5589 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5590 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5591 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5596 if (_argo5
== Py_None
) { _arg5
= NULL
; }
5597 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
5598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5603 wxPy_BEGIN_ALLOW_THREADS
;
5604 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
5606 wxPy_END_ALLOW_THREADS
;
5607 if (PyErr_Occurred()) return NULL
;
5608 } _resultobj
= Py_BuildValue("i",_result
);
5612 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
5613 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5614 PyObject
* _resultobj
;
5616 PyObject
* _argo0
= 0;
5617 char *_kwnames
[] = { "self", NULL
};
5620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
5623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5630 wxPy_BEGIN_ALLOW_THREADS
;
5633 wxPy_END_ALLOW_THREADS
;
5634 if (PyErr_Occurred()) return NULL
;
5635 } Py_INCREF(Py_None
);
5636 _resultobj
= Py_None
;
5640 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5641 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5642 PyObject
* _resultobj
;
5646 PyObject
* _argo0
= 0;
5647 char *_kwnames
[] = { "self","x","y", NULL
};
5650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5653 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5654 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5660 wxPy_BEGIN_ALLOW_THREADS
;
5661 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
5663 wxPy_END_ALLOW_THREADS
;
5664 if (PyErr_Occurred()) return NULL
;
5665 } Py_INCREF(Py_None
);
5666 _resultobj
= Py_None
;
5670 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5671 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5672 PyObject
* _resultobj
;
5674 PyObject
* _argo0
= 0;
5675 char *_kwnames
[] = { "self", NULL
};
5678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
5681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5688 wxPy_BEGIN_ALLOW_THREADS
;
5689 wxDC_DestroyClippingRegion(_arg0
);
5691 wxPy_END_ALLOW_THREADS
;
5692 if (PyErr_Occurred()) return NULL
;
5693 } Py_INCREF(Py_None
);
5694 _resultobj
= Py_None
;
5698 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5699 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5700 PyObject
* _resultobj
;
5704 PyObject
* _argo0
= 0;
5705 char *_kwnames
[] = { "self","x", NULL
};
5708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
5711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5718 wxPy_BEGIN_ALLOW_THREADS
;
5719 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
5721 wxPy_END_ALLOW_THREADS
;
5722 if (PyErr_Occurred()) return NULL
;
5723 } _resultobj
= Py_BuildValue("l",_result
);
5727 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5728 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5729 PyObject
* _resultobj
;
5733 PyObject
* _argo0
= 0;
5734 char *_kwnames
[] = { "self","x", NULL
};
5737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
5740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5747 wxPy_BEGIN_ALLOW_THREADS
;
5748 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
5750 wxPy_END_ALLOW_THREADS
;
5751 if (PyErr_Occurred()) return NULL
;
5752 } _resultobj
= Py_BuildValue("l",_result
);
5756 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5757 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5758 PyObject
* _resultobj
;
5762 PyObject
* _argo0
= 0;
5763 char *_kwnames
[] = { "self","y", NULL
};
5766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
5769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5776 wxPy_BEGIN_ALLOW_THREADS
;
5777 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
5779 wxPy_END_ALLOW_THREADS
;
5780 if (PyErr_Occurred()) return NULL
;
5781 } _resultobj
= Py_BuildValue("l",_result
);
5785 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5786 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5787 PyObject
* _resultobj
;
5791 PyObject
* _argo0
= 0;
5792 char *_kwnames
[] = { "self","y", NULL
};
5795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
5798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5805 wxPy_BEGIN_ALLOW_THREADS
;
5806 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5808 wxPy_END_ALLOW_THREADS
;
5809 if (PyErr_Occurred()) return NULL
;
5810 } _resultobj
= Py_BuildValue("l",_result
);
5814 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5815 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5816 PyObject
* _resultobj
;
5824 PyObject
* _argo0
= 0;
5825 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5838 wxPy_BEGIN_ALLOW_THREADS
;
5839 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5841 wxPy_END_ALLOW_THREADS
;
5842 if (PyErr_Occurred()) return NULL
;
5843 } Py_INCREF(Py_None
);
5844 _resultobj
= Py_None
;
5848 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5849 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5850 PyObject
* _resultobj
;
5855 PyObject
* _argo0
= 0;
5856 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5869 wxPy_BEGIN_ALLOW_THREADS
;
5870 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
5872 wxPy_END_ALLOW_THREADS
;
5873 if (PyErr_Occurred()) return NULL
;
5874 } Py_INCREF(Py_None
);
5875 _resultobj
= Py_None
;
5879 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5880 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5881 PyObject
* _resultobj
;
5887 PyObject
* _argo0
= 0;
5888 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5901 wxPy_BEGIN_ALLOW_THREADS
;
5902 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5904 wxPy_END_ALLOW_THREADS
;
5905 if (PyErr_Occurred()) return NULL
;
5906 } Py_INCREF(Py_None
);
5907 _resultobj
= Py_None
;
5911 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5912 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5913 PyObject
* _resultobj
;
5921 PyObject
* _argo0
= 0;
5922 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
5925 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5928 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5929 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5930 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
5935 wxPy_BEGIN_ALLOW_THREADS
;
5936 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5938 wxPy_END_ALLOW_THREADS
;
5939 if (PyErr_Occurred()) return NULL
;
5940 } Py_INCREF(Py_None
);
5941 _resultobj
= Py_None
;
5945 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
5946 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5947 PyObject
* _resultobj
;
5952 PyObject
* _argo0
= 0;
5953 PyObject
* _argo1
= 0;
5954 char *_kwnames
[] = { "self","icon","x","y", NULL
};
5957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
5960 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5961 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5967 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5968 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
5969 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5974 wxPy_BEGIN_ALLOW_THREADS
;
5975 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
5977 wxPy_END_ALLOW_THREADS
;
5978 if (PyErr_Occurred()) return NULL
;
5979 } Py_INCREF(Py_None
);
5980 _resultobj
= Py_None
;
5984 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5985 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5986 PyObject
* _resultobj
;
5992 PyObject
* _argo0
= 0;
5993 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
5996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6006 wxPy_BEGIN_ALLOW_THREADS
;
6007 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6009 wxPy_END_ALLOW_THREADS
;
6010 if (PyErr_Occurred()) return NULL
;
6011 } Py_INCREF(Py_None
);
6012 _resultobj
= Py_None
;
6016 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6017 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6018 PyObject
* _resultobj
;
6022 long _arg3
= (long ) 0;
6023 long _arg4
= (long ) 0;
6024 PyObject
* _argo0
= 0;
6026 PyObject
* _obj2
= 0;
6027 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
6030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
6033 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6034 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6041 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6042 if (_arg2
== NULL
) {
6050 wxPy_BEGIN_ALLOW_THREADS
;
6051 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6053 wxPy_END_ALLOW_THREADS
;
6054 if (PyErr_Occurred()) return NULL
;
6055 } Py_INCREF(Py_None
);
6056 _resultobj
= Py_None
;
6063 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6064 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6065 PyObject
* _resultobj
;
6069 long _arg3
= (long ) 0;
6070 long _arg4
= (long ) 0;
6071 int _arg5
= (int ) wxODDEVEN_RULE
;
6072 PyObject
* _argo0
= 0;
6074 PyObject
* _obj2
= 0;
6075 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6089 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6090 if (_arg2
== NULL
) {
6098 wxPy_BEGIN_ALLOW_THREADS
;
6099 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6101 wxPy_END_ALLOW_THREADS
;
6102 if (PyErr_Occurred()) return NULL
;
6103 } Py_INCREF(Py_None
);
6104 _resultobj
= Py_None
;
6111 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6112 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6113 PyObject
* _resultobj
;
6117 PyObject
* _argo0
= 0;
6118 char *_kwnames
[] = { "self","x","y", NULL
};
6121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6131 wxPy_BEGIN_ALLOW_THREADS
;
6132 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6134 wxPy_END_ALLOW_THREADS
;
6135 if (PyErr_Occurred()) return NULL
;
6136 } Py_INCREF(Py_None
);
6137 _resultobj
= Py_None
;
6141 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6142 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6143 PyObject
* _resultobj
;
6149 PyObject
* _argo0
= 0;
6150 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6163 wxPy_BEGIN_ALLOW_THREADS
;
6164 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6166 wxPy_END_ALLOW_THREADS
;
6167 if (PyErr_Occurred()) return NULL
;
6168 } Py_INCREF(Py_None
);
6169 _resultobj
= Py_None
;
6173 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6174 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6175 PyObject
* _resultobj
;
6181 PyObject
* _argo0
= 0;
6182 PyObject
* _obj1
= 0;
6183 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6189 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6190 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6196 #if PYTHON_API_VERSION >= 1009
6197 char* tmpPtr
; int tmpSize
;
6198 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6199 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6202 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6204 _arg1
= new wxString(tmpPtr
, tmpSize
);
6206 if (!PyString_Check(_obj1
)) {
6207 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6210 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6214 wxPy_BEGIN_ALLOW_THREADS
;
6215 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
6217 wxPy_END_ALLOW_THREADS
;
6218 if (PyErr_Occurred()) return NULL
;
6219 } Py_INCREF(Py_None
);
6220 _resultobj
= Py_None
;
6228 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6229 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6230 PyObject
* _resultobj
;
6236 long _arg5
= (long ) 20;
6237 PyObject
* _argo0
= 0;
6238 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
6241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
6244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6251 wxPy_BEGIN_ALLOW_THREADS
;
6252 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6254 wxPy_END_ALLOW_THREADS
;
6255 if (PyErr_Occurred()) return NULL
;
6256 } Py_INCREF(Py_None
);
6257 _resultobj
= Py_None
;
6261 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
6262 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6263 PyObject
* _resultobj
;
6267 PyObject
* _argo0
= 0;
6269 PyObject
* _obj2
= 0;
6270 char *_kwnames
[] = { "self","points", NULL
};
6273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
6276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6284 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6285 if (_arg2
== NULL
) {
6293 wxPy_BEGIN_ALLOW_THREADS
;
6294 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
6296 wxPy_END_ALLOW_THREADS
;
6297 if (PyErr_Occurred()) return NULL
;
6298 } Py_INCREF(Py_None
);
6299 _resultobj
= Py_None
;
6306 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
6307 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6308 PyObject
* _resultobj
;
6313 PyObject
* _argo0
= 0;
6314 PyObject
* _obj1
= 0;
6315 char *_kwnames
[] = { "self","text","x","y", NULL
};
6318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
6321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6328 #if PYTHON_API_VERSION >= 1009
6329 char* tmpPtr
; int tmpSize
;
6330 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6331 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6334 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6336 _arg1
= new wxString(tmpPtr
, tmpSize
);
6338 if (!PyString_Check(_obj1
)) {
6339 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6342 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6346 wxPy_BEGIN_ALLOW_THREADS
;
6347 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
6349 wxPy_END_ALLOW_THREADS
;
6350 if (PyErr_Occurred()) return NULL
;
6351 } Py_INCREF(Py_None
);
6352 _resultobj
= Py_None
;
6360 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
6361 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6362 PyObject
* _resultobj
;
6364 PyObject
* _argo0
= 0;
6365 char *_kwnames
[] = { "self", NULL
};
6368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
6371 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6372 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6378 wxPy_BEGIN_ALLOW_THREADS
;
6381 wxPy_END_ALLOW_THREADS
;
6382 if (PyErr_Occurred()) return NULL
;
6383 } Py_INCREF(Py_None
);
6384 _resultobj
= Py_None
;
6388 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
6389 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6390 PyObject
* _resultobj
;
6392 PyObject
* _argo0
= 0;
6393 char *_kwnames
[] = { "self", NULL
};
6396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
6399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6406 wxPy_BEGIN_ALLOW_THREADS
;
6407 wxDC_EndDrawing(_arg0
);
6409 wxPy_END_ALLOW_THREADS
;
6410 if (PyErr_Occurred()) return NULL
;
6411 } Py_INCREF(Py_None
);
6412 _resultobj
= Py_None
;
6416 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
6417 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6418 PyObject
* _resultobj
;
6420 PyObject
* _argo0
= 0;
6421 char *_kwnames
[] = { "self", NULL
};
6424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
6427 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6428 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6434 wxPy_BEGIN_ALLOW_THREADS
;
6435 wxDC_EndPage(_arg0
);
6437 wxPy_END_ALLOW_THREADS
;
6438 if (PyErr_Occurred()) return NULL
;
6439 } Py_INCREF(Py_None
);
6440 _resultobj
= Py_None
;
6444 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6445 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6446 PyObject
* _resultobj
;
6451 int _arg4
= (int ) wxFLOOD_SURFACE
;
6452 PyObject
* _argo0
= 0;
6454 PyObject
* _obj3
= 0;
6455 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
6458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
6461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6469 if (! wxColour_helper(_obj3
, &_arg3
))
6473 wxPy_BEGIN_ALLOW_THREADS
;
6474 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
6476 wxPy_END_ALLOW_THREADS
;
6477 if (PyErr_Occurred()) return NULL
;
6478 } Py_INCREF(Py_None
);
6479 _resultobj
= Py_None
;
6483 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
6484 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6485 PyObject
* _resultobj
;
6488 PyObject
* _argo0
= 0;
6489 char *_kwnames
[] = { "self", NULL
};
6493 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
6496 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6497 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6498 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6503 wxPy_BEGIN_ALLOW_THREADS
;
6504 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
6505 _result
= (wxBrush
*) &_result_ref
;
6507 wxPy_END_ALLOW_THREADS
;
6508 if (PyErr_Occurred()) return NULL
;
6510 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6511 _resultobj
= Py_BuildValue("s",_ptemp
);
6514 _resultobj
= Py_None
;
6519 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
6520 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6521 PyObject
* _resultobj
;
6524 PyObject
* _argo0
= 0;
6525 char *_kwnames
[] = { "self", NULL
};
6529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
6532 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6533 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6534 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6539 wxPy_BEGIN_ALLOW_THREADS
;
6540 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
6541 _result
= (wxBrush
*) &_result_ref
;
6543 wxPy_END_ALLOW_THREADS
;
6544 if (PyErr_Occurred()) return NULL
;
6546 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6547 _resultobj
= Py_BuildValue("s",_ptemp
);
6550 _resultobj
= Py_None
;
6555 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
6556 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6557 PyObject
* _resultobj
;
6560 PyObject
* _argo0
= 0;
6561 char *_kwnames
[] = { "self", NULL
};
6564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
6567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6574 wxPy_BEGIN_ALLOW_THREADS
;
6575 _result
= (long )wxDC_GetCharHeight(_arg0
);
6577 wxPy_END_ALLOW_THREADS
;
6578 if (PyErr_Occurred()) return NULL
;
6579 } _resultobj
= Py_BuildValue("l",_result
);
6583 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
6584 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6585 PyObject
* _resultobj
;
6588 PyObject
* _argo0
= 0;
6589 char *_kwnames
[] = { "self", NULL
};
6592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
6595 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6596 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6602 wxPy_BEGIN_ALLOW_THREADS
;
6603 _result
= (long )wxDC_GetCharWidth(_arg0
);
6605 wxPy_END_ALLOW_THREADS
;
6606 if (PyErr_Occurred()) return NULL
;
6607 } _resultobj
= Py_BuildValue("l",_result
);
6611 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6612 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6613 PyObject
* _resultobj
;
6623 PyObject
* _argo0
= 0;
6624 char *_kwnames
[] = { "self", NULL
};
6639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
6642 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6643 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6644 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6649 wxPy_BEGIN_ALLOW_THREADS
;
6650 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6652 wxPy_END_ALLOW_THREADS
;
6653 if (PyErr_Occurred()) return NULL
;
6654 } Py_INCREF(Py_None
);
6655 _resultobj
= Py_None
;
6658 o
= PyInt_FromLong((long) (*_arg1
));
6659 _resultobj
= t_output_helper(_resultobj
, o
);
6663 o
= PyInt_FromLong((long) (*_arg2
));
6664 _resultobj
= t_output_helper(_resultobj
, o
);
6668 o
= PyInt_FromLong((long) (*_arg3
));
6669 _resultobj
= t_output_helper(_resultobj
, o
);
6673 o
= PyInt_FromLong((long) (*_arg4
));
6674 _resultobj
= t_output_helper(_resultobj
, o
);
6679 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6680 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6681 PyObject
* _resultobj
;
6684 PyObject
* _argo0
= 0;
6685 char *_kwnames
[] = { "self", NULL
};
6689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
6692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6699 wxPy_BEGIN_ALLOW_THREADS
;
6700 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
6701 _result
= (wxFont
*) &_result_ref
;
6703 wxPy_END_ALLOW_THREADS
;
6704 if (PyErr_Occurred()) return NULL
;
6706 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
6707 _resultobj
= Py_BuildValue("s",_ptemp
);
6710 _resultobj
= Py_None
;
6715 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6716 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6717 PyObject
* _resultobj
;
6720 PyObject
* _argo0
= 0;
6721 char *_kwnames
[] = { "self", NULL
};
6724 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
6727 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6728 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6729 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6734 wxPy_BEGIN_ALLOW_THREADS
;
6735 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
6737 wxPy_END_ALLOW_THREADS
;
6738 if (PyErr_Occurred()) return NULL
;
6739 } _resultobj
= Py_BuildValue("i",_result
);
6743 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6744 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6745 PyObject
* _resultobj
;
6751 PyObject
* _argo0
= 0;
6752 char *_kwnames
[] = { "self", NULL
};
6761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
6764 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6765 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6766 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
6771 wxPy_BEGIN_ALLOW_THREADS
;
6772 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
6774 wxPy_END_ALLOW_THREADS
;
6775 if (PyErr_Occurred()) return NULL
;
6776 } Py_INCREF(Py_None
);
6777 _resultobj
= Py_None
;
6780 o
= PyFloat_FromDouble((double) (*_arg1
));
6781 _resultobj
= t_output_helper(_resultobj
, o
);
6785 o
= PyFloat_FromDouble((double) (*_arg2
));
6786 _resultobj
= t_output_helper(_resultobj
, o
);
6791 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6792 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6793 PyObject
* _resultobj
;
6796 PyObject
* _argo0
= 0;
6797 char *_kwnames
[] = { "self", NULL
};
6800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
6803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6810 wxPy_BEGIN_ALLOW_THREADS
;
6811 _result
= (int )wxDC_GetMapMode(_arg0
);
6813 wxPy_END_ALLOW_THREADS
;
6814 if (PyErr_Occurred()) return NULL
;
6815 } _resultobj
= Py_BuildValue("i",_result
);
6819 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6820 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6821 PyObject
* _resultobj
;
6824 PyObject
* _argo0
= 0;
6825 char *_kwnames
[] = { "self", NULL
};
6828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
6831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6838 wxPy_BEGIN_ALLOW_THREADS
;
6839 _result
= (bool )wxDC_GetOptimization(_arg0
);
6841 wxPy_END_ALLOW_THREADS
;
6842 if (PyErr_Occurred()) return NULL
;
6843 } _resultobj
= Py_BuildValue("i",_result
);
6847 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6848 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6849 PyObject
* _resultobj
;
6852 PyObject
* _argo0
= 0;
6853 char *_kwnames
[] = { "self", NULL
};
6857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
6860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6867 wxPy_BEGIN_ALLOW_THREADS
;
6868 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
6869 _result
= (wxPen
*) &_result_ref
;
6871 wxPy_END_ALLOW_THREADS
;
6872 if (PyErr_Occurred()) return NULL
;
6874 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6875 _resultobj
= Py_BuildValue("s",_ptemp
);
6878 _resultobj
= Py_None
;
6883 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
6884 wxColour
* wc
= new wxColour();
6885 self
->GetPixel(x
, y
, wc
);
6888 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6889 PyObject
* _resultobj
;
6894 PyObject
* _argo0
= 0;
6895 char *_kwnames
[] = { "self","x","y", NULL
};
6899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6909 wxPy_BEGIN_ALLOW_THREADS
;
6910 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
6912 wxPy_END_ALLOW_THREADS
;
6913 if (PyErr_Occurred()) return NULL
;
6915 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6916 _resultobj
= Py_BuildValue("s",_ptemp
);
6919 _resultobj
= Py_None
;
6924 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6925 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6926 PyObject
* _resultobj
;
6932 PyObject
* _argo0
= 0;
6933 char *_kwnames
[] = { "self", NULL
};
6942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
6945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6952 wxPy_BEGIN_ALLOW_THREADS
;
6953 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
6955 wxPy_END_ALLOW_THREADS
;
6956 if (PyErr_Occurred()) return NULL
;
6957 } Py_INCREF(Py_None
);
6958 _resultobj
= Py_None
;
6961 o
= PyInt_FromLong((long) (*_arg1
));
6962 _resultobj
= t_output_helper(_resultobj
, o
);
6966 o
= PyInt_FromLong((long) (*_arg2
));
6967 _resultobj
= t_output_helper(_resultobj
, o
);
6972 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6973 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6974 PyObject
* _resultobj
;
6977 PyObject
* _argo0
= 0;
6978 char *_kwnames
[] = { "self", NULL
};
6982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
6985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6992 wxPy_BEGIN_ALLOW_THREADS
;
6993 _result
= new wxSize (wxDC_GetSize(_arg0
));
6995 wxPy_END_ALLOW_THREADS
;
6996 if (PyErr_Occurred()) return NULL
;
6997 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6998 _resultobj
= Py_BuildValue("s",_ptemp
);
7002 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7003 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7004 PyObject
* _resultobj
;
7007 PyObject
* _argo0
= 0;
7008 char *_kwnames
[] = { "self", NULL
};
7012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7022 wxPy_BEGIN_ALLOW_THREADS
;
7023 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
7025 wxPy_END_ALLOW_THREADS
;
7026 if (PyErr_Occurred()) return NULL
;
7027 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7028 _resultobj
= Py_BuildValue("s",_ptemp
);
7032 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7033 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7034 PyObject
* _resultobj
;
7037 PyObject
* _argo0
= 0;
7038 char *_kwnames
[] = { "self", NULL
};
7042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
7045 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7046 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7052 wxPy_BEGIN_ALLOW_THREADS
;
7053 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
7055 wxPy_END_ALLOW_THREADS
;
7056 if (PyErr_Occurred()) return NULL
;
7057 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7058 _resultobj
= Py_BuildValue("s",_ptemp
);
7062 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7063 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7064 PyObject
* _resultobj
;
7071 PyObject
* _argo0
= 0;
7072 PyObject
* _obj1
= 0;
7073 char *_kwnames
[] = { "self","string", NULL
};
7082 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7085 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7086 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7087 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7092 #if PYTHON_API_VERSION >= 1009
7093 char* tmpPtr
; int tmpSize
;
7094 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7095 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7098 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7100 _arg1
= new wxString(tmpPtr
, tmpSize
);
7102 if (!PyString_Check(_obj1
)) {
7103 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7106 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7110 wxPy_BEGIN_ALLOW_THREADS
;
7111 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7113 wxPy_END_ALLOW_THREADS
;
7114 if (PyErr_Occurred()) return NULL
;
7115 } Py_INCREF(Py_None
);
7116 _resultobj
= Py_None
;
7119 o
= PyInt_FromLong((long) (*_arg2
));
7120 _resultobj
= t_output_helper(_resultobj
, o
);
7124 o
= PyInt_FromLong((long) (*_arg3
));
7125 _resultobj
= t_output_helper(_resultobj
, o
);
7134 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7135 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7136 PyObject
* _resultobj
;
7147 wxFont
* _arg6
= (wxFont
*) NULL
;
7148 PyObject
* _argo0
= 0;
7149 PyObject
* _obj1
= 0;
7150 PyObject
* _argo6
= 0;
7151 char *_kwnames
[] = { "self","string","font", NULL
};
7166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7176 #if PYTHON_API_VERSION >= 1009
7177 char* tmpPtr
; int tmpSize
;
7178 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7179 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7182 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7184 _arg1
= new wxString(tmpPtr
, tmpSize
);
7186 if (!PyString_Check(_obj1
)) {
7187 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7190 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7194 if (_argo6
== Py_None
) { _arg6
= NULL
; }
7195 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
7196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7201 wxPy_BEGIN_ALLOW_THREADS
;
7202 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7204 wxPy_END_ALLOW_THREADS
;
7205 if (PyErr_Occurred()) return NULL
;
7206 } Py_INCREF(Py_None
);
7207 _resultobj
= Py_None
;
7210 o
= PyInt_FromLong((long) (*_arg2
));
7211 _resultobj
= t_output_helper(_resultobj
, o
);
7215 o
= PyInt_FromLong((long) (*_arg3
));
7216 _resultobj
= t_output_helper(_resultobj
, o
);
7220 o
= PyInt_FromLong((long) (*_arg4
));
7221 _resultobj
= t_output_helper(_resultobj
, o
);
7225 o
= PyInt_FromLong((long) (*_arg5
));
7226 _resultobj
= t_output_helper(_resultobj
, o
);
7235 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
7236 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7237 PyObject
* _resultobj
;
7240 PyObject
* _argo0
= 0;
7241 char *_kwnames
[] = { "self", NULL
};
7245 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
7248 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7249 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7250 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7255 wxPy_BEGIN_ALLOW_THREADS
;
7256 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
7258 wxPy_END_ALLOW_THREADS
;
7259 if (PyErr_Occurred()) return NULL
;
7260 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7261 _resultobj
= Py_BuildValue("s",_ptemp
);
7265 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7266 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7267 PyObject
* _resultobj
;
7273 PyObject
* _argo0
= 0;
7274 char *_kwnames
[] = { "self", NULL
};
7283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
7286 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7287 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7288 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7293 wxPy_BEGIN_ALLOW_THREADS
;
7294 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
7296 wxPy_END_ALLOW_THREADS
;
7297 if (PyErr_Occurred()) return NULL
;
7298 } Py_INCREF(Py_None
);
7299 _resultobj
= Py_None
;
7302 o
= PyFloat_FromDouble((double) (*_arg1
));
7303 _resultobj
= t_output_helper(_resultobj
, o
);
7307 o
= PyFloat_FromDouble((double) (*_arg2
));
7308 _resultobj
= t_output_helper(_resultobj
, o
);
7313 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
7314 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7315 PyObject
* _resultobj
;
7319 PyObject
* _argo0
= 0;
7320 char *_kwnames
[] = { "self","x", NULL
};
7323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
7326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7333 wxPy_BEGIN_ALLOW_THREADS
;
7334 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
7336 wxPy_END_ALLOW_THREADS
;
7337 if (PyErr_Occurred()) return NULL
;
7338 } _resultobj
= Py_BuildValue("l",_result
);
7342 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
7343 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7344 PyObject
* _resultobj
;
7348 PyObject
* _argo0
= 0;
7349 char *_kwnames
[] = { "self","x", NULL
};
7352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
7355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7362 wxPy_BEGIN_ALLOW_THREADS
;
7363 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
7365 wxPy_END_ALLOW_THREADS
;
7366 if (PyErr_Occurred()) return NULL
;
7367 } _resultobj
= Py_BuildValue("l",_result
);
7371 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
7372 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7373 PyObject
* _resultobj
;
7377 PyObject
* _argo0
= 0;
7378 char *_kwnames
[] = { "self","y", NULL
};
7381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
7384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7391 wxPy_BEGIN_ALLOW_THREADS
;
7392 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
7394 wxPy_END_ALLOW_THREADS
;
7395 if (PyErr_Occurred()) return NULL
;
7396 } _resultobj
= Py_BuildValue("l",_result
);
7400 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
7401 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7402 PyObject
* _resultobj
;
7406 PyObject
* _argo0
= 0;
7407 char *_kwnames
[] = { "self","y", NULL
};
7410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
7413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7420 wxPy_BEGIN_ALLOW_THREADS
;
7421 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
7423 wxPy_END_ALLOW_THREADS
;
7424 if (PyErr_Occurred()) return NULL
;
7425 } _resultobj
= Py_BuildValue("l",_result
);
7429 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
7430 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7431 PyObject
* _resultobj
;
7434 PyObject
* _argo0
= 0;
7435 char *_kwnames
[] = { "self", NULL
};
7438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
7441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7448 wxPy_BEGIN_ALLOW_THREADS
;
7449 _result
= (long )wxDC_MaxX(_arg0
);
7451 wxPy_END_ALLOW_THREADS
;
7452 if (PyErr_Occurred()) return NULL
;
7453 } _resultobj
= Py_BuildValue("l",_result
);
7457 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7458 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7459 PyObject
* _resultobj
;
7462 PyObject
* _argo0
= 0;
7463 char *_kwnames
[] = { "self", NULL
};
7466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
7469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7476 wxPy_BEGIN_ALLOW_THREADS
;
7477 _result
= (long )wxDC_MaxY(_arg0
);
7479 wxPy_END_ALLOW_THREADS
;
7480 if (PyErr_Occurred()) return NULL
;
7481 } _resultobj
= Py_BuildValue("l",_result
);
7485 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
7486 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7487 PyObject
* _resultobj
;
7490 PyObject
* _argo0
= 0;
7491 char *_kwnames
[] = { "self", NULL
};
7494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
7497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7504 wxPy_BEGIN_ALLOW_THREADS
;
7505 _result
= (long )wxDC_MinX(_arg0
);
7507 wxPy_END_ALLOW_THREADS
;
7508 if (PyErr_Occurred()) return NULL
;
7509 } _resultobj
= Py_BuildValue("l",_result
);
7513 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
7514 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7515 PyObject
* _resultobj
;
7518 PyObject
* _argo0
= 0;
7519 char *_kwnames
[] = { "self", NULL
};
7522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
7525 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7526 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7532 wxPy_BEGIN_ALLOW_THREADS
;
7533 _result
= (long )wxDC_MinY(_arg0
);
7535 wxPy_END_ALLOW_THREADS
;
7536 if (PyErr_Occurred()) return NULL
;
7537 } _resultobj
= Py_BuildValue("l",_result
);
7541 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
7542 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7543 PyObject
* _resultobj
;
7546 PyObject
* _argo0
= 0;
7547 char *_kwnames
[] = { "self", NULL
};
7550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
7553 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7554 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7560 wxPy_BEGIN_ALLOW_THREADS
;
7561 _result
= (bool )wxDC_Ok(_arg0
);
7563 wxPy_END_ALLOW_THREADS
;
7564 if (PyErr_Occurred()) return NULL
;
7565 } _resultobj
= Py_BuildValue("i",_result
);
7569 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
7570 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7571 PyObject
* _resultobj
;
7575 PyObject
* _argo0
= 0;
7576 char *_kwnames
[] = { "self","x","y", NULL
};
7579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7582 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7583 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7584 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7589 wxPy_BEGIN_ALLOW_THREADS
;
7590 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7592 wxPy_END_ALLOW_THREADS
;
7593 if (PyErr_Occurred()) return NULL
;
7594 } Py_INCREF(Py_None
);
7595 _resultobj
= Py_None
;
7599 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
7600 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7601 PyObject
* _resultobj
;
7604 PyObject
* _argo0
= 0;
7605 PyObject
* _argo1
= 0;
7606 char *_kwnames
[] = { "self","brush", NULL
};
7609 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
7612 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7613 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7614 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7619 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7620 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7626 wxPy_BEGIN_ALLOW_THREADS
;
7627 wxDC_SetBackground(_arg0
,*_arg1
);
7629 wxPy_END_ALLOW_THREADS
;
7630 if (PyErr_Occurred()) return NULL
;
7631 } Py_INCREF(Py_None
);
7632 _resultobj
= Py_None
;
7636 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
7637 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7638 PyObject
* _resultobj
;
7641 PyObject
* _argo0
= 0;
7642 char *_kwnames
[] = { "self","mode", NULL
};
7645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
7648 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7649 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7650 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
7655 wxPy_BEGIN_ALLOW_THREADS
;
7656 wxDC_SetBackgroundMode(_arg0
,_arg1
);
7658 wxPy_END_ALLOW_THREADS
;
7659 if (PyErr_Occurred()) return NULL
;
7660 } Py_INCREF(Py_None
);
7661 _resultobj
= Py_None
;
7665 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7666 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7667 PyObject
* _resultobj
;
7673 PyObject
* _argo0
= 0;
7674 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7687 wxPy_BEGIN_ALLOW_THREADS
;
7688 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7690 wxPy_END_ALLOW_THREADS
;
7691 if (PyErr_Occurred()) return NULL
;
7692 } Py_INCREF(Py_None
);
7693 _resultobj
= Py_None
;
7697 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
7698 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7699 PyObject
* _resultobj
;
7702 PyObject
* _argo0
= 0;
7703 PyObject
* _argo1
= 0;
7704 char *_kwnames
[] = { "self","colourMap", NULL
};
7707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
7710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
7717 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7718 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
7719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
7724 wxPy_BEGIN_ALLOW_THREADS
;
7725 wxDC_SetPalette(_arg0
,*_arg1
);
7727 wxPy_END_ALLOW_THREADS
;
7728 if (PyErr_Occurred()) return NULL
;
7729 } Py_INCREF(Py_None
);
7730 _resultobj
= Py_None
;
7734 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
7735 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7736 PyObject
* _resultobj
;
7739 PyObject
* _argo0
= 0;
7740 PyObject
* _argo1
= 0;
7741 char *_kwnames
[] = { "self","brush", NULL
};
7744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
7747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
7754 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7755 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
7761 wxPy_BEGIN_ALLOW_THREADS
;
7762 wxDC_SetBrush(_arg0
,*_arg1
);
7764 wxPy_END_ALLOW_THREADS
;
7765 if (PyErr_Occurred()) return NULL
;
7766 } Py_INCREF(Py_None
);
7767 _resultobj
= Py_None
;
7771 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7772 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7773 PyObject
* _resultobj
;
7776 PyObject
* _argo0
= 0;
7777 PyObject
* _argo1
= 0;
7778 char *_kwnames
[] = { "self","font", NULL
};
7781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
7784 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7785 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7786 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7791 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7792 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
7793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7798 wxPy_BEGIN_ALLOW_THREADS
;
7799 wxDC_SetFont(_arg0
,*_arg1
);
7801 wxPy_END_ALLOW_THREADS
;
7802 if (PyErr_Occurred()) return NULL
;
7803 } Py_INCREF(Py_None
);
7804 _resultobj
= Py_None
;
7808 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7809 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7810 PyObject
* _resultobj
;
7813 PyObject
* _argo0
= 0;
7814 char *_kwnames
[] = { "self","function", NULL
};
7817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7827 wxPy_BEGIN_ALLOW_THREADS
;
7828 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7830 wxPy_END_ALLOW_THREADS
;
7831 if (PyErr_Occurred()) return NULL
;
7832 } Py_INCREF(Py_None
);
7833 _resultobj
= Py_None
;
7837 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7838 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7839 PyObject
* _resultobj
;
7843 PyObject
* _argo0
= 0;
7844 char *_kwnames
[] = { "self","x","y", NULL
};
7847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7857 wxPy_BEGIN_ALLOW_THREADS
;
7858 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7860 wxPy_END_ALLOW_THREADS
;
7861 if (PyErr_Occurred()) return NULL
;
7862 } Py_INCREF(Py_None
);
7863 _resultobj
= Py_None
;
7867 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7868 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7869 PyObject
* _resultobj
;
7872 PyObject
* _argo0
= 0;
7873 char *_kwnames
[] = { "self","mode", NULL
};
7876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
7879 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7880 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7886 wxPy_BEGIN_ALLOW_THREADS
;
7887 wxDC_SetMapMode(_arg0
,_arg1
);
7889 wxPy_END_ALLOW_THREADS
;
7890 if (PyErr_Occurred()) return NULL
;
7891 } Py_INCREF(Py_None
);
7892 _resultobj
= Py_None
;
7896 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7897 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7898 PyObject
* _resultobj
;
7901 PyObject
* _argo0
= 0;
7903 char *_kwnames
[] = { "self","optimize", NULL
};
7906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
7909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7915 _arg1
= (bool ) tempbool1
;
7917 wxPy_BEGIN_ALLOW_THREADS
;
7918 wxDC_SetOptimization(_arg0
,_arg1
);
7920 wxPy_END_ALLOW_THREADS
;
7921 if (PyErr_Occurred()) return NULL
;
7922 } Py_INCREF(Py_None
);
7923 _resultobj
= Py_None
;
7927 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7928 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7929 PyObject
* _resultobj
;
7932 PyObject
* _argo0
= 0;
7933 PyObject
* _argo1
= 0;
7934 char *_kwnames
[] = { "self","pen", NULL
};
7937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
7940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7947 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7948 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
7949 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7954 wxPy_BEGIN_ALLOW_THREADS
;
7955 wxDC_SetPen(_arg0
,*_arg1
);
7957 wxPy_END_ALLOW_THREADS
;
7958 if (PyErr_Occurred()) return NULL
;
7959 } Py_INCREF(Py_None
);
7960 _resultobj
= Py_None
;
7964 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7965 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7966 PyObject
* _resultobj
;
7969 PyObject
* _argo0
= 0;
7971 PyObject
* _obj1
= 0;
7972 char *_kwnames
[] = { "self","colour", NULL
};
7975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
7978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7986 if (! wxColour_helper(_obj1
, &_arg1
))
7990 wxPy_BEGIN_ALLOW_THREADS
;
7991 wxDC_SetTextBackground(_arg0
,*_arg1
);
7993 wxPy_END_ALLOW_THREADS
;
7994 if (PyErr_Occurred()) return NULL
;
7995 } Py_INCREF(Py_None
);
7996 _resultobj
= Py_None
;
8000 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8001 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8002 PyObject
* _resultobj
;
8005 PyObject
* _argo0
= 0;
8007 PyObject
* _obj1
= 0;
8008 char *_kwnames
[] = { "self","colour", NULL
};
8011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
8014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8022 if (! wxColour_helper(_obj1
, &_arg1
))
8026 wxPy_BEGIN_ALLOW_THREADS
;
8027 wxDC_SetTextForeground(_arg0
,*_arg1
);
8029 wxPy_END_ALLOW_THREADS
;
8030 if (PyErr_Occurred()) return NULL
;
8031 } Py_INCREF(Py_None
);
8032 _resultobj
= Py_None
;
8036 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8037 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8038 PyObject
* _resultobj
;
8042 PyObject
* _argo0
= 0;
8043 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8056 wxPy_BEGIN_ALLOW_THREADS
;
8057 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8059 wxPy_END_ALLOW_THREADS
;
8060 if (PyErr_Occurred()) return NULL
;
8061 } Py_INCREF(Py_None
);
8062 _resultobj
= Py_None
;
8066 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8067 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8068 PyObject
* _resultobj
;
8072 PyObject
* _argo0
= 0;
8073 PyObject
* _obj1
= 0;
8074 char *_kwnames
[] = { "self","message", NULL
};
8077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8080 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8081 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8087 #if PYTHON_API_VERSION >= 1009
8088 char* tmpPtr
; int tmpSize
;
8089 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8090 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8093 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8095 _arg1
= new wxString(tmpPtr
, tmpSize
);
8097 if (!PyString_Check(_obj1
)) {
8098 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8101 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8105 wxPy_BEGIN_ALLOW_THREADS
;
8106 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8108 wxPy_END_ALLOW_THREADS
;
8109 if (PyErr_Occurred()) return NULL
;
8110 } _resultobj
= Py_BuildValue("i",_result
);
8118 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8119 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8120 PyObject
* _resultobj
;
8122 PyObject
* _argo0
= 0;
8123 char *_kwnames
[] = { "self", NULL
};
8126 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8129 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8130 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8136 wxPy_BEGIN_ALLOW_THREADS
;
8137 wxDC_StartPage(_arg0
);
8139 wxPy_END_ALLOW_THREADS
;
8140 if (PyErr_Occurred()) return NULL
;
8141 } Py_INCREF(Py_None
);
8142 _resultobj
= Py_None
;
8146 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8147 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8148 PyObject
* _resultobj
;
8153 int _arg4
= (int ) FALSE
;
8154 PyObject
* _argo0
= 0;
8155 PyObject
* _argo1
= 0;
8156 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
8159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
8162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8169 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8170 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8176 wxPy_BEGIN_ALLOW_THREADS
;
8177 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
8179 wxPy_END_ALLOW_THREADS
;
8180 if (PyErr_Occurred()) return NULL
;
8181 } Py_INCREF(Py_None
);
8182 _resultobj
= Py_None
;
8186 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8187 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8188 PyObject
* _resultobj
;
8191 PyObject
* _argo0
= 0;
8192 char *_kwnames
[] = { "self", NULL
};
8195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
8198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8205 wxPy_BEGIN_ALLOW_THREADS
;
8206 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
8208 wxPy_END_ALLOW_THREADS
;
8209 if (PyErr_Occurred()) return NULL
;
8210 } _resultobj
= Py_BuildValue("i",_result
);
8214 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8215 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8216 PyObject
* _resultobj
;
8219 PyObject
* _argo0
= 0;
8220 char *_kwnames
[] = { "self", NULL
};
8223 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
8226 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8227 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8228 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8233 wxPy_BEGIN_ALLOW_THREADS
;
8234 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
8236 wxPy_END_ALLOW_THREADS
;
8237 if (PyErr_Occurred()) return NULL
;
8238 } _resultobj
= Py_BuildValue("i",_result
);
8242 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8243 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8244 PyObject
* _resultobj
;
8247 PyObject
* _argo0
= 0;
8248 char *_kwnames
[] = { "self", NULL
};
8251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
8254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8261 wxPy_BEGIN_ALLOW_THREADS
;
8262 _result
= (int )wxDC_GetDepth(_arg0
);
8264 wxPy_END_ALLOW_THREADS
;
8265 if (PyErr_Occurred()) return NULL
;
8266 } _resultobj
= Py_BuildValue("i",_result
);
8270 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8271 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8272 PyObject
* _resultobj
;
8275 PyObject
* _argo0
= 0;
8276 char *_kwnames
[] = { "self", NULL
};
8280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
8283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8290 wxPy_BEGIN_ALLOW_THREADS
;
8291 _result
= new wxSize (wxDC_GetPPI(_arg0
));
8293 wxPy_END_ALLOW_THREADS
;
8294 if (PyErr_Occurred()) return NULL
;
8295 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8296 _resultobj
= Py_BuildValue("s",_ptemp
);
8300 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8301 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8302 PyObject
* _resultobj
;
8308 PyObject
* _argo0
= 0;
8309 char *_kwnames
[] = { "self", NULL
};
8318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
8321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8328 wxPy_BEGIN_ALLOW_THREADS
;
8329 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8331 wxPy_END_ALLOW_THREADS
;
8332 if (PyErr_Occurred()) return NULL
;
8333 } Py_INCREF(Py_None
);
8334 _resultobj
= Py_None
;
8337 o
= PyInt_FromLong((long) (*_arg1
));
8338 _resultobj
= t_output_helper(_resultobj
, o
);
8342 o
= PyInt_FromLong((long) (*_arg2
));
8343 _resultobj
= t_output_helper(_resultobj
, o
);
8348 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8349 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8350 PyObject
* _resultobj
;
8354 PyObject
* _argo0
= 0;
8355 char *_kwnames
[] = { "self","x","y", NULL
};
8358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8368 wxPy_BEGIN_ALLOW_THREADS
;
8369 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8371 wxPy_END_ALLOW_THREADS
;
8372 if (PyErr_Occurred()) return NULL
;
8373 } Py_INCREF(Py_None
);
8374 _resultobj
= Py_None
;
8378 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8379 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8380 PyObject
* _resultobj
;
8386 PyObject
* _argo0
= 0;
8387 char *_kwnames
[] = { "self", NULL
};
8396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
8399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8406 wxPy_BEGIN_ALLOW_THREADS
;
8407 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8409 wxPy_END_ALLOW_THREADS
;
8410 if (PyErr_Occurred()) return NULL
;
8411 } Py_INCREF(Py_None
);
8412 _resultobj
= Py_None
;
8415 o
= PyInt_FromLong((long) (*_arg1
));
8416 _resultobj
= t_output_helper(_resultobj
, o
);
8420 o
= PyInt_FromLong((long) (*_arg2
));
8421 _resultobj
= t_output_helper(_resultobj
, o
);
8426 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8427 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8428 PyObject
* _resultobj
;
8432 PyObject
* _argo0
= 0;
8435 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
8438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
8441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8447 _arg1
= (bool ) tempbool1
;
8448 _arg2
= (bool ) tempbool2
;
8450 wxPy_BEGIN_ALLOW_THREADS
;
8451 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
8453 wxPy_END_ALLOW_THREADS
;
8454 if (PyErr_Occurred()) return NULL
;
8455 } Py_INCREF(Py_None
);
8456 _resultobj
= Py_None
;
8460 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
8461 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8462 PyObject
* _resultobj
;
8466 PyObject
* _argo0
= 0;
8467 char *_kwnames
[] = { "self","x","y", NULL
};
8470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8473 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8474 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8480 wxPy_BEGIN_ALLOW_THREADS
;
8481 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
8483 wxPy_END_ALLOW_THREADS
;
8484 if (PyErr_Occurred()) return NULL
;
8485 } Py_INCREF(Py_None
);
8486 _resultobj
= Py_None
;
8490 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8491 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8492 PyObject
* _resultobj
;
8494 PyObject
* _argo0
= 0;
8495 char *_kwnames
[] = { "self", NULL
};
8498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
8501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8508 wxPy_BEGIN_ALLOW_THREADS
;
8509 wxDC_ResetBoundingBox(_arg0
);
8511 wxPy_END_ALLOW_THREADS
;
8512 if (PyErr_Occurred()) return NULL
;
8513 } Py_INCREF(Py_None
);
8514 _resultobj
= Py_None
;
8518 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
8519 static PyObject
*_wrap_wxDC_GetHDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8520 PyObject
* _resultobj
;
8523 PyObject
* _argo0
= 0;
8524 char *_kwnames
[] = { "self", NULL
};
8527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetHDC",_kwnames
,&_argo0
))
8530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
8537 wxPy_BEGIN_ALLOW_THREADS
;
8538 _result
= (long )wxDC_GetHDC(_arg0
);
8540 wxPy_END_ALLOW_THREADS
;
8541 if (PyErr_Occurred()) return NULL
;
8542 } _resultobj
= Py_BuildValue("l",_result
);
8546 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
8549 src
= (wxMemoryDC
*) ptr
;
8550 dest
= (wxDC
*) src
;
8551 return (void *) dest
;
8554 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
8557 src
= (wxMemoryDC
*) ptr
;
8558 dest
= (wxObject
*) src
;
8559 return (void *) dest
;
8562 #define new_wxMemoryDC() (new wxMemoryDC())
8563 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8564 PyObject
* _resultobj
;
8565 wxMemoryDC
* _result
;
8566 char *_kwnames
[] = { NULL
};
8570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
8573 wxPy_BEGIN_ALLOW_THREADS
;
8574 _result
= (wxMemoryDC
*)new_wxMemoryDC();
8576 wxPy_END_ALLOW_THREADS
;
8577 if (PyErr_Occurred()) return NULL
;
8579 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
8580 _resultobj
= Py_BuildValue("s",_ptemp
);
8583 _resultobj
= Py_None
;
8588 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
8589 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8590 PyObject
* _resultobj
;
8593 PyObject
* _argo0
= 0;
8594 PyObject
* _argo1
= 0;
8595 char *_kwnames
[] = { "self","bitmap", NULL
};
8598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
8601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
8603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
8608 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8609 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
8615 wxPy_BEGIN_ALLOW_THREADS
;
8616 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
8618 wxPy_END_ALLOW_THREADS
;
8619 if (PyErr_Occurred()) return NULL
;
8620 } Py_INCREF(Py_None
);
8621 _resultobj
= Py_None
;
8625 static void *SwigwxScreenDCTowxDC(void *ptr
) {
8628 src
= (wxScreenDC
*) ptr
;
8629 dest
= (wxDC
*) src
;
8630 return (void *) dest
;
8633 static void *SwigwxScreenDCTowxObject(void *ptr
) {
8636 src
= (wxScreenDC
*) ptr
;
8637 dest
= (wxObject
*) src
;
8638 return (void *) dest
;
8641 #define new_wxScreenDC() (new wxScreenDC())
8642 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8643 PyObject
* _resultobj
;
8644 wxScreenDC
* _result
;
8645 char *_kwnames
[] = { NULL
};
8649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
8652 wxPy_BEGIN_ALLOW_THREADS
;
8653 _result
= (wxScreenDC
*)new_wxScreenDC();
8655 wxPy_END_ALLOW_THREADS
;
8656 if (PyErr_Occurred()) return NULL
;
8658 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
8659 _resultobj
= Py_BuildValue("s",_ptemp
);
8662 _resultobj
= Py_None
;
8667 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8668 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8669 PyObject
* _resultobj
;
8673 PyObject
* _argo0
= 0;
8674 PyObject
* _argo1
= 0;
8675 char *_kwnames
[] = { "self","window", NULL
};
8678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
8681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
8688 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8689 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
8695 wxPy_BEGIN_ALLOW_THREADS
;
8696 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
8698 wxPy_END_ALLOW_THREADS
;
8699 if (PyErr_Occurred()) return NULL
;
8700 } _resultobj
= Py_BuildValue("i",_result
);
8704 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8705 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8706 PyObject
* _resultobj
;
8709 wxRect
* _arg1
= (wxRect
*) NULL
;
8710 PyObject
* _argo0
= 0;
8712 PyObject
* _obj1
= 0;
8713 char *_kwnames
[] = { "self","rect", NULL
};
8716 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
8719 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8720 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8721 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
8728 if (! wxRect_helper(_obj1
, &_arg1
))
8732 wxPy_BEGIN_ALLOW_THREADS
;
8733 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
8735 wxPy_END_ALLOW_THREADS
;
8736 if (PyErr_Occurred()) return NULL
;
8737 } _resultobj
= Py_BuildValue("i",_result
);
8741 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
8742 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8743 PyObject
* _resultobj
;
8746 PyObject
* _argo0
= 0;
8747 char *_kwnames
[] = { "self", NULL
};
8750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
8753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8760 wxPy_BEGIN_ALLOW_THREADS
;
8761 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
8763 wxPy_END_ALLOW_THREADS
;
8764 if (PyErr_Occurred()) return NULL
;
8765 } _resultobj
= Py_BuildValue("i",_result
);
8769 static void *SwigwxClientDCTowxDC(void *ptr
) {
8772 src
= (wxClientDC
*) ptr
;
8773 dest
= (wxDC
*) src
;
8774 return (void *) dest
;
8777 static void *SwigwxClientDCTowxObject(void *ptr
) {
8780 src
= (wxClientDC
*) ptr
;
8781 dest
= (wxObject
*) src
;
8782 return (void *) dest
;
8785 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
8786 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8787 PyObject
* _resultobj
;
8788 wxClientDC
* _result
;
8790 PyObject
* _argo0
= 0;
8791 char *_kwnames
[] = { "win", NULL
};
8795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
8798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8805 wxPy_BEGIN_ALLOW_THREADS
;
8806 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
8808 wxPy_END_ALLOW_THREADS
;
8809 if (PyErr_Occurred()) return NULL
;
8811 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
8812 _resultobj
= Py_BuildValue("s",_ptemp
);
8815 _resultobj
= Py_None
;
8820 static void *SwigwxPaintDCTowxDC(void *ptr
) {
8823 src
= (wxPaintDC
*) ptr
;
8824 dest
= (wxDC
*) src
;
8825 return (void *) dest
;
8828 static void *SwigwxPaintDCTowxObject(void *ptr
) {
8831 src
= (wxPaintDC
*) ptr
;
8832 dest
= (wxObject
*) src
;
8833 return (void *) dest
;
8836 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8837 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8838 PyObject
* _resultobj
;
8839 wxPaintDC
* _result
;
8841 PyObject
* _argo0
= 0;
8842 char *_kwnames
[] = { "win", NULL
};
8846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8856 wxPy_BEGIN_ALLOW_THREADS
;
8857 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8859 wxPy_END_ALLOW_THREADS
;
8860 if (PyErr_Occurred()) return NULL
;
8862 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8863 _resultobj
= Py_BuildValue("s",_ptemp
);
8866 _resultobj
= Py_None
;
8871 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8874 src
= (wxWindowDC
*) ptr
;
8875 dest
= (wxDC
*) src
;
8876 return (void *) dest
;
8879 static void *SwigwxWindowDCTowxObject(void *ptr
) {
8882 src
= (wxWindowDC
*) ptr
;
8883 dest
= (wxObject
*) src
;
8884 return (void *) dest
;
8887 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8888 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8889 PyObject
* _resultobj
;
8890 wxWindowDC
* _result
;
8892 PyObject
* _argo0
= 0;
8893 char *_kwnames
[] = { "win", NULL
};
8897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
8900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8907 wxPy_BEGIN_ALLOW_THREADS
;
8908 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
8910 wxPy_END_ALLOW_THREADS
;
8911 if (PyErr_Occurred()) return NULL
;
8913 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
8914 _resultobj
= Py_BuildValue("s",_ptemp
);
8917 _resultobj
= Py_None
;
8922 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
8925 src
= (wxMetaFileDC
*) ptr
;
8926 dest
= (wxDC
*) src
;
8927 return (void *) dest
;
8930 static void *SwigwxMetaFileDCTowxObject(void *ptr
) {
8933 src
= (wxMetaFileDC
*) ptr
;
8934 dest
= (wxObject
*) src
;
8935 return (void *) dest
;
8938 #define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0))
8939 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8940 PyObject
* _resultobj
;
8941 wxMetaFileDC
* _result
;
8942 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
8943 PyObject
* _obj0
= 0;
8944 char *_kwnames
[] = { "filename", NULL
};
8948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFileDC",_kwnames
,&_obj0
))
8952 #if PYTHON_API_VERSION >= 1009
8953 char* tmpPtr
; int tmpSize
;
8954 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
8955 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8958 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
8960 _arg0
= new wxString(tmpPtr
, tmpSize
);
8962 if (!PyString_Check(_obj0
)) {
8963 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8966 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
8970 wxPy_BEGIN_ALLOW_THREADS
;
8971 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
);
8973 wxPy_END_ALLOW_THREADS
;
8974 if (PyErr_Occurred()) return NULL
;
8976 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
8977 _resultobj
= Py_BuildValue("s",_ptemp
);
8980 _resultobj
= Py_None
;
8989 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
8990 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8991 PyObject
* _resultobj
;
8992 wxMetaFile
* _result
;
8993 wxMetaFileDC
* _arg0
;
8994 PyObject
* _argo0
= 0;
8995 char *_kwnames
[] = { "self", NULL
};
8999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
9002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
9004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
9009 wxPy_BEGIN_ALLOW_THREADS
;
9010 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
9012 wxPy_END_ALLOW_THREADS
;
9013 if (PyErr_Occurred()) return NULL
;
9015 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
9016 _resultobj
= Py_BuildValue("s",_ptemp
);
9019 _resultobj
= Py_None
;
9024 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
9027 src
= (wxPalette
*) ptr
;
9028 dest
= (wxGDIObject
*) src
;
9029 return (void *) dest
;
9032 static void *SwigwxPaletteTowxObject(void *ptr
) {
9035 src
= (wxPalette
*) ptr
;
9036 dest
= (wxObject
*) src
;
9037 return (void *) dest
;
9040 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9041 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9042 PyObject
* _resultobj
;
9043 wxPalette
* _result
;
9048 PyObject
* _obj1
= 0;
9049 PyObject
* _obj2
= 0;
9050 PyObject
* _obj3
= 0;
9051 char *_kwnames
[] = { "choices","choices","choices", NULL
};
9055 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
9058 _arg1
= byte_LIST_helper(_obj1
);
9059 if (_arg1
== NULL
) {
9064 _arg2
= byte_LIST_helper(_obj2
);
9065 if (_arg2
== NULL
) {
9071 _arg3
= byte_LIST_helper(_obj3
);
9072 if (_arg3
== NULL
) {
9078 _arg0
= PyList_Size(_obj1
);
9085 wxPy_BEGIN_ALLOW_THREADS
;
9086 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
9088 wxPy_END_ALLOW_THREADS
;
9089 if (PyErr_Occurred()) return NULL
;
9091 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
9092 _resultobj
= Py_BuildValue("s",_ptemp
);
9095 _resultobj
= Py_None
;
9109 #define delete_wxPalette(_swigobj) (delete _swigobj)
9110 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9111 PyObject
* _resultobj
;
9113 PyObject
* _argo0
= 0;
9114 char *_kwnames
[] = { "self", NULL
};
9117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
9120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
9127 wxPy_BEGIN_ALLOW_THREADS
;
9128 delete_wxPalette(_arg0
);
9130 wxPy_END_ALLOW_THREADS
;
9131 if (PyErr_Occurred()) return NULL
;
9132 } Py_INCREF(Py_None
);
9133 _resultobj
= Py_None
;
9137 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
9138 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9139 PyObject
* _resultobj
;
9145 PyObject
* _argo0
= 0;
9146 char *_kwnames
[] = { "self","red","green","blue", NULL
};
9149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
9152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
9159 wxPy_BEGIN_ALLOW_THREADS
;
9160 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
9162 wxPy_END_ALLOW_THREADS
;
9163 if (PyErr_Occurred()) return NULL
;
9164 } _resultobj
= Py_BuildValue("i",_result
);
9168 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9169 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9170 PyObject
* _resultobj
;
9177 PyObject
* _argo0
= 0;
9178 PyObject
* _argo2
= 0;
9179 PyObject
* _argo3
= 0;
9180 PyObject
* _argo4
= 0;
9181 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
9184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
9187 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9188 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
9194 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9195 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
9196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
9201 if (_argo3
== Py_None
) { _arg3
= NULL
; }
9202 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
9203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
9208 if (_argo4
== Py_None
) { _arg4
= NULL
; }
9209 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
9210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
9215 wxPy_BEGIN_ALLOW_THREADS
;
9216 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9218 wxPy_END_ALLOW_THREADS
;
9219 if (PyErr_Occurred()) return NULL
;
9220 } _resultobj
= Py_BuildValue("i",_result
);
9224 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
9225 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9226 PyObject
* _resultobj
;
9229 PyObject
* _argo0
= 0;
9230 char *_kwnames
[] = { "self", NULL
};
9233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
9236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
9243 wxPy_BEGIN_ALLOW_THREADS
;
9244 _result
= (bool )wxPalette_Ok(_arg0
);
9246 wxPy_END_ALLOW_THREADS
;
9247 if (PyErr_Occurred()) return NULL
;
9248 } _resultobj
= Py_BuildValue("i",_result
);
9252 static void *SwigwxImageListTowxObject(void *ptr
) {
9255 src
= (wxImageList
*) ptr
;
9256 dest
= (wxObject
*) src
;
9257 return (void *) dest
;
9260 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9261 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9262 PyObject
* _resultobj
;
9263 wxImageList
* _result
;
9266 int _arg2
= (int ) TRUE
;
9267 int _arg3
= (int ) 1;
9268 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
9272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9275 wxPy_BEGIN_ALLOW_THREADS
;
9276 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
9278 wxPy_END_ALLOW_THREADS
;
9279 if (PyErr_Occurred()) return NULL
;
9281 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
9282 _resultobj
= Py_BuildValue("s",_ptemp
);
9285 _resultobj
= Py_None
;
9290 #define delete_wxImageList(_swigobj) (delete _swigobj)
9291 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9292 PyObject
* _resultobj
;
9293 wxImageList
* _arg0
;
9294 PyObject
* _argo0
= 0;
9295 char *_kwnames
[] = { "self", NULL
};
9298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
9301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
9308 wxPy_BEGIN_ALLOW_THREADS
;
9309 delete_wxImageList(_arg0
);
9311 wxPy_END_ALLOW_THREADS
;
9312 if (PyErr_Occurred()) return NULL
;
9313 } Py_INCREF(Py_None
);
9314 _resultobj
= Py_None
;
9318 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9319 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9320 PyObject
* _resultobj
;
9322 wxImageList
* _arg0
;
9324 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
9325 PyObject
* _argo0
= 0;
9326 PyObject
* _argo1
= 0;
9327 PyObject
* _argo2
= 0;
9328 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
9331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
9334 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9335 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9336 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
9341 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9342 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
9348 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9349 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9350 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
9355 wxPy_BEGIN_ALLOW_THREADS
;
9356 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
9358 wxPy_END_ALLOW_THREADS
;
9359 if (PyErr_Occurred()) return NULL
;
9360 } _resultobj
= Py_BuildValue("i",_result
);
9364 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9365 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9366 PyObject
* _resultobj
;
9368 wxImageList
* _arg0
;
9371 PyObject
* _argo0
= 0;
9372 PyObject
* _argo1
= 0;
9374 PyObject
* _obj2
= 0;
9375 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
9378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
9381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
9388 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9389 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
9396 if (! wxColour_helper(_obj2
, &_arg2
))
9400 wxPy_BEGIN_ALLOW_THREADS
;
9401 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
9403 wxPy_END_ALLOW_THREADS
;
9404 if (PyErr_Occurred()) return NULL
;
9405 } _resultobj
= Py_BuildValue("i",_result
);
9409 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
9410 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9411 PyObject
* _resultobj
;
9413 wxImageList
* _arg0
;
9415 PyObject
* _argo0
= 0;
9416 PyObject
* _argo1
= 0;
9417 char *_kwnames
[] = { "self","icon", NULL
};
9420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
9423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
9430 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9431 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
9432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
9437 wxPy_BEGIN_ALLOW_THREADS
;
9438 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
9440 wxPy_END_ALLOW_THREADS
;
9441 if (PyErr_Occurred()) return NULL
;
9442 } _resultobj
= Py_BuildValue("i",_result
);
9446 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
9447 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9448 PyObject
* _resultobj
;
9450 wxImageList
* _arg0
;
9453 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
9454 PyObject
* _argo0
= 0;
9455 PyObject
* _argo2
= 0;
9456 PyObject
* _argo3
= 0;
9457 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
9460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
9463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
9470 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9471 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
9477 if (_argo3
== Py_None
) { _arg3
= NULL
; }
9478 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
9479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
9484 wxPy_BEGIN_ALLOW_THREADS
;
9485 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
9487 wxPy_END_ALLOW_THREADS
;
9488 if (PyErr_Occurred()) return NULL
;
9489 } _resultobj
= Py_BuildValue("i",_result
);
9493 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9494 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9495 PyObject
* _resultobj
;
9497 wxImageList
* _arg0
;
9502 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
9503 bool _arg6
= (bool ) FALSE
;
9504 PyObject
* _argo0
= 0;
9505 PyObject
* _argo2
= 0;
9506 int tempbool6
= (int) FALSE
;
9507 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
9510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
9513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
9520 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9521 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
9522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
9526 _arg6
= (bool ) tempbool6
;
9528 wxPy_BEGIN_ALLOW_THREADS
;
9529 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
9531 wxPy_END_ALLOW_THREADS
;
9532 if (PyErr_Occurred()) return NULL
;
9533 } _resultobj
= Py_BuildValue("i",_result
);
9537 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
9538 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9539 PyObject
* _resultobj
;
9541 wxImageList
* _arg0
;
9542 PyObject
* _argo0
= 0;
9543 char *_kwnames
[] = { "self", NULL
};
9546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
9549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
9556 wxPy_BEGIN_ALLOW_THREADS
;
9557 _result
= (int )wxImageList_GetImageCount(_arg0
);
9559 wxPy_END_ALLOW_THREADS
;
9560 if (PyErr_Occurred()) return NULL
;
9561 } _resultobj
= Py_BuildValue("i",_result
);
9565 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
9566 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9567 PyObject
* _resultobj
;
9569 wxImageList
* _arg0
;
9571 PyObject
* _argo0
= 0;
9572 char *_kwnames
[] = { "self","index", NULL
};
9575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
9578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
9585 wxPy_BEGIN_ALLOW_THREADS
;
9586 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
9588 wxPy_END_ALLOW_THREADS
;
9589 if (PyErr_Occurred()) return NULL
;
9590 } _resultobj
= Py_BuildValue("i",_result
);
9594 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
9595 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9596 PyObject
* _resultobj
;
9598 wxImageList
* _arg0
;
9599 PyObject
* _argo0
= 0;
9600 char *_kwnames
[] = { "self", NULL
};
9603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
9606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9613 wxPy_BEGIN_ALLOW_THREADS
;
9614 _result
= (bool )wxImageList_RemoveAll(_arg0
);
9616 wxPy_END_ALLOW_THREADS
;
9617 if (PyErr_Occurred()) return NULL
;
9618 } _resultobj
= Py_BuildValue("i",_result
);
9622 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9623 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9624 PyObject
* _resultobj
;
9625 wxImageList
* _arg0
;
9631 PyObject
* _argo0
= 0;
9632 char *_kwnames
[] = { "self","index", NULL
};
9641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
9644 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9645 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9646 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9651 wxPy_BEGIN_ALLOW_THREADS
;
9652 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
9654 wxPy_END_ALLOW_THREADS
;
9655 if (PyErr_Occurred()) return NULL
;
9656 } Py_INCREF(Py_None
);
9657 _resultobj
= Py_None
;
9660 o
= PyInt_FromLong((long) (*_arg2
));
9661 _resultobj
= t_output_helper(_resultobj
, o
);
9665 o
= PyInt_FromLong((long) (*_arg3
));
9666 _resultobj
= t_output_helper(_resultobj
, o
);
9671 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
9674 src
= (wxRegion
*) ptr
;
9675 dest
= (wxGDIObject
*) src
;
9676 return (void *) dest
;
9679 static void *SwigwxRegionTowxObject(void *ptr
) {
9682 src
= (wxRegion
*) ptr
;
9683 dest
= (wxObject
*) src
;
9684 return (void *) dest
;
9687 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9688 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9689 PyObject
* _resultobj
;
9691 long _arg0
= (long ) 0;
9692 long _arg1
= (long ) 0;
9693 long _arg2
= (long ) 0;
9694 long _arg3
= (long ) 0;
9695 char *_kwnames
[] = { "x","y","width","height", NULL
};
9699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9702 wxPy_BEGIN_ALLOW_THREADS
;
9703 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
9705 wxPy_END_ALLOW_THREADS
;
9706 if (PyErr_Occurred()) return NULL
;
9708 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
9709 _resultobj
= Py_BuildValue("s",_ptemp
);
9712 _resultobj
= Py_None
;
9717 #define delete_wxRegion(_swigobj) (delete _swigobj)
9718 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9719 PyObject
* _resultobj
;
9721 PyObject
* _argo0
= 0;
9722 char *_kwnames
[] = { "self", NULL
};
9725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
9728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
9735 wxPy_BEGIN_ALLOW_THREADS
;
9736 delete_wxRegion(_arg0
);
9738 wxPy_END_ALLOW_THREADS
;
9739 if (PyErr_Occurred()) return NULL
;
9740 } Py_INCREF(Py_None
);
9741 _resultobj
= Py_None
;
9745 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
9746 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9747 PyObject
* _resultobj
;
9749 PyObject
* _argo0
= 0;
9750 char *_kwnames
[] = { "self", NULL
};
9753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
9756 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9757 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
9763 wxPy_BEGIN_ALLOW_THREADS
;
9764 wxRegion_Clear(_arg0
);
9766 wxPy_END_ALLOW_THREADS
;
9767 if (PyErr_Occurred()) return NULL
;
9768 } Py_INCREF(Py_None
);
9769 _resultobj
= Py_None
;
9773 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
9774 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9775 PyObject
* _resultobj
;
9776 wxRegionContain _result
;
9780 PyObject
* _argo0
= 0;
9781 char *_kwnames
[] = { "self","x","y", NULL
};
9784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
9794 wxPy_BEGIN_ALLOW_THREADS
;
9795 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
9797 wxPy_END_ALLOW_THREADS
;
9798 if (PyErr_Occurred()) return NULL
;
9799 } _resultobj
= Py_BuildValue("i",_result
);
9803 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9804 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9805 PyObject
* _resultobj
;
9806 wxRegionContain _result
;
9809 PyObject
* _argo0
= 0;
9811 PyObject
* _obj1
= 0;
9812 char *_kwnames
[] = { "self","pt", NULL
};
9815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
9818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
9826 if (! wxPoint_helper(_obj1
, &_arg1
))
9830 wxPy_BEGIN_ALLOW_THREADS
;
9831 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
9833 wxPy_END_ALLOW_THREADS
;
9834 if (PyErr_Occurred()) return NULL
;
9835 } _resultobj
= Py_BuildValue("i",_result
);
9839 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9840 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9841 PyObject
* _resultobj
;
9842 wxRegionContain _result
;
9845 PyObject
* _argo0
= 0;
9847 PyObject
* _obj1
= 0;
9848 char *_kwnames
[] = { "self","rect", NULL
};
9851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
9854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9862 if (! wxRect_helper(_obj1
, &_arg1
))
9866 wxPy_BEGIN_ALLOW_THREADS
;
9867 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
9869 wxPy_END_ALLOW_THREADS
;
9870 if (PyErr_Occurred()) return NULL
;
9871 } _resultobj
= Py_BuildValue("i",_result
);
9875 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9876 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9877 PyObject
* _resultobj
;
9878 wxRegionContain _result
;
9884 PyObject
* _argo0
= 0;
9885 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
9888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9898 wxPy_BEGIN_ALLOW_THREADS
;
9899 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9901 wxPy_END_ALLOW_THREADS
;
9902 if (PyErr_Occurred()) return NULL
;
9903 } _resultobj
= Py_BuildValue("i",_result
);
9907 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9908 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9909 PyObject
* _resultobj
;
9912 PyObject
* _argo0
= 0;
9913 char *_kwnames
[] = { "self", NULL
};
9917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
9920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9927 wxPy_BEGIN_ALLOW_THREADS
;
9928 _result
= new wxRect (wxRegion_GetBox(_arg0
));
9930 wxPy_END_ALLOW_THREADS
;
9931 if (PyErr_Occurred()) return NULL
;
9932 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9933 _resultobj
= Py_BuildValue("s",_ptemp
);
9937 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9938 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9939 PyObject
* _resultobj
;
9946 PyObject
* _argo0
= 0;
9947 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9953 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9954 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9960 wxPy_BEGIN_ALLOW_THREADS
;
9961 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9963 wxPy_END_ALLOW_THREADS
;
9964 if (PyErr_Occurred()) return NULL
;
9965 } _resultobj
= Py_BuildValue("i",_result
);
9969 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9970 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9971 PyObject
* _resultobj
;
9975 PyObject
* _argo0
= 0;
9977 PyObject
* _obj1
= 0;
9978 char *_kwnames
[] = { "self","rect", NULL
};
9981 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
9984 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9985 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9992 if (! wxRect_helper(_obj1
, &_arg1
))
9996 wxPy_BEGIN_ALLOW_THREADS
;
9997 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
9999 wxPy_END_ALLOW_THREADS
;
10000 if (PyErr_Occurred()) return NULL
;
10001 } _resultobj
= Py_BuildValue("i",_result
);
10005 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10006 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10007 PyObject
* _resultobj
;
10011 PyObject
* _argo0
= 0;
10012 PyObject
* _argo1
= 0;
10013 char *_kwnames
[] = { "self","region", NULL
};
10016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
10019 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10020 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10026 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10027 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10033 wxPy_BEGIN_ALLOW_THREADS
;
10034 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
10036 wxPy_END_ALLOW_THREADS
;
10037 if (PyErr_Occurred()) return NULL
;
10038 } _resultobj
= Py_BuildValue("i",_result
);
10042 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10043 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10044 PyObject
* _resultobj
;
10047 PyObject
* _argo0
= 0;
10048 char *_kwnames
[] = { "self", NULL
};
10051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
10054 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10055 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
10061 wxPy_BEGIN_ALLOW_THREADS
;
10062 _result
= (bool )wxRegion_IsEmpty(_arg0
);
10064 wxPy_END_ALLOW_THREADS
;
10065 if (PyErr_Occurred()) return NULL
;
10066 } _resultobj
= Py_BuildValue("i",_result
);
10070 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10071 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10072 PyObject
* _resultobj
;
10079 PyObject
* _argo0
= 0;
10080 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10086 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10087 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
10093 wxPy_BEGIN_ALLOW_THREADS
;
10094 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10096 wxPy_END_ALLOW_THREADS
;
10097 if (PyErr_Occurred()) return NULL
;
10098 } _resultobj
= Py_BuildValue("i",_result
);
10102 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10103 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10104 PyObject
* _resultobj
;
10108 PyObject
* _argo0
= 0;
10110 PyObject
* _obj1
= 0;
10111 char *_kwnames
[] = { "self","rect", NULL
};
10114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
10117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
10125 if (! wxRect_helper(_obj1
, &_arg1
))
10129 wxPy_BEGIN_ALLOW_THREADS
;
10130 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
10132 wxPy_END_ALLOW_THREADS
;
10133 if (PyErr_Occurred()) return NULL
;
10134 } _resultobj
= Py_BuildValue("i",_result
);
10138 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10139 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10140 PyObject
* _resultobj
;
10144 PyObject
* _argo0
= 0;
10145 PyObject
* _argo1
= 0;
10146 char *_kwnames
[] = { "self","region", NULL
};
10149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
10152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10159 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10160 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10161 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10166 wxPy_BEGIN_ALLOW_THREADS
;
10167 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
10169 wxPy_END_ALLOW_THREADS
;
10170 if (PyErr_Occurred()) return NULL
;
10171 } _resultobj
= Py_BuildValue("i",_result
);
10175 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10176 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10177 PyObject
* _resultobj
;
10184 PyObject
* _argo0
= 0;
10185 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10191 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10192 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10193 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
10198 wxPy_BEGIN_ALLOW_THREADS
;
10199 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10201 wxPy_END_ALLOW_THREADS
;
10202 if (PyErr_Occurred()) return NULL
;
10203 } _resultobj
= Py_BuildValue("i",_result
);
10207 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10208 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10209 PyObject
* _resultobj
;
10213 PyObject
* _argo0
= 0;
10215 PyObject
* _obj1
= 0;
10216 char *_kwnames
[] = { "self","rect", NULL
};
10219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
10222 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10223 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10224 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
10230 if (! wxRect_helper(_obj1
, &_arg1
))
10234 wxPy_BEGIN_ALLOW_THREADS
;
10235 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
10237 wxPy_END_ALLOW_THREADS
;
10238 if (PyErr_Occurred()) return NULL
;
10239 } _resultobj
= Py_BuildValue("i",_result
);
10243 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10244 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10245 PyObject
* _resultobj
;
10249 PyObject
* _argo0
= 0;
10250 PyObject
* _argo1
= 0;
10251 char *_kwnames
[] = { "self","region", NULL
};
10254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
10257 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10258 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10264 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10265 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10271 wxPy_BEGIN_ALLOW_THREADS
;
10272 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
10274 wxPy_END_ALLOW_THREADS
;
10275 if (PyErr_Occurred()) return NULL
;
10276 } _resultobj
= Py_BuildValue("i",_result
);
10280 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10281 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10282 PyObject
* _resultobj
;
10289 PyObject
* _argo0
= 0;
10290 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10293 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10296 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10297 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
10303 wxPy_BEGIN_ALLOW_THREADS
;
10304 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10306 wxPy_END_ALLOW_THREADS
;
10307 if (PyErr_Occurred()) return NULL
;
10308 } _resultobj
= Py_BuildValue("i",_result
);
10312 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10313 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10314 PyObject
* _resultobj
;
10318 PyObject
* _argo0
= 0;
10320 PyObject
* _obj1
= 0;
10321 char *_kwnames
[] = { "self","rect", NULL
};
10324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
10327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
10335 if (! wxRect_helper(_obj1
, &_arg1
))
10339 wxPy_BEGIN_ALLOW_THREADS
;
10340 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
10342 wxPy_END_ALLOW_THREADS
;
10343 if (PyErr_Occurred()) return NULL
;
10344 } _resultobj
= Py_BuildValue("i",_result
);
10348 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10349 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10350 PyObject
* _resultobj
;
10354 PyObject
* _argo0
= 0;
10355 PyObject
* _argo1
= 0;
10356 char *_kwnames
[] = { "self","region", NULL
};
10359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
10362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
10369 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10370 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
10376 wxPy_BEGIN_ALLOW_THREADS
;
10377 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
10379 wxPy_END_ALLOW_THREADS
;
10380 if (PyErr_Occurred()) return NULL
;
10381 } _resultobj
= Py_BuildValue("i",_result
);
10385 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
10386 wxRegionIterator
*src
;
10388 src
= (wxRegionIterator
*) ptr
;
10389 dest
= (wxObject
*) src
;
10390 return (void *) dest
;
10393 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
10394 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10395 PyObject
* _resultobj
;
10396 wxRegionIterator
* _result
;
10398 PyObject
* _argo0
= 0;
10399 char *_kwnames
[] = { "region", NULL
};
10403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
10406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
10413 wxPy_BEGIN_ALLOW_THREADS
;
10414 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
10416 wxPy_END_ALLOW_THREADS
;
10417 if (PyErr_Occurred()) return NULL
;
10419 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
10420 _resultobj
= Py_BuildValue("s",_ptemp
);
10422 Py_INCREF(Py_None
);
10423 _resultobj
= Py_None
;
10428 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
10429 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10430 PyObject
* _resultobj
;
10431 wxRegionIterator
* _arg0
;
10432 PyObject
* _argo0
= 0;
10433 char *_kwnames
[] = { "self", NULL
};
10436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
10439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
10446 wxPy_BEGIN_ALLOW_THREADS
;
10447 delete_wxRegionIterator(_arg0
);
10449 wxPy_END_ALLOW_THREADS
;
10450 if (PyErr_Occurred()) return NULL
;
10451 } Py_INCREF(Py_None
);
10452 _resultobj
= Py_None
;
10456 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
10457 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10458 PyObject
* _resultobj
;
10460 wxRegionIterator
* _arg0
;
10461 PyObject
* _argo0
= 0;
10462 char *_kwnames
[] = { "self", NULL
};
10465 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
10468 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10469 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
10475 wxPy_BEGIN_ALLOW_THREADS
;
10476 _result
= (long )wxRegionIterator_GetX(_arg0
);
10478 wxPy_END_ALLOW_THREADS
;
10479 if (PyErr_Occurred()) return NULL
;
10480 } _resultobj
= Py_BuildValue("l",_result
);
10484 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
10485 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10486 PyObject
* _resultobj
;
10488 wxRegionIterator
* _arg0
;
10489 PyObject
* _argo0
= 0;
10490 char *_kwnames
[] = { "self", NULL
};
10493 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
10496 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10497 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10498 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
10503 wxPy_BEGIN_ALLOW_THREADS
;
10504 _result
= (long )wxRegionIterator_GetY(_arg0
);
10506 wxPy_END_ALLOW_THREADS
;
10507 if (PyErr_Occurred()) return NULL
;
10508 } _resultobj
= Py_BuildValue("l",_result
);
10512 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
10513 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10514 PyObject
* _resultobj
;
10516 wxRegionIterator
* _arg0
;
10517 PyObject
* _argo0
= 0;
10518 char *_kwnames
[] = { "self", NULL
};
10521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
10524 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10525 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10526 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
10531 wxPy_BEGIN_ALLOW_THREADS
;
10532 _result
= (long )wxRegionIterator_GetW(_arg0
);
10534 wxPy_END_ALLOW_THREADS
;
10535 if (PyErr_Occurred()) return NULL
;
10536 } _resultobj
= Py_BuildValue("l",_result
);
10540 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
10541 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10542 PyObject
* _resultobj
;
10544 wxRegionIterator
* _arg0
;
10545 PyObject
* _argo0
= 0;
10546 char *_kwnames
[] = { "self", NULL
};
10549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
10552 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10553 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
10559 wxPy_BEGIN_ALLOW_THREADS
;
10560 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
10562 wxPy_END_ALLOW_THREADS
;
10563 if (PyErr_Occurred()) return NULL
;
10564 } _resultobj
= Py_BuildValue("l",_result
);
10568 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
10569 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10570 PyObject
* _resultobj
;
10572 wxRegionIterator
* _arg0
;
10573 PyObject
* _argo0
= 0;
10574 char *_kwnames
[] = { "self", NULL
};
10577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
10580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
10587 wxPy_BEGIN_ALLOW_THREADS
;
10588 _result
= (long )wxRegionIterator_GetH(_arg0
);
10590 wxPy_END_ALLOW_THREADS
;
10591 if (PyErr_Occurred()) return NULL
;
10592 } _resultobj
= Py_BuildValue("l",_result
);
10596 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
10597 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10598 PyObject
* _resultobj
;
10600 wxRegionIterator
* _arg0
;
10601 PyObject
* _argo0
= 0;
10602 char *_kwnames
[] = { "self", NULL
};
10605 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
10608 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10609 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
10615 wxPy_BEGIN_ALLOW_THREADS
;
10616 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
10618 wxPy_END_ALLOW_THREADS
;
10619 if (PyErr_Occurred()) return NULL
;
10620 } _resultobj
= Py_BuildValue("l",_result
);
10624 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
10625 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10626 PyObject
* _resultobj
;
10628 wxRegionIterator
* _arg0
;
10629 PyObject
* _argo0
= 0;
10630 char *_kwnames
[] = { "self", NULL
};
10634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
10637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
10644 wxPy_BEGIN_ALLOW_THREADS
;
10645 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
10647 wxPy_END_ALLOW_THREADS
;
10648 if (PyErr_Occurred()) return NULL
;
10649 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10650 _resultobj
= Py_BuildValue("s",_ptemp
);
10654 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
10655 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10656 PyObject
* _resultobj
;
10658 wxRegionIterator
* _arg0
;
10659 PyObject
* _argo0
= 0;
10660 char *_kwnames
[] = { "self", NULL
};
10663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
10666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
10673 wxPy_BEGIN_ALLOW_THREADS
;
10674 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
10676 wxPy_END_ALLOW_THREADS
;
10677 if (PyErr_Occurred()) return NULL
;
10678 } _resultobj
= Py_BuildValue("i",_result
);
10682 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
10683 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10684 PyObject
* _resultobj
;
10685 wxRegionIterator
* _arg0
;
10686 PyObject
* _argo0
= 0;
10687 char *_kwnames
[] = { "self", NULL
};
10690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
10693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
10700 wxPy_BEGIN_ALLOW_THREADS
;
10701 wxRegionIterator_Reset(_arg0
);
10703 wxPy_END_ALLOW_THREADS
;
10704 if (PyErr_Occurred()) return NULL
;
10705 } Py_INCREF(Py_None
);
10706 _resultobj
= Py_None
;
10710 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
10713 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10714 PyObject
* _resultobj
;
10715 wxRegionIterator
* _arg0
;
10716 PyObject
* _argo0
= 0;
10717 char *_kwnames
[] = { "self", NULL
};
10720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
10723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
10730 wxPy_BEGIN_ALLOW_THREADS
;
10731 wxRegionIterator_Next(_arg0
);
10733 wxPy_END_ALLOW_THREADS
;
10734 if (PyErr_Occurred()) return NULL
;
10735 } Py_INCREF(Py_None
);
10736 _resultobj
= Py_None
;
10740 static PyMethodDef gdicMethods
[] = {
10741 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
10742 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
10743 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
10744 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10745 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10746 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
10747 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10748 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
10749 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
10750 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
10751 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10752 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10753 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
10754 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
10755 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
10756 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
10757 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
10758 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
10759 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
10760 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
10761 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
10762 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
10763 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
10764 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
10765 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
10766 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
10767 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
10768 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
10769 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
10770 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
10771 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10772 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10773 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10774 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10775 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
10776 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10777 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
10778 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
10779 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10780 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
10781 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
10782 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
10783 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10784 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10785 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10786 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
10787 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10788 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10789 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10790 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
10791 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
10792 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
10793 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
10794 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
10795 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10796 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10797 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
10798 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
10799 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
10800 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
10801 { "wxDC_GetHDC", (PyCFunction
) _wrap_wxDC_GetHDC
, METH_VARARGS
| METH_KEYWORDS
},
10802 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10803 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10804 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
10805 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10806 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10807 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10808 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
10809 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10810 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10811 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10812 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10813 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
10814 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
10815 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10816 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10817 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10818 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
10819 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10820 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10821 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10822 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10823 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10824 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10825 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10826 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10827 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
10828 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10829 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10830 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10831 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
10832 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
10833 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
10834 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
10835 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
10836 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
10837 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
10838 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
10839 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10840 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10841 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10842 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10843 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10844 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
10845 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10846 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10847 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10848 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
10849 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10850 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10851 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10852 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10853 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10854 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
10855 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10856 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10857 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10858 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10859 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
10860 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
10861 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10862 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
10863 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
10864 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
10865 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10866 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
10867 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10868 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
10869 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
10870 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
10871 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
10872 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
10873 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
10874 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
10875 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
10876 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
10877 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
10878 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
10879 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
10880 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
10881 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10882 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
10883 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10884 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
10885 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10886 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
10887 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
10888 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
10889 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
10890 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10891 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10892 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10893 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10894 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10895 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10896 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10897 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10898 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10899 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
10900 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
10901 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
10902 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10903 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10904 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10905 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10906 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10907 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10908 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10909 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10910 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
10911 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10912 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10913 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10914 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10915 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10916 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
10917 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10918 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10919 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
10920 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
10921 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
10922 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
10923 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
10924 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10925 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
10926 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
10927 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
10928 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10929 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10930 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
10931 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
10932 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
10933 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
10934 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
10935 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
10936 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10937 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
10938 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
10939 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10940 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
10941 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
10942 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
10943 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10944 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
10945 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
10946 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10947 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
10948 { "wxFont_GetFontId", (PyCFunction
) _wrap_wxFont_GetFontId
, METH_VARARGS
| METH_KEYWORDS
},
10949 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
10950 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
10951 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10952 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
10953 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
10954 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10955 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10956 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10957 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10958 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10959 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10960 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10961 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10962 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10963 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10964 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
10965 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
10966 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10967 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10968 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10969 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10970 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10971 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10972 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10973 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10974 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10975 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10976 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10977 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10978 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10979 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10980 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10981 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
10982 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
10983 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
10984 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
10985 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10986 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10987 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10988 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10989 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10990 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10991 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10992 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10993 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10994 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10995 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10996 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10997 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10998 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
10999 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
11000 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11001 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
11002 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11003 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11004 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11005 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
11006 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11007 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11008 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11009 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11010 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
11011 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
11012 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11013 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11014 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
11015 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11016 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
11017 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
11018 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
11019 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11020 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11021 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11028 * This table is used by the pointer type-checker
11030 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
11031 { "_signed_long","_long",0},
11032 { "_wxPrintQuality","_wxCoord",0},
11033 { "_wxPrintQuality","_int",0},
11034 { "_wxPrintQuality","_signed_int",0},
11035 { "_wxPrintQuality","_unsigned_int",0},
11036 { "_wxPrintQuality","_wxWindowID",0},
11037 { "_wxPrintQuality","_uint",0},
11038 { "_wxPrintQuality","_EBool",0},
11039 { "_wxPrintQuality","_size_t",0},
11040 { "_wxPrintQuality","_time_t",0},
11041 { "_byte","_unsigned_char",0},
11042 { "_long","_unsigned_long",0},
11043 { "_long","_signed_long",0},
11044 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
11045 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
11046 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
11047 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
11048 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
11049 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
11050 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
11051 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
11052 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
11053 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
11054 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
11055 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
11056 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
11057 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11058 { "_size_t","_wxCoord",0},
11059 { "_size_t","_wxPrintQuality",0},
11060 { "_size_t","_time_t",0},
11061 { "_size_t","_unsigned_int",0},
11062 { "_size_t","_int",0},
11063 { "_size_t","_wxWindowID",0},
11064 { "_size_t","_uint",0},
11065 { "_uint","_wxCoord",0},
11066 { "_uint","_wxPrintQuality",0},
11067 { "_uint","_time_t",0},
11068 { "_uint","_size_t",0},
11069 { "_uint","_unsigned_int",0},
11070 { "_uint","_int",0},
11071 { "_uint","_wxWindowID",0},
11072 { "_wxChar","_char",0},
11073 { "_char","_wxChar",0},
11074 { "_EBool","_wxCoord",0},
11075 { "_EBool","_wxPrintQuality",0},
11076 { "_EBool","_signed_int",0},
11077 { "_EBool","_int",0},
11078 { "_EBool","_wxWindowID",0},
11079 { "_unsigned_long","_long",0},
11080 { "_signed_int","_wxCoord",0},
11081 { "_signed_int","_wxPrintQuality",0},
11082 { "_signed_int","_EBool",0},
11083 { "_signed_int","_wxWindowID",0},
11084 { "_signed_int","_int",0},
11085 { "_WXTYPE","_short",0},
11086 { "_WXTYPE","_signed_short",0},
11087 { "_WXTYPE","_unsigned_short",0},
11088 { "_unsigned_short","_WXTYPE",0},
11089 { "_unsigned_short","_short",0},
11090 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11091 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
11092 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
11093 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
11094 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject
},
11095 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
11096 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
11097 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
11098 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
11099 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11100 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
11101 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
11102 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
11103 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
11104 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11105 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
11106 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
11107 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
11108 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
11109 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
11110 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
11111 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
11112 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
11113 { "_signed_short","_WXTYPE",0},
11114 { "_signed_short","_short",0},
11115 { "_unsigned_char","_byte",0},
11116 { "_unsigned_int","_wxCoord",0},
11117 { "_unsigned_int","_wxPrintQuality",0},
11118 { "_unsigned_int","_time_t",0},
11119 { "_unsigned_int","_size_t",0},
11120 { "_unsigned_int","_uint",0},
11121 { "_unsigned_int","_wxWindowID",0},
11122 { "_unsigned_int","_int",0},
11123 { "_short","_WXTYPE",0},
11124 { "_short","_unsigned_short",0},
11125 { "_short","_signed_short",0},
11126 { "_wxWindowID","_wxCoord",0},
11127 { "_wxWindowID","_wxPrintQuality",0},
11128 { "_wxWindowID","_time_t",0},
11129 { "_wxWindowID","_size_t",0},
11130 { "_wxWindowID","_EBool",0},
11131 { "_wxWindowID","_uint",0},
11132 { "_wxWindowID","_int",0},
11133 { "_wxWindowID","_signed_int",0},
11134 { "_wxWindowID","_unsigned_int",0},
11135 { "_int","_wxCoord",0},
11136 { "_int","_wxPrintQuality",0},
11137 { "_int","_time_t",0},
11138 { "_int","_size_t",0},
11139 { "_int","_EBool",0},
11140 { "_int","_uint",0},
11141 { "_int","_wxWindowID",0},
11142 { "_int","_unsigned_int",0},
11143 { "_int","_signed_int",0},
11144 { "_time_t","_wxCoord",0},
11145 { "_time_t","_wxPrintQuality",0},
11146 { "_time_t","_unsigned_int",0},
11147 { "_time_t","_int",0},
11148 { "_time_t","_wxWindowID",0},
11149 { "_time_t","_uint",0},
11150 { "_time_t","_size_t",0},
11151 { "_wxCoord","_int",0},
11152 { "_wxCoord","_signed_int",0},
11153 { "_wxCoord","_unsigned_int",0},
11154 { "_wxCoord","_wxWindowID",0},
11155 { "_wxCoord","_uint",0},
11156 { "_wxCoord","_EBool",0},
11157 { "_wxCoord","_size_t",0},
11158 { "_wxCoord","_time_t",0},
11159 { "_wxCoord","_wxPrintQuality",0},
11162 static PyObject
*SWIG_globals
;
11166 SWIGEXPORT(void) initgdic() {
11168 SWIG_globals
= SWIG_newvarlink();
11169 m
= Py_InitModule("gdic", gdicMethods
);
11170 d
= PyModule_GetDict(m
);
11171 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
11172 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
11173 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
11174 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
11175 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
11176 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
11177 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
11178 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
11179 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
11180 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
11181 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
11182 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
11183 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
11184 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
11185 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
11186 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
11187 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
11188 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
11189 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
11190 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
11191 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
11192 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
11193 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
11194 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
11195 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
11196 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
11197 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
11198 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
11199 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
11200 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
11201 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
11202 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
11203 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
11204 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
11205 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
11206 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
11207 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
11208 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
11209 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
11210 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
11211 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
11212 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
11213 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
11214 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
11215 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
11216 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
11217 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
11218 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
11219 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
11220 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
11221 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
11222 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
11223 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
11224 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
11225 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
11226 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
11227 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
11228 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
11229 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
11230 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
11231 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
11232 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
11233 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
11234 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
11235 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
11236 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
11237 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
11238 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
11239 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
11240 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
11241 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
11242 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
11243 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
11244 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
11245 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
11246 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
11247 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
11248 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
11249 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
11250 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
11251 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
11252 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
11253 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
11254 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
11255 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
11256 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
11259 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
11260 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);