2 * FILE : src/gtk/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/metafile.h>
60 #include <wx/imaglist.h>
66 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
72 } else if (target
== Py_None
) {
76 if (!PyTuple_Check(target
)) {
78 target
= PyTuple_New(1);
79 PyTuple_SetItem(target
, 0, o2
);
82 PyTuple_SetItem(o3
, 0, o
);
85 target
= PySequence_Concat(o2
, o3
);
92 #if PYTHON_API_VERSION >= 1009
93 static char* wxStringErrorMsg
= "String or Unicode type required";
95 static char* wxStringErrorMsg
= "string type is required for parameter";
98 static wxString
wxPyEmptyStr("");
99 // Implementations of some alternate "constructors"
101 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
102 return new wxBitmap(width
, height
, depth
);
105 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
106 char** cArray
= NULL
;
109 if (!PyList_Check(listOfStrings
)) {
110 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
113 count
= PyList_Size(listOfStrings
);
114 cArray
= new char*[count
];
116 for(int x
=0; x
<count
; x
++) {
117 // TODO: Need some validation and error checking here
118 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
123 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
124 char** cArray
= NULL
;
127 cArray
= ConvertListOfStrings(listOfStrings
);
130 bmp
= new wxBitmap(cArray
);
136 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
137 return new wxBitmap(icon
);
143 wxBitmap
* wxBitmapFromData(PyObject
* data
, long type
,
144 int width
, int height
, int depth
= 1) {
145 if (! PyString_Check(data
)) {
146 PyErr_SetString(PyExc_TypeError
, "Expected string object");
150 return new wxBitmap((void*)PyString_AsString(data
), type
, width
, height
, depth
);
154 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
155 return new wxMask(bitmap
, colour
);
157 // Implementations of some alternate "constructors"
158 wxIcon
* wxEmptyIcon() {
162 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
163 char** cArray
= NULL
;
166 cArray
= ConvertListOfStrings(listOfStrings
);
169 icon
= new wxIcon(cArray
);
173 // Alternate 'constructor'
174 wxCursor
* wxPyStockCursor(int id
) {
175 return new wxCursor(id
);
178 wxFontEncoding
wxFont_GetDefaultEncoding() {
179 return wxFont::GetDefaultEncoding();
182 void wxFont_SetDefaultEncoding(wxFontEncoding encoding
) {
183 wxFont::SetDefaultEncoding(encoding
);
185 // Alternate 'constructor'
186 wxColour
* wxNamedColour(const wxString
& colorName
) {
187 return new wxColour(colorName
);
189 // Alternate 'constructor'
190 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
191 return new wxMemoryDC(oldDC
);
195 extern wxFont
* wxNORMAL_FONT
;
196 extern wxFont
* wxSMALL_FONT
;
197 extern wxFont
* wxITALIC_FONT
;
198 extern wxFont
* wxSWISS_FONT
;
199 extern wxPen
* wxRED_PEN
;
200 extern wxPen
* wxCYAN_PEN
;
201 extern wxPen
* wxGREEN_PEN
;
202 extern wxPen
* wxBLACK_PEN
;
203 extern wxPen
* wxWHITE_PEN
;
204 extern wxPen
* wxTRANSPARENT_PEN
;
205 extern wxPen
* wxBLACK_DASHED_PEN
;
206 extern wxPen
* wxGREY_PEN
;
207 extern wxPen
* wxMEDIUM_GREY_PEN
;
208 extern wxPen
* wxLIGHT_GREY_PEN
;
209 extern wxBrush
* wxBLUE_BRUSH
;
210 extern wxBrush
* wxGREEN_BRUSH
;
211 extern wxBrush
* wxWHITE_BRUSH
;
212 extern wxBrush
* wxBLACK_BRUSH
;
213 extern wxBrush
* wxTRANSPARENT_BRUSH
;
214 extern wxBrush
* wxCYAN_BRUSH
;
215 extern wxBrush
* wxRED_BRUSH
;
216 extern wxBrush
* wxGREY_BRUSH
;
217 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
218 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
219 extern wxColour
* wxBLACK
;
220 extern wxColour
* wxWHITE
;
221 extern wxColour
* wxRED
;
222 extern wxColour
* wxBLUE
;
223 extern wxColour
* wxGREEN
;
224 extern wxColour
* wxCYAN
;
225 extern wxColour
* wxLIGHT_GREY
;
226 extern wxCursor
* wxSTANDARD_CURSOR
;
227 extern wxCursor
* wxHOURGLASS_CURSOR
;
228 extern wxCursor
* wxCROSS_CURSOR
;
229 extern wxBitmap wxNullBitmap
;
230 extern wxIcon wxNullIcon
;
231 extern wxCursor wxNullCursor
;
232 extern wxPen wxNullPen
;
233 extern wxBrush wxNullBrush
;
234 extern wxPalette wxNullPalette
;
235 extern wxFont wxNullFont
;
236 extern wxColour wxNullColour
;
237 extern wxFontList
* wxTheFontList
;
238 extern wxPenList
* wxThePenList
;
239 extern wxBrushlist
* wxTheBrushList
;
240 extern wxColourDatabase
* wxTheColourDatabase
;
246 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
247 PyObject
* _resultobj
;
251 int _arg2
= (int ) -1;
252 char *_kwnames
[] = { "width","height","depth", NULL
};
256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
259 wxPy_BEGIN_ALLOW_THREADS
;
260 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
262 wxPy_END_ALLOW_THREADS
;
263 if (PyErr_Occurred()) return NULL
;
265 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
266 _resultobj
= Py_BuildValue("s",_ptemp
);
269 _resultobj
= Py_None
;
274 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
275 PyObject
* _resultobj
;
278 PyObject
* _obj0
= 0;
279 char *_kwnames
[] = { "listOfStrings", NULL
};
283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
289 wxPy_BEGIN_ALLOW_THREADS
;
290 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
292 wxPy_END_ALLOW_THREADS
;
293 if (PyErr_Occurred()) return NULL
;
295 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
296 _resultobj
= Py_BuildValue("s",_ptemp
);
299 _resultobj
= Py_None
;
304 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
305 PyObject
* _resultobj
;
308 PyObject
* _argo0
= 0;
309 char *_kwnames
[] = { "icon", NULL
};
313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
323 wxPy_BEGIN_ALLOW_THREADS
;
324 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
326 wxPy_END_ALLOW_THREADS
;
327 if (PyErr_Occurred()) return NULL
;
329 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
330 _resultobj
= Py_BuildValue("s",_ptemp
);
333 _resultobj
= Py_None
;
338 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
339 PyObject
* _resultobj
;
343 PyObject
* _argo0
= 0;
345 PyObject
* _obj1
= 0;
346 char *_kwnames
[] = { "bitmap","colour", NULL
};
350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
361 if (! wxColour_helper(_obj1
, &_arg1
))
365 wxPy_BEGIN_ALLOW_THREADS
;
366 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
368 wxPy_END_ALLOW_THREADS
;
369 if (PyErr_Occurred()) return NULL
;
371 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
372 _resultobj
= Py_BuildValue("s",_ptemp
);
375 _resultobj
= Py_None
;
380 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
381 PyObject
* _resultobj
;
383 char *_kwnames
[] = { NULL
};
387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
390 wxPy_BEGIN_ALLOW_THREADS
;
391 _result
= (wxIcon
*)wxEmptyIcon();
393 wxPy_END_ALLOW_THREADS
;
394 if (PyErr_Occurred()) return NULL
;
396 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
397 _resultobj
= Py_BuildValue("s",_ptemp
);
400 _resultobj
= Py_None
;
405 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
406 PyObject
* _resultobj
;
409 PyObject
* _obj0
= 0;
410 char *_kwnames
[] = { "listOfStrings", NULL
};
414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
420 wxPy_BEGIN_ALLOW_THREADS
;
421 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
423 wxPy_END_ALLOW_THREADS
;
424 if (PyErr_Occurred()) return NULL
;
426 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
427 _resultobj
= Py_BuildValue("s",_ptemp
);
430 _resultobj
= Py_None
;
435 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
436 PyObject
* _resultobj
;
439 char *_kwnames
[] = { "id", NULL
};
443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
446 wxPy_BEGIN_ALLOW_THREADS
;
447 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
449 wxPy_END_ALLOW_THREADS
;
450 if (PyErr_Occurred()) return NULL
;
452 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
453 _resultobj
= Py_BuildValue("s",_ptemp
);
456 _resultobj
= Py_None
;
461 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
462 PyObject
* _resultobj
;
463 wxFontEncoding _result
;
464 char *_kwnames
[] = { NULL
};
467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
470 wxPy_BEGIN_ALLOW_THREADS
;
471 _result
= (wxFontEncoding
)wxFont_GetDefaultEncoding();
473 wxPy_END_ALLOW_THREADS
;
474 if (PyErr_Occurred()) return NULL
;
475 } _resultobj
= Py_BuildValue("i",_result
);
479 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
480 PyObject
* _resultobj
;
481 wxFontEncoding _arg0
;
482 char *_kwnames
[] = { "encoding", NULL
};
485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
488 wxPy_BEGIN_ALLOW_THREADS
;
489 wxFont_SetDefaultEncoding(_arg0
);
491 wxPy_END_ALLOW_THREADS
;
492 if (PyErr_Occurred()) return NULL
;
493 } Py_INCREF(Py_None
);
494 _resultobj
= Py_None
;
498 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
499 PyObject
* _resultobj
;
502 PyObject
* _obj0
= 0;
503 char *_kwnames
[] = { "colorName", NULL
};
507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
510 #if PYTHON_API_VERSION >= 1009
511 char* tmpPtr
; int tmpSize
;
512 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
513 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
516 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
518 _arg0
= new wxString(tmpPtr
, tmpSize
);
520 if (!PyString_Check(_obj0
)) {
521 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
524 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
528 wxPy_BEGIN_ALLOW_THREADS
;
529 _result
= (wxColour
*)wxNamedColour(*_arg0
);
531 wxPy_END_ALLOW_THREADS
;
532 if (PyErr_Occurred()) return NULL
;
534 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
535 _resultobj
= Py_BuildValue("s",_ptemp
);
538 _resultobj
= Py_None
;
547 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
548 PyObject
* _resultobj
;
549 wxMemoryDC
* _result
;
551 PyObject
* _argo0
= 0;
552 char *_kwnames
[] = { "oldDC", NULL
};
556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
559 if (_argo0
== Py_None
) { _arg0
= NULL
; }
560 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
566 wxPy_BEGIN_ALLOW_THREADS
;
567 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
569 wxPy_END_ALLOW_THREADS
;
570 if (PyErr_Occurred()) return NULL
;
572 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
573 _resultobj
= Py_BuildValue("s",_ptemp
);
576 _resultobj
= Py_None
;
581 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
583 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
587 static PyObject
*_wrap_wxNORMAL_FONT_get() {
591 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
592 pyobj
= PyString_FromString(ptemp
);
596 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
598 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
602 static PyObject
*_wrap_wxSMALL_FONT_get() {
606 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
607 pyobj
= PyString_FromString(ptemp
);
611 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
613 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
617 static PyObject
*_wrap_wxITALIC_FONT_get() {
621 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
622 pyobj
= PyString_FromString(ptemp
);
626 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
628 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
632 static PyObject
*_wrap_wxSWISS_FONT_get() {
636 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
637 pyobj
= PyString_FromString(ptemp
);
641 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
643 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
647 static PyObject
*_wrap_wxRED_PEN_get() {
651 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
652 pyobj
= PyString_FromString(ptemp
);
656 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
658 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
662 static PyObject
*_wrap_wxCYAN_PEN_get() {
666 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
667 pyobj
= PyString_FromString(ptemp
);
671 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
673 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
677 static PyObject
*_wrap_wxGREEN_PEN_get() {
681 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
682 pyobj
= PyString_FromString(ptemp
);
686 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
688 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
692 static PyObject
*_wrap_wxBLACK_PEN_get() {
696 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
697 pyobj
= PyString_FromString(ptemp
);
701 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
703 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
707 static PyObject
*_wrap_wxWHITE_PEN_get() {
711 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
712 pyobj
= PyString_FromString(ptemp
);
716 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
718 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
722 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
726 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
727 pyobj
= PyString_FromString(ptemp
);
731 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
733 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
737 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
741 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
742 pyobj
= PyString_FromString(ptemp
);
746 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
748 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
752 static PyObject
*_wrap_wxGREY_PEN_get() {
756 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
757 pyobj
= PyString_FromString(ptemp
);
761 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
763 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
767 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
771 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
772 pyobj
= PyString_FromString(ptemp
);
776 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
778 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
782 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
786 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
787 pyobj
= PyString_FromString(ptemp
);
791 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
793 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
797 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
801 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
802 pyobj
= PyString_FromString(ptemp
);
806 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
808 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
812 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
816 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
817 pyobj
= PyString_FromString(ptemp
);
821 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
823 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
827 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
831 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
832 pyobj
= PyString_FromString(ptemp
);
836 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
838 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
842 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
846 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
847 pyobj
= PyString_FromString(ptemp
);
851 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
853 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
857 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
861 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
862 pyobj
= PyString_FromString(ptemp
);
866 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
868 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
872 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
876 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
877 pyobj
= PyString_FromString(ptemp
);
881 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
883 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
887 static PyObject
*_wrap_wxRED_BRUSH_get() {
891 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
892 pyobj
= PyString_FromString(ptemp
);
896 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
898 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
902 static PyObject
*_wrap_wxGREY_BRUSH_get() {
906 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
907 pyobj
= PyString_FromString(ptemp
);
911 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
913 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
917 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
921 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
922 pyobj
= PyString_FromString(ptemp
);
926 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
928 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
932 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
936 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
937 pyobj
= PyString_FromString(ptemp
);
941 static int _wrap_wxBLACK_set(PyObject
*val
) {
943 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
947 static PyObject
*_wrap_wxBLACK_get() {
951 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
952 pyobj
= PyString_FromString(ptemp
);
956 static int _wrap_wxWHITE_set(PyObject
*val
) {
958 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
962 static PyObject
*_wrap_wxWHITE_get() {
966 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
967 pyobj
= PyString_FromString(ptemp
);
971 static int _wrap_wxRED_set(PyObject
*val
) {
973 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
977 static PyObject
*_wrap_wxRED_get() {
981 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
982 pyobj
= PyString_FromString(ptemp
);
986 static int _wrap_wxBLUE_set(PyObject
*val
) {
988 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
992 static PyObject
*_wrap_wxBLUE_get() {
996 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
997 pyobj
= PyString_FromString(ptemp
);
1001 static int _wrap_wxGREEN_set(PyObject
*val
) {
1003 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1007 static PyObject
*_wrap_wxGREEN_get() {
1011 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1012 pyobj
= PyString_FromString(ptemp
);
1016 static int _wrap_wxCYAN_set(PyObject
*val
) {
1018 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1022 static PyObject
*_wrap_wxCYAN_get() {
1026 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1027 pyobj
= PyString_FromString(ptemp
);
1031 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1033 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1037 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1041 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1042 pyobj
= PyString_FromString(ptemp
);
1046 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1048 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1052 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1056 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1057 pyobj
= PyString_FromString(ptemp
);
1061 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1063 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1067 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1071 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1072 pyobj
= PyString_FromString(ptemp
);
1076 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1078 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1082 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1086 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1087 pyobj
= PyString_FromString(ptemp
);
1091 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1093 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1097 static PyObject
*_wrap_wxNullBitmap_get() {
1101 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1102 pyobj
= PyString_FromString(ptemp
);
1106 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1108 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1112 static PyObject
*_wrap_wxNullIcon_get() {
1116 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1117 pyobj
= PyString_FromString(ptemp
);
1121 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1123 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1127 static PyObject
*_wrap_wxNullCursor_get() {
1131 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1132 pyobj
= PyString_FromString(ptemp
);
1136 static int _wrap_wxNullPen_set(PyObject
*val
) {
1138 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1142 static PyObject
*_wrap_wxNullPen_get() {
1146 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1147 pyobj
= PyString_FromString(ptemp
);
1151 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1153 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1157 static PyObject
*_wrap_wxNullBrush_get() {
1161 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1162 pyobj
= PyString_FromString(ptemp
);
1166 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1168 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1172 static PyObject
*_wrap_wxNullPalette_get() {
1176 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1177 pyobj
= PyString_FromString(ptemp
);
1181 static int _wrap_wxNullFont_set(PyObject
*val
) {
1183 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1187 static PyObject
*_wrap_wxNullFont_get() {
1191 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1192 pyobj
= PyString_FromString(ptemp
);
1196 static int _wrap_wxNullColour_set(PyObject
*val
) {
1198 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1202 static PyObject
*_wrap_wxNullColour_get() {
1206 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1207 pyobj
= PyString_FromString(ptemp
);
1211 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1213 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1217 static PyObject
*_wrap_wxTheFontList_get() {
1221 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1222 pyobj
= PyString_FromString(ptemp
);
1226 static int _wrap_wxThePenList_set(PyObject
*val
) {
1228 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1232 static PyObject
*_wrap_wxThePenList_get() {
1236 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1237 pyobj
= PyString_FromString(ptemp
);
1241 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1243 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1247 static PyObject
*_wrap_wxTheBrushList_get() {
1251 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushlist_p");
1252 pyobj
= PyString_FromString(ptemp
);
1256 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1258 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1262 static PyObject
*_wrap_wxTheColourDatabase_get() {
1266 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1267 pyobj
= PyString_FromString(ptemp
);
1271 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1274 src
= (wxGDIObject
*) ptr
;
1275 dest
= (wxObject
*) src
;
1276 return (void *) dest
;
1279 #define new_wxGDIObject() (new wxGDIObject())
1280 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1281 PyObject
* _resultobj
;
1282 wxGDIObject
* _result
;
1283 char *_kwnames
[] = { NULL
};
1287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1290 wxPy_BEGIN_ALLOW_THREADS
;
1291 _result
= (wxGDIObject
*)new_wxGDIObject();
1293 wxPy_END_ALLOW_THREADS
;
1294 if (PyErr_Occurred()) return NULL
;
1296 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1297 _resultobj
= Py_BuildValue("s",_ptemp
);
1300 _resultobj
= Py_None
;
1305 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1306 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1307 PyObject
* _resultobj
;
1308 wxGDIObject
* _arg0
;
1309 PyObject
* _argo0
= 0;
1310 char *_kwnames
[] = { "self", NULL
};
1313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1323 wxPy_BEGIN_ALLOW_THREADS
;
1324 delete_wxGDIObject(_arg0
);
1326 wxPy_END_ALLOW_THREADS
;
1327 if (PyErr_Occurred()) return NULL
;
1328 } Py_INCREF(Py_None
);
1329 _resultobj
= Py_None
;
1333 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1334 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1335 PyObject
* _resultobj
;
1337 wxGDIObject
* _arg0
;
1338 PyObject
* _argo0
= 0;
1339 char *_kwnames
[] = { "self", NULL
};
1342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1352 wxPy_BEGIN_ALLOW_THREADS
;
1353 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1355 wxPy_END_ALLOW_THREADS
;
1356 if (PyErr_Occurred()) return NULL
;
1357 } _resultobj
= Py_BuildValue("i",_result
);
1361 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1362 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1363 PyObject
* _resultobj
;
1364 wxGDIObject
* _arg0
;
1366 PyObject
* _argo0
= 0;
1368 char *_kwnames
[] = { "self","visible", NULL
};
1371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1380 _arg1
= (bool ) tempbool1
;
1382 wxPy_BEGIN_ALLOW_THREADS
;
1383 wxGDIObject_SetVisible(_arg0
,_arg1
);
1385 wxPy_END_ALLOW_THREADS
;
1386 if (PyErr_Occurred()) return NULL
;
1387 } Py_INCREF(Py_None
);
1388 _resultobj
= Py_None
;
1392 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1393 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1394 PyObject
* _resultobj
;
1396 wxGDIObject
* _arg0
;
1397 PyObject
* _argo0
= 0;
1398 char *_kwnames
[] = { "self", NULL
};
1401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1411 wxPy_BEGIN_ALLOW_THREADS
;
1412 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1414 wxPy_END_ALLOW_THREADS
;
1415 if (PyErr_Occurred()) return NULL
;
1416 } _resultobj
= Py_BuildValue("i",_result
);
1420 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1423 src
= (wxBitmap
*) ptr
;
1424 dest
= (wxGDIObject
*) src
;
1425 return (void *) dest
;
1428 static void *SwigwxBitmapTowxObject(void *ptr
) {
1431 src
= (wxBitmap
*) ptr
;
1432 dest
= (wxObject
*) src
;
1433 return (void *) dest
;
1436 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1437 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1438 PyObject
* _resultobj
;
1442 PyObject
* _obj0
= 0;
1443 char *_kwnames
[] = { "name","type", NULL
};
1447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1450 #if PYTHON_API_VERSION >= 1009
1451 char* tmpPtr
; int tmpSize
;
1452 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1453 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1456 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1458 _arg0
= new wxString(tmpPtr
, tmpSize
);
1460 if (!PyString_Check(_obj0
)) {
1461 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1464 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1468 wxPy_BEGIN_ALLOW_THREADS
;
1469 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1471 wxPy_END_ALLOW_THREADS
;
1472 if (PyErr_Occurred()) return NULL
;
1474 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1475 _resultobj
= Py_BuildValue("s",_ptemp
);
1478 _resultobj
= Py_None
;
1487 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1488 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1489 PyObject
* _resultobj
;
1491 PyObject
* _argo0
= 0;
1492 char *_kwnames
[] = { "self", NULL
};
1495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1505 wxPy_BEGIN_ALLOW_THREADS
;
1506 delete_wxBitmap(_arg0
);
1508 wxPy_END_ALLOW_THREADS
;
1509 if (PyErr_Occurred()) return NULL
;
1510 } Py_INCREF(Py_None
);
1511 _resultobj
= Py_None
;
1515 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1516 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1517 PyObject
* _resultobj
;
1518 wxPalette
* _result
;
1520 PyObject
* _argo0
= 0;
1521 char *_kwnames
[] = { "self", NULL
};
1525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1535 wxPy_BEGIN_ALLOW_THREADS
;
1536 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1538 wxPy_END_ALLOW_THREADS
;
1539 if (PyErr_Occurred()) return NULL
;
1541 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1542 _resultobj
= Py_BuildValue("s",_ptemp
);
1545 _resultobj
= Py_None
;
1550 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1551 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1552 PyObject
* _resultobj
;
1555 PyObject
* _argo0
= 0;
1556 char *_kwnames
[] = { "self", NULL
};
1560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1570 wxPy_BEGIN_ALLOW_THREADS
;
1571 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1573 wxPy_END_ALLOW_THREADS
;
1574 if (PyErr_Occurred()) return NULL
;
1576 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1577 _resultobj
= Py_BuildValue("s",_ptemp
);
1580 _resultobj
= Py_None
;
1585 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1586 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1587 PyObject
* _resultobj
;
1592 PyObject
* _argo0
= 0;
1593 PyObject
* _obj1
= 0;
1594 char *_kwnames
[] = { "self","name","flags", NULL
};
1597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1607 #if PYTHON_API_VERSION >= 1009
1608 char* tmpPtr
; int tmpSize
;
1609 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1610 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1613 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1615 _arg1
= new wxString(tmpPtr
, tmpSize
);
1617 if (!PyString_Check(_obj1
)) {
1618 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1621 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1625 wxPy_BEGIN_ALLOW_THREADS
;
1626 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1628 wxPy_END_ALLOW_THREADS
;
1629 if (PyErr_Occurred()) return NULL
;
1630 } _resultobj
= Py_BuildValue("i",_result
);
1638 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1639 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1640 PyObject
* _resultobj
;
1645 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1646 PyObject
* _argo0
= 0;
1647 PyObject
* _obj1
= 0;
1648 PyObject
* _argo3
= 0;
1649 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1662 #if PYTHON_API_VERSION >= 1009
1663 char* tmpPtr
; int tmpSize
;
1664 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1665 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1668 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1670 _arg1
= new wxString(tmpPtr
, tmpSize
);
1672 if (!PyString_Check(_obj1
)) {
1673 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1676 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1680 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1681 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1687 wxPy_BEGIN_ALLOW_THREADS
;
1688 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1690 wxPy_END_ALLOW_THREADS
;
1691 if (PyErr_Occurred()) return NULL
;
1692 } _resultobj
= Py_BuildValue("i",_result
);
1700 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1701 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1702 PyObject
* _resultobj
;
1705 PyObject
* _argo0
= 0;
1706 PyObject
* _argo1
= 0;
1707 char *_kwnames
[] = { "self","mask", NULL
};
1710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1720 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1721 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1727 wxPy_BEGIN_ALLOW_THREADS
;
1728 wxBitmap_SetMask(_arg0
,_arg1
);
1730 wxPy_END_ALLOW_THREADS
;
1731 if (PyErr_Occurred()) return NULL
;
1732 } Py_INCREF(Py_None
);
1733 _resultobj
= Py_None
;
1737 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1738 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1739 PyObject
* _resultobj
;
1742 PyObject
* _argo0
= 0;
1743 char *_kwnames
[] = { "self", NULL
};
1746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1749 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1750 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1756 wxPy_BEGIN_ALLOW_THREADS
;
1757 _result
= (bool )wxBitmap_Ok(_arg0
);
1759 wxPy_END_ALLOW_THREADS
;
1760 if (PyErr_Occurred()) return NULL
;
1761 } _resultobj
= Py_BuildValue("i",_result
);
1765 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1766 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1767 PyObject
* _resultobj
;
1770 PyObject
* _argo0
= 0;
1771 char *_kwnames
[] = { "self", NULL
};
1774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1777 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1778 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1784 wxPy_BEGIN_ALLOW_THREADS
;
1785 _result
= (int )wxBitmap_GetWidth(_arg0
);
1787 wxPy_END_ALLOW_THREADS
;
1788 if (PyErr_Occurred()) return NULL
;
1789 } _resultobj
= Py_BuildValue("i",_result
);
1793 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1794 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1795 PyObject
* _resultobj
;
1798 PyObject
* _argo0
= 0;
1799 char *_kwnames
[] = { "self", NULL
};
1802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1812 wxPy_BEGIN_ALLOW_THREADS
;
1813 _result
= (int )wxBitmap_GetHeight(_arg0
);
1815 wxPy_END_ALLOW_THREADS
;
1816 if (PyErr_Occurred()) return NULL
;
1817 } _resultobj
= Py_BuildValue("i",_result
);
1821 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1822 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1823 PyObject
* _resultobj
;
1826 PyObject
* _argo0
= 0;
1827 char *_kwnames
[] = { "self", NULL
};
1830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1833 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1834 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1840 wxPy_BEGIN_ALLOW_THREADS
;
1841 _result
= (int )wxBitmap_GetDepth(_arg0
);
1843 wxPy_END_ALLOW_THREADS
;
1844 if (PyErr_Occurred()) return NULL
;
1845 } _resultobj
= Py_BuildValue("i",_result
);
1849 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1850 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1851 PyObject
* _resultobj
;
1854 PyObject
* _argo0
= 0;
1855 char *_kwnames
[] = { "self","w", NULL
};
1858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1868 wxPy_BEGIN_ALLOW_THREADS
;
1869 wxBitmap_SetWidth(_arg0
,_arg1
);
1871 wxPy_END_ALLOW_THREADS
;
1872 if (PyErr_Occurred()) return NULL
;
1873 } Py_INCREF(Py_None
);
1874 _resultobj
= Py_None
;
1878 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1879 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1880 PyObject
* _resultobj
;
1883 PyObject
* _argo0
= 0;
1884 char *_kwnames
[] = { "self","h", NULL
};
1887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1897 wxPy_BEGIN_ALLOW_THREADS
;
1898 wxBitmap_SetHeight(_arg0
,_arg1
);
1900 wxPy_END_ALLOW_THREADS
;
1901 if (PyErr_Occurred()) return NULL
;
1902 } Py_INCREF(Py_None
);
1903 _resultobj
= Py_None
;
1907 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1908 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1909 PyObject
* _resultobj
;
1912 PyObject
* _argo0
= 0;
1913 char *_kwnames
[] = { "self","d", NULL
};
1916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1926 wxPy_BEGIN_ALLOW_THREADS
;
1927 wxBitmap_SetDepth(_arg0
,_arg1
);
1929 wxPy_END_ALLOW_THREADS
;
1930 if (PyErr_Occurred()) return NULL
;
1931 } Py_INCREF(Py_None
);
1932 _resultobj
= Py_None
;
1936 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1937 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1938 PyObject
* _resultobj
;
1942 PyObject
* _argo0
= 0;
1944 PyObject
* _obj1
= 0;
1945 char *_kwnames
[] = { "self","rect", NULL
};
1949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1952 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1953 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1960 if (! wxRect_helper(_obj1
, &_arg1
))
1964 wxPy_BEGIN_ALLOW_THREADS
;
1965 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
1967 wxPy_END_ALLOW_THREADS
;
1968 if (PyErr_Occurred()) return NULL
;
1969 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1970 _resultobj
= Py_BuildValue("s",_ptemp
);
1974 static void *SwigwxMaskTowxObject(void *ptr
) {
1977 src
= (wxMask
*) ptr
;
1978 dest
= (wxObject
*) src
;
1979 return (void *) dest
;
1982 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
1983 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1984 PyObject
* _resultobj
;
1987 PyObject
* _argo0
= 0;
1988 char *_kwnames
[] = { "bitmap", NULL
};
1992 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
1995 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1996 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1997 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2002 wxPy_BEGIN_ALLOW_THREADS
;
2003 _result
= (wxMask
*)new_wxMask(*_arg0
);
2005 wxPy_END_ALLOW_THREADS
;
2006 if (PyErr_Occurred()) return NULL
;
2008 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2009 _resultobj
= Py_BuildValue("s",_ptemp
);
2012 _resultobj
= Py_None
;
2017 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2018 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2019 PyObject
* _resultobj
;
2021 PyObject
* _argo0
= 0;
2022 char *_kwnames
[] = { "self", NULL
};
2025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2035 wxPy_BEGIN_ALLOW_THREADS
;
2036 wxMask_Destroy(_arg0
);
2038 wxPy_END_ALLOW_THREADS
;
2039 if (PyErr_Occurred()) return NULL
;
2040 } Py_INCREF(Py_None
);
2041 _resultobj
= Py_None
;
2045 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2048 src
= (wxIcon
*) ptr
;
2049 dest
= (wxGDIObject
*) src
;
2050 return (void *) dest
;
2053 static void *SwigwxIconTowxObject(void *ptr
) {
2056 src
= (wxIcon
*) ptr
;
2057 dest
= (wxObject
*) src
;
2058 return (void *) dest
;
2061 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2062 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2063 PyObject
* _resultobj
;
2067 int _arg2
= (int ) -1;
2068 int _arg3
= (int ) -1;
2069 PyObject
* _obj0
= 0;
2070 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2077 #if PYTHON_API_VERSION >= 1009
2078 char* tmpPtr
; int tmpSize
;
2079 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2080 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2083 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2085 _arg0
= new wxString(tmpPtr
, tmpSize
);
2087 if (!PyString_Check(_obj0
)) {
2088 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2091 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2095 wxPy_BEGIN_ALLOW_THREADS
;
2096 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2098 wxPy_END_ALLOW_THREADS
;
2099 if (PyErr_Occurred()) return NULL
;
2101 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2102 _resultobj
= Py_BuildValue("s",_ptemp
);
2105 _resultobj
= Py_None
;
2114 #define delete_wxIcon(_swigobj) (delete _swigobj)
2115 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2116 PyObject
* _resultobj
;
2118 PyObject
* _argo0
= 0;
2119 char *_kwnames
[] = { "self", NULL
};
2122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2132 wxPy_BEGIN_ALLOW_THREADS
;
2133 delete_wxIcon(_arg0
);
2135 wxPy_END_ALLOW_THREADS
;
2136 if (PyErr_Occurred()) return NULL
;
2137 } Py_INCREF(Py_None
);
2138 _resultobj
= Py_None
;
2142 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2143 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2144 PyObject
* _resultobj
;
2149 PyObject
* _argo0
= 0;
2150 PyObject
* _obj1
= 0;
2151 char *_kwnames
[] = { "self","name","flags", NULL
};
2154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2157 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2158 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2164 #if PYTHON_API_VERSION >= 1009
2165 char* tmpPtr
; int tmpSize
;
2166 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2167 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2170 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2172 _arg1
= new wxString(tmpPtr
, tmpSize
);
2174 if (!PyString_Check(_obj1
)) {
2175 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2178 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2182 wxPy_BEGIN_ALLOW_THREADS
;
2183 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2185 wxPy_END_ALLOW_THREADS
;
2186 if (PyErr_Occurred()) return NULL
;
2187 } _resultobj
= Py_BuildValue("i",_result
);
2195 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2196 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2197 PyObject
* _resultobj
;
2200 PyObject
* _argo0
= 0;
2201 char *_kwnames
[] = { "self", NULL
};
2204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2214 wxPy_BEGIN_ALLOW_THREADS
;
2215 _result
= (bool )wxIcon_Ok(_arg0
);
2217 wxPy_END_ALLOW_THREADS
;
2218 if (PyErr_Occurred()) return NULL
;
2219 } _resultobj
= Py_BuildValue("i",_result
);
2223 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2224 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2225 PyObject
* _resultobj
;
2228 PyObject
* _argo0
= 0;
2229 char *_kwnames
[] = { "self", NULL
};
2232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2242 wxPy_BEGIN_ALLOW_THREADS
;
2243 _result
= (int )wxIcon_GetWidth(_arg0
);
2245 wxPy_END_ALLOW_THREADS
;
2246 if (PyErr_Occurred()) return NULL
;
2247 } _resultobj
= Py_BuildValue("i",_result
);
2251 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2252 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2253 PyObject
* _resultobj
;
2256 PyObject
* _argo0
= 0;
2257 char *_kwnames
[] = { "self", NULL
};
2260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2270 wxPy_BEGIN_ALLOW_THREADS
;
2271 _result
= (int )wxIcon_GetHeight(_arg0
);
2273 wxPy_END_ALLOW_THREADS
;
2274 if (PyErr_Occurred()) return NULL
;
2275 } _resultobj
= Py_BuildValue("i",_result
);
2279 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2280 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2281 PyObject
* _resultobj
;
2284 PyObject
* _argo0
= 0;
2285 char *_kwnames
[] = { "self", NULL
};
2288 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2291 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2292 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2298 wxPy_BEGIN_ALLOW_THREADS
;
2299 _result
= (int )wxIcon_GetDepth(_arg0
);
2301 wxPy_END_ALLOW_THREADS
;
2302 if (PyErr_Occurred()) return NULL
;
2303 } _resultobj
= Py_BuildValue("i",_result
);
2307 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2308 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2309 PyObject
* _resultobj
;
2312 PyObject
* _argo0
= 0;
2313 char *_kwnames
[] = { "self","w", NULL
};
2316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2326 wxPy_BEGIN_ALLOW_THREADS
;
2327 wxIcon_SetWidth(_arg0
,_arg1
);
2329 wxPy_END_ALLOW_THREADS
;
2330 if (PyErr_Occurred()) return NULL
;
2331 } Py_INCREF(Py_None
);
2332 _resultobj
= Py_None
;
2336 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2337 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2338 PyObject
* _resultobj
;
2341 PyObject
* _argo0
= 0;
2342 char *_kwnames
[] = { "self","h", NULL
};
2345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2348 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2349 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2350 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2355 wxPy_BEGIN_ALLOW_THREADS
;
2356 wxIcon_SetHeight(_arg0
,_arg1
);
2358 wxPy_END_ALLOW_THREADS
;
2359 if (PyErr_Occurred()) return NULL
;
2360 } Py_INCREF(Py_None
);
2361 _resultobj
= Py_None
;
2365 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2366 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2367 PyObject
* _resultobj
;
2370 PyObject
* _argo0
= 0;
2371 char *_kwnames
[] = { "self","d", NULL
};
2374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2377 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2378 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2379 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2384 wxPy_BEGIN_ALLOW_THREADS
;
2385 wxIcon_SetDepth(_arg0
,_arg1
);
2387 wxPy_END_ALLOW_THREADS
;
2388 if (PyErr_Occurred()) return NULL
;
2389 } Py_INCREF(Py_None
);
2390 _resultobj
= Py_None
;
2394 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2395 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2396 PyObject
* _resultobj
;
2399 PyObject
* _argo0
= 0;
2400 PyObject
* _argo1
= 0;
2401 char *_kwnames
[] = { "self","bmp", NULL
};
2404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2414 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2415 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2421 wxPy_BEGIN_ALLOW_THREADS
;
2422 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2424 wxPy_END_ALLOW_THREADS
;
2425 if (PyErr_Occurred()) return NULL
;
2426 } Py_INCREF(Py_None
);
2427 _resultobj
= Py_None
;
2431 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2434 src
= (wxCursor
*) ptr
;
2435 dest
= (wxGDIObject
*) src
;
2436 return (void *) dest
;
2439 static void *SwigwxCursorTowxObject(void *ptr
) {
2442 src
= (wxCursor
*) ptr
;
2443 dest
= (wxObject
*) src
;
2444 return (void *) dest
;
2447 #define delete_wxCursor(_swigobj) (delete _swigobj)
2448 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2449 PyObject
* _resultobj
;
2451 PyObject
* _argo0
= 0;
2452 char *_kwnames
[] = { "self", NULL
};
2455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2458 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2459 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2465 wxPy_BEGIN_ALLOW_THREADS
;
2466 delete_wxCursor(_arg0
);
2468 wxPy_END_ALLOW_THREADS
;
2469 if (PyErr_Occurred()) return NULL
;
2470 } Py_INCREF(Py_None
);
2471 _resultobj
= Py_None
;
2475 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2476 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2477 PyObject
* _resultobj
;
2480 PyObject
* _argo0
= 0;
2481 char *_kwnames
[] = { "self", NULL
};
2484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2494 wxPy_BEGIN_ALLOW_THREADS
;
2495 _result
= (bool )wxCursor_Ok(_arg0
);
2497 wxPy_END_ALLOW_THREADS
;
2498 if (PyErr_Occurred()) return NULL
;
2499 } _resultobj
= Py_BuildValue("i",_result
);
2503 static void *SwigwxFontTowxGDIObject(void *ptr
) {
2506 src
= (wxFont
*) ptr
;
2507 dest
= (wxGDIObject
*) src
;
2508 return (void *) dest
;
2511 static void *SwigwxFontTowxObject(void *ptr
) {
2514 src
= (wxFont
*) ptr
;
2515 dest
= (wxObject
*) src
;
2516 return (void *) dest
;
2519 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2520 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2521 PyObject
* _resultobj
;
2527 int _arg4
= (int ) FALSE
;
2528 char * _arg5
= (char *) "";
2529 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
2530 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
2534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
2537 wxPy_BEGIN_ALLOW_THREADS
;
2538 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2540 wxPy_END_ALLOW_THREADS
;
2541 if (PyErr_Occurred()) return NULL
;
2543 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
2544 _resultobj
= Py_BuildValue("s",_ptemp
);
2547 _resultobj
= Py_None
;
2552 #define delete_wxFont(_swigobj) (delete _swigobj)
2553 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2554 PyObject
* _resultobj
;
2556 PyObject
* _argo0
= 0;
2557 char *_kwnames
[] = { "self", NULL
};
2560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
2563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
2570 wxPy_BEGIN_ALLOW_THREADS
;
2571 delete_wxFont(_arg0
);
2573 wxPy_END_ALLOW_THREADS
;
2574 if (PyErr_Occurred()) return NULL
;
2575 } Py_INCREF(Py_None
);
2576 _resultobj
= Py_None
;
2580 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
2581 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2582 PyObject
* _resultobj
;
2585 PyObject
* _argo0
= 0;
2586 char *_kwnames
[] = { "self", NULL
};
2589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
2592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
2599 wxPy_BEGIN_ALLOW_THREADS
;
2600 _result
= (bool )wxFont_Ok(_arg0
);
2602 wxPy_END_ALLOW_THREADS
;
2603 if (PyErr_Occurred()) return NULL
;
2604 } _resultobj
= Py_BuildValue("i",_result
);
2608 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
2609 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2610 PyObject
* _resultobj
;
2613 PyObject
* _argo0
= 0;
2614 char *_kwnames
[] = { "self", NULL
};
2617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
2620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
2627 wxPy_BEGIN_ALLOW_THREADS
;
2628 _result
= new wxString (wxFont_GetFaceName(_arg0
));
2630 wxPy_END_ALLOW_THREADS
;
2631 if (PyErr_Occurred()) return NULL
;
2633 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2641 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
2642 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2643 PyObject
* _resultobj
;
2646 PyObject
* _argo0
= 0;
2647 char *_kwnames
[] = { "self", NULL
};
2650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
2653 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2654 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
2660 wxPy_BEGIN_ALLOW_THREADS
;
2661 _result
= (int )wxFont_GetFamily(_arg0
);
2663 wxPy_END_ALLOW_THREADS
;
2664 if (PyErr_Occurred()) return NULL
;
2665 } _resultobj
= Py_BuildValue("i",_result
);
2669 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
2670 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2671 PyObject
* _resultobj
;
2674 PyObject
* _argo0
= 0;
2675 char *_kwnames
[] = { "self", NULL
};
2678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
2681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
2688 wxPy_BEGIN_ALLOW_THREADS
;
2689 _result
= (int )wxFont_GetPointSize(_arg0
);
2691 wxPy_END_ALLOW_THREADS
;
2692 if (PyErr_Occurred()) return NULL
;
2693 } _resultobj
= Py_BuildValue("i",_result
);
2697 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
2698 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2699 PyObject
* _resultobj
;
2702 PyObject
* _argo0
= 0;
2703 char *_kwnames
[] = { "self", NULL
};
2706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
2709 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2710 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
2716 wxPy_BEGIN_ALLOW_THREADS
;
2717 _result
= (int )wxFont_GetStyle(_arg0
);
2719 wxPy_END_ALLOW_THREADS
;
2720 if (PyErr_Occurred()) return NULL
;
2721 } _resultobj
= Py_BuildValue("i",_result
);
2725 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
2726 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2727 PyObject
* _resultobj
;
2730 PyObject
* _argo0
= 0;
2731 char *_kwnames
[] = { "self", NULL
};
2734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
2737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
2744 wxPy_BEGIN_ALLOW_THREADS
;
2745 _result
= (bool )wxFont_GetUnderlined(_arg0
);
2747 wxPy_END_ALLOW_THREADS
;
2748 if (PyErr_Occurred()) return NULL
;
2749 } _resultobj
= Py_BuildValue("i",_result
);
2753 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
2754 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2755 PyObject
* _resultobj
;
2758 PyObject
* _argo0
= 0;
2759 char *_kwnames
[] = { "self", NULL
};
2762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
2765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
2772 wxPy_BEGIN_ALLOW_THREADS
;
2773 _result
= (int )wxFont_GetWeight(_arg0
);
2775 wxPy_END_ALLOW_THREADS
;
2776 if (PyErr_Occurred()) return NULL
;
2777 } _resultobj
= Py_BuildValue("i",_result
);
2781 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
2782 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2783 PyObject
* _resultobj
;
2784 wxFontEncoding _result
;
2786 PyObject
* _argo0
= 0;
2787 char *_kwnames
[] = { "self", NULL
};
2790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
2793 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2794 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
2800 wxPy_BEGIN_ALLOW_THREADS
;
2801 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
2803 wxPy_END_ALLOW_THREADS
;
2804 if (PyErr_Occurred()) return NULL
;
2805 } _resultobj
= Py_BuildValue("i",_result
);
2809 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
2810 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2811 PyObject
* _resultobj
;
2814 PyObject
* _argo0
= 0;
2815 PyObject
* _obj1
= 0;
2816 char *_kwnames
[] = { "self","faceName", NULL
};
2819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
2822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
2829 #if PYTHON_API_VERSION >= 1009
2830 char* tmpPtr
; int tmpSize
;
2831 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2832 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2835 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2837 _arg1
= new wxString(tmpPtr
, tmpSize
);
2839 if (!PyString_Check(_obj1
)) {
2840 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2843 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2847 wxPy_BEGIN_ALLOW_THREADS
;
2848 wxFont_SetFaceName(_arg0
,*_arg1
);
2850 wxPy_END_ALLOW_THREADS
;
2851 if (PyErr_Occurred()) return NULL
;
2852 } Py_INCREF(Py_None
);
2853 _resultobj
= Py_None
;
2861 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
2862 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2863 PyObject
* _resultobj
;
2866 PyObject
* _argo0
= 0;
2867 char *_kwnames
[] = { "self","family", NULL
};
2870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
2873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
2880 wxPy_BEGIN_ALLOW_THREADS
;
2881 wxFont_SetFamily(_arg0
,_arg1
);
2883 wxPy_END_ALLOW_THREADS
;
2884 if (PyErr_Occurred()) return NULL
;
2885 } Py_INCREF(Py_None
);
2886 _resultobj
= Py_None
;
2890 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
2891 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2892 PyObject
* _resultobj
;
2895 PyObject
* _argo0
= 0;
2896 char *_kwnames
[] = { "self","pointSize", NULL
};
2899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
2902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
2909 wxPy_BEGIN_ALLOW_THREADS
;
2910 wxFont_SetPointSize(_arg0
,_arg1
);
2912 wxPy_END_ALLOW_THREADS
;
2913 if (PyErr_Occurred()) return NULL
;
2914 } Py_INCREF(Py_None
);
2915 _resultobj
= Py_None
;
2919 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
2920 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2921 PyObject
* _resultobj
;
2924 PyObject
* _argo0
= 0;
2925 char *_kwnames
[] = { "self","style", NULL
};
2928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
2931 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2932 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2933 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
2938 wxPy_BEGIN_ALLOW_THREADS
;
2939 wxFont_SetStyle(_arg0
,_arg1
);
2941 wxPy_END_ALLOW_THREADS
;
2942 if (PyErr_Occurred()) return NULL
;
2943 } Py_INCREF(Py_None
);
2944 _resultobj
= Py_None
;
2948 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
2949 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2950 PyObject
* _resultobj
;
2953 PyObject
* _argo0
= 0;
2955 char *_kwnames
[] = { "self","underlined", NULL
};
2958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
2961 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2962 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
2967 _arg1
= (bool ) tempbool1
;
2969 wxPy_BEGIN_ALLOW_THREADS
;
2970 wxFont_SetUnderlined(_arg0
,_arg1
);
2972 wxPy_END_ALLOW_THREADS
;
2973 if (PyErr_Occurred()) return NULL
;
2974 } Py_INCREF(Py_None
);
2975 _resultobj
= Py_None
;
2979 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
2980 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2981 PyObject
* _resultobj
;
2984 PyObject
* _argo0
= 0;
2985 char *_kwnames
[] = { "self","weight", NULL
};
2988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
2991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
2998 wxPy_BEGIN_ALLOW_THREADS
;
2999 wxFont_SetWeight(_arg0
,_arg1
);
3001 wxPy_END_ALLOW_THREADS
;
3002 if (PyErr_Occurred()) return NULL
;
3003 } Py_INCREF(Py_None
);
3004 _resultobj
= Py_None
;
3008 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3009 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3010 PyObject
* _resultobj
;
3012 wxFontEncoding _arg1
;
3013 PyObject
* _argo0
= 0;
3014 char *_kwnames
[] = { "self","encoding", NULL
};
3017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
3020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
3027 wxPy_BEGIN_ALLOW_THREADS
;
3028 wxFont_SetEncoding(_arg0
,_arg1
);
3030 wxPy_END_ALLOW_THREADS
;
3031 if (PyErr_Occurred()) return NULL
;
3032 } Py_INCREF(Py_None
);
3033 _resultobj
= Py_None
;
3037 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
3038 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3039 PyObject
* _resultobj
;
3042 PyObject
* _argo0
= 0;
3043 char *_kwnames
[] = { "self", NULL
};
3046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
3049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
3056 wxPy_BEGIN_ALLOW_THREADS
;
3057 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
3059 wxPy_END_ALLOW_THREADS
;
3060 if (PyErr_Occurred()) return NULL
;
3062 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3070 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
3071 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3072 PyObject
* _resultobj
;
3075 PyObject
* _argo0
= 0;
3076 char *_kwnames
[] = { "self", NULL
};
3079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
3082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
3089 wxPy_BEGIN_ALLOW_THREADS
;
3090 _result
= new wxString (wxFont_GetStyleString(_arg0
));
3092 wxPy_END_ALLOW_THREADS
;
3093 if (PyErr_Occurred()) return NULL
;
3095 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3103 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
3104 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3105 PyObject
* _resultobj
;
3108 PyObject
* _argo0
= 0;
3109 char *_kwnames
[] = { "self", NULL
};
3112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
3115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
3122 wxPy_BEGIN_ALLOW_THREADS
;
3123 _result
= new wxString (wxFont_GetWeightString(_arg0
));
3125 wxPy_END_ALLOW_THREADS
;
3126 if (PyErr_Occurred()) return NULL
;
3128 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3136 static void *SwigwxFontListTowxObject(void *ptr
) {
3139 src
= (wxFontList
*) ptr
;
3140 dest
= (wxObject
*) src
;
3141 return (void *) dest
;
3144 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
3145 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3146 PyObject
* _resultobj
;
3149 PyObject
* _argo0
= 0;
3150 PyObject
* _argo1
= 0;
3151 char *_kwnames
[] = { "self","font", NULL
};
3154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
3157 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3158 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
3164 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3165 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
3171 wxPy_BEGIN_ALLOW_THREADS
;
3172 wxFontList_AddFont(_arg0
,_arg1
);
3174 wxPy_END_ALLOW_THREADS
;
3175 if (PyErr_Occurred()) return NULL
;
3176 } Py_INCREF(Py_None
);
3177 _resultobj
= Py_None
;
3181 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3182 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3183 PyObject
* _resultobj
;
3190 bool _arg5
= (bool ) FALSE
;
3191 char * _arg6
= (char *) NULL
;
3192 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3193 PyObject
* _argo0
= 0;
3194 int tempbool5
= (int) FALSE
;
3195 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
3199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
3202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
3208 _arg5
= (bool ) tempbool5
;
3210 wxPy_BEGIN_ALLOW_THREADS
;
3211 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
3213 wxPy_END_ALLOW_THREADS
;
3214 if (PyErr_Occurred()) return NULL
;
3216 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3217 _resultobj
= Py_BuildValue("s",_ptemp
);
3220 _resultobj
= Py_None
;
3225 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
3226 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3227 PyObject
* _resultobj
;
3230 PyObject
* _argo0
= 0;
3231 PyObject
* _argo1
= 0;
3232 char *_kwnames
[] = { "self","font", NULL
};
3235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
3238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
3245 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3246 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
3252 wxPy_BEGIN_ALLOW_THREADS
;
3253 wxFontList_RemoveFont(_arg0
,_arg1
);
3255 wxPy_END_ALLOW_THREADS
;
3256 if (PyErr_Occurred()) return NULL
;
3257 } Py_INCREF(Py_None
);
3258 _resultobj
= Py_None
;
3262 static void *SwigwxColourTowxObject(void *ptr
) {
3265 src
= (wxColour
*) ptr
;
3266 dest
= (wxObject
*) src
;
3267 return (void *) dest
;
3270 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
3271 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3272 PyObject
* _resultobj
;
3274 unsigned char _arg0
= (unsigned char ) 0;
3275 unsigned char _arg1
= (unsigned char ) 0;
3276 unsigned char _arg2
= (unsigned char ) 0;
3277 char *_kwnames
[] = { "red","green","blue", NULL
};
3281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
3284 wxPy_BEGIN_ALLOW_THREADS
;
3285 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
3287 wxPy_END_ALLOW_THREADS
;
3288 if (PyErr_Occurred()) return NULL
;
3290 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3291 _resultobj
= Py_BuildValue("s",_ptemp
);
3294 _resultobj
= Py_None
;
3299 #define delete_wxColour(_swigobj) (delete _swigobj)
3300 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3301 PyObject
* _resultobj
;
3304 PyObject
* _obj0
= 0;
3305 char *_kwnames
[] = { "self", NULL
};
3308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
3312 if (! wxColour_helper(_obj0
, &_arg0
))
3316 wxPy_BEGIN_ALLOW_THREADS
;
3317 delete_wxColour(_arg0
);
3319 wxPy_END_ALLOW_THREADS
;
3320 if (PyErr_Occurred()) return NULL
;
3321 } Py_INCREF(Py_None
);
3322 _resultobj
= Py_None
;
3326 #define wxColour_Red(_swigobj) (_swigobj->Red())
3327 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3328 PyObject
* _resultobj
;
3329 unsigned char _result
;
3332 PyObject
* _obj0
= 0;
3333 char *_kwnames
[] = { "self", NULL
};
3336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
3340 if (! wxColour_helper(_obj0
, &_arg0
))
3344 wxPy_BEGIN_ALLOW_THREADS
;
3345 _result
= (unsigned char )wxColour_Red(_arg0
);
3347 wxPy_END_ALLOW_THREADS
;
3348 if (PyErr_Occurred()) return NULL
;
3349 } _resultobj
= Py_BuildValue("b",_result
);
3353 #define wxColour_Green(_swigobj) (_swigobj->Green())
3354 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3355 PyObject
* _resultobj
;
3356 unsigned char _result
;
3359 PyObject
* _obj0
= 0;
3360 char *_kwnames
[] = { "self", NULL
};
3363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
3367 if (! wxColour_helper(_obj0
, &_arg0
))
3371 wxPy_BEGIN_ALLOW_THREADS
;
3372 _result
= (unsigned char )wxColour_Green(_arg0
);
3374 wxPy_END_ALLOW_THREADS
;
3375 if (PyErr_Occurred()) return NULL
;
3376 } _resultobj
= Py_BuildValue("b",_result
);
3380 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
3381 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3382 PyObject
* _resultobj
;
3383 unsigned char _result
;
3386 PyObject
* _obj0
= 0;
3387 char *_kwnames
[] = { "self", NULL
};
3390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
3394 if (! wxColour_helper(_obj0
, &_arg0
))
3398 wxPy_BEGIN_ALLOW_THREADS
;
3399 _result
= (unsigned char )wxColour_Blue(_arg0
);
3401 wxPy_END_ALLOW_THREADS
;
3402 if (PyErr_Occurred()) return NULL
;
3403 } _resultobj
= Py_BuildValue("b",_result
);
3407 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
3408 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3409 PyObject
* _resultobj
;
3413 PyObject
* _obj0
= 0;
3414 char *_kwnames
[] = { "self", NULL
};
3417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
3421 if (! wxColour_helper(_obj0
, &_arg0
))
3425 wxPy_BEGIN_ALLOW_THREADS
;
3426 _result
= (bool )wxColour_Ok(_arg0
);
3428 wxPy_END_ALLOW_THREADS
;
3429 if (PyErr_Occurred()) return NULL
;
3430 } _resultobj
= Py_BuildValue("i",_result
);
3434 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
3435 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3436 PyObject
* _resultobj
;
3438 unsigned char _arg1
;
3439 unsigned char _arg2
;
3440 unsigned char _arg3
;
3442 PyObject
* _obj0
= 0;
3443 char *_kwnames
[] = { "self","red","green","blue", NULL
};
3446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
3450 if (! wxColour_helper(_obj0
, &_arg0
))
3454 wxPy_BEGIN_ALLOW_THREADS
;
3455 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
3457 wxPy_END_ALLOW_THREADS
;
3458 if (PyErr_Occurred()) return NULL
;
3459 } Py_INCREF(Py_None
);
3460 _resultobj
= Py_None
;
3464 static PyObject
* wxColour_Get(wxColour
*self
) {
3465 PyObject
* rv
= PyTuple_New(3);
3466 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
3467 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
3468 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
3471 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3472 PyObject
* _resultobj
;
3476 PyObject
* _obj0
= 0;
3477 char *_kwnames
[] = { "self", NULL
};
3480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
3484 if (! wxColour_helper(_obj0
, &_arg0
))
3488 wxPy_BEGIN_ALLOW_THREADS
;
3489 _result
= (PyObject
*)wxColour_Get(_arg0
);
3491 wxPy_END_ALLOW_THREADS
;
3492 if (PyErr_Occurred()) return NULL
;
3494 _resultobj
= _result
;
3499 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
3500 wxColourDatabase
*src
;
3502 src
= (wxColourDatabase
*) ptr
;
3503 dest
= (wxObject
*) src
;
3504 return (void *) dest
;
3507 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
3508 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3509 PyObject
* _resultobj
;
3511 wxColourDatabase
* _arg0
;
3513 PyObject
* _argo0
= 0;
3514 PyObject
* _obj1
= 0;
3515 char *_kwnames
[] = { "self","colour", NULL
};
3519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
3522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
3529 #if PYTHON_API_VERSION >= 1009
3530 char* tmpPtr
; int tmpSize
;
3531 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3532 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3535 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3537 _arg1
= new wxString(tmpPtr
, tmpSize
);
3539 if (!PyString_Check(_obj1
)) {
3540 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3543 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3547 wxPy_BEGIN_ALLOW_THREADS
;
3548 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
3550 wxPy_END_ALLOW_THREADS
;
3551 if (PyErr_Occurred()) return NULL
;
3553 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3554 _resultobj
= Py_BuildValue("s",_ptemp
);
3557 _resultobj
= Py_None
;
3566 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3567 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3568 PyObject
* _resultobj
;
3570 wxColourDatabase
* _arg0
;
3572 PyObject
* _argo0
= 0;
3574 PyObject
* _obj1
= 0;
3575 char *_kwnames
[] = { "self","colour", NULL
};
3578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
3581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
3589 if (! wxColour_helper(_obj1
, &_arg1
))
3593 wxPy_BEGIN_ALLOW_THREADS
;
3594 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
3596 wxPy_END_ALLOW_THREADS
;
3597 if (PyErr_Occurred()) return NULL
;
3599 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3607 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
3608 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
3610 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3611 PyObject
* _resultobj
;
3612 wxColourDatabase
* _arg0
;
3617 PyObject
* _argo0
= 0;
3618 PyObject
* _obj1
= 0;
3619 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
3622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
3625 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3626 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
3632 #if PYTHON_API_VERSION >= 1009
3633 char* tmpPtr
; int tmpSize
;
3634 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3635 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3638 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3640 _arg1
= new wxString(tmpPtr
, tmpSize
);
3642 if (!PyString_Check(_obj1
)) {
3643 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3646 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3650 wxPy_BEGIN_ALLOW_THREADS
;
3651 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
3653 wxPy_END_ALLOW_THREADS
;
3654 if (PyErr_Occurred()) return NULL
;
3655 } Py_INCREF(Py_None
);
3656 _resultobj
= Py_None
;
3664 static void *SwigwxPenTowxGDIObject(void *ptr
) {
3667 src
= (wxPen
*) ptr
;
3668 dest
= (wxGDIObject
*) src
;
3669 return (void *) dest
;
3672 static void *SwigwxPenTowxObject(void *ptr
) {
3675 src
= (wxPen
*) ptr
;
3676 dest
= (wxObject
*) src
;
3677 return (void *) dest
;
3680 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
3681 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3682 PyObject
* _resultobj
;
3685 int _arg1
= (int ) 1;
3686 int _arg2
= (int ) wxSOLID
;
3688 PyObject
* _obj0
= 0;
3689 char *_kwnames
[] = { "colour","width","style", NULL
};
3693 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
3697 if (! wxColour_helper(_obj0
, &_arg0
))
3701 wxPy_BEGIN_ALLOW_THREADS
;
3702 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
3704 wxPy_END_ALLOW_THREADS
;
3705 if (PyErr_Occurred()) return NULL
;
3707 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3708 _resultobj
= Py_BuildValue("s",_ptemp
);
3711 _resultobj
= Py_None
;
3716 #define delete_wxPen(_swigobj) (delete _swigobj)
3717 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3718 PyObject
* _resultobj
;
3720 PyObject
* _argo0
= 0;
3721 char *_kwnames
[] = { "self", NULL
};
3724 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
3727 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3728 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3729 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
3734 wxPy_BEGIN_ALLOW_THREADS
;
3735 delete_wxPen(_arg0
);
3737 wxPy_END_ALLOW_THREADS
;
3738 if (PyErr_Occurred()) return NULL
;
3739 } Py_INCREF(Py_None
);
3740 _resultobj
= Py_None
;
3744 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
3745 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3746 PyObject
* _resultobj
;
3749 PyObject
* _argo0
= 0;
3750 char *_kwnames
[] = { "self", NULL
};
3753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
3756 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3757 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
3763 wxPy_BEGIN_ALLOW_THREADS
;
3764 _result
= (int )wxPen_GetCap(_arg0
);
3766 wxPy_END_ALLOW_THREADS
;
3767 if (PyErr_Occurred()) return NULL
;
3768 } _resultobj
= Py_BuildValue("i",_result
);
3772 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
3773 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3774 PyObject
* _resultobj
;
3777 PyObject
* _argo0
= 0;
3778 char *_kwnames
[] = { "self", NULL
};
3782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
3785 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3786 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
3792 wxPy_BEGIN_ALLOW_THREADS
;
3793 wxColour
& _result_ref
= wxPen_GetColour(_arg0
);
3794 _result
= (wxColour
*) &_result_ref
;
3796 wxPy_END_ALLOW_THREADS
;
3797 if (PyErr_Occurred()) return NULL
;
3799 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3800 _resultobj
= Py_BuildValue("s",_ptemp
);
3803 _resultobj
= Py_None
;
3808 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
3809 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3810 PyObject
* _resultobj
;
3813 PyObject
* _argo0
= 0;
3814 char *_kwnames
[] = { "self", NULL
};
3817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
3820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
3827 wxPy_BEGIN_ALLOW_THREADS
;
3828 _result
= (int )wxPen_GetJoin(_arg0
);
3830 wxPy_END_ALLOW_THREADS
;
3831 if (PyErr_Occurred()) return NULL
;
3832 } _resultobj
= Py_BuildValue("i",_result
);
3836 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
3837 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3838 PyObject
* _resultobj
;
3841 PyObject
* _argo0
= 0;
3842 char *_kwnames
[] = { "self", NULL
};
3845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
3848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
3855 wxPy_BEGIN_ALLOW_THREADS
;
3856 _result
= (int )wxPen_GetStyle(_arg0
);
3858 wxPy_END_ALLOW_THREADS
;
3859 if (PyErr_Occurred()) return NULL
;
3860 } _resultobj
= Py_BuildValue("i",_result
);
3864 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
3865 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3866 PyObject
* _resultobj
;
3869 PyObject
* _argo0
= 0;
3870 char *_kwnames
[] = { "self", NULL
};
3873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
3876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
3883 wxPy_BEGIN_ALLOW_THREADS
;
3884 _result
= (int )wxPen_GetWidth(_arg0
);
3886 wxPy_END_ALLOW_THREADS
;
3887 if (PyErr_Occurred()) return NULL
;
3888 } _resultobj
= Py_BuildValue("i",_result
);
3892 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
3893 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3894 PyObject
* _resultobj
;
3897 PyObject
* _argo0
= 0;
3898 char *_kwnames
[] = { "self", NULL
};
3901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
3904 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3905 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
3911 wxPy_BEGIN_ALLOW_THREADS
;
3912 _result
= (bool )wxPen_Ok(_arg0
);
3914 wxPy_END_ALLOW_THREADS
;
3915 if (PyErr_Occurred()) return NULL
;
3916 } _resultobj
= Py_BuildValue("i",_result
);
3920 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
3921 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3922 PyObject
* _resultobj
;
3925 PyObject
* _argo0
= 0;
3926 char *_kwnames
[] = { "self","cap_style", NULL
};
3929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
3932 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3933 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
3939 wxPy_BEGIN_ALLOW_THREADS
;
3940 wxPen_SetCap(_arg0
,_arg1
);
3942 wxPy_END_ALLOW_THREADS
;
3943 if (PyErr_Occurred()) return NULL
;
3944 } Py_INCREF(Py_None
);
3945 _resultobj
= Py_None
;
3949 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
3950 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3951 PyObject
* _resultobj
;
3954 PyObject
* _argo0
= 0;
3956 PyObject
* _obj1
= 0;
3957 char *_kwnames
[] = { "self","colour", NULL
};
3960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
3963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
3971 if (! wxColour_helper(_obj1
, &_arg1
))
3975 wxPy_BEGIN_ALLOW_THREADS
;
3976 wxPen_SetColour(_arg0
,*_arg1
);
3978 wxPy_END_ALLOW_THREADS
;
3979 if (PyErr_Occurred()) return NULL
;
3980 } Py_INCREF(Py_None
);
3981 _resultobj
= Py_None
;
3985 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
3986 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3987 PyObject
* _resultobj
;
3990 PyObject
* _argo0
= 0;
3991 char *_kwnames
[] = { "self","join_style", NULL
};
3994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
3997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4004 wxPy_BEGIN_ALLOW_THREADS
;
4005 wxPen_SetJoin(_arg0
,_arg1
);
4007 wxPy_END_ALLOW_THREADS
;
4008 if (PyErr_Occurred()) return NULL
;
4009 } Py_INCREF(Py_None
);
4010 _resultobj
= Py_None
;
4014 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4015 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4016 PyObject
* _resultobj
;
4019 PyObject
* _argo0
= 0;
4020 char *_kwnames
[] = { "self","style", NULL
};
4023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4033 wxPy_BEGIN_ALLOW_THREADS
;
4034 wxPen_SetStyle(_arg0
,_arg1
);
4036 wxPy_END_ALLOW_THREADS
;
4037 if (PyErr_Occurred()) return NULL
;
4038 } Py_INCREF(Py_None
);
4039 _resultobj
= Py_None
;
4043 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4044 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4045 PyObject
* _resultobj
;
4048 PyObject
* _argo0
= 0;
4049 char *_kwnames
[] = { "self","width", NULL
};
4052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4062 wxPy_BEGIN_ALLOW_THREADS
;
4063 wxPen_SetWidth(_arg0
,_arg1
);
4065 wxPy_END_ALLOW_THREADS
;
4066 if (PyErr_Occurred()) return NULL
;
4067 } Py_INCREF(Py_None
);
4068 _resultobj
= Py_None
;
4072 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
4073 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4074 PyObject
* _resultobj
;
4078 PyObject
* _argo0
= 0;
4079 PyObject
* _argo1
= 0;
4080 char *_kwnames
[] = { "self","dashes", NULL
};
4083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_GetDashes",_kwnames
,&_argo0
,&_argo1
))
4086 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4087 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4093 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4094 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDash_pp")) {
4095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
4100 wxPy_BEGIN_ALLOW_THREADS
;
4101 _result
= (int )wxPen_GetDashes(_arg0
,_arg1
);
4103 wxPy_END_ALLOW_THREADS
;
4104 if (PyErr_Occurred()) return NULL
;
4105 } _resultobj
= Py_BuildValue("i",_result
);
4109 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4110 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4111 PyObject
* _resultobj
;
4115 PyObject
* _argo0
= 0;
4116 PyObject
* _obj2
= 0;
4117 char *_kwnames
[] = { "self","choices", NULL
};
4120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4131 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4132 if (_arg2
== NULL
) {
4138 _arg1
= PyList_Size(_obj2
);
4145 wxPy_BEGIN_ALLOW_THREADS
;
4146 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4148 wxPy_END_ALLOW_THREADS
;
4149 if (PyErr_Occurred()) return NULL
;
4150 } Py_INCREF(Py_None
);
4151 _resultobj
= Py_None
;
4158 static void *SwigwxPenListTowxObject(void *ptr
) {
4161 src
= (wxPenList
*) ptr
;
4162 dest
= (wxObject
*) src
;
4163 return (void *) dest
;
4166 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4167 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4168 PyObject
* _resultobj
;
4171 PyObject
* _argo0
= 0;
4172 PyObject
* _argo1
= 0;
4173 char *_kwnames
[] = { "self","pen", NULL
};
4176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
4179 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4180 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4181 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4186 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4187 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4193 wxPy_BEGIN_ALLOW_THREADS
;
4194 wxPenList_AddPen(_arg0
,_arg1
);
4196 wxPy_END_ALLOW_THREADS
;
4197 if (PyErr_Occurred()) return NULL
;
4198 } Py_INCREF(Py_None
);
4199 _resultobj
= Py_None
;
4203 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
4204 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4205 PyObject
* _resultobj
;
4211 PyObject
* _argo0
= 0;
4213 PyObject
* _obj1
= 0;
4214 char *_kwnames
[] = { "self","colour","width","style", NULL
};
4218 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
4221 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4222 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
4229 if (! wxColour_helper(_obj1
, &_arg1
))
4233 wxPy_BEGIN_ALLOW_THREADS
;
4234 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
4236 wxPy_END_ALLOW_THREADS
;
4237 if (PyErr_Occurred()) return NULL
;
4239 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4240 _resultobj
= Py_BuildValue("s",_ptemp
);
4243 _resultobj
= Py_None
;
4248 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
4249 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4250 PyObject
* _resultobj
;
4253 PyObject
* _argo0
= 0;
4254 PyObject
* _argo1
= 0;
4255 char *_kwnames
[] = { "self","pen", NULL
};
4258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
4261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
4268 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4269 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4270 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
4275 wxPy_BEGIN_ALLOW_THREADS
;
4276 wxPenList_RemovePen(_arg0
,_arg1
);
4278 wxPy_END_ALLOW_THREADS
;
4279 if (PyErr_Occurred()) return NULL
;
4280 } Py_INCREF(Py_None
);
4281 _resultobj
= Py_None
;
4285 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
4288 src
= (wxBrush
*) ptr
;
4289 dest
= (wxGDIObject
*) src
;
4290 return (void *) dest
;
4293 static void *SwigwxBrushTowxObject(void *ptr
) {
4296 src
= (wxBrush
*) ptr
;
4297 dest
= (wxObject
*) src
;
4298 return (void *) dest
;
4301 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
4302 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4303 PyObject
* _resultobj
;
4306 int _arg1
= (int ) wxSOLID
;
4308 PyObject
* _obj0
= 0;
4309 char *_kwnames
[] = { "colour","style", NULL
};
4313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
4317 if (! wxColour_helper(_obj0
, &_arg0
))
4321 wxPy_BEGIN_ALLOW_THREADS
;
4322 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
4324 wxPy_END_ALLOW_THREADS
;
4325 if (PyErr_Occurred()) return NULL
;
4327 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4328 _resultobj
= Py_BuildValue("s",_ptemp
);
4331 _resultobj
= Py_None
;
4336 #define delete_wxBrush(_swigobj) (delete _swigobj)
4337 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4338 PyObject
* _resultobj
;
4340 PyObject
* _argo0
= 0;
4341 char *_kwnames
[] = { "self", NULL
};
4344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
4347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
4354 wxPy_BEGIN_ALLOW_THREADS
;
4355 delete_wxBrush(_arg0
);
4357 wxPy_END_ALLOW_THREADS
;
4358 if (PyErr_Occurred()) return NULL
;
4359 } Py_INCREF(Py_None
);
4360 _resultobj
= Py_None
;
4364 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
4365 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4366 PyObject
* _resultobj
;
4369 PyObject
* _argo0
= 0;
4370 char *_kwnames
[] = { "self", NULL
};
4374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
4377 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4378 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4379 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4384 wxPy_BEGIN_ALLOW_THREADS
;
4385 wxColour
& _result_ref
= wxBrush_GetColour(_arg0
);
4386 _result
= (wxColour
*) &_result_ref
;
4388 wxPy_END_ALLOW_THREADS
;
4389 if (PyErr_Occurred()) return NULL
;
4391 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4392 _resultobj
= Py_BuildValue("s",_ptemp
);
4395 _resultobj
= Py_None
;
4400 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4401 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4402 PyObject
* _resultobj
;
4405 PyObject
* _argo0
= 0;
4406 char *_kwnames
[] = { "self", NULL
};
4410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
4413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4420 wxPy_BEGIN_ALLOW_THREADS
;
4421 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
4423 wxPy_END_ALLOW_THREADS
;
4424 if (PyErr_Occurred()) return NULL
;
4426 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4427 _resultobj
= Py_BuildValue("s",_ptemp
);
4430 _resultobj
= Py_None
;
4435 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4436 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4437 PyObject
* _resultobj
;
4440 PyObject
* _argo0
= 0;
4441 char *_kwnames
[] = { "self", NULL
};
4444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
4447 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4448 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4454 wxPy_BEGIN_ALLOW_THREADS
;
4455 _result
= (int )wxBrush_GetStyle(_arg0
);
4457 wxPy_END_ALLOW_THREADS
;
4458 if (PyErr_Occurred()) return NULL
;
4459 } _resultobj
= Py_BuildValue("i",_result
);
4463 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4464 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4465 PyObject
* _resultobj
;
4468 PyObject
* _argo0
= 0;
4469 char *_kwnames
[] = { "self", NULL
};
4472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
4475 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4476 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4477 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4482 wxPy_BEGIN_ALLOW_THREADS
;
4483 _result
= (bool )wxBrush_Ok(_arg0
);
4485 wxPy_END_ALLOW_THREADS
;
4486 if (PyErr_Occurred()) return NULL
;
4487 } _resultobj
= Py_BuildValue("i",_result
);
4491 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4492 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4493 PyObject
* _resultobj
;
4496 PyObject
* _argo0
= 0;
4498 PyObject
* _obj1
= 0;
4499 char *_kwnames
[] = { "self","colour", NULL
};
4502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
4505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4513 if (! wxColour_helper(_obj1
, &_arg1
))
4517 wxPy_BEGIN_ALLOW_THREADS
;
4518 wxBrush_SetColour(_arg0
,*_arg1
);
4520 wxPy_END_ALLOW_THREADS
;
4521 if (PyErr_Occurred()) return NULL
;
4522 } Py_INCREF(Py_None
);
4523 _resultobj
= Py_None
;
4527 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4528 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4529 PyObject
* _resultobj
;
4532 PyObject
* _argo0
= 0;
4533 PyObject
* _argo1
= 0;
4534 char *_kwnames
[] = { "self","bitmap", NULL
};
4537 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4540 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4541 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4542 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4547 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4548 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4554 wxPy_BEGIN_ALLOW_THREADS
;
4555 wxBrush_SetStipple(_arg0
,*_arg1
);
4557 wxPy_END_ALLOW_THREADS
;
4558 if (PyErr_Occurred()) return NULL
;
4559 } Py_INCREF(Py_None
);
4560 _resultobj
= Py_None
;
4564 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4565 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4566 PyObject
* _resultobj
;
4569 PyObject
* _argo0
= 0;
4570 char *_kwnames
[] = { "self","style", NULL
};
4573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4576 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4577 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4583 wxPy_BEGIN_ALLOW_THREADS
;
4584 wxBrush_SetStyle(_arg0
,_arg1
);
4586 wxPy_END_ALLOW_THREADS
;
4587 if (PyErr_Occurred()) return NULL
;
4588 } Py_INCREF(Py_None
);
4589 _resultobj
= Py_None
;
4593 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
4594 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4595 PyObject
* _resultobj
;
4596 wxBrushList
* _arg0
;
4598 PyObject
* _argo0
= 0;
4599 PyObject
* _argo1
= 0;
4600 char *_kwnames
[] = { "self","brush", NULL
};
4603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
4606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
4613 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4614 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
4620 wxPy_BEGIN_ALLOW_THREADS
;
4621 wxBrushList_AddBrush(_arg0
,_arg1
);
4623 wxPy_END_ALLOW_THREADS
;
4624 if (PyErr_Occurred()) return NULL
;
4625 } Py_INCREF(Py_None
);
4626 _resultobj
= Py_None
;
4630 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
4631 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4632 PyObject
* _resultobj
;
4634 wxBrushList
* _arg0
;
4637 PyObject
* _argo0
= 0;
4639 PyObject
* _obj1
= 0;
4640 char *_kwnames
[] = { "self","colour","style", NULL
};
4644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
4655 if (! wxColour_helper(_obj1
, &_arg1
))
4659 wxPy_BEGIN_ALLOW_THREADS
;
4660 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
4662 wxPy_END_ALLOW_THREADS
;
4663 if (PyErr_Occurred()) return NULL
;
4665 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4666 _resultobj
= Py_BuildValue("s",_ptemp
);
4669 _resultobj
= Py_None
;
4674 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
4675 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4676 PyObject
* _resultobj
;
4677 wxBrushList
* _arg0
;
4679 PyObject
* _argo0
= 0;
4680 PyObject
* _argo1
= 0;
4681 char *_kwnames
[] = { "self","brush", NULL
};
4684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
4687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
4694 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4695 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
4701 wxPy_BEGIN_ALLOW_THREADS
;
4702 wxBrushList_RemoveBrush(_arg0
,_arg1
);
4704 wxPy_END_ALLOW_THREADS
;
4705 if (PyErr_Occurred()) return NULL
;
4706 } Py_INCREF(Py_None
);
4707 _resultobj
= Py_None
;
4711 static void *SwigwxDCTowxObject(void *ptr
) {
4715 dest
= (wxObject
*) src
;
4716 return (void *) dest
;
4719 #define delete_wxDC(_swigobj) (delete _swigobj)
4720 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4721 PyObject
* _resultobj
;
4723 PyObject
* _argo0
= 0;
4724 char *_kwnames
[] = { "self", NULL
};
4727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
4730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
4737 wxPy_BEGIN_ALLOW_THREADS
;
4740 wxPy_END_ALLOW_THREADS
;
4741 if (PyErr_Occurred()) return NULL
;
4742 } Py_INCREF(Py_None
);
4743 _resultobj
= Py_None
;
4747 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
4748 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4749 PyObject
* _resultobj
;
4751 PyObject
* _argo0
= 0;
4752 char *_kwnames
[] = { "self", NULL
};
4755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
4758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
4765 wxPy_BEGIN_ALLOW_THREADS
;
4766 wxDC_BeginDrawing(_arg0
);
4768 wxPy_END_ALLOW_THREADS
;
4769 if (PyErr_Occurred()) return NULL
;
4770 } Py_INCREF(Py_None
);
4771 _resultobj
= Py_None
;
4775 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4776 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4777 PyObject
* _resultobj
;
4787 int _arg8
= (int ) wxCOPY
;
4788 int _arg9
= (int ) FALSE
;
4789 PyObject
* _argo0
= 0;
4790 PyObject
* _argo5
= 0;
4791 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
4794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
4797 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4798 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
4804 if (_argo5
== Py_None
) { _arg5
= NULL
; }
4805 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
4806 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
4811 wxPy_BEGIN_ALLOW_THREADS
;
4812 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
4814 wxPy_END_ALLOW_THREADS
;
4815 if (PyErr_Occurred()) return NULL
;
4816 } _resultobj
= Py_BuildValue("i",_result
);
4820 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
4821 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4822 PyObject
* _resultobj
;
4824 PyObject
* _argo0
= 0;
4825 char *_kwnames
[] = { "self", NULL
};
4828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
4831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
4838 wxPy_BEGIN_ALLOW_THREADS
;
4841 wxPy_END_ALLOW_THREADS
;
4842 if (PyErr_Occurred()) return NULL
;
4843 } Py_INCREF(Py_None
);
4844 _resultobj
= Py_None
;
4848 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
4849 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4850 PyObject
* _resultobj
;
4854 PyObject
* _argo0
= 0;
4855 char *_kwnames
[] = { "self","x","y", NULL
};
4858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
4868 wxPy_BEGIN_ALLOW_THREADS
;
4869 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
4871 wxPy_END_ALLOW_THREADS
;
4872 if (PyErr_Occurred()) return NULL
;
4873 } Py_INCREF(Py_None
);
4874 _resultobj
= Py_None
;
4878 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
4879 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4880 PyObject
* _resultobj
;
4882 PyObject
* _argo0
= 0;
4883 char *_kwnames
[] = { "self", NULL
};
4886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
4889 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4890 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
4896 wxPy_BEGIN_ALLOW_THREADS
;
4897 wxDC_DestroyClippingRegion(_arg0
);
4899 wxPy_END_ALLOW_THREADS
;
4900 if (PyErr_Occurred()) return NULL
;
4901 } Py_INCREF(Py_None
);
4902 _resultobj
= Py_None
;
4906 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
4907 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4908 PyObject
* _resultobj
;
4912 PyObject
* _argo0
= 0;
4913 char *_kwnames
[] = { "self","x", NULL
};
4916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
4919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
4926 wxPy_BEGIN_ALLOW_THREADS
;
4927 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
4929 wxPy_END_ALLOW_THREADS
;
4930 if (PyErr_Occurred()) return NULL
;
4931 } _resultobj
= Py_BuildValue("l",_result
);
4935 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
4936 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4937 PyObject
* _resultobj
;
4941 PyObject
* _argo0
= 0;
4942 char *_kwnames
[] = { "self","x", NULL
};
4945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
4948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
4955 wxPy_BEGIN_ALLOW_THREADS
;
4956 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
4958 wxPy_END_ALLOW_THREADS
;
4959 if (PyErr_Occurred()) return NULL
;
4960 } _resultobj
= Py_BuildValue("l",_result
);
4964 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
4965 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4966 PyObject
* _resultobj
;
4970 PyObject
* _argo0
= 0;
4971 char *_kwnames
[] = { "self","y", NULL
};
4974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
4977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
4984 wxPy_BEGIN_ALLOW_THREADS
;
4985 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
4987 wxPy_END_ALLOW_THREADS
;
4988 if (PyErr_Occurred()) return NULL
;
4989 } _resultobj
= Py_BuildValue("l",_result
);
4993 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
4994 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4995 PyObject
* _resultobj
;
4999 PyObject
* _argo0
= 0;
5000 char *_kwnames
[] = { "self","y", NULL
};
5003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
5006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5013 wxPy_BEGIN_ALLOW_THREADS
;
5014 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5016 wxPy_END_ALLOW_THREADS
;
5017 if (PyErr_Occurred()) return NULL
;
5018 } _resultobj
= Py_BuildValue("l",_result
);
5022 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5023 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5024 PyObject
* _resultobj
;
5032 PyObject
* _argo0
= 0;
5033 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5039 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5040 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5046 wxPy_BEGIN_ALLOW_THREADS
;
5047 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5049 wxPy_END_ALLOW_THREADS
;
5050 if (PyErr_Occurred()) return NULL
;
5051 } Py_INCREF(Py_None
);
5052 _resultobj
= Py_None
;
5056 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5057 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5058 PyObject
* _resultobj
;
5063 PyObject
* _argo0
= 0;
5064 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5067 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5070 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5071 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5072 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5077 wxPy_BEGIN_ALLOW_THREADS
;
5078 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
5080 wxPy_END_ALLOW_THREADS
;
5081 if (PyErr_Occurred()) return NULL
;
5082 } Py_INCREF(Py_None
);
5083 _resultobj
= Py_None
;
5087 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5088 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5089 PyObject
* _resultobj
;
5095 PyObject
* _argo0
= 0;
5096 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5102 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5103 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5104 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5109 wxPy_BEGIN_ALLOW_THREADS
;
5110 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5112 wxPy_END_ALLOW_THREADS
;
5113 if (PyErr_Occurred()) return NULL
;
5114 } Py_INCREF(Py_None
);
5115 _resultobj
= Py_None
;
5119 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5120 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5121 PyObject
* _resultobj
;
5129 PyObject
* _argo0
= 0;
5130 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
5133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
5143 wxPy_BEGIN_ALLOW_THREADS
;
5144 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5146 wxPy_END_ALLOW_THREADS
;
5147 if (PyErr_Occurred()) return NULL
;
5148 } Py_INCREF(Py_None
);
5149 _resultobj
= Py_None
;
5153 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
5154 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5155 PyObject
* _resultobj
;
5160 PyObject
* _argo0
= 0;
5161 PyObject
* _argo1
= 0;
5162 char *_kwnames
[] = { "self","icon","x","y", NULL
};
5165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
5168 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5169 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5175 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5176 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
5177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5182 wxPy_BEGIN_ALLOW_THREADS
;
5183 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
5185 wxPy_END_ALLOW_THREADS
;
5186 if (PyErr_Occurred()) return NULL
;
5187 } Py_INCREF(Py_None
);
5188 _resultobj
= Py_None
;
5192 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5193 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5194 PyObject
* _resultobj
;
5200 PyObject
* _argo0
= 0;
5201 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
5204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5214 wxPy_BEGIN_ALLOW_THREADS
;
5215 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5217 wxPy_END_ALLOW_THREADS
;
5218 if (PyErr_Occurred()) return NULL
;
5219 } Py_INCREF(Py_None
);
5220 _resultobj
= Py_None
;
5224 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5225 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5226 PyObject
* _resultobj
;
5230 long _arg3
= (long ) 0;
5231 long _arg4
= (long ) 0;
5232 PyObject
* _argo0
= 0;
5234 PyObject
* _obj2
= 0;
5235 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
5238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
5241 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5242 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5243 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5249 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5250 if (_arg2
== NULL
) {
5258 wxPy_BEGIN_ALLOW_THREADS
;
5259 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5261 wxPy_END_ALLOW_THREADS
;
5262 if (PyErr_Occurred()) return NULL
;
5263 } Py_INCREF(Py_None
);
5264 _resultobj
= Py_None
;
5271 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5272 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5273 PyObject
* _resultobj
;
5277 long _arg3
= (long ) 0;
5278 long _arg4
= (long ) 0;
5279 int _arg5
= (int ) wxODDEVEN_RULE
;
5280 PyObject
* _argo0
= 0;
5282 PyObject
* _obj2
= 0;
5283 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
5286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
5289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5297 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5298 if (_arg2
== NULL
) {
5306 wxPy_BEGIN_ALLOW_THREADS
;
5307 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5309 wxPy_END_ALLOW_THREADS
;
5310 if (PyErr_Occurred()) return NULL
;
5311 } Py_INCREF(Py_None
);
5312 _resultobj
= Py_None
;
5319 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
5320 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5321 PyObject
* _resultobj
;
5325 PyObject
* _argo0
= 0;
5326 char *_kwnames
[] = { "self","x","y", NULL
};
5329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5332 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5333 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
5339 wxPy_BEGIN_ALLOW_THREADS
;
5340 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
5342 wxPy_END_ALLOW_THREADS
;
5343 if (PyErr_Occurred()) return NULL
;
5344 } Py_INCREF(Py_None
);
5345 _resultobj
= Py_None
;
5349 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5350 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5351 PyObject
* _resultobj
;
5357 PyObject
* _argo0
= 0;
5358 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
5371 wxPy_BEGIN_ALLOW_THREADS
;
5372 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5374 wxPy_END_ALLOW_THREADS
;
5375 if (PyErr_Occurred()) return NULL
;
5376 } Py_INCREF(Py_None
);
5377 _resultobj
= Py_None
;
5381 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5382 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5383 PyObject
* _resultobj
;
5389 PyObject
* _argo0
= 0;
5390 PyObject
* _obj1
= 0;
5391 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
5394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5404 #if PYTHON_API_VERSION >= 1009
5405 char* tmpPtr
; int tmpSize
;
5406 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5407 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5410 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5412 _arg1
= new wxString(tmpPtr
, tmpSize
);
5414 if (!PyString_Check(_obj1
)) {
5415 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5418 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5422 wxPy_BEGIN_ALLOW_THREADS
;
5423 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5425 wxPy_END_ALLOW_THREADS
;
5426 if (PyErr_Occurred()) return NULL
;
5427 } Py_INCREF(Py_None
);
5428 _resultobj
= Py_None
;
5436 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5437 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5438 PyObject
* _resultobj
;
5444 long _arg5
= (long ) 20;
5445 PyObject
* _argo0
= 0;
5446 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
5449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
5452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5459 wxPy_BEGIN_ALLOW_THREADS
;
5460 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5462 wxPy_END_ALLOW_THREADS
;
5463 if (PyErr_Occurred()) return NULL
;
5464 } Py_INCREF(Py_None
);
5465 _resultobj
= Py_None
;
5469 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5470 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5471 PyObject
* _resultobj
;
5475 PyObject
* _argo0
= 0;
5477 PyObject
* _obj2
= 0;
5478 char *_kwnames
[] = { "self","points", NULL
};
5481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
5484 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5485 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5492 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5493 if (_arg2
== NULL
) {
5501 wxPy_BEGIN_ALLOW_THREADS
;
5502 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
5504 wxPy_END_ALLOW_THREADS
;
5505 if (PyErr_Occurred()) return NULL
;
5506 } Py_INCREF(Py_None
);
5507 _resultobj
= Py_None
;
5514 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5515 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5516 PyObject
* _resultobj
;
5521 PyObject
* _argo0
= 0;
5522 PyObject
* _obj1
= 0;
5523 char *_kwnames
[] = { "self","text","x","y", NULL
};
5526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5536 #if PYTHON_API_VERSION >= 1009
5537 char* tmpPtr
; int tmpSize
;
5538 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5539 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5542 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5544 _arg1
= new wxString(tmpPtr
, tmpSize
);
5546 if (!PyString_Check(_obj1
)) {
5547 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5550 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5554 wxPy_BEGIN_ALLOW_THREADS
;
5555 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
5557 wxPy_END_ALLOW_THREADS
;
5558 if (PyErr_Occurred()) return NULL
;
5559 } Py_INCREF(Py_None
);
5560 _resultobj
= Py_None
;
5568 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5569 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5570 PyObject
* _resultobj
;
5572 PyObject
* _argo0
= 0;
5573 char *_kwnames
[] = { "self", NULL
};
5576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
5579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5586 wxPy_BEGIN_ALLOW_THREADS
;
5589 wxPy_END_ALLOW_THREADS
;
5590 if (PyErr_Occurred()) return NULL
;
5591 } Py_INCREF(Py_None
);
5592 _resultobj
= Py_None
;
5596 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
5597 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5598 PyObject
* _resultobj
;
5600 PyObject
* _argo0
= 0;
5601 char *_kwnames
[] = { "self", NULL
};
5604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
5607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5614 wxPy_BEGIN_ALLOW_THREADS
;
5615 wxDC_EndDrawing(_arg0
);
5617 wxPy_END_ALLOW_THREADS
;
5618 if (PyErr_Occurred()) return NULL
;
5619 } Py_INCREF(Py_None
);
5620 _resultobj
= Py_None
;
5624 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
5625 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5626 PyObject
* _resultobj
;
5628 PyObject
* _argo0
= 0;
5629 char *_kwnames
[] = { "self", NULL
};
5632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
5635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
5642 wxPy_BEGIN_ALLOW_THREADS
;
5643 wxDC_EndPage(_arg0
);
5645 wxPy_END_ALLOW_THREADS
;
5646 if (PyErr_Occurred()) return NULL
;
5647 } Py_INCREF(Py_None
);
5648 _resultobj
= Py_None
;
5652 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5653 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5654 PyObject
* _resultobj
;
5659 int _arg4
= (int ) wxFLOOD_SURFACE
;
5660 PyObject
* _argo0
= 0;
5662 PyObject
* _obj3
= 0;
5663 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
5666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
5669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
5677 if (! wxColour_helper(_obj3
, &_arg3
))
5681 wxPy_BEGIN_ALLOW_THREADS
;
5682 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
5684 wxPy_END_ALLOW_THREADS
;
5685 if (PyErr_Occurred()) return NULL
;
5686 } Py_INCREF(Py_None
);
5687 _resultobj
= Py_None
;
5691 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
5692 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5693 PyObject
* _resultobj
;
5696 PyObject
* _argo0
= 0;
5697 char *_kwnames
[] = { "self", NULL
};
5701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
5704 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5705 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
5711 wxPy_BEGIN_ALLOW_THREADS
;
5712 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
5713 _result
= (wxBrush
*) &_result_ref
;
5715 wxPy_END_ALLOW_THREADS
;
5716 if (PyErr_Occurred()) return NULL
;
5718 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5719 _resultobj
= Py_BuildValue("s",_ptemp
);
5722 _resultobj
= Py_None
;
5727 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
5728 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5729 PyObject
* _resultobj
;
5732 PyObject
* _argo0
= 0;
5733 char *_kwnames
[] = { "self", NULL
};
5737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
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_GetBrush. Expected _wxDC_p.");
5747 wxPy_BEGIN_ALLOW_THREADS
;
5748 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
5749 _result
= (wxBrush
*) &_result_ref
;
5751 wxPy_END_ALLOW_THREADS
;
5752 if (PyErr_Occurred()) return NULL
;
5754 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5755 _resultobj
= Py_BuildValue("s",_ptemp
);
5758 _resultobj
= Py_None
;
5763 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
5764 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5765 PyObject
* _resultobj
;
5768 PyObject
* _argo0
= 0;
5769 char *_kwnames
[] = { "self", NULL
};
5772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
5775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
5782 wxPy_BEGIN_ALLOW_THREADS
;
5783 _result
= (long )wxDC_GetCharHeight(_arg0
);
5785 wxPy_END_ALLOW_THREADS
;
5786 if (PyErr_Occurred()) return NULL
;
5787 } _resultobj
= Py_BuildValue("l",_result
);
5791 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
5792 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5793 PyObject
* _resultobj
;
5796 PyObject
* _argo0
= 0;
5797 char *_kwnames
[] = { "self", NULL
};
5800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
5803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
5810 wxPy_BEGIN_ALLOW_THREADS
;
5811 _result
= (long )wxDC_GetCharWidth(_arg0
);
5813 wxPy_END_ALLOW_THREADS
;
5814 if (PyErr_Occurred()) return NULL
;
5815 } _resultobj
= Py_BuildValue("l",_result
);
5819 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5820 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5821 PyObject
* _resultobj
;
5831 PyObject
* _argo0
= 0;
5832 char *_kwnames
[] = { "self", NULL
};
5847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
5850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
5857 wxPy_BEGIN_ALLOW_THREADS
;
5858 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5860 wxPy_END_ALLOW_THREADS
;
5861 if (PyErr_Occurred()) return NULL
;
5862 } Py_INCREF(Py_None
);
5863 _resultobj
= Py_None
;
5866 o
= PyInt_FromLong((long) (*_arg1
));
5867 _resultobj
= t_output_helper(_resultobj
, o
);
5871 o
= PyInt_FromLong((long) (*_arg2
));
5872 _resultobj
= t_output_helper(_resultobj
, o
);
5876 o
= PyInt_FromLong((long) (*_arg3
));
5877 _resultobj
= t_output_helper(_resultobj
, o
);
5881 o
= PyInt_FromLong((long) (*_arg4
));
5882 _resultobj
= t_output_helper(_resultobj
, o
);
5887 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
5888 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5889 PyObject
* _resultobj
;
5892 PyObject
* _argo0
= 0;
5893 char *_kwnames
[] = { "self", NULL
};
5897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
5900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
5907 wxPy_BEGIN_ALLOW_THREADS
;
5908 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
5909 _result
= (wxFont
*) &_result_ref
;
5911 wxPy_END_ALLOW_THREADS
;
5912 if (PyErr_Occurred()) return NULL
;
5914 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
5915 _resultobj
= Py_BuildValue("s",_ptemp
);
5918 _resultobj
= Py_None
;
5923 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
5924 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5925 PyObject
* _resultobj
;
5928 PyObject
* _argo0
= 0;
5929 char *_kwnames
[] = { "self", NULL
};
5932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
5935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
5942 wxPy_BEGIN_ALLOW_THREADS
;
5943 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
5945 wxPy_END_ALLOW_THREADS
;
5946 if (PyErr_Occurred()) return NULL
;
5947 } _resultobj
= Py_BuildValue("i",_result
);
5951 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
5952 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5953 PyObject
* _resultobj
;
5959 PyObject
* _argo0
= 0;
5960 char *_kwnames
[] = { "self", NULL
};
5969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
5972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
5979 wxPy_BEGIN_ALLOW_THREADS
;
5980 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
5982 wxPy_END_ALLOW_THREADS
;
5983 if (PyErr_Occurred()) return NULL
;
5984 } Py_INCREF(Py_None
);
5985 _resultobj
= Py_None
;
5988 o
= PyFloat_FromDouble((double) (*_arg1
));
5989 _resultobj
= t_output_helper(_resultobj
, o
);
5993 o
= PyFloat_FromDouble((double) (*_arg2
));
5994 _resultobj
= t_output_helper(_resultobj
, o
);
5999 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6000 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6001 PyObject
* _resultobj
;
6004 PyObject
* _argo0
= 0;
6005 char *_kwnames
[] = { "self", NULL
};
6008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
6011 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6012 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6018 wxPy_BEGIN_ALLOW_THREADS
;
6019 _result
= (int )wxDC_GetMapMode(_arg0
);
6021 wxPy_END_ALLOW_THREADS
;
6022 if (PyErr_Occurred()) return NULL
;
6023 } _resultobj
= Py_BuildValue("i",_result
);
6027 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6028 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6029 PyObject
* _resultobj
;
6032 PyObject
* _argo0
= 0;
6033 char *_kwnames
[] = { "self", NULL
};
6036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
6039 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6040 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6046 wxPy_BEGIN_ALLOW_THREADS
;
6047 _result
= (bool )wxDC_GetOptimization(_arg0
);
6049 wxPy_END_ALLOW_THREADS
;
6050 if (PyErr_Occurred()) return NULL
;
6051 } _resultobj
= Py_BuildValue("i",_result
);
6055 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6056 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6057 PyObject
* _resultobj
;
6060 PyObject
* _argo0
= 0;
6061 char *_kwnames
[] = { "self", NULL
};
6065 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
6068 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6069 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6070 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6075 wxPy_BEGIN_ALLOW_THREADS
;
6076 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
6077 _result
= (wxPen
*) &_result_ref
;
6079 wxPy_END_ALLOW_THREADS
;
6080 if (PyErr_Occurred()) return NULL
;
6082 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6083 _resultobj
= Py_BuildValue("s",_ptemp
);
6086 _resultobj
= Py_None
;
6091 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
6092 wxColour
* wc
= new wxColour();
6093 self
->GetPixel(x
, y
, wc
);
6096 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6097 PyObject
* _resultobj
;
6102 PyObject
* _argo0
= 0;
6103 char *_kwnames
[] = { "self","x","y", NULL
};
6107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6117 wxPy_BEGIN_ALLOW_THREADS
;
6118 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
6120 wxPy_END_ALLOW_THREADS
;
6121 if (PyErr_Occurred()) return NULL
;
6123 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6124 _resultobj
= Py_BuildValue("s",_ptemp
);
6127 _resultobj
= Py_None
;
6132 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6133 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6134 PyObject
* _resultobj
;
6140 PyObject
* _argo0
= 0;
6141 char *_kwnames
[] = { "self", NULL
};
6150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
6153 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6154 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6155 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6160 wxPy_BEGIN_ALLOW_THREADS
;
6161 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
6163 wxPy_END_ALLOW_THREADS
;
6164 if (PyErr_Occurred()) return NULL
;
6165 } Py_INCREF(Py_None
);
6166 _resultobj
= Py_None
;
6169 o
= PyInt_FromLong((long) (*_arg1
));
6170 _resultobj
= t_output_helper(_resultobj
, o
);
6174 o
= PyInt_FromLong((long) (*_arg2
));
6175 _resultobj
= t_output_helper(_resultobj
, o
);
6180 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6181 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6182 PyObject
* _resultobj
;
6185 PyObject
* _argo0
= 0;
6186 char *_kwnames
[] = { "self", NULL
};
6190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
6193 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6194 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6200 wxPy_BEGIN_ALLOW_THREADS
;
6201 _result
= new wxSize (wxDC_GetSize(_arg0
));
6203 wxPy_END_ALLOW_THREADS
;
6204 if (PyErr_Occurred()) return NULL
;
6205 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6206 _resultobj
= Py_BuildValue("s",_ptemp
);
6210 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6211 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6212 PyObject
* _resultobj
;
6215 PyObject
* _argo0
= 0;
6216 char *_kwnames
[] = { "self", NULL
};
6220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
6223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6230 wxPy_BEGIN_ALLOW_THREADS
;
6231 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
6233 wxPy_END_ALLOW_THREADS
;
6234 if (PyErr_Occurred()) return NULL
;
6235 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6236 _resultobj
= Py_BuildValue("s",_ptemp
);
6240 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
6241 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6242 PyObject
* _resultobj
;
6245 PyObject
* _argo0
= 0;
6246 char *_kwnames
[] = { "self", NULL
};
6250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
6253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
6260 wxPy_BEGIN_ALLOW_THREADS
;
6261 wxColour
& _result_ref
= wxDC_GetTextBackground(_arg0
);
6262 _result
= (wxColour
*) &_result_ref
;
6264 wxPy_END_ALLOW_THREADS
;
6265 if (PyErr_Occurred()) return NULL
;
6267 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6268 _resultobj
= Py_BuildValue("s",_ptemp
);
6271 _resultobj
= Py_None
;
6276 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
6277 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6278 PyObject
* _resultobj
;
6285 PyObject
* _argo0
= 0;
6286 PyObject
* _obj1
= 0;
6287 char *_kwnames
[] = { "self","string", NULL
};
6296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
6299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6306 #if PYTHON_API_VERSION >= 1009
6307 char* tmpPtr
; int tmpSize
;
6308 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6309 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6312 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6314 _arg1
= new wxString(tmpPtr
, tmpSize
);
6316 if (!PyString_Check(_obj1
)) {
6317 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6320 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6324 wxPy_BEGIN_ALLOW_THREADS
;
6325 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
6327 wxPy_END_ALLOW_THREADS
;
6328 if (PyErr_Occurred()) return NULL
;
6329 } Py_INCREF(Py_None
);
6330 _resultobj
= Py_None
;
6333 o
= PyInt_FromLong((long) (*_arg2
));
6334 _resultobj
= t_output_helper(_resultobj
, o
);
6338 o
= PyInt_FromLong((long) (*_arg3
));
6339 _resultobj
= t_output_helper(_resultobj
, o
);
6348 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6349 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6350 PyObject
* _resultobj
;
6361 wxFont
* _arg6
= (wxFont
*) NULL
;
6362 PyObject
* _argo0
= 0;
6363 PyObject
* _obj1
= 0;
6364 PyObject
* _argo6
= 0;
6365 char *_kwnames
[] = { "self","string","font", NULL
};
6380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
6383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
6390 #if PYTHON_API_VERSION >= 1009
6391 char* tmpPtr
; int tmpSize
;
6392 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6393 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6396 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6398 _arg1
= new wxString(tmpPtr
, tmpSize
);
6400 if (!PyString_Check(_obj1
)) {
6401 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6404 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6408 if (_argo6
== Py_None
) { _arg6
= NULL
; }
6409 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
6410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6415 wxPy_BEGIN_ALLOW_THREADS
;
6416 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6418 wxPy_END_ALLOW_THREADS
;
6419 if (PyErr_Occurred()) return NULL
;
6420 } Py_INCREF(Py_None
);
6421 _resultobj
= Py_None
;
6424 o
= PyInt_FromLong((long) (*_arg2
));
6425 _resultobj
= t_output_helper(_resultobj
, o
);
6429 o
= PyInt_FromLong((long) (*_arg3
));
6430 _resultobj
= t_output_helper(_resultobj
, o
);
6434 o
= PyInt_FromLong((long) (*_arg4
));
6435 _resultobj
= t_output_helper(_resultobj
, o
);
6439 o
= PyInt_FromLong((long) (*_arg5
));
6440 _resultobj
= t_output_helper(_resultobj
, o
);
6449 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6450 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6451 PyObject
* _resultobj
;
6454 PyObject
* _argo0
= 0;
6455 char *_kwnames
[] = { "self", NULL
};
6459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
6462 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6463 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6469 wxPy_BEGIN_ALLOW_THREADS
;
6470 wxColour
& _result_ref
= wxDC_GetTextForeground(_arg0
);
6471 _result
= (wxColour
*) &_result_ref
;
6473 wxPy_END_ALLOW_THREADS
;
6474 if (PyErr_Occurred()) return NULL
;
6476 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6477 _resultobj
= Py_BuildValue("s",_ptemp
);
6480 _resultobj
= Py_None
;
6485 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6486 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6487 PyObject
* _resultobj
;
6493 PyObject
* _argo0
= 0;
6494 char *_kwnames
[] = { "self", NULL
};
6503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
6506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6513 wxPy_BEGIN_ALLOW_THREADS
;
6514 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
6516 wxPy_END_ALLOW_THREADS
;
6517 if (PyErr_Occurred()) return NULL
;
6518 } Py_INCREF(Py_None
);
6519 _resultobj
= Py_None
;
6522 o
= PyFloat_FromDouble((double) (*_arg1
));
6523 _resultobj
= t_output_helper(_resultobj
, o
);
6527 o
= PyFloat_FromDouble((double) (*_arg2
));
6528 _resultobj
= t_output_helper(_resultobj
, o
);
6533 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6534 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6535 PyObject
* _resultobj
;
6539 PyObject
* _argo0
= 0;
6540 char *_kwnames
[] = { "self","x", NULL
};
6543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
6546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6553 wxPy_BEGIN_ALLOW_THREADS
;
6554 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
6556 wxPy_END_ALLOW_THREADS
;
6557 if (PyErr_Occurred()) return NULL
;
6558 } _resultobj
= Py_BuildValue("l",_result
);
6562 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6563 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6564 PyObject
* _resultobj
;
6568 PyObject
* _argo0
= 0;
6569 char *_kwnames
[] = { "self","x", NULL
};
6572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
6575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6582 wxPy_BEGIN_ALLOW_THREADS
;
6583 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
6585 wxPy_END_ALLOW_THREADS
;
6586 if (PyErr_Occurred()) return NULL
;
6587 } _resultobj
= Py_BuildValue("l",_result
);
6591 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
6592 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6593 PyObject
* _resultobj
;
6597 PyObject
* _argo0
= 0;
6598 char *_kwnames
[] = { "self","y", NULL
};
6601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
6604 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6605 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6606 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
6611 wxPy_BEGIN_ALLOW_THREADS
;
6612 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
6614 wxPy_END_ALLOW_THREADS
;
6615 if (PyErr_Occurred()) return NULL
;
6616 } _resultobj
= Py_BuildValue("l",_result
);
6620 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
6621 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6622 PyObject
* _resultobj
;
6626 PyObject
* _argo0
= 0;
6627 char *_kwnames
[] = { "self","y", NULL
};
6630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
6633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
6640 wxPy_BEGIN_ALLOW_THREADS
;
6641 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
6643 wxPy_END_ALLOW_THREADS
;
6644 if (PyErr_Occurred()) return NULL
;
6645 } _resultobj
= Py_BuildValue("l",_result
);
6649 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
6650 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6651 PyObject
* _resultobj
;
6654 PyObject
* _argo0
= 0;
6655 char *_kwnames
[] = { "self", NULL
};
6658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
6661 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6662 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
6668 wxPy_BEGIN_ALLOW_THREADS
;
6669 _result
= (long )wxDC_MaxX(_arg0
);
6671 wxPy_END_ALLOW_THREADS
;
6672 if (PyErr_Occurred()) return NULL
;
6673 } _resultobj
= Py_BuildValue("l",_result
);
6677 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
6678 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6679 PyObject
* _resultobj
;
6682 PyObject
* _argo0
= 0;
6683 char *_kwnames
[] = { "self", NULL
};
6686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
6689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
6696 wxPy_BEGIN_ALLOW_THREADS
;
6697 _result
= (long )wxDC_MaxY(_arg0
);
6699 wxPy_END_ALLOW_THREADS
;
6700 if (PyErr_Occurred()) return NULL
;
6701 } _resultobj
= Py_BuildValue("l",_result
);
6705 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
6706 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6707 PyObject
* _resultobj
;
6710 PyObject
* _argo0
= 0;
6711 char *_kwnames
[] = { "self", NULL
};
6714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
6717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
6724 wxPy_BEGIN_ALLOW_THREADS
;
6725 _result
= (long )wxDC_MinX(_arg0
);
6727 wxPy_END_ALLOW_THREADS
;
6728 if (PyErr_Occurred()) return NULL
;
6729 } _resultobj
= Py_BuildValue("l",_result
);
6733 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
6734 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6735 PyObject
* _resultobj
;
6738 PyObject
* _argo0
= 0;
6739 char *_kwnames
[] = { "self", NULL
};
6742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
6745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
6752 wxPy_BEGIN_ALLOW_THREADS
;
6753 _result
= (long )wxDC_MinY(_arg0
);
6755 wxPy_END_ALLOW_THREADS
;
6756 if (PyErr_Occurred()) return NULL
;
6757 } _resultobj
= Py_BuildValue("l",_result
);
6761 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
6762 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6763 PyObject
* _resultobj
;
6766 PyObject
* _argo0
= 0;
6767 char *_kwnames
[] = { "self", NULL
};
6770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
6773 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6774 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6775 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
6780 wxPy_BEGIN_ALLOW_THREADS
;
6781 _result
= (bool )wxDC_Ok(_arg0
);
6783 wxPy_END_ALLOW_THREADS
;
6784 if (PyErr_Occurred()) return NULL
;
6785 } _resultobj
= Py_BuildValue("i",_result
);
6789 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
6790 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6791 PyObject
* _resultobj
;
6795 PyObject
* _argo0
= 0;
6796 char *_kwnames
[] = { "self","x","y", NULL
};
6799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
6809 wxPy_BEGIN_ALLOW_THREADS
;
6810 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
6812 wxPy_END_ALLOW_THREADS
;
6813 if (PyErr_Occurred()) return NULL
;
6814 } Py_INCREF(Py_None
);
6815 _resultobj
= Py_None
;
6819 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
6820 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6821 PyObject
* _resultobj
;
6824 PyObject
* _argo0
= 0;
6825 PyObject
* _argo1
= 0;
6826 char *_kwnames
[] = { "self","brush", NULL
};
6829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
6832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
6839 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6840 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6841 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
6846 wxPy_BEGIN_ALLOW_THREADS
;
6847 wxDC_SetBackground(_arg0
,*_arg1
);
6849 wxPy_END_ALLOW_THREADS
;
6850 if (PyErr_Occurred()) return NULL
;
6851 } Py_INCREF(Py_None
);
6852 _resultobj
= Py_None
;
6856 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
6857 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6858 PyObject
* _resultobj
;
6861 PyObject
* _argo0
= 0;
6862 char *_kwnames
[] = { "self","mode", NULL
};
6865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
6868 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6869 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
6875 wxPy_BEGIN_ALLOW_THREADS
;
6876 wxDC_SetBackgroundMode(_arg0
,_arg1
);
6878 wxPy_END_ALLOW_THREADS
;
6879 if (PyErr_Occurred()) return NULL
;
6880 } Py_INCREF(Py_None
);
6881 _resultobj
= Py_None
;
6885 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6886 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6887 PyObject
* _resultobj
;
6893 PyObject
* _argo0
= 0;
6894 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
6907 wxPy_BEGIN_ALLOW_THREADS
;
6908 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6910 wxPy_END_ALLOW_THREADS
;
6911 if (PyErr_Occurred()) return NULL
;
6912 } Py_INCREF(Py_None
);
6913 _resultobj
= Py_None
;
6917 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
6918 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6919 PyObject
* _resultobj
;
6922 PyObject
* _argo0
= 0;
6923 PyObject
* _argo1
= 0;
6924 char *_kwnames
[] = { "self","colourMap", NULL
};
6927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
6930 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6931 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
6937 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6938 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
6939 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
6944 wxPy_BEGIN_ALLOW_THREADS
;
6945 wxDC_SetPalette(_arg0
,*_arg1
);
6947 wxPy_END_ALLOW_THREADS
;
6948 if (PyErr_Occurred()) return NULL
;
6949 } Py_INCREF(Py_None
);
6950 _resultobj
= Py_None
;
6954 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
6955 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6956 PyObject
* _resultobj
;
6959 PyObject
* _argo0
= 0;
6960 PyObject
* _argo1
= 0;
6961 char *_kwnames
[] = { "self","brush", NULL
};
6964 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
6967 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6968 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6969 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
6974 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6975 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6976 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
6981 wxPy_BEGIN_ALLOW_THREADS
;
6982 wxDC_SetBrush(_arg0
,*_arg1
);
6984 wxPy_END_ALLOW_THREADS
;
6985 if (PyErr_Occurred()) return NULL
;
6986 } Py_INCREF(Py_None
);
6987 _resultobj
= Py_None
;
6991 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
6992 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6993 PyObject
* _resultobj
;
6996 PyObject
* _argo0
= 0;
6997 PyObject
* _argo1
= 0;
6998 char *_kwnames
[] = { "self","font", NULL
};
7001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
7004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7011 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7012 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
7013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7018 wxPy_BEGIN_ALLOW_THREADS
;
7019 wxDC_SetFont(_arg0
,*_arg1
);
7021 wxPy_END_ALLOW_THREADS
;
7022 if (PyErr_Occurred()) return NULL
;
7023 } Py_INCREF(Py_None
);
7024 _resultobj
= Py_None
;
7028 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7029 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7030 PyObject
* _resultobj
;
7033 PyObject
* _argo0
= 0;
7034 char *_kwnames
[] = { "self","function", NULL
};
7037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7040 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7041 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7042 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7047 wxPy_BEGIN_ALLOW_THREADS
;
7048 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7050 wxPy_END_ALLOW_THREADS
;
7051 if (PyErr_Occurred()) return NULL
;
7052 } Py_INCREF(Py_None
);
7053 _resultobj
= Py_None
;
7057 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7058 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7059 PyObject
* _resultobj
;
7063 PyObject
* _argo0
= 0;
7064 char *_kwnames
[] = { "self","x","y", NULL
};
7067 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7070 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7071 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7072 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7077 wxPy_BEGIN_ALLOW_THREADS
;
7078 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7080 wxPy_END_ALLOW_THREADS
;
7081 if (PyErr_Occurred()) return NULL
;
7082 } Py_INCREF(Py_None
);
7083 _resultobj
= Py_None
;
7087 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7088 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7089 PyObject
* _resultobj
;
7092 PyObject
* _argo0
= 0;
7093 char *_kwnames
[] = { "self","mode", NULL
};
7096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
7099 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7100 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7101 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7106 wxPy_BEGIN_ALLOW_THREADS
;
7107 wxDC_SetMapMode(_arg0
,_arg1
);
7109 wxPy_END_ALLOW_THREADS
;
7110 if (PyErr_Occurred()) return NULL
;
7111 } Py_INCREF(Py_None
);
7112 _resultobj
= Py_None
;
7116 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7117 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7118 PyObject
* _resultobj
;
7121 PyObject
* _argo0
= 0;
7123 char *_kwnames
[] = { "self","optimize", NULL
};
7126 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
7129 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7130 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7135 _arg1
= (bool ) tempbool1
;
7137 wxPy_BEGIN_ALLOW_THREADS
;
7138 wxDC_SetOptimization(_arg0
,_arg1
);
7140 wxPy_END_ALLOW_THREADS
;
7141 if (PyErr_Occurred()) return NULL
;
7142 } Py_INCREF(Py_None
);
7143 _resultobj
= Py_None
;
7147 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7148 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7149 PyObject
* _resultobj
;
7152 PyObject
* _argo0
= 0;
7153 PyObject
* _argo1
= 0;
7154 char *_kwnames
[] = { "self","pen", NULL
};
7157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
7160 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7161 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7162 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7167 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7168 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
7169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7174 wxPy_BEGIN_ALLOW_THREADS
;
7175 wxDC_SetPen(_arg0
,*_arg1
);
7177 wxPy_END_ALLOW_THREADS
;
7178 if (PyErr_Occurred()) return NULL
;
7179 } Py_INCREF(Py_None
);
7180 _resultobj
= Py_None
;
7184 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7185 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7186 PyObject
* _resultobj
;
7189 PyObject
* _argo0
= 0;
7191 PyObject
* _obj1
= 0;
7192 char *_kwnames
[] = { "self","colour", NULL
};
7195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
7198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7206 if (! wxColour_helper(_obj1
, &_arg1
))
7210 wxPy_BEGIN_ALLOW_THREADS
;
7211 wxDC_SetTextBackground(_arg0
,*_arg1
);
7213 wxPy_END_ALLOW_THREADS
;
7214 if (PyErr_Occurred()) return NULL
;
7215 } Py_INCREF(Py_None
);
7216 _resultobj
= Py_None
;
7220 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
7221 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7222 PyObject
* _resultobj
;
7225 PyObject
* _argo0
= 0;
7227 PyObject
* _obj1
= 0;
7228 char *_kwnames
[] = { "self","colour", NULL
};
7231 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
7234 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7235 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7236 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7242 if (! wxColour_helper(_obj1
, &_arg1
))
7246 wxPy_BEGIN_ALLOW_THREADS
;
7247 wxDC_SetTextForeground(_arg0
,*_arg1
);
7249 wxPy_END_ALLOW_THREADS
;
7250 if (PyErr_Occurred()) return NULL
;
7251 } Py_INCREF(Py_None
);
7252 _resultobj
= Py_None
;
7256 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
7257 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7258 PyObject
* _resultobj
;
7262 PyObject
* _argo0
= 0;
7263 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
7266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
7276 wxPy_BEGIN_ALLOW_THREADS
;
7277 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
7279 wxPy_END_ALLOW_THREADS
;
7280 if (PyErr_Occurred()) return NULL
;
7281 } Py_INCREF(Py_None
);
7282 _resultobj
= Py_None
;
7286 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
7287 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7288 PyObject
* _resultobj
;
7292 PyObject
* _argo0
= 0;
7293 PyObject
* _obj1
= 0;
7294 char *_kwnames
[] = { "self","message", NULL
};
7297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
7300 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7301 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7302 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7307 #if PYTHON_API_VERSION >= 1009
7308 char* tmpPtr
; int tmpSize
;
7309 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7310 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7313 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7315 _arg1
= new wxString(tmpPtr
, tmpSize
);
7317 if (!PyString_Check(_obj1
)) {
7318 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7321 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7325 wxPy_BEGIN_ALLOW_THREADS
;
7326 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
7328 wxPy_END_ALLOW_THREADS
;
7329 if (PyErr_Occurred()) return NULL
;
7330 } _resultobj
= Py_BuildValue("i",_result
);
7338 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
7339 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7340 PyObject
* _resultobj
;
7342 PyObject
* _argo0
= 0;
7343 char *_kwnames
[] = { "self", NULL
};
7346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
7349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7356 wxPy_BEGIN_ALLOW_THREADS
;
7357 wxDC_StartPage(_arg0
);
7359 wxPy_END_ALLOW_THREADS
;
7360 if (PyErr_Occurred()) return NULL
;
7361 } Py_INCREF(Py_None
);
7362 _resultobj
= Py_None
;
7366 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7367 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7368 PyObject
* _resultobj
;
7373 int _arg4
= (int ) FALSE
;
7374 PyObject
* _argo0
= 0;
7375 PyObject
* _argo1
= 0;
7376 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
7379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
7382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
7389 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7390 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
7396 wxPy_BEGIN_ALLOW_THREADS
;
7397 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7399 wxPy_END_ALLOW_THREADS
;
7400 if (PyErr_Occurred()) return NULL
;
7401 } Py_INCREF(Py_None
);
7402 _resultobj
= Py_None
;
7406 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
7407 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7408 PyObject
* _resultobj
;
7411 PyObject
* _argo0
= 0;
7412 char *_kwnames
[] = { "self", NULL
};
7415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
7418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
7425 wxPy_BEGIN_ALLOW_THREADS
;
7426 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
7428 wxPy_END_ALLOW_THREADS
;
7429 if (PyErr_Occurred()) return NULL
;
7430 } _resultobj
= Py_BuildValue("i",_result
);
7434 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
7435 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7436 PyObject
* _resultobj
;
7439 PyObject
* _argo0
= 0;
7440 char *_kwnames
[] = { "self", NULL
};
7443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
7446 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7447 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
7453 wxPy_BEGIN_ALLOW_THREADS
;
7454 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
7456 wxPy_END_ALLOW_THREADS
;
7457 if (PyErr_Occurred()) return NULL
;
7458 } _resultobj
= Py_BuildValue("i",_result
);
7462 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7463 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7464 PyObject
* _resultobj
;
7467 PyObject
* _argo0
= 0;
7468 char *_kwnames
[] = { "self", NULL
};
7471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
7474 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7475 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7481 wxPy_BEGIN_ALLOW_THREADS
;
7482 _result
= (int )wxDC_GetDepth(_arg0
);
7484 wxPy_END_ALLOW_THREADS
;
7485 if (PyErr_Occurred()) return NULL
;
7486 } _resultobj
= Py_BuildValue("i",_result
);
7490 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7491 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7492 PyObject
* _resultobj
;
7495 PyObject
* _argo0
= 0;
7496 char *_kwnames
[] = { "self", NULL
};
7500 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
7503 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7504 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7505 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7510 wxPy_BEGIN_ALLOW_THREADS
;
7511 _result
= new wxSize (wxDC_GetPPI(_arg0
));
7513 wxPy_END_ALLOW_THREADS
;
7514 if (PyErr_Occurred()) return NULL
;
7515 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7516 _resultobj
= Py_BuildValue("s",_ptemp
);
7520 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7521 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7522 PyObject
* _resultobj
;
7528 PyObject
* _argo0
= 0;
7529 char *_kwnames
[] = { "self", NULL
};
7538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
7541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
7548 wxPy_BEGIN_ALLOW_THREADS
;
7549 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7551 wxPy_END_ALLOW_THREADS
;
7552 if (PyErr_Occurred()) return NULL
;
7553 } Py_INCREF(Py_None
);
7554 _resultobj
= Py_None
;
7557 o
= PyInt_FromLong((long) (*_arg1
));
7558 _resultobj
= t_output_helper(_resultobj
, o
);
7562 o
= PyInt_FromLong((long) (*_arg2
));
7563 _resultobj
= t_output_helper(_resultobj
, o
);
7568 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7569 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7570 PyObject
* _resultobj
;
7574 PyObject
* _argo0
= 0;
7575 char *_kwnames
[] = { "self","x","y", NULL
};
7578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7588 wxPy_BEGIN_ALLOW_THREADS
;
7589 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7591 wxPy_END_ALLOW_THREADS
;
7592 if (PyErr_Occurred()) return NULL
;
7593 } Py_INCREF(Py_None
);
7594 _resultobj
= Py_None
;
7598 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7599 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7600 PyObject
* _resultobj
;
7606 PyObject
* _argo0
= 0;
7607 char *_kwnames
[] = { "self", NULL
};
7616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
7619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7626 wxPy_BEGIN_ALLOW_THREADS
;
7627 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7629 wxPy_END_ALLOW_THREADS
;
7630 if (PyErr_Occurred()) return NULL
;
7631 } Py_INCREF(Py_None
);
7632 _resultobj
= Py_None
;
7635 o
= PyInt_FromLong((long) (*_arg1
));
7636 _resultobj
= t_output_helper(_resultobj
, o
);
7640 o
= PyInt_FromLong((long) (*_arg2
));
7641 _resultobj
= t_output_helper(_resultobj
, o
);
7646 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7647 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7648 PyObject
* _resultobj
;
7652 PyObject
* _argo0
= 0;
7655 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
7658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
7661 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7662 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7667 _arg1
= (bool ) tempbool1
;
7668 _arg2
= (bool ) tempbool2
;
7670 wxPy_BEGIN_ALLOW_THREADS
;
7671 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
7673 wxPy_END_ALLOW_THREADS
;
7674 if (PyErr_Occurred()) return NULL
;
7675 } Py_INCREF(Py_None
);
7676 _resultobj
= Py_None
;
7680 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7681 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7682 PyObject
* _resultobj
;
7686 PyObject
* _argo0
= 0;
7687 char *_kwnames
[] = { "self","x","y", NULL
};
7690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
7700 wxPy_BEGIN_ALLOW_THREADS
;
7701 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
7703 wxPy_END_ALLOW_THREADS
;
7704 if (PyErr_Occurred()) return NULL
;
7705 } Py_INCREF(Py_None
);
7706 _resultobj
= Py_None
;
7710 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
7711 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7712 PyObject
* _resultobj
;
7714 PyObject
* _argo0
= 0;
7715 char *_kwnames
[] = { "self", NULL
};
7718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
7721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
7728 wxPy_BEGIN_ALLOW_THREADS
;
7729 wxDC_ResetBoundingBox(_arg0
);
7731 wxPy_END_ALLOW_THREADS
;
7732 if (PyErr_Occurred()) return NULL
;
7733 } Py_INCREF(Py_None
);
7734 _resultobj
= Py_None
;
7738 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
7741 src
= (wxMemoryDC
*) ptr
;
7742 dest
= (wxDC
*) src
;
7743 return (void *) dest
;
7746 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
7749 src
= (wxMemoryDC
*) ptr
;
7750 dest
= (wxObject
*) src
;
7751 return (void *) dest
;
7754 #define new_wxMemoryDC() (new wxMemoryDC())
7755 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7756 PyObject
* _resultobj
;
7757 wxMemoryDC
* _result
;
7758 char *_kwnames
[] = { NULL
};
7762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
7765 wxPy_BEGIN_ALLOW_THREADS
;
7766 _result
= (wxMemoryDC
*)new_wxMemoryDC();
7768 wxPy_END_ALLOW_THREADS
;
7769 if (PyErr_Occurred()) return NULL
;
7771 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
7772 _resultobj
= Py_BuildValue("s",_ptemp
);
7775 _resultobj
= Py_None
;
7780 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
7781 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7782 PyObject
* _resultobj
;
7785 PyObject
* _argo0
= 0;
7786 PyObject
* _argo1
= 0;
7787 char *_kwnames
[] = { "self","bitmap", NULL
};
7790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
7793 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7794 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
7795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
7800 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7801 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
7807 wxPy_BEGIN_ALLOW_THREADS
;
7808 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
7810 wxPy_END_ALLOW_THREADS
;
7811 if (PyErr_Occurred()) return NULL
;
7812 } Py_INCREF(Py_None
);
7813 _resultobj
= Py_None
;
7817 static void *SwigwxScreenDCTowxDC(void *ptr
) {
7820 src
= (wxScreenDC
*) ptr
;
7821 dest
= (wxDC
*) src
;
7822 return (void *) dest
;
7825 static void *SwigwxScreenDCTowxObject(void *ptr
) {
7828 src
= (wxScreenDC
*) ptr
;
7829 dest
= (wxObject
*) src
;
7830 return (void *) dest
;
7833 #define new_wxScreenDC() (new wxScreenDC())
7834 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7835 PyObject
* _resultobj
;
7836 wxScreenDC
* _result
;
7837 char *_kwnames
[] = { NULL
};
7841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
7844 wxPy_BEGIN_ALLOW_THREADS
;
7845 _result
= (wxScreenDC
*)new_wxScreenDC();
7847 wxPy_END_ALLOW_THREADS
;
7848 if (PyErr_Occurred()) return NULL
;
7850 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
7851 _resultobj
= Py_BuildValue("s",_ptemp
);
7854 _resultobj
= Py_None
;
7859 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7860 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7861 PyObject
* _resultobj
;
7865 PyObject
* _argo0
= 0;
7866 PyObject
* _argo1
= 0;
7867 char *_kwnames
[] = { "self","window", NULL
};
7870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
7873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
7880 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7881 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
7882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
7887 wxPy_BEGIN_ALLOW_THREADS
;
7888 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
7890 wxPy_END_ALLOW_THREADS
;
7891 if (PyErr_Occurred()) return NULL
;
7892 } _resultobj
= Py_BuildValue("i",_result
);
7896 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7897 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7898 PyObject
* _resultobj
;
7901 wxRect
* _arg1
= (wxRect
*) NULL
;
7902 PyObject
* _argo0
= 0;
7904 PyObject
* _obj1
= 0;
7905 char *_kwnames
[] = { "self","rect", NULL
};
7908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
7911 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7912 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7913 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
7920 if (! wxRect_helper(_obj1
, &_arg1
))
7924 wxPy_BEGIN_ALLOW_THREADS
;
7925 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
7927 wxPy_END_ALLOW_THREADS
;
7928 if (PyErr_Occurred()) return NULL
;
7929 } _resultobj
= Py_BuildValue("i",_result
);
7933 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
7934 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7935 PyObject
* _resultobj
;
7938 PyObject
* _argo0
= 0;
7939 char *_kwnames
[] = { "self", NULL
};
7942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
7945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
7952 wxPy_BEGIN_ALLOW_THREADS
;
7953 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
7955 wxPy_END_ALLOW_THREADS
;
7956 if (PyErr_Occurred()) return NULL
;
7957 } _resultobj
= Py_BuildValue("i",_result
);
7961 static void *SwigwxClientDCTowxDC(void *ptr
) {
7964 src
= (wxClientDC
*) ptr
;
7965 dest
= (wxDC
*) src
;
7966 return (void *) dest
;
7969 static void *SwigwxClientDCTowxObject(void *ptr
) {
7972 src
= (wxClientDC
*) ptr
;
7973 dest
= (wxObject
*) src
;
7974 return (void *) dest
;
7977 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
7978 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7979 PyObject
* _resultobj
;
7980 wxClientDC
* _result
;
7982 PyObject
* _argo0
= 0;
7983 char *_kwnames
[] = { "win", NULL
};
7987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
7990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
7992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
7997 wxPy_BEGIN_ALLOW_THREADS
;
7998 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
8000 wxPy_END_ALLOW_THREADS
;
8001 if (PyErr_Occurred()) return NULL
;
8003 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
8004 _resultobj
= Py_BuildValue("s",_ptemp
);
8007 _resultobj
= Py_None
;
8012 static void *SwigwxPaintDCTowxDC(void *ptr
) {
8015 src
= (wxPaintDC
*) ptr
;
8016 dest
= (wxDC
*) src
;
8017 return (void *) dest
;
8020 static void *SwigwxPaintDCTowxObject(void *ptr
) {
8023 src
= (wxPaintDC
*) ptr
;
8024 dest
= (wxObject
*) src
;
8025 return (void *) dest
;
8028 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8029 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8030 PyObject
* _resultobj
;
8031 wxPaintDC
* _result
;
8033 PyObject
* _argo0
= 0;
8034 char *_kwnames
[] = { "win", NULL
};
8038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8041 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8042 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8043 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8048 wxPy_BEGIN_ALLOW_THREADS
;
8049 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8051 wxPy_END_ALLOW_THREADS
;
8052 if (PyErr_Occurred()) return NULL
;
8054 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8055 _resultobj
= Py_BuildValue("s",_ptemp
);
8058 _resultobj
= Py_None
;
8063 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8066 src
= (wxWindowDC
*) ptr
;
8067 dest
= (wxDC
*) src
;
8068 return (void *) dest
;
8071 static void *SwigwxWindowDCTowxObject(void *ptr
) {
8074 src
= (wxWindowDC
*) ptr
;
8075 dest
= (wxObject
*) src
;
8076 return (void *) dest
;
8079 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8080 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8081 PyObject
* _resultobj
;
8082 wxWindowDC
* _result
;
8084 PyObject
* _argo0
= 0;
8085 char *_kwnames
[] = { "win", NULL
};
8089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
8092 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8093 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8099 wxPy_BEGIN_ALLOW_THREADS
;
8100 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
8102 wxPy_END_ALLOW_THREADS
;
8103 if (PyErr_Occurred()) return NULL
;
8105 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
8106 _resultobj
= Py_BuildValue("s",_ptemp
);
8109 _resultobj
= Py_None
;
8114 static void *SwigwxPostScriptDCTowxDC(void *ptr
) {
8115 wxPostScriptDC
*src
;
8117 src
= (wxPostScriptDC
*) ptr
;
8118 dest
= (wxDC
*) src
;
8119 return (void *) dest
;
8122 static void *SwigwxPostScriptDCTowxObject(void *ptr
) {
8123 wxPostScriptDC
*src
;
8125 src
= (wxPostScriptDC
*) ptr
;
8126 dest
= (wxObject
*) src
;
8127 return (void *) dest
;
8130 #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2))
8131 static PyObject
*_wrap_new_wxPostScriptDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8132 PyObject
* _resultobj
;
8133 wxPostScriptDC
* _result
;
8135 bool _arg1
= (bool ) TRUE
;
8136 wxWindow
* _arg2
= (wxWindow
*) NULL
;
8137 PyObject
* _obj0
= 0;
8138 int tempbool1
= (int) TRUE
;
8139 PyObject
* _argo2
= 0;
8140 char *_kwnames
[] = { "output","interactive","win", NULL
};
8144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:new_wxPostScriptDC",_kwnames
,&_obj0
,&tempbool1
,&_argo2
))
8147 #if PYTHON_API_VERSION >= 1009
8148 char* tmpPtr
; int tmpSize
;
8149 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
8150 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8153 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
8155 _arg0
= new wxString(tmpPtr
, tmpSize
);
8157 if (!PyString_Check(_obj0
)) {
8158 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8161 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
8164 _arg1
= (bool ) tempbool1
;
8166 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8167 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
8168 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p.");
8173 wxPy_BEGIN_ALLOW_THREADS
;
8174 _result
= (wxPostScriptDC
*)new_wxPostScriptDC(*_arg0
,_arg1
,_arg2
);
8176 wxPy_END_ALLOW_THREADS
;
8177 if (PyErr_Occurred()) return NULL
;
8179 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPostScriptDC_p");
8180 _resultobj
= Py_BuildValue("s",_ptemp
);
8183 _resultobj
= Py_None
;
8192 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
8195 src
= (wxPalette
*) ptr
;
8196 dest
= (wxGDIObject
*) src
;
8197 return (void *) dest
;
8200 static void *SwigwxPaletteTowxObject(void *ptr
) {
8203 src
= (wxPalette
*) ptr
;
8204 dest
= (wxObject
*) src
;
8205 return (void *) dest
;
8208 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8209 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8210 PyObject
* _resultobj
;
8211 wxPalette
* _result
;
8216 PyObject
* _obj1
= 0;
8217 PyObject
* _obj2
= 0;
8218 PyObject
* _obj3
= 0;
8219 char *_kwnames
[] = { "choices","choices","choices", NULL
};
8223 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
8226 _arg1
= byte_LIST_helper(_obj1
);
8227 if (_arg1
== NULL
) {
8232 _arg2
= byte_LIST_helper(_obj2
);
8233 if (_arg2
== NULL
) {
8239 _arg3
= byte_LIST_helper(_obj3
);
8240 if (_arg3
== NULL
) {
8246 _arg0
= PyList_Size(_obj1
);
8253 wxPy_BEGIN_ALLOW_THREADS
;
8254 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
8256 wxPy_END_ALLOW_THREADS
;
8257 if (PyErr_Occurred()) return NULL
;
8259 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
8260 _resultobj
= Py_BuildValue("s",_ptemp
);
8263 _resultobj
= Py_None
;
8277 #define delete_wxPalette(_swigobj) (delete _swigobj)
8278 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8279 PyObject
* _resultobj
;
8281 PyObject
* _argo0
= 0;
8282 char *_kwnames
[] = { "self", NULL
};
8285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
8288 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8289 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8290 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
8295 wxPy_BEGIN_ALLOW_THREADS
;
8296 delete_wxPalette(_arg0
);
8298 wxPy_END_ALLOW_THREADS
;
8299 if (PyErr_Occurred()) return NULL
;
8300 } Py_INCREF(Py_None
);
8301 _resultobj
= Py_None
;
8305 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
8306 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8307 PyObject
* _resultobj
;
8313 PyObject
* _argo0
= 0;
8314 char *_kwnames
[] = { "self","red","green","blue", NULL
};
8317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
8320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
8327 wxPy_BEGIN_ALLOW_THREADS
;
8328 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
8330 wxPy_END_ALLOW_THREADS
;
8331 if (PyErr_Occurred()) return NULL
;
8332 } _resultobj
= Py_BuildValue("i",_result
);
8336 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8337 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8338 PyObject
* _resultobj
;
8345 PyObject
* _argo0
= 0;
8346 PyObject
* _argo2
= 0;
8347 PyObject
* _argo3
= 0;
8348 PyObject
* _argo4
= 0;
8349 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
8352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
8355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
8362 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8363 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
8364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
8369 if (_argo3
== Py_None
) { _arg3
= NULL
; }
8370 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
8371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
8376 if (_argo4
== Py_None
) { _arg4
= NULL
; }
8377 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
8378 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
8383 wxPy_BEGIN_ALLOW_THREADS
;
8384 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8386 wxPy_END_ALLOW_THREADS
;
8387 if (PyErr_Occurred()) return NULL
;
8388 } _resultobj
= Py_BuildValue("i",_result
);
8392 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
8393 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8394 PyObject
* _resultobj
;
8397 PyObject
* _argo0
= 0;
8398 char *_kwnames
[] = { "self", NULL
};
8401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
8404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
8411 wxPy_BEGIN_ALLOW_THREADS
;
8412 _result
= (bool )wxPalette_Ok(_arg0
);
8414 wxPy_END_ALLOW_THREADS
;
8415 if (PyErr_Occurred()) return NULL
;
8416 } _resultobj
= Py_BuildValue("i",_result
);
8420 static void *SwigwxImageListTowxObject(void *ptr
) {
8423 src
= (wxImageList
*) ptr
;
8424 dest
= (wxObject
*) src
;
8425 return (void *) dest
;
8428 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8429 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8430 PyObject
* _resultobj
;
8431 wxImageList
* _result
;
8434 int _arg2
= (int ) TRUE
;
8435 int _arg3
= (int ) 1;
8436 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
8440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
8443 wxPy_BEGIN_ALLOW_THREADS
;
8444 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
8446 wxPy_END_ALLOW_THREADS
;
8447 if (PyErr_Occurred()) return NULL
;
8449 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
8450 _resultobj
= Py_BuildValue("s",_ptemp
);
8453 _resultobj
= Py_None
;
8458 #define delete_wxImageList(_swigobj) (delete _swigobj)
8459 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8460 PyObject
* _resultobj
;
8461 wxImageList
* _arg0
;
8462 PyObject
* _argo0
= 0;
8463 char *_kwnames
[] = { "self", NULL
};
8466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
8469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
8476 wxPy_BEGIN_ALLOW_THREADS
;
8477 delete_wxImageList(_arg0
);
8479 wxPy_END_ALLOW_THREADS
;
8480 if (PyErr_Occurred()) return NULL
;
8481 } Py_INCREF(Py_None
);
8482 _resultobj
= Py_None
;
8486 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8487 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8488 PyObject
* _resultobj
;
8490 wxImageList
* _arg0
;
8492 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
8493 PyObject
* _argo0
= 0;
8494 PyObject
* _argo1
= 0;
8495 PyObject
* _argo2
= 0;
8496 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
8499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
8502 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8503 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
8509 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8510 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
8516 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8517 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
8523 wxPy_BEGIN_ALLOW_THREADS
;
8524 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
8526 wxPy_END_ALLOW_THREADS
;
8527 if (PyErr_Occurred()) return NULL
;
8528 } _resultobj
= Py_BuildValue("i",_result
);
8532 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8533 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8534 PyObject
* _resultobj
;
8536 wxImageList
* _arg0
;
8539 PyObject
* _argo0
= 0;
8540 PyObject
* _argo1
= 0;
8542 PyObject
* _obj2
= 0;
8543 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
8546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
8556 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8557 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8564 if (! wxColour_helper(_obj2
, &_arg2
))
8568 wxPy_BEGIN_ALLOW_THREADS
;
8569 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
8571 wxPy_END_ALLOW_THREADS
;
8572 if (PyErr_Occurred()) return NULL
;
8573 } _resultobj
= Py_BuildValue("i",_result
);
8577 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8578 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8579 PyObject
* _resultobj
;
8581 wxImageList
* _arg0
;
8583 PyObject
* _argo0
= 0;
8584 PyObject
* _argo1
= 0;
8585 char *_kwnames
[] = { "self","icon", NULL
};
8588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
8591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8598 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8599 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
8600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8605 wxPy_BEGIN_ALLOW_THREADS
;
8606 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
8608 wxPy_END_ALLOW_THREADS
;
8609 if (PyErr_Occurred()) return NULL
;
8610 } _resultobj
= Py_BuildValue("i",_result
);
8614 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
8615 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8616 PyObject
* _resultobj
;
8618 wxImageList
* _arg0
;
8621 PyObject
* _argo0
= 0;
8622 PyObject
* _argo2
= 0;
8623 char *_kwnames
[] = { "self","index","bitmap", NULL
};
8626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
8629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8636 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8637 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8643 wxPy_BEGIN_ALLOW_THREADS
;
8644 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
8646 wxPy_END_ALLOW_THREADS
;
8647 if (PyErr_Occurred()) return NULL
;
8648 } _resultobj
= Py_BuildValue("i",_result
);
8652 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8653 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8654 PyObject
* _resultobj
;
8656 wxImageList
* _arg0
;
8661 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
8662 bool _arg6
= (bool ) FALSE
;
8663 PyObject
* _argo0
= 0;
8664 PyObject
* _argo2
= 0;
8665 int tempbool6
= (int) FALSE
;
8666 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
8669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
8672 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8673 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8679 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8680 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
8681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8685 _arg6
= (bool ) tempbool6
;
8687 wxPy_BEGIN_ALLOW_THREADS
;
8688 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8690 wxPy_END_ALLOW_THREADS
;
8691 if (PyErr_Occurred()) return NULL
;
8692 } _resultobj
= Py_BuildValue("i",_result
);
8696 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
8697 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8698 PyObject
* _resultobj
;
8700 wxImageList
* _arg0
;
8701 PyObject
* _argo0
= 0;
8702 char *_kwnames
[] = { "self", NULL
};
8705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
8708 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8709 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8710 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8715 wxPy_BEGIN_ALLOW_THREADS
;
8716 _result
= (int )wxImageList_GetImageCount(_arg0
);
8718 wxPy_END_ALLOW_THREADS
;
8719 if (PyErr_Occurred()) return NULL
;
8720 } _resultobj
= Py_BuildValue("i",_result
);
8724 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8725 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8726 PyObject
* _resultobj
;
8728 wxImageList
* _arg0
;
8730 PyObject
* _argo0
= 0;
8731 char *_kwnames
[] = { "self","index", NULL
};
8734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
8737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
8744 wxPy_BEGIN_ALLOW_THREADS
;
8745 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
8747 wxPy_END_ALLOW_THREADS
;
8748 if (PyErr_Occurred()) return NULL
;
8749 } _resultobj
= Py_BuildValue("i",_result
);
8753 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
8754 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8755 PyObject
* _resultobj
;
8757 wxImageList
* _arg0
;
8758 PyObject
* _argo0
= 0;
8759 char *_kwnames
[] = { "self", NULL
};
8762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
8765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
8772 wxPy_BEGIN_ALLOW_THREADS
;
8773 _result
= (bool )wxImageList_RemoveAll(_arg0
);
8775 wxPy_END_ALLOW_THREADS
;
8776 if (PyErr_Occurred()) return NULL
;
8777 } _resultobj
= Py_BuildValue("i",_result
);
8781 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
8782 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8783 PyObject
* _resultobj
;
8784 wxImageList
* _arg0
;
8790 PyObject
* _argo0
= 0;
8791 char *_kwnames
[] = { "self","index", NULL
};
8800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
8803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
8810 wxPy_BEGIN_ALLOW_THREADS
;
8811 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
8813 wxPy_END_ALLOW_THREADS
;
8814 if (PyErr_Occurred()) return NULL
;
8815 } Py_INCREF(Py_None
);
8816 _resultobj
= Py_None
;
8819 o
= PyInt_FromLong((long) (*_arg2
));
8820 _resultobj
= t_output_helper(_resultobj
, o
);
8824 o
= PyInt_FromLong((long) (*_arg3
));
8825 _resultobj
= t_output_helper(_resultobj
, o
);
8830 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
8833 src
= (wxRegion
*) ptr
;
8834 dest
= (wxGDIObject
*) src
;
8835 return (void *) dest
;
8838 static void *SwigwxRegionTowxObject(void *ptr
) {
8841 src
= (wxRegion
*) ptr
;
8842 dest
= (wxObject
*) src
;
8843 return (void *) dest
;
8846 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8847 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8848 PyObject
* _resultobj
;
8850 long _arg0
= (long ) 0;
8851 long _arg1
= (long ) 0;
8852 long _arg2
= (long ) 0;
8853 long _arg3
= (long ) 0;
8854 char *_kwnames
[] = { "x","y","width","height", NULL
};
8858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
8861 wxPy_BEGIN_ALLOW_THREADS
;
8862 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
8864 wxPy_END_ALLOW_THREADS
;
8865 if (PyErr_Occurred()) return NULL
;
8867 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
8868 _resultobj
= Py_BuildValue("s",_ptemp
);
8871 _resultobj
= Py_None
;
8876 #define delete_wxRegion(_swigobj) (delete _swigobj)
8877 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8878 PyObject
* _resultobj
;
8880 PyObject
* _argo0
= 0;
8881 char *_kwnames
[] = { "self", NULL
};
8884 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
8887 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8888 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
8889 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
8894 wxPy_BEGIN_ALLOW_THREADS
;
8895 delete_wxRegion(_arg0
);
8897 wxPy_END_ALLOW_THREADS
;
8898 if (PyErr_Occurred()) return NULL
;
8899 } Py_INCREF(Py_None
);
8900 _resultobj
= Py_None
;
8904 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
8905 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8906 PyObject
* _resultobj
;
8908 PyObject
* _argo0
= 0;
8909 char *_kwnames
[] = { "self", NULL
};
8912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
8915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
8917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
8922 wxPy_BEGIN_ALLOW_THREADS
;
8923 wxRegion_Clear(_arg0
);
8925 wxPy_END_ALLOW_THREADS
;
8926 if (PyErr_Occurred()) return NULL
;
8927 } Py_INCREF(Py_None
);
8928 _resultobj
= Py_None
;
8932 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
8933 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8934 PyObject
* _resultobj
;
8935 wxRegionContain _result
;
8939 PyObject
* _argo0
= 0;
8940 char *_kwnames
[] = { "self","x","y", NULL
};
8943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8946 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8947 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
8948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
8953 wxPy_BEGIN_ALLOW_THREADS
;
8954 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
8956 wxPy_END_ALLOW_THREADS
;
8957 if (PyErr_Occurred()) return NULL
;
8958 } _resultobj
= Py_BuildValue("i",_result
);
8962 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
8963 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8964 PyObject
* _resultobj
;
8965 wxRegionContain _result
;
8968 PyObject
* _argo0
= 0;
8970 PyObject
* _obj1
= 0;
8971 char *_kwnames
[] = { "self","pt", NULL
};
8974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
8977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
8979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
8985 if (! wxPoint_helper(_obj1
, &_arg1
))
8989 wxPy_BEGIN_ALLOW_THREADS
;
8990 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
8992 wxPy_END_ALLOW_THREADS
;
8993 if (PyErr_Occurred()) return NULL
;
8994 } _resultobj
= Py_BuildValue("i",_result
);
8998 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
8999 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9000 PyObject
* _resultobj
;
9001 wxRegionContain _result
;
9004 PyObject
* _argo0
= 0;
9006 PyObject
* _obj1
= 0;
9007 char *_kwnames
[] = { "self","rect", NULL
};
9010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
9013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9021 if (! wxRect_helper(_obj1
, &_arg1
))
9025 wxPy_BEGIN_ALLOW_THREADS
;
9026 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
9028 wxPy_END_ALLOW_THREADS
;
9029 if (PyErr_Occurred()) return NULL
;
9030 } _resultobj
= Py_BuildValue("i",_result
);
9034 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9035 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9036 PyObject
* _resultobj
;
9037 wxRegionContain _result
;
9043 PyObject
* _argo0
= 0;
9044 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
9047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9057 wxPy_BEGIN_ALLOW_THREADS
;
9058 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9060 wxPy_END_ALLOW_THREADS
;
9061 if (PyErr_Occurred()) return NULL
;
9062 } _resultobj
= Py_BuildValue("i",_result
);
9066 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9067 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9068 PyObject
* _resultobj
;
9071 PyObject
* _argo0
= 0;
9072 char *_kwnames
[] = { "self", NULL
};
9076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
9079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9086 wxPy_BEGIN_ALLOW_THREADS
;
9087 _result
= new wxRect (wxRegion_GetBox(_arg0
));
9089 wxPy_END_ALLOW_THREADS
;
9090 if (PyErr_Occurred()) return NULL
;
9091 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9092 _resultobj
= Py_BuildValue("s",_ptemp
);
9096 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9097 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9098 PyObject
* _resultobj
;
9105 PyObject
* _argo0
= 0;
9106 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9109 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9112 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9113 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9119 wxPy_BEGIN_ALLOW_THREADS
;
9120 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9122 wxPy_END_ALLOW_THREADS
;
9123 if (PyErr_Occurred()) return NULL
;
9124 } _resultobj
= Py_BuildValue("i",_result
);
9128 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9129 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9130 PyObject
* _resultobj
;
9134 PyObject
* _argo0
= 0;
9136 PyObject
* _obj1
= 0;
9137 char *_kwnames
[] = { "self","rect", NULL
};
9140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
9143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9151 if (! wxRect_helper(_obj1
, &_arg1
))
9155 wxPy_BEGIN_ALLOW_THREADS
;
9156 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
9158 wxPy_END_ALLOW_THREADS
;
9159 if (PyErr_Occurred()) return NULL
;
9160 } _resultobj
= Py_BuildValue("i",_result
);
9164 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9165 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9166 PyObject
* _resultobj
;
9170 PyObject
* _argo0
= 0;
9171 PyObject
* _argo1
= 0;
9172 char *_kwnames
[] = { "self","region", NULL
};
9175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
9178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9185 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9186 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9187 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9192 wxPy_BEGIN_ALLOW_THREADS
;
9193 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
9195 wxPy_END_ALLOW_THREADS
;
9196 if (PyErr_Occurred()) return NULL
;
9197 } _resultobj
= Py_BuildValue("i",_result
);
9201 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
9202 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9203 PyObject
* _resultobj
;
9206 PyObject
* _argo0
= 0;
9207 char *_kwnames
[] = { "self", NULL
};
9210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
9213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
9220 wxPy_BEGIN_ALLOW_THREADS
;
9221 _result
= (bool )wxRegion_IsEmpty(_arg0
);
9223 wxPy_END_ALLOW_THREADS
;
9224 if (PyErr_Occurred()) return NULL
;
9225 } _resultobj
= Py_BuildValue("i",_result
);
9229 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9230 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9231 PyObject
* _resultobj
;
9238 PyObject
* _argo0
= 0;
9239 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
9252 wxPy_BEGIN_ALLOW_THREADS
;
9253 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9255 wxPy_END_ALLOW_THREADS
;
9256 if (PyErr_Occurred()) return NULL
;
9257 } _resultobj
= Py_BuildValue("i",_result
);
9261 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9262 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9263 PyObject
* _resultobj
;
9267 PyObject
* _argo0
= 0;
9269 PyObject
* _obj1
= 0;
9270 char *_kwnames
[] = { "self","rect", NULL
};
9273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
9276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
9284 if (! wxRect_helper(_obj1
, &_arg1
))
9288 wxPy_BEGIN_ALLOW_THREADS
;
9289 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
9291 wxPy_END_ALLOW_THREADS
;
9292 if (PyErr_Occurred()) return NULL
;
9293 } _resultobj
= Py_BuildValue("i",_result
);
9297 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9298 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9299 PyObject
* _resultobj
;
9303 PyObject
* _argo0
= 0;
9304 PyObject
* _argo1
= 0;
9305 char *_kwnames
[] = { "self","region", NULL
};
9308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
9311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9318 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9319 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9325 wxPy_BEGIN_ALLOW_THREADS
;
9326 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
9328 wxPy_END_ALLOW_THREADS
;
9329 if (PyErr_Occurred()) return NULL
;
9330 } _resultobj
= Py_BuildValue("i",_result
);
9334 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9335 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9336 PyObject
* _resultobj
;
9343 PyObject
* _argo0
= 0;
9344 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
9357 wxPy_BEGIN_ALLOW_THREADS
;
9358 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9360 wxPy_END_ALLOW_THREADS
;
9361 if (PyErr_Occurred()) return NULL
;
9362 } _resultobj
= Py_BuildValue("i",_result
);
9366 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9367 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9368 PyObject
* _resultobj
;
9372 PyObject
* _argo0
= 0;
9374 PyObject
* _obj1
= 0;
9375 char *_kwnames
[] = { "self","rect", NULL
};
9378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
9381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
9389 if (! wxRect_helper(_obj1
, &_arg1
))
9393 wxPy_BEGIN_ALLOW_THREADS
;
9394 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
9396 wxPy_END_ALLOW_THREADS
;
9397 if (PyErr_Occurred()) return NULL
;
9398 } _resultobj
= Py_BuildValue("i",_result
);
9402 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9403 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9404 PyObject
* _resultobj
;
9408 PyObject
* _argo0
= 0;
9409 PyObject
* _argo1
= 0;
9410 char *_kwnames
[] = { "self","region", NULL
};
9413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
9416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9423 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9424 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9430 wxPy_BEGIN_ALLOW_THREADS
;
9431 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
9433 wxPy_END_ALLOW_THREADS
;
9434 if (PyErr_Occurred()) return NULL
;
9435 } _resultobj
= Py_BuildValue("i",_result
);
9439 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9440 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9441 PyObject
* _resultobj
;
9448 PyObject
* _argo0
= 0;
9449 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
9462 wxPy_BEGIN_ALLOW_THREADS
;
9463 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9465 wxPy_END_ALLOW_THREADS
;
9466 if (PyErr_Occurred()) return NULL
;
9467 } _resultobj
= Py_BuildValue("i",_result
);
9471 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9472 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9473 PyObject
* _resultobj
;
9477 PyObject
* _argo0
= 0;
9479 PyObject
* _obj1
= 0;
9480 char *_kwnames
[] = { "self","rect", NULL
};
9483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
9486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
9494 if (! wxRect_helper(_obj1
, &_arg1
))
9498 wxPy_BEGIN_ALLOW_THREADS
;
9499 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
9501 wxPy_END_ALLOW_THREADS
;
9502 if (PyErr_Occurred()) return NULL
;
9503 } _resultobj
= Py_BuildValue("i",_result
);
9507 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9508 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9509 PyObject
* _resultobj
;
9513 PyObject
* _argo0
= 0;
9514 PyObject
* _argo1
= 0;
9515 char *_kwnames
[] = { "self","region", NULL
};
9518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
9521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
9528 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9529 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
9535 wxPy_BEGIN_ALLOW_THREADS
;
9536 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
9538 wxPy_END_ALLOW_THREADS
;
9539 if (PyErr_Occurred()) return NULL
;
9540 } _resultobj
= Py_BuildValue("i",_result
);
9544 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
9545 wxRegionIterator
*src
;
9547 src
= (wxRegionIterator
*) ptr
;
9548 dest
= (wxObject
*) src
;
9549 return (void *) dest
;
9552 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
9553 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9554 PyObject
* _resultobj
;
9555 wxRegionIterator
* _result
;
9557 PyObject
* _argo0
= 0;
9558 char *_kwnames
[] = { "region", NULL
};
9562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
9565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
9572 wxPy_BEGIN_ALLOW_THREADS
;
9573 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
9575 wxPy_END_ALLOW_THREADS
;
9576 if (PyErr_Occurred()) return NULL
;
9578 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
9579 _resultobj
= Py_BuildValue("s",_ptemp
);
9582 _resultobj
= Py_None
;
9587 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
9588 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9589 PyObject
* _resultobj
;
9590 wxRegionIterator
* _arg0
;
9591 PyObject
* _argo0
= 0;
9592 char *_kwnames
[] = { "self", NULL
};
9595 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
9598 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9599 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
9605 wxPy_BEGIN_ALLOW_THREADS
;
9606 delete_wxRegionIterator(_arg0
);
9608 wxPy_END_ALLOW_THREADS
;
9609 if (PyErr_Occurred()) return NULL
;
9610 } Py_INCREF(Py_None
);
9611 _resultobj
= Py_None
;
9615 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
9616 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9617 PyObject
* _resultobj
;
9619 wxRegionIterator
* _arg0
;
9620 PyObject
* _argo0
= 0;
9621 char *_kwnames
[] = { "self", NULL
};
9624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
9627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
9634 wxPy_BEGIN_ALLOW_THREADS
;
9635 _result
= (long )wxRegionIterator_GetX(_arg0
);
9637 wxPy_END_ALLOW_THREADS
;
9638 if (PyErr_Occurred()) return NULL
;
9639 } _resultobj
= Py_BuildValue("l",_result
);
9643 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
9644 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9645 PyObject
* _resultobj
;
9647 wxRegionIterator
* _arg0
;
9648 PyObject
* _argo0
= 0;
9649 char *_kwnames
[] = { "self", NULL
};
9652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
9655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
9662 wxPy_BEGIN_ALLOW_THREADS
;
9663 _result
= (long )wxRegionIterator_GetY(_arg0
);
9665 wxPy_END_ALLOW_THREADS
;
9666 if (PyErr_Occurred()) return NULL
;
9667 } _resultobj
= Py_BuildValue("l",_result
);
9671 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
9672 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9673 PyObject
* _resultobj
;
9675 wxRegionIterator
* _arg0
;
9676 PyObject
* _argo0
= 0;
9677 char *_kwnames
[] = { "self", NULL
};
9680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
9683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
9690 wxPy_BEGIN_ALLOW_THREADS
;
9691 _result
= (long )wxRegionIterator_GetW(_arg0
);
9693 wxPy_END_ALLOW_THREADS
;
9694 if (PyErr_Occurred()) return NULL
;
9695 } _resultobj
= Py_BuildValue("l",_result
);
9699 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
9700 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9701 PyObject
* _resultobj
;
9703 wxRegionIterator
* _arg0
;
9704 PyObject
* _argo0
= 0;
9705 char *_kwnames
[] = { "self", NULL
};
9708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
9711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
9718 wxPy_BEGIN_ALLOW_THREADS
;
9719 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
9721 wxPy_END_ALLOW_THREADS
;
9722 if (PyErr_Occurred()) return NULL
;
9723 } _resultobj
= Py_BuildValue("l",_result
);
9727 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
9728 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9729 PyObject
* _resultobj
;
9731 wxRegionIterator
* _arg0
;
9732 PyObject
* _argo0
= 0;
9733 char *_kwnames
[] = { "self", NULL
};
9736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
9739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
9746 wxPy_BEGIN_ALLOW_THREADS
;
9747 _result
= (long )wxRegionIterator_GetH(_arg0
);
9749 wxPy_END_ALLOW_THREADS
;
9750 if (PyErr_Occurred()) return NULL
;
9751 } _resultobj
= Py_BuildValue("l",_result
);
9755 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
9756 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9757 PyObject
* _resultobj
;
9759 wxRegionIterator
* _arg0
;
9760 PyObject
* _argo0
= 0;
9761 char *_kwnames
[] = { "self", NULL
};
9764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
9767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
9774 wxPy_BEGIN_ALLOW_THREADS
;
9775 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
9777 wxPy_END_ALLOW_THREADS
;
9778 if (PyErr_Occurred()) return NULL
;
9779 } _resultobj
= Py_BuildValue("l",_result
);
9783 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
9784 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9785 PyObject
* _resultobj
;
9787 wxRegionIterator
* _arg0
;
9788 PyObject
* _argo0
= 0;
9789 char *_kwnames
[] = { "self", NULL
};
9793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
9796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
9803 wxPy_BEGIN_ALLOW_THREADS
;
9804 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
9806 wxPy_END_ALLOW_THREADS
;
9807 if (PyErr_Occurred()) return NULL
;
9808 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9809 _resultobj
= Py_BuildValue("s",_ptemp
);
9813 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
9814 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9815 PyObject
* _resultobj
;
9817 wxRegionIterator
* _arg0
;
9818 PyObject
* _argo0
= 0;
9819 char *_kwnames
[] = { "self", NULL
};
9822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
9825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
9832 wxPy_BEGIN_ALLOW_THREADS
;
9833 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
9835 wxPy_END_ALLOW_THREADS
;
9836 if (PyErr_Occurred()) return NULL
;
9837 } _resultobj
= Py_BuildValue("i",_result
);
9841 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
9842 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9843 PyObject
* _resultobj
;
9844 wxRegionIterator
* _arg0
;
9845 PyObject
* _argo0
= 0;
9846 char *_kwnames
[] = { "self", NULL
};
9849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
9852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
9859 wxPy_BEGIN_ALLOW_THREADS
;
9860 wxRegionIterator_Reset(_arg0
);
9862 wxPy_END_ALLOW_THREADS
;
9863 if (PyErr_Occurred()) return NULL
;
9864 } Py_INCREF(Py_None
);
9865 _resultobj
= Py_None
;
9869 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
9872 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9873 PyObject
* _resultobj
;
9874 wxRegionIterator
* _arg0
;
9875 PyObject
* _argo0
= 0;
9876 char *_kwnames
[] = { "self", NULL
};
9879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
9882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
9889 wxPy_BEGIN_ALLOW_THREADS
;
9890 wxRegionIterator_Next(_arg0
);
9892 wxPy_END_ALLOW_THREADS
;
9893 if (PyErr_Occurred()) return NULL
;
9894 } Py_INCREF(Py_None
);
9895 _resultobj
= Py_None
;
9899 static PyMethodDef gdicMethods
[] = {
9900 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
9901 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
9902 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
9903 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
9904 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9905 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
9906 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9907 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
9908 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
9909 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
9910 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
9911 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
9912 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
9913 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
9914 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
9915 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
9916 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
9917 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
9918 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
9919 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
9920 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
9921 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
9922 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
9923 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
9924 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
9925 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
9926 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
9927 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
9928 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
9929 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
9930 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
9931 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
9932 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
9933 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
9934 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
9935 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9936 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
9937 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
9938 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
9939 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
9940 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
9941 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
9942 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
9943 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
9944 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9945 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
9946 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
9947 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
9948 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
9949 { "new_wxPostScriptDC", (PyCFunction
) _wrap_new_wxPostScriptDC
, METH_VARARGS
| METH_KEYWORDS
},
9950 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
9951 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
9952 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
9953 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
9954 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
9955 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
9956 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
9957 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
9958 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
9959 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
9960 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
9961 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
9962 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9963 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9964 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9965 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
9966 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9967 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
9968 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9969 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9970 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
9971 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
9972 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
9973 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
9974 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
9975 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
9976 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
9977 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
9978 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
9979 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
9980 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
9981 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
9982 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
9983 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
9984 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
9985 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
9986 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9987 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9988 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
9989 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
9990 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
9991 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
9992 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
9993 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
9994 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
9995 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
9996 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
9997 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
9998 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
9999 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10000 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10001 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
10002 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10003 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10004 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10005 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
10006 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10007 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10008 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10009 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10010 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10011 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
10012 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10013 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10014 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10015 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10016 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
10017 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
10018 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10019 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
10020 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
10021 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
10022 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10023 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
10024 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10025 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
10026 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
10027 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
10028 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
10029 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
10030 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
10031 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
10032 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
10033 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
10034 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
10035 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
10036 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
10037 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
10038 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10039 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
10040 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10041 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
10042 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10043 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
10044 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
10045 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
10046 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
10047 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10048 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10049 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10050 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10051 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10052 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10053 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10054 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10055 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10056 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
10057 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
10058 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
10059 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10060 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10061 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10062 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10063 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10064 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10065 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
10066 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10067 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10068 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10069 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10070 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10071 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
10072 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10073 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10074 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
10075 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
10076 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
10077 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
10078 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
10079 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10080 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
10081 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
10082 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
10083 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10084 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10085 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
10086 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
10087 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
10088 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
10089 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
10090 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
10091 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10092 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
10093 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
10094 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10095 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
10096 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
10097 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
10098 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10099 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
10100 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
10101 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10102 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
10103 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
10104 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
10105 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10106 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
10107 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
10108 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10109 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
10110 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10111 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10112 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10113 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10114 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10115 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10116 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10117 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10118 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10119 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10120 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10121 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10122 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
10123 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10124 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10125 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10126 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10127 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10128 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10129 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10130 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10131 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
10132 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
10133 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10134 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
10135 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10136 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10137 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10138 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
10139 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10140 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10141 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10142 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10143 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
10144 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
10145 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10146 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10147 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
10148 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10149 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
10150 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
10151 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10152 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10153 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10160 * This table is used by the pointer type-checker
10162 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10163 { "_signed_long","_long",0},
10164 { "_wxPrintQuality","_wxCoord",0},
10165 { "_wxPrintQuality","_int",0},
10166 { "_wxPrintQuality","_signed_int",0},
10167 { "_wxPrintQuality","_unsigned_int",0},
10168 { "_wxPrintQuality","_wxWindowID",0},
10169 { "_wxPrintQuality","_uint",0},
10170 { "_wxPrintQuality","_EBool",0},
10171 { "_wxPrintQuality","_size_t",0},
10172 { "_wxPrintQuality","_time_t",0},
10173 { "_byte","_unsigned_char",0},
10174 { "_long","_unsigned_long",0},
10175 { "_long","_signed_long",0},
10176 { "_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject
},
10177 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
10178 { "_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject
},
10179 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
10180 { "_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject
},
10181 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
10182 { "_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject
},
10183 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
10184 { "_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject
},
10185 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
10186 { "_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject
},
10187 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
10188 { "_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject
},
10189 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
10190 { "_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject
},
10191 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
10192 { "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
10193 { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
10194 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
10195 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
10196 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
10197 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
10198 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
10199 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
10200 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
10201 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
10202 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10203 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10204 { "_class_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10205 { "_class_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10206 { "_class_wxObject","_class_wxRegion",SwigwxRegionTowxObject
},
10207 { "_class_wxObject","_wxRegion",SwigwxRegionTowxObject
},
10208 { "_class_wxObject","_class_wxImageList",SwigwxImageListTowxObject
},
10209 { "_class_wxObject","_wxImageList",SwigwxImageListTowxObject
},
10210 { "_class_wxObject","_class_wxPalette",SwigwxPaletteTowxObject
},
10211 { "_class_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
10212 { "_class_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
10213 { "_class_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
10214 { "_class_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject
},
10215 { "_class_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
10216 { "_class_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject
},
10217 { "_class_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
10218 { "_class_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject
},
10219 { "_class_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
10220 { "_class_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject
},
10221 { "_class_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
10222 { "_class_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10223 { "_class_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10224 { "_class_wxObject","_class_wxDC",SwigwxDCTowxObject
},
10225 { "_class_wxObject","_wxDC",SwigwxDCTowxObject
},
10226 { "_class_wxObject","_class_wxBrush",SwigwxBrushTowxObject
},
10227 { "_class_wxObject","_wxBrush",SwigwxBrushTowxObject
},
10228 { "_class_wxObject","_class_wxPenList",SwigwxPenListTowxObject
},
10229 { "_class_wxObject","_wxPenList",SwigwxPenListTowxObject
},
10230 { "_class_wxObject","_class_wxPen",SwigwxPenTowxObject
},
10231 { "_class_wxObject","_wxPen",SwigwxPenTowxObject
},
10232 { "_class_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10233 { "_class_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10234 { "_class_wxObject","_class_wxColour",SwigwxColourTowxObject
},
10235 { "_class_wxObject","_wxColour",SwigwxColourTowxObject
},
10236 { "_class_wxObject","_class_wxFontList",SwigwxFontListTowxObject
},
10237 { "_class_wxObject","_wxFontList",SwigwxFontListTowxObject
},
10238 { "_class_wxObject","_class_wxFont",SwigwxFontTowxObject
},
10239 { "_class_wxObject","_wxFont",SwigwxFontTowxObject
},
10240 { "_class_wxObject","_class_wxCursor",SwigwxCursorTowxObject
},
10241 { "_class_wxObject","_wxCursor",SwigwxCursorTowxObject
},
10242 { "_class_wxObject","_class_wxIcon",SwigwxIconTowxObject
},
10243 { "_class_wxObject","_wxIcon",SwigwxIconTowxObject
},
10244 { "_class_wxObject","_class_wxMask",SwigwxMaskTowxObject
},
10245 { "_class_wxObject","_wxMask",SwigwxMaskTowxObject
},
10246 { "_class_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject
},
10247 { "_class_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
10248 { "_class_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject
},
10249 { "_class_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
10250 { "_size_t","_wxCoord",0},
10251 { "_size_t","_wxPrintQuality",0},
10252 { "_size_t","_time_t",0},
10253 { "_size_t","_unsigned_int",0},
10254 { "_size_t","_int",0},
10255 { "_size_t","_wxWindowID",0},
10256 { "_size_t","_uint",0},
10257 { "_uint","_wxCoord",0},
10258 { "_uint","_wxPrintQuality",0},
10259 { "_uint","_time_t",0},
10260 { "_uint","_size_t",0},
10261 { "_uint","_unsigned_int",0},
10262 { "_uint","_int",0},
10263 { "_uint","_wxWindowID",0},
10264 { "_wxChar","_char",0},
10265 { "_char","_wxChar",0},
10266 { "_EBool","_wxCoord",0},
10267 { "_EBool","_wxPrintQuality",0},
10268 { "_EBool","_signed_int",0},
10269 { "_EBool","_int",0},
10270 { "_EBool","_wxWindowID",0},
10271 { "_unsigned_long","_long",0},
10272 { "_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
10273 { "_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
10274 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
10275 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
10276 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
10277 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
10278 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
10279 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
10280 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
10281 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
10282 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10283 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10284 { "_signed_int","_wxCoord",0},
10285 { "_signed_int","_wxPrintQuality",0},
10286 { "_signed_int","_EBool",0},
10287 { "_signed_int","_wxWindowID",0},
10288 { "_signed_int","_int",0},
10289 { "_WXTYPE","_short",0},
10290 { "_WXTYPE","_signed_short",0},
10291 { "_WXTYPE","_unsigned_short",0},
10292 { "_unsigned_short","_WXTYPE",0},
10293 { "_unsigned_short","_short",0},
10294 { "_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10295 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10296 { "_wxObject","_class_wxRegion",SwigwxRegionTowxObject
},
10297 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
10298 { "_wxObject","_class_wxImageList",SwigwxImageListTowxObject
},
10299 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
10300 { "_wxObject","_class_wxPalette",SwigwxPaletteTowxObject
},
10301 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
10302 { "_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
10303 { "_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
10304 { "_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject
},
10305 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
10306 { "_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject
},
10307 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
10308 { "_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject
},
10309 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
10310 { "_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject
},
10311 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
10312 { "_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10313 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10314 { "_wxObject","_class_wxDC",SwigwxDCTowxObject
},
10315 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
10316 { "_wxObject","_class_wxBrush",SwigwxBrushTowxObject
},
10317 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
10318 { "_wxObject","_class_wxPenList",SwigwxPenListTowxObject
},
10319 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
10320 { "_wxObject","_class_wxPen",SwigwxPenTowxObject
},
10321 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
10322 { "_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10323 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10324 { "_wxObject","_class_wxColour",SwigwxColourTowxObject
},
10325 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
10326 { "_wxObject","_class_wxFontList",SwigwxFontListTowxObject
},
10327 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
10328 { "_wxObject","_class_wxFont",SwigwxFontTowxObject
},
10329 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
10330 { "_wxObject","_class_wxCursor",SwigwxCursorTowxObject
},
10331 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
10332 { "_wxObject","_class_wxIcon",SwigwxIconTowxObject
},
10333 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
10334 { "_wxObject","_class_wxMask",SwigwxMaskTowxObject
},
10335 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
10336 { "_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject
},
10337 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
10338 { "_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject
},
10339 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
10340 { "_signed_short","_WXTYPE",0},
10341 { "_signed_short","_short",0},
10342 { "_unsigned_char","_byte",0},
10343 { "_unsigned_int","_wxCoord",0},
10344 { "_unsigned_int","_wxPrintQuality",0},
10345 { "_unsigned_int","_time_t",0},
10346 { "_unsigned_int","_size_t",0},
10347 { "_unsigned_int","_uint",0},
10348 { "_unsigned_int","_wxWindowID",0},
10349 { "_unsigned_int","_int",0},
10350 { "_short","_WXTYPE",0},
10351 { "_short","_unsigned_short",0},
10352 { "_short","_signed_short",0},
10353 { "_wxWindowID","_wxCoord",0},
10354 { "_wxWindowID","_wxPrintQuality",0},
10355 { "_wxWindowID","_time_t",0},
10356 { "_wxWindowID","_size_t",0},
10357 { "_wxWindowID","_EBool",0},
10358 { "_wxWindowID","_uint",0},
10359 { "_wxWindowID","_int",0},
10360 { "_wxWindowID","_signed_int",0},
10361 { "_wxWindowID","_unsigned_int",0},
10362 { "_class_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject
},
10363 { "_class_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
10364 { "_class_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject
},
10365 { "_class_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
10366 { "_class_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject
},
10367 { "_class_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
10368 { "_class_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject
},
10369 { "_class_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
10370 { "_class_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject
},
10371 { "_class_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
10372 { "_class_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject
},
10373 { "_class_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
10374 { "_class_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject
},
10375 { "_class_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
10376 { "_class_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject
},
10377 { "_class_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
10378 { "_int","_wxCoord",0},
10379 { "_int","_wxPrintQuality",0},
10380 { "_int","_time_t",0},
10381 { "_int","_size_t",0},
10382 { "_int","_EBool",0},
10383 { "_int","_uint",0},
10384 { "_int","_wxWindowID",0},
10385 { "_int","_unsigned_int",0},
10386 { "_int","_signed_int",0},
10387 { "_time_t","_wxCoord",0},
10388 { "_time_t","_wxPrintQuality",0},
10389 { "_time_t","_unsigned_int",0},
10390 { "_time_t","_int",0},
10391 { "_time_t","_wxWindowID",0},
10392 { "_time_t","_uint",0},
10393 { "_time_t","_size_t",0},
10394 { "_wxCoord","_int",0},
10395 { "_wxCoord","_signed_int",0},
10396 { "_wxCoord","_unsigned_int",0},
10397 { "_wxCoord","_wxWindowID",0},
10398 { "_wxCoord","_uint",0},
10399 { "_wxCoord","_EBool",0},
10400 { "_wxCoord","_size_t",0},
10401 { "_wxCoord","_time_t",0},
10402 { "_wxCoord","_wxPrintQuality",0},
10405 static PyObject
*SWIG_globals
;
10409 SWIGEXPORT(void) initgdic() {
10411 SWIG_globals
= SWIG_newvarlink();
10412 m
= Py_InitModule("gdic", gdicMethods
);
10413 d
= PyModule_GetDict(m
);
10414 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
10415 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
10416 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
10417 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
10418 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
10419 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
10420 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
10421 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
10422 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
10423 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
10424 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
10425 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
10426 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
10427 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
10428 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
10429 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
10430 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
10431 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
10432 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
10433 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
10434 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
10435 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
10436 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
10437 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
10438 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
10439 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
10440 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
10441 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
10442 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
10443 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
10444 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
10445 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
10446 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
10447 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
10448 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
10449 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
10450 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
10451 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
10452 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
10453 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
10454 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
10455 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
10456 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
10457 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
10458 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
10459 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
10460 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
10461 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
10462 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
10463 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
10464 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
10465 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
10466 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
10467 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
10468 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
10469 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
10470 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
10471 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
10472 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
10473 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
10474 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
10475 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
10476 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
10477 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
10478 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
10479 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
10480 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
10481 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
10482 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
10483 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
10484 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
10485 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
10486 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
10487 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
10488 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
10489 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
10490 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
10491 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
10492 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
10493 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
10494 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
10495 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
10496 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
10497 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
10498 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
10499 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
10502 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10503 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);