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 _result
= new wxColour (wxPen_GetColour(_arg0
));
3795 wxPy_END_ALLOW_THREADS
;
3796 if (PyErr_Occurred()) return NULL
;
3797 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
3798 _resultobj
= Py_BuildValue("s",_ptemp
);
3802 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
3803 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3804 PyObject
* _resultobj
;
3807 PyObject
* _argo0
= 0;
3808 char *_kwnames
[] = { "self", NULL
};
3811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
3814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
3821 wxPy_BEGIN_ALLOW_THREADS
;
3822 _result
= (int )wxPen_GetJoin(_arg0
);
3824 wxPy_END_ALLOW_THREADS
;
3825 if (PyErr_Occurred()) return NULL
;
3826 } _resultobj
= Py_BuildValue("i",_result
);
3830 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
3831 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3832 PyObject
* _resultobj
;
3835 PyObject
* _argo0
= 0;
3836 char *_kwnames
[] = { "self", NULL
};
3839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
3842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
3849 wxPy_BEGIN_ALLOW_THREADS
;
3850 _result
= (int )wxPen_GetStyle(_arg0
);
3852 wxPy_END_ALLOW_THREADS
;
3853 if (PyErr_Occurred()) return NULL
;
3854 } _resultobj
= Py_BuildValue("i",_result
);
3858 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
3859 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3860 PyObject
* _resultobj
;
3863 PyObject
* _argo0
= 0;
3864 char *_kwnames
[] = { "self", NULL
};
3867 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
3870 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3871 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3872 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
3877 wxPy_BEGIN_ALLOW_THREADS
;
3878 _result
= (int )wxPen_GetWidth(_arg0
);
3880 wxPy_END_ALLOW_THREADS
;
3881 if (PyErr_Occurred()) return NULL
;
3882 } _resultobj
= Py_BuildValue("i",_result
);
3886 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
3887 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3888 PyObject
* _resultobj
;
3891 PyObject
* _argo0
= 0;
3892 char *_kwnames
[] = { "self", NULL
};
3895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
3898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
3905 wxPy_BEGIN_ALLOW_THREADS
;
3906 _result
= (bool )wxPen_Ok(_arg0
);
3908 wxPy_END_ALLOW_THREADS
;
3909 if (PyErr_Occurred()) return NULL
;
3910 } _resultobj
= Py_BuildValue("i",_result
);
3914 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
3915 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3916 PyObject
* _resultobj
;
3919 PyObject
* _argo0
= 0;
3920 char *_kwnames
[] = { "self","cap_style", NULL
};
3923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
3926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
3933 wxPy_BEGIN_ALLOW_THREADS
;
3934 wxPen_SetCap(_arg0
,_arg1
);
3936 wxPy_END_ALLOW_THREADS
;
3937 if (PyErr_Occurred()) return NULL
;
3938 } Py_INCREF(Py_None
);
3939 _resultobj
= Py_None
;
3943 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
3944 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3945 PyObject
* _resultobj
;
3948 PyObject
* _argo0
= 0;
3950 PyObject
* _obj1
= 0;
3951 char *_kwnames
[] = { "self","colour", NULL
};
3954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
3957 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3958 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
3965 if (! wxColour_helper(_obj1
, &_arg1
))
3969 wxPy_BEGIN_ALLOW_THREADS
;
3970 wxPen_SetColour(_arg0
,*_arg1
);
3972 wxPy_END_ALLOW_THREADS
;
3973 if (PyErr_Occurred()) return NULL
;
3974 } Py_INCREF(Py_None
);
3975 _resultobj
= Py_None
;
3979 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
3980 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3981 PyObject
* _resultobj
;
3984 PyObject
* _argo0
= 0;
3985 char *_kwnames
[] = { "self","join_style", NULL
};
3988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
3991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
3998 wxPy_BEGIN_ALLOW_THREADS
;
3999 wxPen_SetJoin(_arg0
,_arg1
);
4001 wxPy_END_ALLOW_THREADS
;
4002 if (PyErr_Occurred()) return NULL
;
4003 } Py_INCREF(Py_None
);
4004 _resultobj
= Py_None
;
4008 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4009 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4010 PyObject
* _resultobj
;
4013 PyObject
* _argo0
= 0;
4014 char *_kwnames
[] = { "self","style", NULL
};
4017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4027 wxPy_BEGIN_ALLOW_THREADS
;
4028 wxPen_SetStyle(_arg0
,_arg1
);
4030 wxPy_END_ALLOW_THREADS
;
4031 if (PyErr_Occurred()) return NULL
;
4032 } Py_INCREF(Py_None
);
4033 _resultobj
= Py_None
;
4037 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4038 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4039 PyObject
* _resultobj
;
4042 PyObject
* _argo0
= 0;
4043 char *_kwnames
[] = { "self","width", NULL
};
4046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4056 wxPy_BEGIN_ALLOW_THREADS
;
4057 wxPen_SetWidth(_arg0
,_arg1
);
4059 wxPy_END_ALLOW_THREADS
;
4060 if (PyErr_Occurred()) return NULL
;
4061 } Py_INCREF(Py_None
);
4062 _resultobj
= Py_None
;
4066 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
4067 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4068 PyObject
* _resultobj
;
4072 PyObject
* _argo0
= 0;
4073 PyObject
* _argo1
= 0;
4074 char *_kwnames
[] = { "self","dashes", NULL
};
4077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_GetDashes",_kwnames
,&_argo0
,&_argo1
))
4080 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4081 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4087 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4088 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDash_pp")) {
4089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
4094 wxPy_BEGIN_ALLOW_THREADS
;
4095 _result
= (int )wxPen_GetDashes(_arg0
,_arg1
);
4097 wxPy_END_ALLOW_THREADS
;
4098 if (PyErr_Occurred()) return NULL
;
4099 } _resultobj
= Py_BuildValue("i",_result
);
4103 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4104 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4105 PyObject
* _resultobj
;
4109 PyObject
* _argo0
= 0;
4110 PyObject
* _obj2
= 0;
4111 char *_kwnames
[] = { "self","choices", NULL
};
4114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4125 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4126 if (_arg2
== NULL
) {
4132 _arg1
= PyList_Size(_obj2
);
4139 wxPy_BEGIN_ALLOW_THREADS
;
4140 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4142 wxPy_END_ALLOW_THREADS
;
4143 if (PyErr_Occurred()) return NULL
;
4144 } Py_INCREF(Py_None
);
4145 _resultobj
= Py_None
;
4152 static void *SwigwxPenListTowxObject(void *ptr
) {
4155 src
= (wxPenList
*) ptr
;
4156 dest
= (wxObject
*) src
;
4157 return (void *) dest
;
4160 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4161 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4162 PyObject
* _resultobj
;
4165 PyObject
* _argo0
= 0;
4166 PyObject
* _argo1
= 0;
4167 char *_kwnames
[] = { "self","pen", NULL
};
4170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
4173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4180 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4181 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4187 wxPy_BEGIN_ALLOW_THREADS
;
4188 wxPenList_AddPen(_arg0
,_arg1
);
4190 wxPy_END_ALLOW_THREADS
;
4191 if (PyErr_Occurred()) return NULL
;
4192 } Py_INCREF(Py_None
);
4193 _resultobj
= Py_None
;
4197 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
4198 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4199 PyObject
* _resultobj
;
4205 PyObject
* _argo0
= 0;
4207 PyObject
* _obj1
= 0;
4208 char *_kwnames
[] = { "self","colour","width","style", NULL
};
4212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
4215 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4216 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4217 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
4223 if (! wxColour_helper(_obj1
, &_arg1
))
4227 wxPy_BEGIN_ALLOW_THREADS
;
4228 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
4230 wxPy_END_ALLOW_THREADS
;
4231 if (PyErr_Occurred()) return NULL
;
4233 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4234 _resultobj
= Py_BuildValue("s",_ptemp
);
4237 _resultobj
= Py_None
;
4242 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
4243 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4244 PyObject
* _resultobj
;
4247 PyObject
* _argo0
= 0;
4248 PyObject
* _argo1
= 0;
4249 char *_kwnames
[] = { "self","pen", NULL
};
4252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
4255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
4262 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4263 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
4269 wxPy_BEGIN_ALLOW_THREADS
;
4270 wxPenList_RemovePen(_arg0
,_arg1
);
4272 wxPy_END_ALLOW_THREADS
;
4273 if (PyErr_Occurred()) return NULL
;
4274 } Py_INCREF(Py_None
);
4275 _resultobj
= Py_None
;
4279 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
4282 src
= (wxBrush
*) ptr
;
4283 dest
= (wxGDIObject
*) src
;
4284 return (void *) dest
;
4287 static void *SwigwxBrushTowxObject(void *ptr
) {
4290 src
= (wxBrush
*) ptr
;
4291 dest
= (wxObject
*) src
;
4292 return (void *) dest
;
4295 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
4296 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4297 PyObject
* _resultobj
;
4300 int _arg1
= (int ) wxSOLID
;
4302 PyObject
* _obj0
= 0;
4303 char *_kwnames
[] = { "colour","style", NULL
};
4307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
4311 if (! wxColour_helper(_obj0
, &_arg0
))
4315 wxPy_BEGIN_ALLOW_THREADS
;
4316 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
4318 wxPy_END_ALLOW_THREADS
;
4319 if (PyErr_Occurred()) return NULL
;
4321 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4322 _resultobj
= Py_BuildValue("s",_ptemp
);
4325 _resultobj
= Py_None
;
4330 #define delete_wxBrush(_swigobj) (delete _swigobj)
4331 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4332 PyObject
* _resultobj
;
4334 PyObject
* _argo0
= 0;
4335 char *_kwnames
[] = { "self", NULL
};
4338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
4341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
4348 wxPy_BEGIN_ALLOW_THREADS
;
4349 delete_wxBrush(_arg0
);
4351 wxPy_END_ALLOW_THREADS
;
4352 if (PyErr_Occurred()) return NULL
;
4353 } Py_INCREF(Py_None
);
4354 _resultobj
= Py_None
;
4358 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
4359 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4360 PyObject
* _resultobj
;
4363 PyObject
* _argo0
= 0;
4364 char *_kwnames
[] = { "self", NULL
};
4368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
4371 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4372 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4378 wxPy_BEGIN_ALLOW_THREADS
;
4379 _result
= new wxColour (wxBrush_GetColour(_arg0
));
4381 wxPy_END_ALLOW_THREADS
;
4382 if (PyErr_Occurred()) return NULL
;
4383 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4384 _resultobj
= Py_BuildValue("s",_ptemp
);
4388 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4389 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4390 PyObject
* _resultobj
;
4393 PyObject
* _argo0
= 0;
4394 char *_kwnames
[] = { "self", NULL
};
4398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
4401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4408 wxPy_BEGIN_ALLOW_THREADS
;
4409 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
4411 wxPy_END_ALLOW_THREADS
;
4412 if (PyErr_Occurred()) return NULL
;
4414 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4415 _resultobj
= Py_BuildValue("s",_ptemp
);
4418 _resultobj
= Py_None
;
4423 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4424 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4425 PyObject
* _resultobj
;
4428 PyObject
* _argo0
= 0;
4429 char *_kwnames
[] = { "self", NULL
};
4432 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
4435 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4436 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4437 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4442 wxPy_BEGIN_ALLOW_THREADS
;
4443 _result
= (int )wxBrush_GetStyle(_arg0
);
4445 wxPy_END_ALLOW_THREADS
;
4446 if (PyErr_Occurred()) return NULL
;
4447 } _resultobj
= Py_BuildValue("i",_result
);
4451 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4452 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4453 PyObject
* _resultobj
;
4456 PyObject
* _argo0
= 0;
4457 char *_kwnames
[] = { "self", NULL
};
4460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
4463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4470 wxPy_BEGIN_ALLOW_THREADS
;
4471 _result
= (bool )wxBrush_Ok(_arg0
);
4473 wxPy_END_ALLOW_THREADS
;
4474 if (PyErr_Occurred()) return NULL
;
4475 } _resultobj
= Py_BuildValue("i",_result
);
4479 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4480 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4481 PyObject
* _resultobj
;
4484 PyObject
* _argo0
= 0;
4486 PyObject
* _obj1
= 0;
4487 char *_kwnames
[] = { "self","colour", NULL
};
4490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
4493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4501 if (! wxColour_helper(_obj1
, &_arg1
))
4505 wxPy_BEGIN_ALLOW_THREADS
;
4506 wxBrush_SetColour(_arg0
,*_arg1
);
4508 wxPy_END_ALLOW_THREADS
;
4509 if (PyErr_Occurred()) return NULL
;
4510 } Py_INCREF(Py_None
);
4511 _resultobj
= Py_None
;
4515 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4516 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4517 PyObject
* _resultobj
;
4520 PyObject
* _argo0
= 0;
4521 PyObject
* _argo1
= 0;
4522 char *_kwnames
[] = { "self","bitmap", NULL
};
4525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4535 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4536 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4542 wxPy_BEGIN_ALLOW_THREADS
;
4543 wxBrush_SetStipple(_arg0
,*_arg1
);
4545 wxPy_END_ALLOW_THREADS
;
4546 if (PyErr_Occurred()) return NULL
;
4547 } Py_INCREF(Py_None
);
4548 _resultobj
= Py_None
;
4552 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4553 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4554 PyObject
* _resultobj
;
4557 PyObject
* _argo0
= 0;
4558 char *_kwnames
[] = { "self","style", NULL
};
4561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4571 wxPy_BEGIN_ALLOW_THREADS
;
4572 wxBrush_SetStyle(_arg0
,_arg1
);
4574 wxPy_END_ALLOW_THREADS
;
4575 if (PyErr_Occurred()) return NULL
;
4576 } Py_INCREF(Py_None
);
4577 _resultobj
= Py_None
;
4581 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
4582 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4583 PyObject
* _resultobj
;
4584 wxBrushList
* _arg0
;
4586 PyObject
* _argo0
= 0;
4587 PyObject
* _argo1
= 0;
4588 char *_kwnames
[] = { "self","brush", NULL
};
4591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
4594 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4595 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
4601 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4602 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
4608 wxPy_BEGIN_ALLOW_THREADS
;
4609 wxBrushList_AddBrush(_arg0
,_arg1
);
4611 wxPy_END_ALLOW_THREADS
;
4612 if (PyErr_Occurred()) return NULL
;
4613 } Py_INCREF(Py_None
);
4614 _resultobj
= Py_None
;
4618 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
4619 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4620 PyObject
* _resultobj
;
4622 wxBrushList
* _arg0
;
4625 PyObject
* _argo0
= 0;
4627 PyObject
* _obj1
= 0;
4628 char *_kwnames
[] = { "self","colour","style", NULL
};
4632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
4643 if (! wxColour_helper(_obj1
, &_arg1
))
4647 wxPy_BEGIN_ALLOW_THREADS
;
4648 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
4650 wxPy_END_ALLOW_THREADS
;
4651 if (PyErr_Occurred()) return NULL
;
4653 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4654 _resultobj
= Py_BuildValue("s",_ptemp
);
4657 _resultobj
= Py_None
;
4662 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
4663 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4664 PyObject
* _resultobj
;
4665 wxBrushList
* _arg0
;
4667 PyObject
* _argo0
= 0;
4668 PyObject
* _argo1
= 0;
4669 char *_kwnames
[] = { "self","brush", NULL
};
4672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
4675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
4682 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4683 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
4689 wxPy_BEGIN_ALLOW_THREADS
;
4690 wxBrushList_RemoveBrush(_arg0
,_arg1
);
4692 wxPy_END_ALLOW_THREADS
;
4693 if (PyErr_Occurred()) return NULL
;
4694 } Py_INCREF(Py_None
);
4695 _resultobj
= Py_None
;
4699 static void *SwigwxDCTowxObject(void *ptr
) {
4703 dest
= (wxObject
*) src
;
4704 return (void *) dest
;
4707 #define delete_wxDC(_swigobj) (delete _swigobj)
4708 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4709 PyObject
* _resultobj
;
4711 PyObject
* _argo0
= 0;
4712 char *_kwnames
[] = { "self", NULL
};
4715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
4718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
4725 wxPy_BEGIN_ALLOW_THREADS
;
4728 wxPy_END_ALLOW_THREADS
;
4729 if (PyErr_Occurred()) return NULL
;
4730 } Py_INCREF(Py_None
);
4731 _resultobj
= Py_None
;
4735 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
4736 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4737 PyObject
* _resultobj
;
4739 PyObject
* _argo0
= 0;
4740 char *_kwnames
[] = { "self", NULL
};
4743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
4746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
4753 wxPy_BEGIN_ALLOW_THREADS
;
4754 wxDC_BeginDrawing(_arg0
);
4756 wxPy_END_ALLOW_THREADS
;
4757 if (PyErr_Occurred()) return NULL
;
4758 } Py_INCREF(Py_None
);
4759 _resultobj
= Py_None
;
4763 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4764 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4765 PyObject
* _resultobj
;
4775 int _arg8
= (int ) wxCOPY
;
4776 int _arg9
= (int ) FALSE
;
4777 PyObject
* _argo0
= 0;
4778 PyObject
* _argo5
= 0;
4779 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
4782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
4785 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4786 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
4792 if (_argo5
== Py_None
) { _arg5
= NULL
; }
4793 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
4794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
4799 wxPy_BEGIN_ALLOW_THREADS
;
4800 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
4802 wxPy_END_ALLOW_THREADS
;
4803 if (PyErr_Occurred()) return NULL
;
4804 } _resultobj
= Py_BuildValue("i",_result
);
4808 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
4809 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4810 PyObject
* _resultobj
;
4812 PyObject
* _argo0
= 0;
4813 char *_kwnames
[] = { "self", NULL
};
4816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
4819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
4826 wxPy_BEGIN_ALLOW_THREADS
;
4829 wxPy_END_ALLOW_THREADS
;
4830 if (PyErr_Occurred()) return NULL
;
4831 } Py_INCREF(Py_None
);
4832 _resultobj
= Py_None
;
4836 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
4837 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4838 PyObject
* _resultobj
;
4842 PyObject
* _argo0
= 0;
4843 char *_kwnames
[] = { "self","x","y", NULL
};
4846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
4856 wxPy_BEGIN_ALLOW_THREADS
;
4857 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
4859 wxPy_END_ALLOW_THREADS
;
4860 if (PyErr_Occurred()) return NULL
;
4861 } Py_INCREF(Py_None
);
4862 _resultobj
= Py_None
;
4866 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
4867 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4868 PyObject
* _resultobj
;
4870 PyObject
* _argo0
= 0;
4871 char *_kwnames
[] = { "self", NULL
};
4874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
4877 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4878 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
4884 wxPy_BEGIN_ALLOW_THREADS
;
4885 wxDC_DestroyClippingRegion(_arg0
);
4887 wxPy_END_ALLOW_THREADS
;
4888 if (PyErr_Occurred()) return NULL
;
4889 } Py_INCREF(Py_None
);
4890 _resultobj
= Py_None
;
4894 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
4895 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4896 PyObject
* _resultobj
;
4900 PyObject
* _argo0
= 0;
4901 char *_kwnames
[] = { "self","x", NULL
};
4904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
4907 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4908 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4909 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
4914 wxPy_BEGIN_ALLOW_THREADS
;
4915 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
4917 wxPy_END_ALLOW_THREADS
;
4918 if (PyErr_Occurred()) return NULL
;
4919 } _resultobj
= Py_BuildValue("l",_result
);
4923 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
4924 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4925 PyObject
* _resultobj
;
4929 PyObject
* _argo0
= 0;
4930 char *_kwnames
[] = { "self","x", NULL
};
4933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
4936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
4943 wxPy_BEGIN_ALLOW_THREADS
;
4944 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
4946 wxPy_END_ALLOW_THREADS
;
4947 if (PyErr_Occurred()) return NULL
;
4948 } _resultobj
= Py_BuildValue("l",_result
);
4952 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
4953 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4954 PyObject
* _resultobj
;
4958 PyObject
* _argo0
= 0;
4959 char *_kwnames
[] = { "self","y", NULL
};
4962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
4965 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4966 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
4972 wxPy_BEGIN_ALLOW_THREADS
;
4973 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
4975 wxPy_END_ALLOW_THREADS
;
4976 if (PyErr_Occurred()) return NULL
;
4977 } _resultobj
= Py_BuildValue("l",_result
);
4981 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
4982 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4983 PyObject
* _resultobj
;
4987 PyObject
* _argo0
= 0;
4988 char *_kwnames
[] = { "self","y", NULL
};
4991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
4994 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4995 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5001 wxPy_BEGIN_ALLOW_THREADS
;
5002 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5004 wxPy_END_ALLOW_THREADS
;
5005 if (PyErr_Occurred()) return NULL
;
5006 } _resultobj
= Py_BuildValue("l",_result
);
5010 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5011 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5012 PyObject
* _resultobj
;
5020 PyObject
* _argo0
= 0;
5021 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5034 wxPy_BEGIN_ALLOW_THREADS
;
5035 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5037 wxPy_END_ALLOW_THREADS
;
5038 if (PyErr_Occurred()) return NULL
;
5039 } Py_INCREF(Py_None
);
5040 _resultobj
= Py_None
;
5044 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5045 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5046 PyObject
* _resultobj
;
5051 PyObject
* _argo0
= 0;
5052 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5055 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5058 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5059 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5060 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5065 wxPy_BEGIN_ALLOW_THREADS
;
5066 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
5068 wxPy_END_ALLOW_THREADS
;
5069 if (PyErr_Occurred()) return NULL
;
5070 } Py_INCREF(Py_None
);
5071 _resultobj
= Py_None
;
5075 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5076 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5077 PyObject
* _resultobj
;
5083 PyObject
* _argo0
= 0;
5084 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5097 wxPy_BEGIN_ALLOW_THREADS
;
5098 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5100 wxPy_END_ALLOW_THREADS
;
5101 if (PyErr_Occurred()) return NULL
;
5102 } Py_INCREF(Py_None
);
5103 _resultobj
= Py_None
;
5107 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5108 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5109 PyObject
* _resultobj
;
5117 PyObject
* _argo0
= 0;
5118 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
5121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
5131 wxPy_BEGIN_ALLOW_THREADS
;
5132 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5134 wxPy_END_ALLOW_THREADS
;
5135 if (PyErr_Occurred()) return NULL
;
5136 } Py_INCREF(Py_None
);
5137 _resultobj
= Py_None
;
5141 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
5142 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5143 PyObject
* _resultobj
;
5148 PyObject
* _argo0
= 0;
5149 PyObject
* _argo1
= 0;
5150 char *_kwnames
[] = { "self","icon","x","y", NULL
};
5153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
5156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5163 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5164 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
5165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5170 wxPy_BEGIN_ALLOW_THREADS
;
5171 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
5173 wxPy_END_ALLOW_THREADS
;
5174 if (PyErr_Occurred()) return NULL
;
5175 } Py_INCREF(Py_None
);
5176 _resultobj
= Py_None
;
5180 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5181 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5182 PyObject
* _resultobj
;
5188 PyObject
* _argo0
= 0;
5189 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
5192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5195 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5196 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5202 wxPy_BEGIN_ALLOW_THREADS
;
5203 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5205 wxPy_END_ALLOW_THREADS
;
5206 if (PyErr_Occurred()) return NULL
;
5207 } Py_INCREF(Py_None
);
5208 _resultobj
= Py_None
;
5212 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5213 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5214 PyObject
* _resultobj
;
5218 long _arg3
= (long ) 0;
5219 long _arg4
= (long ) 0;
5220 PyObject
* _argo0
= 0;
5222 PyObject
* _obj2
= 0;
5223 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
5226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
5229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5237 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5238 if (_arg2
== NULL
) {
5246 wxPy_BEGIN_ALLOW_THREADS
;
5247 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5249 wxPy_END_ALLOW_THREADS
;
5250 if (PyErr_Occurred()) return NULL
;
5251 } Py_INCREF(Py_None
);
5252 _resultobj
= Py_None
;
5259 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5260 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5261 PyObject
* _resultobj
;
5265 long _arg3
= (long ) 0;
5266 long _arg4
= (long ) 0;
5267 int _arg5
= (int ) wxODDEVEN_RULE
;
5268 PyObject
* _argo0
= 0;
5270 PyObject
* _obj2
= 0;
5271 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
5274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
5277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5285 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5286 if (_arg2
== NULL
) {
5294 wxPy_BEGIN_ALLOW_THREADS
;
5295 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5297 wxPy_END_ALLOW_THREADS
;
5298 if (PyErr_Occurred()) return NULL
;
5299 } Py_INCREF(Py_None
);
5300 _resultobj
= Py_None
;
5307 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
5308 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5309 PyObject
* _resultobj
;
5313 PyObject
* _argo0
= 0;
5314 char *_kwnames
[] = { "self","x","y", NULL
};
5317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
5327 wxPy_BEGIN_ALLOW_THREADS
;
5328 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
5330 wxPy_END_ALLOW_THREADS
;
5331 if (PyErr_Occurred()) return NULL
;
5332 } Py_INCREF(Py_None
);
5333 _resultobj
= Py_None
;
5337 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5338 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5339 PyObject
* _resultobj
;
5345 PyObject
* _argo0
= 0;
5346 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5352 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5353 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
5359 wxPy_BEGIN_ALLOW_THREADS
;
5360 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5362 wxPy_END_ALLOW_THREADS
;
5363 if (PyErr_Occurred()) return NULL
;
5364 } Py_INCREF(Py_None
);
5365 _resultobj
= Py_None
;
5369 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5370 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5371 PyObject
* _resultobj
;
5377 PyObject
* _argo0
= 0;
5378 PyObject
* _obj1
= 0;
5379 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
5382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5392 #if PYTHON_API_VERSION >= 1009
5393 char* tmpPtr
; int tmpSize
;
5394 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5395 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5398 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5400 _arg1
= new wxString(tmpPtr
, tmpSize
);
5402 if (!PyString_Check(_obj1
)) {
5403 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5406 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5410 wxPy_BEGIN_ALLOW_THREADS
;
5411 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5413 wxPy_END_ALLOW_THREADS
;
5414 if (PyErr_Occurred()) return NULL
;
5415 } Py_INCREF(Py_None
);
5416 _resultobj
= Py_None
;
5424 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5425 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5426 PyObject
* _resultobj
;
5432 long _arg5
= (long ) 20;
5433 PyObject
* _argo0
= 0;
5434 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
5437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
5440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5447 wxPy_BEGIN_ALLOW_THREADS
;
5448 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5450 wxPy_END_ALLOW_THREADS
;
5451 if (PyErr_Occurred()) return NULL
;
5452 } Py_INCREF(Py_None
);
5453 _resultobj
= Py_None
;
5457 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5458 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5459 PyObject
* _resultobj
;
5463 PyObject
* _argo0
= 0;
5465 PyObject
* _obj2
= 0;
5466 char *_kwnames
[] = { "self","points", NULL
};
5469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
5472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5480 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5481 if (_arg2
== NULL
) {
5489 wxPy_BEGIN_ALLOW_THREADS
;
5490 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
5492 wxPy_END_ALLOW_THREADS
;
5493 if (PyErr_Occurred()) return NULL
;
5494 } Py_INCREF(Py_None
);
5495 _resultobj
= Py_None
;
5502 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5503 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5504 PyObject
* _resultobj
;
5509 PyObject
* _argo0
= 0;
5510 PyObject
* _obj1
= 0;
5511 char *_kwnames
[] = { "self","text","x","y", NULL
};
5514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5524 #if PYTHON_API_VERSION >= 1009
5525 char* tmpPtr
; int tmpSize
;
5526 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5527 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5530 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5532 _arg1
= new wxString(tmpPtr
, tmpSize
);
5534 if (!PyString_Check(_obj1
)) {
5535 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5538 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5542 wxPy_BEGIN_ALLOW_THREADS
;
5543 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
5545 wxPy_END_ALLOW_THREADS
;
5546 if (PyErr_Occurred()) return NULL
;
5547 } Py_INCREF(Py_None
);
5548 _resultobj
= Py_None
;
5556 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5557 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5558 PyObject
* _resultobj
;
5560 PyObject
* _argo0
= 0;
5561 char *_kwnames
[] = { "self", NULL
};
5564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
5567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5574 wxPy_BEGIN_ALLOW_THREADS
;
5577 wxPy_END_ALLOW_THREADS
;
5578 if (PyErr_Occurred()) return NULL
;
5579 } Py_INCREF(Py_None
);
5580 _resultobj
= Py_None
;
5584 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
5585 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5586 PyObject
* _resultobj
;
5588 PyObject
* _argo0
= 0;
5589 char *_kwnames
[] = { "self", NULL
};
5592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
5595 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5596 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5602 wxPy_BEGIN_ALLOW_THREADS
;
5603 wxDC_EndDrawing(_arg0
);
5605 wxPy_END_ALLOW_THREADS
;
5606 if (PyErr_Occurred()) return NULL
;
5607 } Py_INCREF(Py_None
);
5608 _resultobj
= Py_None
;
5612 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
5613 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5614 PyObject
* _resultobj
;
5616 PyObject
* _argo0
= 0;
5617 char *_kwnames
[] = { "self", NULL
};
5620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
5623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
5630 wxPy_BEGIN_ALLOW_THREADS
;
5631 wxDC_EndPage(_arg0
);
5633 wxPy_END_ALLOW_THREADS
;
5634 if (PyErr_Occurred()) return NULL
;
5635 } Py_INCREF(Py_None
);
5636 _resultobj
= Py_None
;
5640 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5641 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5642 PyObject
* _resultobj
;
5647 int _arg4
= (int ) wxFLOOD_SURFACE
;
5648 PyObject
* _argo0
= 0;
5650 PyObject
* _obj3
= 0;
5651 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
5654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
5657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
5665 if (! wxColour_helper(_obj3
, &_arg3
))
5669 wxPy_BEGIN_ALLOW_THREADS
;
5670 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
5672 wxPy_END_ALLOW_THREADS
;
5673 if (PyErr_Occurred()) return NULL
;
5674 } Py_INCREF(Py_None
);
5675 _resultobj
= Py_None
;
5679 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
5680 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5681 PyObject
* _resultobj
;
5684 PyObject
* _argo0
= 0;
5685 char *_kwnames
[] = { "self", NULL
};
5689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
5692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
5699 wxPy_BEGIN_ALLOW_THREADS
;
5700 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
5701 _result
= (wxBrush
*) &_result_ref
;
5703 wxPy_END_ALLOW_THREADS
;
5704 if (PyErr_Occurred()) return NULL
;
5706 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5707 _resultobj
= Py_BuildValue("s",_ptemp
);
5710 _resultobj
= Py_None
;
5715 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
5716 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5717 PyObject
* _resultobj
;
5720 PyObject
* _argo0
= 0;
5721 char *_kwnames
[] = { "self", NULL
};
5725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
5728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
5735 wxPy_BEGIN_ALLOW_THREADS
;
5736 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
5737 _result
= (wxBrush
*) &_result_ref
;
5739 wxPy_END_ALLOW_THREADS
;
5740 if (PyErr_Occurred()) return NULL
;
5742 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5743 _resultobj
= Py_BuildValue("s",_ptemp
);
5746 _resultobj
= Py_None
;
5751 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
5752 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5753 PyObject
* _resultobj
;
5756 PyObject
* _argo0
= 0;
5757 char *_kwnames
[] = { "self", NULL
};
5760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
5763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
5770 wxPy_BEGIN_ALLOW_THREADS
;
5771 _result
= (long )wxDC_GetCharHeight(_arg0
);
5773 wxPy_END_ALLOW_THREADS
;
5774 if (PyErr_Occurred()) return NULL
;
5775 } _resultobj
= Py_BuildValue("l",_result
);
5779 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
5780 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5781 PyObject
* _resultobj
;
5784 PyObject
* _argo0
= 0;
5785 char *_kwnames
[] = { "self", NULL
};
5788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
5791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
5798 wxPy_BEGIN_ALLOW_THREADS
;
5799 _result
= (long )wxDC_GetCharWidth(_arg0
);
5801 wxPy_END_ALLOW_THREADS
;
5802 if (PyErr_Occurred()) return NULL
;
5803 } _resultobj
= Py_BuildValue("l",_result
);
5807 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5808 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5809 PyObject
* _resultobj
;
5819 PyObject
* _argo0
= 0;
5820 char *_kwnames
[] = { "self", NULL
};
5835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
5838 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5839 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
5845 wxPy_BEGIN_ALLOW_THREADS
;
5846 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5848 wxPy_END_ALLOW_THREADS
;
5849 if (PyErr_Occurred()) return NULL
;
5850 } Py_INCREF(Py_None
);
5851 _resultobj
= Py_None
;
5854 o
= PyInt_FromLong((long) (*_arg1
));
5855 _resultobj
= t_output_helper(_resultobj
, o
);
5859 o
= PyInt_FromLong((long) (*_arg2
));
5860 _resultobj
= t_output_helper(_resultobj
, o
);
5864 o
= PyInt_FromLong((long) (*_arg3
));
5865 _resultobj
= t_output_helper(_resultobj
, o
);
5869 o
= PyInt_FromLong((long) (*_arg4
));
5870 _resultobj
= t_output_helper(_resultobj
, o
);
5875 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
5876 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5877 PyObject
* _resultobj
;
5880 PyObject
* _argo0
= 0;
5881 char *_kwnames
[] = { "self", NULL
};
5885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
5888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
5895 wxPy_BEGIN_ALLOW_THREADS
;
5896 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
5897 _result
= (wxFont
*) &_result_ref
;
5899 wxPy_END_ALLOW_THREADS
;
5900 if (PyErr_Occurred()) return NULL
;
5902 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
5903 _resultobj
= Py_BuildValue("s",_ptemp
);
5906 _resultobj
= Py_None
;
5911 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
5912 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5913 PyObject
* _resultobj
;
5916 PyObject
* _argo0
= 0;
5917 char *_kwnames
[] = { "self", NULL
};
5920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
5923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
5930 wxPy_BEGIN_ALLOW_THREADS
;
5931 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
5933 wxPy_END_ALLOW_THREADS
;
5934 if (PyErr_Occurred()) return NULL
;
5935 } _resultobj
= Py_BuildValue("i",_result
);
5939 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
5940 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5941 PyObject
* _resultobj
;
5947 PyObject
* _argo0
= 0;
5948 char *_kwnames
[] = { "self", NULL
};
5957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
5960 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5961 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
5967 wxPy_BEGIN_ALLOW_THREADS
;
5968 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
5970 wxPy_END_ALLOW_THREADS
;
5971 if (PyErr_Occurred()) return NULL
;
5972 } Py_INCREF(Py_None
);
5973 _resultobj
= Py_None
;
5976 o
= PyFloat_FromDouble((double) (*_arg1
));
5977 _resultobj
= t_output_helper(_resultobj
, o
);
5981 o
= PyFloat_FromDouble((double) (*_arg2
));
5982 _resultobj
= t_output_helper(_resultobj
, o
);
5987 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
5988 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5989 PyObject
* _resultobj
;
5992 PyObject
* _argo0
= 0;
5993 char *_kwnames
[] = { "self", NULL
};
5996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
5999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6006 wxPy_BEGIN_ALLOW_THREADS
;
6007 _result
= (int )wxDC_GetMapMode(_arg0
);
6009 wxPy_END_ALLOW_THREADS
;
6010 if (PyErr_Occurred()) return NULL
;
6011 } _resultobj
= Py_BuildValue("i",_result
);
6015 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6016 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6017 PyObject
* _resultobj
;
6020 PyObject
* _argo0
= 0;
6021 char *_kwnames
[] = { "self", NULL
};
6024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
6027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6034 wxPy_BEGIN_ALLOW_THREADS
;
6035 _result
= (bool )wxDC_GetOptimization(_arg0
);
6037 wxPy_END_ALLOW_THREADS
;
6038 if (PyErr_Occurred()) return NULL
;
6039 } _resultobj
= Py_BuildValue("i",_result
);
6043 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6044 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6045 PyObject
* _resultobj
;
6048 PyObject
* _argo0
= 0;
6049 char *_kwnames
[] = { "self", NULL
};
6053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
6056 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6057 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6063 wxPy_BEGIN_ALLOW_THREADS
;
6064 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
6065 _result
= (wxPen
*) &_result_ref
;
6067 wxPy_END_ALLOW_THREADS
;
6068 if (PyErr_Occurred()) return NULL
;
6070 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6071 _resultobj
= Py_BuildValue("s",_ptemp
);
6074 _resultobj
= Py_None
;
6079 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
6080 wxColour
* wc
= new wxColour();
6081 self
->GetPixel(x
, y
, wc
);
6084 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6085 PyObject
* _resultobj
;
6090 PyObject
* _argo0
= 0;
6091 char *_kwnames
[] = { "self","x","y", NULL
};
6095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6098 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6099 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6100 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6105 wxPy_BEGIN_ALLOW_THREADS
;
6106 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
6108 wxPy_END_ALLOW_THREADS
;
6109 if (PyErr_Occurred()) return NULL
;
6111 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6112 _resultobj
= Py_BuildValue("s",_ptemp
);
6115 _resultobj
= Py_None
;
6120 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6121 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6122 PyObject
* _resultobj
;
6128 PyObject
* _argo0
= 0;
6129 char *_kwnames
[] = { "self", NULL
};
6138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
6141 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6142 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6148 wxPy_BEGIN_ALLOW_THREADS
;
6149 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
6151 wxPy_END_ALLOW_THREADS
;
6152 if (PyErr_Occurred()) return NULL
;
6153 } Py_INCREF(Py_None
);
6154 _resultobj
= Py_None
;
6157 o
= PyInt_FromLong((long) (*_arg1
));
6158 _resultobj
= t_output_helper(_resultobj
, o
);
6162 o
= PyInt_FromLong((long) (*_arg2
));
6163 _resultobj
= t_output_helper(_resultobj
, o
);
6168 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6169 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6170 PyObject
* _resultobj
;
6173 PyObject
* _argo0
= 0;
6174 char *_kwnames
[] = { "self", NULL
};
6178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
6181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6188 wxPy_BEGIN_ALLOW_THREADS
;
6189 _result
= new wxSize (wxDC_GetSize(_arg0
));
6191 wxPy_END_ALLOW_THREADS
;
6192 if (PyErr_Occurred()) return NULL
;
6193 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6194 _resultobj
= Py_BuildValue("s",_ptemp
);
6198 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6199 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6200 PyObject
* _resultobj
;
6203 PyObject
* _argo0
= 0;
6204 char *_kwnames
[] = { "self", NULL
};
6208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
6211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6218 wxPy_BEGIN_ALLOW_THREADS
;
6219 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
6221 wxPy_END_ALLOW_THREADS
;
6222 if (PyErr_Occurred()) return NULL
;
6223 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6224 _resultobj
= Py_BuildValue("s",_ptemp
);
6228 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
6229 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6230 PyObject
* _resultobj
;
6233 PyObject
* _argo0
= 0;
6234 char *_kwnames
[] = { "self", NULL
};
6238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
6241 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6242 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6243 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
6248 wxPy_BEGIN_ALLOW_THREADS
;
6249 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
6251 wxPy_END_ALLOW_THREADS
;
6252 if (PyErr_Occurred()) return NULL
;
6253 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6254 _resultobj
= Py_BuildValue("s",_ptemp
);
6258 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
6259 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6260 PyObject
* _resultobj
;
6267 PyObject
* _argo0
= 0;
6268 PyObject
* _obj1
= 0;
6269 char *_kwnames
[] = { "self","string", NULL
};
6278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
6281 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6282 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6288 #if PYTHON_API_VERSION >= 1009
6289 char* tmpPtr
; int tmpSize
;
6290 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6291 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6294 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6296 _arg1
= new wxString(tmpPtr
, tmpSize
);
6298 if (!PyString_Check(_obj1
)) {
6299 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6302 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6306 wxPy_BEGIN_ALLOW_THREADS
;
6307 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
6309 wxPy_END_ALLOW_THREADS
;
6310 if (PyErr_Occurred()) return NULL
;
6311 } Py_INCREF(Py_None
);
6312 _resultobj
= Py_None
;
6315 o
= PyInt_FromLong((long) (*_arg2
));
6316 _resultobj
= t_output_helper(_resultobj
, o
);
6320 o
= PyInt_FromLong((long) (*_arg3
));
6321 _resultobj
= t_output_helper(_resultobj
, o
);
6330 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6331 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6332 PyObject
* _resultobj
;
6343 wxFont
* _arg6
= (wxFont
*) NULL
;
6344 PyObject
* _argo0
= 0;
6345 PyObject
* _obj1
= 0;
6346 PyObject
* _argo6
= 0;
6347 char *_kwnames
[] = { "self","string","font", NULL
};
6362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
6365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
6372 #if PYTHON_API_VERSION >= 1009
6373 char* tmpPtr
; int tmpSize
;
6374 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6375 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6378 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6380 _arg1
= new wxString(tmpPtr
, tmpSize
);
6382 if (!PyString_Check(_obj1
)) {
6383 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6386 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6390 if (_argo6
== Py_None
) { _arg6
= NULL
; }
6391 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
6392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6397 wxPy_BEGIN_ALLOW_THREADS
;
6398 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6400 wxPy_END_ALLOW_THREADS
;
6401 if (PyErr_Occurred()) return NULL
;
6402 } Py_INCREF(Py_None
);
6403 _resultobj
= Py_None
;
6406 o
= PyInt_FromLong((long) (*_arg2
));
6407 _resultobj
= t_output_helper(_resultobj
, o
);
6411 o
= PyInt_FromLong((long) (*_arg3
));
6412 _resultobj
= t_output_helper(_resultobj
, o
);
6416 o
= PyInt_FromLong((long) (*_arg4
));
6417 _resultobj
= t_output_helper(_resultobj
, o
);
6421 o
= PyInt_FromLong((long) (*_arg5
));
6422 _resultobj
= t_output_helper(_resultobj
, o
);
6431 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6432 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6433 PyObject
* _resultobj
;
6436 PyObject
* _argo0
= 0;
6437 char *_kwnames
[] = { "self", NULL
};
6441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
6444 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6445 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6451 wxPy_BEGIN_ALLOW_THREADS
;
6452 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
6454 wxPy_END_ALLOW_THREADS
;
6455 if (PyErr_Occurred()) return NULL
;
6456 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6457 _resultobj
= Py_BuildValue("s",_ptemp
);
6461 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6462 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6463 PyObject
* _resultobj
;
6469 PyObject
* _argo0
= 0;
6470 char *_kwnames
[] = { "self", NULL
};
6479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
6482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6489 wxPy_BEGIN_ALLOW_THREADS
;
6490 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
6492 wxPy_END_ALLOW_THREADS
;
6493 if (PyErr_Occurred()) return NULL
;
6494 } Py_INCREF(Py_None
);
6495 _resultobj
= Py_None
;
6498 o
= PyFloat_FromDouble((double) (*_arg1
));
6499 _resultobj
= t_output_helper(_resultobj
, o
);
6503 o
= PyFloat_FromDouble((double) (*_arg2
));
6504 _resultobj
= t_output_helper(_resultobj
, o
);
6509 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6510 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6511 PyObject
* _resultobj
;
6515 PyObject
* _argo0
= 0;
6516 char *_kwnames
[] = { "self","x", NULL
};
6519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
6522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6529 wxPy_BEGIN_ALLOW_THREADS
;
6530 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
6532 wxPy_END_ALLOW_THREADS
;
6533 if (PyErr_Occurred()) return NULL
;
6534 } _resultobj
= Py_BuildValue("l",_result
);
6538 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6539 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6540 PyObject
* _resultobj
;
6544 PyObject
* _argo0
= 0;
6545 char *_kwnames
[] = { "self","x", NULL
};
6548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
6551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6558 wxPy_BEGIN_ALLOW_THREADS
;
6559 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
6561 wxPy_END_ALLOW_THREADS
;
6562 if (PyErr_Occurred()) return NULL
;
6563 } _resultobj
= Py_BuildValue("l",_result
);
6567 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
6568 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6569 PyObject
* _resultobj
;
6573 PyObject
* _argo0
= 0;
6574 char *_kwnames
[] = { "self","y", NULL
};
6577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
6580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
6587 wxPy_BEGIN_ALLOW_THREADS
;
6588 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
6590 wxPy_END_ALLOW_THREADS
;
6591 if (PyErr_Occurred()) return NULL
;
6592 } _resultobj
= Py_BuildValue("l",_result
);
6596 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
6597 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6598 PyObject
* _resultobj
;
6602 PyObject
* _argo0
= 0;
6603 char *_kwnames
[] = { "self","y", NULL
};
6606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
6609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
6616 wxPy_BEGIN_ALLOW_THREADS
;
6617 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
6619 wxPy_END_ALLOW_THREADS
;
6620 if (PyErr_Occurred()) return NULL
;
6621 } _resultobj
= Py_BuildValue("l",_result
);
6625 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
6626 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6627 PyObject
* _resultobj
;
6630 PyObject
* _argo0
= 0;
6631 char *_kwnames
[] = { "self", NULL
};
6634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
6637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
6644 wxPy_BEGIN_ALLOW_THREADS
;
6645 _result
= (long )wxDC_MaxX(_arg0
);
6647 wxPy_END_ALLOW_THREADS
;
6648 if (PyErr_Occurred()) return NULL
;
6649 } _resultobj
= Py_BuildValue("l",_result
);
6653 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
6654 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6655 PyObject
* _resultobj
;
6658 PyObject
* _argo0
= 0;
6659 char *_kwnames
[] = { "self", NULL
};
6662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
6665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
6672 wxPy_BEGIN_ALLOW_THREADS
;
6673 _result
= (long )wxDC_MaxY(_arg0
);
6675 wxPy_END_ALLOW_THREADS
;
6676 if (PyErr_Occurred()) return NULL
;
6677 } _resultobj
= Py_BuildValue("l",_result
);
6681 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
6682 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6683 PyObject
* _resultobj
;
6686 PyObject
* _argo0
= 0;
6687 char *_kwnames
[] = { "self", NULL
};
6690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
6693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
6700 wxPy_BEGIN_ALLOW_THREADS
;
6701 _result
= (long )wxDC_MinX(_arg0
);
6703 wxPy_END_ALLOW_THREADS
;
6704 if (PyErr_Occurred()) return NULL
;
6705 } _resultobj
= Py_BuildValue("l",_result
);
6709 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
6710 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6711 PyObject
* _resultobj
;
6714 PyObject
* _argo0
= 0;
6715 char *_kwnames
[] = { "self", NULL
};
6718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
6721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
6728 wxPy_BEGIN_ALLOW_THREADS
;
6729 _result
= (long )wxDC_MinY(_arg0
);
6731 wxPy_END_ALLOW_THREADS
;
6732 if (PyErr_Occurred()) return NULL
;
6733 } _resultobj
= Py_BuildValue("l",_result
);
6737 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
6738 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6739 PyObject
* _resultobj
;
6742 PyObject
* _argo0
= 0;
6743 char *_kwnames
[] = { "self", NULL
};
6746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
6749 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6750 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
6756 wxPy_BEGIN_ALLOW_THREADS
;
6757 _result
= (bool )wxDC_Ok(_arg0
);
6759 wxPy_END_ALLOW_THREADS
;
6760 if (PyErr_Occurred()) return NULL
;
6761 } _resultobj
= Py_BuildValue("i",_result
);
6765 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
6766 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6767 PyObject
* _resultobj
;
6771 PyObject
* _argo0
= 0;
6772 char *_kwnames
[] = { "self","x","y", NULL
};
6775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6778 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6779 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
6785 wxPy_BEGIN_ALLOW_THREADS
;
6786 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
6788 wxPy_END_ALLOW_THREADS
;
6789 if (PyErr_Occurred()) return NULL
;
6790 } Py_INCREF(Py_None
);
6791 _resultobj
= Py_None
;
6795 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
6796 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6797 PyObject
* _resultobj
;
6800 PyObject
* _argo0
= 0;
6801 PyObject
* _argo1
= 0;
6802 char *_kwnames
[] = { "self","brush", NULL
};
6805 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
6808 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6809 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6810 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
6815 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6816 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
6822 wxPy_BEGIN_ALLOW_THREADS
;
6823 wxDC_SetBackground(_arg0
,*_arg1
);
6825 wxPy_END_ALLOW_THREADS
;
6826 if (PyErr_Occurred()) return NULL
;
6827 } Py_INCREF(Py_None
);
6828 _resultobj
= Py_None
;
6832 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
6833 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6834 PyObject
* _resultobj
;
6837 PyObject
* _argo0
= 0;
6838 char *_kwnames
[] = { "self","mode", NULL
};
6841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
6844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
6851 wxPy_BEGIN_ALLOW_THREADS
;
6852 wxDC_SetBackgroundMode(_arg0
,_arg1
);
6854 wxPy_END_ALLOW_THREADS
;
6855 if (PyErr_Occurred()) return NULL
;
6856 } Py_INCREF(Py_None
);
6857 _resultobj
= Py_None
;
6861 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6862 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6863 PyObject
* _resultobj
;
6869 PyObject
* _argo0
= 0;
6870 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
6883 wxPy_BEGIN_ALLOW_THREADS
;
6884 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6886 wxPy_END_ALLOW_THREADS
;
6887 if (PyErr_Occurred()) return NULL
;
6888 } Py_INCREF(Py_None
);
6889 _resultobj
= Py_None
;
6893 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
6894 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6895 PyObject
* _resultobj
;
6898 PyObject
* _argo0
= 0;
6899 PyObject
* _argo1
= 0;
6900 char *_kwnames
[] = { "self","colourMap", NULL
};
6903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
6906 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6907 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
6913 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6914 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
6915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
6920 wxPy_BEGIN_ALLOW_THREADS
;
6921 wxDC_SetPalette(_arg0
,*_arg1
);
6923 wxPy_END_ALLOW_THREADS
;
6924 if (PyErr_Occurred()) return NULL
;
6925 } Py_INCREF(Py_None
);
6926 _resultobj
= Py_None
;
6930 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
6931 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6932 PyObject
* _resultobj
;
6935 PyObject
* _argo0
= 0;
6936 PyObject
* _argo1
= 0;
6937 char *_kwnames
[] = { "self","brush", NULL
};
6940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
6943 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6944 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
6950 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6951 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
6957 wxPy_BEGIN_ALLOW_THREADS
;
6958 wxDC_SetBrush(_arg0
,*_arg1
);
6960 wxPy_END_ALLOW_THREADS
;
6961 if (PyErr_Occurred()) return NULL
;
6962 } Py_INCREF(Py_None
);
6963 _resultobj
= Py_None
;
6967 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
6968 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6969 PyObject
* _resultobj
;
6972 PyObject
* _argo0
= 0;
6973 PyObject
* _argo1
= 0;
6974 char *_kwnames
[] = { "self","font", NULL
};
6977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
6980 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6981 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
6987 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6988 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
6989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
6994 wxPy_BEGIN_ALLOW_THREADS
;
6995 wxDC_SetFont(_arg0
,*_arg1
);
6997 wxPy_END_ALLOW_THREADS
;
6998 if (PyErr_Occurred()) return NULL
;
6999 } Py_INCREF(Py_None
);
7000 _resultobj
= Py_None
;
7004 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7005 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7006 PyObject
* _resultobj
;
7009 PyObject
* _argo0
= 0;
7010 char *_kwnames
[] = { "self","function", NULL
};
7013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7023 wxPy_BEGIN_ALLOW_THREADS
;
7024 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7026 wxPy_END_ALLOW_THREADS
;
7027 if (PyErr_Occurred()) return NULL
;
7028 } Py_INCREF(Py_None
);
7029 _resultobj
= Py_None
;
7033 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7034 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7035 PyObject
* _resultobj
;
7039 PyObject
* _argo0
= 0;
7040 char *_kwnames
[] = { "self","x","y", NULL
};
7043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7053 wxPy_BEGIN_ALLOW_THREADS
;
7054 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7056 wxPy_END_ALLOW_THREADS
;
7057 if (PyErr_Occurred()) return NULL
;
7058 } Py_INCREF(Py_None
);
7059 _resultobj
= Py_None
;
7063 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7064 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7065 PyObject
* _resultobj
;
7068 PyObject
* _argo0
= 0;
7069 char *_kwnames
[] = { "self","mode", NULL
};
7072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
7075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7082 wxPy_BEGIN_ALLOW_THREADS
;
7083 wxDC_SetMapMode(_arg0
,_arg1
);
7085 wxPy_END_ALLOW_THREADS
;
7086 if (PyErr_Occurred()) return NULL
;
7087 } Py_INCREF(Py_None
);
7088 _resultobj
= Py_None
;
7092 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7093 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7094 PyObject
* _resultobj
;
7097 PyObject
* _argo0
= 0;
7099 char *_kwnames
[] = { "self","optimize", NULL
};
7102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
7105 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7106 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7107 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7111 _arg1
= (bool ) tempbool1
;
7113 wxPy_BEGIN_ALLOW_THREADS
;
7114 wxDC_SetOptimization(_arg0
,_arg1
);
7116 wxPy_END_ALLOW_THREADS
;
7117 if (PyErr_Occurred()) return NULL
;
7118 } Py_INCREF(Py_None
);
7119 _resultobj
= Py_None
;
7123 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7124 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7125 PyObject
* _resultobj
;
7128 PyObject
* _argo0
= 0;
7129 PyObject
* _argo1
= 0;
7130 char *_kwnames
[] = { "self","pen", NULL
};
7133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
7136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7143 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7144 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
7145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7150 wxPy_BEGIN_ALLOW_THREADS
;
7151 wxDC_SetPen(_arg0
,*_arg1
);
7153 wxPy_END_ALLOW_THREADS
;
7154 if (PyErr_Occurred()) return NULL
;
7155 } Py_INCREF(Py_None
);
7156 _resultobj
= Py_None
;
7160 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7161 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7162 PyObject
* _resultobj
;
7165 PyObject
* _argo0
= 0;
7167 PyObject
* _obj1
= 0;
7168 char *_kwnames
[] = { "self","colour", NULL
};
7171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
7174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7182 if (! wxColour_helper(_obj1
, &_arg1
))
7186 wxPy_BEGIN_ALLOW_THREADS
;
7187 wxDC_SetTextBackground(_arg0
,*_arg1
);
7189 wxPy_END_ALLOW_THREADS
;
7190 if (PyErr_Occurred()) return NULL
;
7191 } Py_INCREF(Py_None
);
7192 _resultobj
= Py_None
;
7196 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
7197 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7198 PyObject
* _resultobj
;
7201 PyObject
* _argo0
= 0;
7203 PyObject
* _obj1
= 0;
7204 char *_kwnames
[] = { "self","colour", NULL
};
7207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
7210 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7211 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7218 if (! wxColour_helper(_obj1
, &_arg1
))
7222 wxPy_BEGIN_ALLOW_THREADS
;
7223 wxDC_SetTextForeground(_arg0
,*_arg1
);
7225 wxPy_END_ALLOW_THREADS
;
7226 if (PyErr_Occurred()) return NULL
;
7227 } Py_INCREF(Py_None
);
7228 _resultobj
= Py_None
;
7232 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
7233 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7234 PyObject
* _resultobj
;
7238 PyObject
* _argo0
= 0;
7239 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
7242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
7252 wxPy_BEGIN_ALLOW_THREADS
;
7253 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
7255 wxPy_END_ALLOW_THREADS
;
7256 if (PyErr_Occurred()) return NULL
;
7257 } Py_INCREF(Py_None
);
7258 _resultobj
= Py_None
;
7262 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
7263 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7264 PyObject
* _resultobj
;
7268 PyObject
* _argo0
= 0;
7269 PyObject
* _obj1
= 0;
7270 char *_kwnames
[] = { "self","message", NULL
};
7273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
7276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7283 #if PYTHON_API_VERSION >= 1009
7284 char* tmpPtr
; int tmpSize
;
7285 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7286 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7289 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7291 _arg1
= new wxString(tmpPtr
, tmpSize
);
7293 if (!PyString_Check(_obj1
)) {
7294 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7297 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7301 wxPy_BEGIN_ALLOW_THREADS
;
7302 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
7304 wxPy_END_ALLOW_THREADS
;
7305 if (PyErr_Occurred()) return NULL
;
7306 } _resultobj
= Py_BuildValue("i",_result
);
7314 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
7315 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7316 PyObject
* _resultobj
;
7318 PyObject
* _argo0
= 0;
7319 char *_kwnames
[] = { "self", NULL
};
7322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
7325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7332 wxPy_BEGIN_ALLOW_THREADS
;
7333 wxDC_StartPage(_arg0
);
7335 wxPy_END_ALLOW_THREADS
;
7336 if (PyErr_Occurred()) return NULL
;
7337 } Py_INCREF(Py_None
);
7338 _resultobj
= Py_None
;
7342 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7343 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7344 PyObject
* _resultobj
;
7349 int _arg4
= (int ) FALSE
;
7350 PyObject
* _argo0
= 0;
7351 PyObject
* _argo1
= 0;
7352 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
7355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
7358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
7365 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7366 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
7372 wxPy_BEGIN_ALLOW_THREADS
;
7373 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7375 wxPy_END_ALLOW_THREADS
;
7376 if (PyErr_Occurred()) return NULL
;
7377 } Py_INCREF(Py_None
);
7378 _resultobj
= Py_None
;
7382 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
7383 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7384 PyObject
* _resultobj
;
7387 PyObject
* _argo0
= 0;
7388 char *_kwnames
[] = { "self", NULL
};
7391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
7394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
7401 wxPy_BEGIN_ALLOW_THREADS
;
7402 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
7404 wxPy_END_ALLOW_THREADS
;
7405 if (PyErr_Occurred()) return NULL
;
7406 } _resultobj
= Py_BuildValue("i",_result
);
7410 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
7411 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7412 PyObject
* _resultobj
;
7415 PyObject
* _argo0
= 0;
7416 char *_kwnames
[] = { "self", NULL
};
7419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
7422 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7423 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
7429 wxPy_BEGIN_ALLOW_THREADS
;
7430 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
7432 wxPy_END_ALLOW_THREADS
;
7433 if (PyErr_Occurred()) return NULL
;
7434 } _resultobj
= Py_BuildValue("i",_result
);
7438 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7439 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7440 PyObject
* _resultobj
;
7443 PyObject
* _argo0
= 0;
7444 char *_kwnames
[] = { "self", NULL
};
7447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
7450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7457 wxPy_BEGIN_ALLOW_THREADS
;
7458 _result
= (int )wxDC_GetDepth(_arg0
);
7460 wxPy_END_ALLOW_THREADS
;
7461 if (PyErr_Occurred()) return NULL
;
7462 } _resultobj
= Py_BuildValue("i",_result
);
7466 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7467 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7468 PyObject
* _resultobj
;
7471 PyObject
* _argo0
= 0;
7472 char *_kwnames
[] = { "self", NULL
};
7476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
7479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7486 wxPy_BEGIN_ALLOW_THREADS
;
7487 _result
= new wxSize (wxDC_GetPPI(_arg0
));
7489 wxPy_END_ALLOW_THREADS
;
7490 if (PyErr_Occurred()) return NULL
;
7491 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7492 _resultobj
= Py_BuildValue("s",_ptemp
);
7496 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7497 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7498 PyObject
* _resultobj
;
7504 PyObject
* _argo0
= 0;
7505 char *_kwnames
[] = { "self", NULL
};
7514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
7517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
7524 wxPy_BEGIN_ALLOW_THREADS
;
7525 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7527 wxPy_END_ALLOW_THREADS
;
7528 if (PyErr_Occurred()) return NULL
;
7529 } Py_INCREF(Py_None
);
7530 _resultobj
= Py_None
;
7533 o
= PyInt_FromLong((long) (*_arg1
));
7534 _resultobj
= t_output_helper(_resultobj
, o
);
7538 o
= PyInt_FromLong((long) (*_arg2
));
7539 _resultobj
= t_output_helper(_resultobj
, o
);
7544 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7545 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7546 PyObject
* _resultobj
;
7550 PyObject
* _argo0
= 0;
7551 char *_kwnames
[] = { "self","x","y", NULL
};
7554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7557 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7558 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7564 wxPy_BEGIN_ALLOW_THREADS
;
7565 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7567 wxPy_END_ALLOW_THREADS
;
7568 if (PyErr_Occurred()) return NULL
;
7569 } Py_INCREF(Py_None
);
7570 _resultobj
= Py_None
;
7574 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7575 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7576 PyObject
* _resultobj
;
7582 PyObject
* _argo0
= 0;
7583 char *_kwnames
[] = { "self", NULL
};
7592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
7595 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7596 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7602 wxPy_BEGIN_ALLOW_THREADS
;
7603 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7605 wxPy_END_ALLOW_THREADS
;
7606 if (PyErr_Occurred()) return NULL
;
7607 } Py_INCREF(Py_None
);
7608 _resultobj
= Py_None
;
7611 o
= PyInt_FromLong((long) (*_arg1
));
7612 _resultobj
= t_output_helper(_resultobj
, o
);
7616 o
= PyInt_FromLong((long) (*_arg2
));
7617 _resultobj
= t_output_helper(_resultobj
, o
);
7622 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7623 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7624 PyObject
* _resultobj
;
7628 PyObject
* _argo0
= 0;
7631 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
7634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
7637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7643 _arg1
= (bool ) tempbool1
;
7644 _arg2
= (bool ) tempbool2
;
7646 wxPy_BEGIN_ALLOW_THREADS
;
7647 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
7649 wxPy_END_ALLOW_THREADS
;
7650 if (PyErr_Occurred()) return NULL
;
7651 } Py_INCREF(Py_None
);
7652 _resultobj
= Py_None
;
7656 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7657 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7658 PyObject
* _resultobj
;
7662 PyObject
* _argo0
= 0;
7663 char *_kwnames
[] = { "self","x","y", NULL
};
7666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
7676 wxPy_BEGIN_ALLOW_THREADS
;
7677 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
7679 wxPy_END_ALLOW_THREADS
;
7680 if (PyErr_Occurred()) return NULL
;
7681 } Py_INCREF(Py_None
);
7682 _resultobj
= Py_None
;
7686 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
7687 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7688 PyObject
* _resultobj
;
7690 PyObject
* _argo0
= 0;
7691 char *_kwnames
[] = { "self", NULL
};
7694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
7697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
7704 wxPy_BEGIN_ALLOW_THREADS
;
7705 wxDC_ResetBoundingBox(_arg0
);
7707 wxPy_END_ALLOW_THREADS
;
7708 if (PyErr_Occurred()) return NULL
;
7709 } Py_INCREF(Py_None
);
7710 _resultobj
= Py_None
;
7714 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
7717 src
= (wxMemoryDC
*) ptr
;
7718 dest
= (wxDC
*) src
;
7719 return (void *) dest
;
7722 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
7725 src
= (wxMemoryDC
*) ptr
;
7726 dest
= (wxObject
*) src
;
7727 return (void *) dest
;
7730 #define new_wxMemoryDC() (new wxMemoryDC())
7731 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7732 PyObject
* _resultobj
;
7733 wxMemoryDC
* _result
;
7734 char *_kwnames
[] = { NULL
};
7738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
7741 wxPy_BEGIN_ALLOW_THREADS
;
7742 _result
= (wxMemoryDC
*)new_wxMemoryDC();
7744 wxPy_END_ALLOW_THREADS
;
7745 if (PyErr_Occurred()) return NULL
;
7747 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
7748 _resultobj
= Py_BuildValue("s",_ptemp
);
7751 _resultobj
= Py_None
;
7756 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
7757 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7758 PyObject
* _resultobj
;
7761 PyObject
* _argo0
= 0;
7762 PyObject
* _argo1
= 0;
7763 char *_kwnames
[] = { "self","bitmap", NULL
};
7766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
7769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
7771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
7776 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7777 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
7783 wxPy_BEGIN_ALLOW_THREADS
;
7784 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
7786 wxPy_END_ALLOW_THREADS
;
7787 if (PyErr_Occurred()) return NULL
;
7788 } Py_INCREF(Py_None
);
7789 _resultobj
= Py_None
;
7793 static void *SwigwxScreenDCTowxDC(void *ptr
) {
7796 src
= (wxScreenDC
*) ptr
;
7797 dest
= (wxDC
*) src
;
7798 return (void *) dest
;
7801 static void *SwigwxScreenDCTowxObject(void *ptr
) {
7804 src
= (wxScreenDC
*) ptr
;
7805 dest
= (wxObject
*) src
;
7806 return (void *) dest
;
7809 #define new_wxScreenDC() (new wxScreenDC())
7810 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7811 PyObject
* _resultobj
;
7812 wxScreenDC
* _result
;
7813 char *_kwnames
[] = { NULL
};
7817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
7820 wxPy_BEGIN_ALLOW_THREADS
;
7821 _result
= (wxScreenDC
*)new_wxScreenDC();
7823 wxPy_END_ALLOW_THREADS
;
7824 if (PyErr_Occurred()) return NULL
;
7826 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
7827 _resultobj
= Py_BuildValue("s",_ptemp
);
7830 _resultobj
= Py_None
;
7835 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7836 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7837 PyObject
* _resultobj
;
7841 PyObject
* _argo0
= 0;
7842 PyObject
* _argo1
= 0;
7843 char *_kwnames
[] = { "self","window", NULL
};
7846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
7849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
7856 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7857 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
7858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
7863 wxPy_BEGIN_ALLOW_THREADS
;
7864 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
7866 wxPy_END_ALLOW_THREADS
;
7867 if (PyErr_Occurred()) return NULL
;
7868 } _resultobj
= Py_BuildValue("i",_result
);
7872 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7873 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7874 PyObject
* _resultobj
;
7877 wxRect
* _arg1
= (wxRect
*) NULL
;
7878 PyObject
* _argo0
= 0;
7880 PyObject
* _obj1
= 0;
7881 char *_kwnames
[] = { "self","rect", NULL
};
7884 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
7887 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7888 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7889 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
7896 if (! wxRect_helper(_obj1
, &_arg1
))
7900 wxPy_BEGIN_ALLOW_THREADS
;
7901 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
7903 wxPy_END_ALLOW_THREADS
;
7904 if (PyErr_Occurred()) return NULL
;
7905 } _resultobj
= Py_BuildValue("i",_result
);
7909 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
7910 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7911 PyObject
* _resultobj
;
7914 PyObject
* _argo0
= 0;
7915 char *_kwnames
[] = { "self", NULL
};
7918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
7921 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7922 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7923 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
7928 wxPy_BEGIN_ALLOW_THREADS
;
7929 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
7931 wxPy_END_ALLOW_THREADS
;
7932 if (PyErr_Occurred()) return NULL
;
7933 } _resultobj
= Py_BuildValue("i",_result
);
7937 static void *SwigwxClientDCTowxDC(void *ptr
) {
7940 src
= (wxClientDC
*) ptr
;
7941 dest
= (wxDC
*) src
;
7942 return (void *) dest
;
7945 static void *SwigwxClientDCTowxObject(void *ptr
) {
7948 src
= (wxClientDC
*) ptr
;
7949 dest
= (wxObject
*) src
;
7950 return (void *) dest
;
7953 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
7954 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7955 PyObject
* _resultobj
;
7956 wxClientDC
* _result
;
7958 PyObject
* _argo0
= 0;
7959 char *_kwnames
[] = { "win", NULL
};
7963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
7966 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7967 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
7968 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
7973 wxPy_BEGIN_ALLOW_THREADS
;
7974 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
7976 wxPy_END_ALLOW_THREADS
;
7977 if (PyErr_Occurred()) return NULL
;
7979 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
7980 _resultobj
= Py_BuildValue("s",_ptemp
);
7983 _resultobj
= Py_None
;
7988 static void *SwigwxPaintDCTowxDC(void *ptr
) {
7991 src
= (wxPaintDC
*) ptr
;
7992 dest
= (wxDC
*) src
;
7993 return (void *) dest
;
7996 static void *SwigwxPaintDCTowxObject(void *ptr
) {
7999 src
= (wxPaintDC
*) ptr
;
8000 dest
= (wxObject
*) src
;
8001 return (void *) dest
;
8004 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8005 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8006 PyObject
* _resultobj
;
8007 wxPaintDC
* _result
;
8009 PyObject
* _argo0
= 0;
8010 char *_kwnames
[] = { "win", NULL
};
8014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8024 wxPy_BEGIN_ALLOW_THREADS
;
8025 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8027 wxPy_END_ALLOW_THREADS
;
8028 if (PyErr_Occurred()) return NULL
;
8030 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8031 _resultobj
= Py_BuildValue("s",_ptemp
);
8034 _resultobj
= Py_None
;
8039 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8042 src
= (wxWindowDC
*) ptr
;
8043 dest
= (wxDC
*) src
;
8044 return (void *) dest
;
8047 static void *SwigwxWindowDCTowxObject(void *ptr
) {
8050 src
= (wxWindowDC
*) ptr
;
8051 dest
= (wxObject
*) src
;
8052 return (void *) dest
;
8055 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8056 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8057 PyObject
* _resultobj
;
8058 wxWindowDC
* _result
;
8060 PyObject
* _argo0
= 0;
8061 char *_kwnames
[] = { "win", NULL
};
8065 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
8068 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8069 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8070 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8075 wxPy_BEGIN_ALLOW_THREADS
;
8076 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
8078 wxPy_END_ALLOW_THREADS
;
8079 if (PyErr_Occurred()) return NULL
;
8081 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
8082 _resultobj
= Py_BuildValue("s",_ptemp
);
8085 _resultobj
= Py_None
;
8090 static void *SwigwxPostScriptDCTowxDC(void *ptr
) {
8091 wxPostScriptDC
*src
;
8093 src
= (wxPostScriptDC
*) ptr
;
8094 dest
= (wxDC
*) src
;
8095 return (void *) dest
;
8098 static void *SwigwxPostScriptDCTowxObject(void *ptr
) {
8099 wxPostScriptDC
*src
;
8101 src
= (wxPostScriptDC
*) ptr
;
8102 dest
= (wxObject
*) src
;
8103 return (void *) dest
;
8106 #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2))
8107 static PyObject
*_wrap_new_wxPostScriptDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8108 PyObject
* _resultobj
;
8109 wxPostScriptDC
* _result
;
8111 bool _arg1
= (bool ) TRUE
;
8112 wxWindow
* _arg2
= (wxWindow
*) NULL
;
8113 PyObject
* _obj0
= 0;
8114 int tempbool1
= (int) TRUE
;
8115 PyObject
* _argo2
= 0;
8116 char *_kwnames
[] = { "output","interactive","win", NULL
};
8120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:new_wxPostScriptDC",_kwnames
,&_obj0
,&tempbool1
,&_argo2
))
8123 #if PYTHON_API_VERSION >= 1009
8124 char* tmpPtr
; int tmpSize
;
8125 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
8126 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8129 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
8131 _arg0
= new wxString(tmpPtr
, tmpSize
);
8133 if (!PyString_Check(_obj0
)) {
8134 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8137 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
8140 _arg1
= (bool ) tempbool1
;
8142 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8143 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
8144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p.");
8149 wxPy_BEGIN_ALLOW_THREADS
;
8150 _result
= (wxPostScriptDC
*)new_wxPostScriptDC(*_arg0
,_arg1
,_arg2
);
8152 wxPy_END_ALLOW_THREADS
;
8153 if (PyErr_Occurred()) return NULL
;
8155 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPostScriptDC_p");
8156 _resultobj
= Py_BuildValue("s",_ptemp
);
8159 _resultobj
= Py_None
;
8168 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
8171 src
= (wxPalette
*) ptr
;
8172 dest
= (wxGDIObject
*) src
;
8173 return (void *) dest
;
8176 static void *SwigwxPaletteTowxObject(void *ptr
) {
8179 src
= (wxPalette
*) ptr
;
8180 dest
= (wxObject
*) src
;
8181 return (void *) dest
;
8184 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8185 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8186 PyObject
* _resultobj
;
8187 wxPalette
* _result
;
8192 PyObject
* _obj1
= 0;
8193 PyObject
* _obj2
= 0;
8194 PyObject
* _obj3
= 0;
8195 char *_kwnames
[] = { "choices","choices","choices", NULL
};
8199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
8202 _arg1
= byte_LIST_helper(_obj1
);
8203 if (_arg1
== NULL
) {
8208 _arg2
= byte_LIST_helper(_obj2
);
8209 if (_arg2
== NULL
) {
8215 _arg3
= byte_LIST_helper(_obj3
);
8216 if (_arg3
== NULL
) {
8222 _arg0
= PyList_Size(_obj1
);
8229 wxPy_BEGIN_ALLOW_THREADS
;
8230 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
8232 wxPy_END_ALLOW_THREADS
;
8233 if (PyErr_Occurred()) return NULL
;
8235 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
8236 _resultobj
= Py_BuildValue("s",_ptemp
);
8239 _resultobj
= Py_None
;
8253 #define delete_wxPalette(_swigobj) (delete _swigobj)
8254 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8255 PyObject
* _resultobj
;
8257 PyObject
* _argo0
= 0;
8258 char *_kwnames
[] = { "self", NULL
};
8261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
8264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
8271 wxPy_BEGIN_ALLOW_THREADS
;
8272 delete_wxPalette(_arg0
);
8274 wxPy_END_ALLOW_THREADS
;
8275 if (PyErr_Occurred()) return NULL
;
8276 } Py_INCREF(Py_None
);
8277 _resultobj
= Py_None
;
8281 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
8282 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8283 PyObject
* _resultobj
;
8289 PyObject
* _argo0
= 0;
8290 char *_kwnames
[] = { "self","red","green","blue", NULL
};
8293 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
8296 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8297 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
8303 wxPy_BEGIN_ALLOW_THREADS
;
8304 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
8306 wxPy_END_ALLOW_THREADS
;
8307 if (PyErr_Occurred()) return NULL
;
8308 } _resultobj
= Py_BuildValue("i",_result
);
8312 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8313 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8314 PyObject
* _resultobj
;
8321 PyObject
* _argo0
= 0;
8322 PyObject
* _argo2
= 0;
8323 PyObject
* _argo3
= 0;
8324 PyObject
* _argo4
= 0;
8325 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
8328 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
8331 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8332 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8333 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
8338 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8339 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
8340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
8345 if (_argo3
== Py_None
) { _arg3
= NULL
; }
8346 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
8347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
8352 if (_argo4
== Py_None
) { _arg4
= NULL
; }
8353 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
8354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
8359 wxPy_BEGIN_ALLOW_THREADS
;
8360 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8362 wxPy_END_ALLOW_THREADS
;
8363 if (PyErr_Occurred()) return NULL
;
8364 } _resultobj
= Py_BuildValue("i",_result
);
8368 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
8369 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8370 PyObject
* _resultobj
;
8373 PyObject
* _argo0
= 0;
8374 char *_kwnames
[] = { "self", NULL
};
8377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
8380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
8387 wxPy_BEGIN_ALLOW_THREADS
;
8388 _result
= (bool )wxPalette_Ok(_arg0
);
8390 wxPy_END_ALLOW_THREADS
;
8391 if (PyErr_Occurred()) return NULL
;
8392 } _resultobj
= Py_BuildValue("i",_result
);
8396 static void *SwigwxImageListTowxObject(void *ptr
) {
8399 src
= (wxImageList
*) ptr
;
8400 dest
= (wxObject
*) src
;
8401 return (void *) dest
;
8404 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8405 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8406 PyObject
* _resultobj
;
8407 wxImageList
* _result
;
8410 int _arg2
= (int ) TRUE
;
8411 int _arg3
= (int ) 1;
8412 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
8416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
8419 wxPy_BEGIN_ALLOW_THREADS
;
8420 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
8422 wxPy_END_ALLOW_THREADS
;
8423 if (PyErr_Occurred()) return NULL
;
8425 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
8426 _resultobj
= Py_BuildValue("s",_ptemp
);
8429 _resultobj
= Py_None
;
8434 #define delete_wxImageList(_swigobj) (delete _swigobj)
8435 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8436 PyObject
* _resultobj
;
8437 wxImageList
* _arg0
;
8438 PyObject
* _argo0
= 0;
8439 char *_kwnames
[] = { "self", NULL
};
8442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
8445 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8446 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8447 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
8452 wxPy_BEGIN_ALLOW_THREADS
;
8453 delete_wxImageList(_arg0
);
8455 wxPy_END_ALLOW_THREADS
;
8456 if (PyErr_Occurred()) return NULL
;
8457 } Py_INCREF(Py_None
);
8458 _resultobj
= Py_None
;
8462 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8463 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8464 PyObject
* _resultobj
;
8466 wxImageList
* _arg0
;
8468 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
8469 PyObject
* _argo0
= 0;
8470 PyObject
* _argo1
= 0;
8471 PyObject
* _argo2
= 0;
8472 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
8475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
8478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
8485 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8486 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
8492 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8493 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
8499 wxPy_BEGIN_ALLOW_THREADS
;
8500 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
8502 wxPy_END_ALLOW_THREADS
;
8503 if (PyErr_Occurred()) return NULL
;
8504 } _resultobj
= Py_BuildValue("i",_result
);
8508 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8509 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8510 PyObject
* _resultobj
;
8512 wxImageList
* _arg0
;
8515 PyObject
* _argo0
= 0;
8516 PyObject
* _argo1
= 0;
8518 PyObject
* _obj2
= 0;
8519 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
8522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8525 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8526 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
8532 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8533 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8534 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8540 if (! wxColour_helper(_obj2
, &_arg2
))
8544 wxPy_BEGIN_ALLOW_THREADS
;
8545 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
8547 wxPy_END_ALLOW_THREADS
;
8548 if (PyErr_Occurred()) return NULL
;
8549 } _resultobj
= Py_BuildValue("i",_result
);
8553 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8554 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8555 PyObject
* _resultobj
;
8557 wxImageList
* _arg0
;
8559 PyObject
* _argo0
= 0;
8560 PyObject
* _argo1
= 0;
8561 char *_kwnames
[] = { "self","icon", NULL
};
8564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
8567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8574 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8575 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
8576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8581 wxPy_BEGIN_ALLOW_THREADS
;
8582 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
8584 wxPy_END_ALLOW_THREADS
;
8585 if (PyErr_Occurred()) return NULL
;
8586 } _resultobj
= Py_BuildValue("i",_result
);
8590 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
8591 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8592 PyObject
* _resultobj
;
8594 wxImageList
* _arg0
;
8597 PyObject
* _argo0
= 0;
8598 PyObject
* _argo2
= 0;
8599 char *_kwnames
[] = { "self","index","bitmap", NULL
};
8602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
8605 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8606 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8612 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8613 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8614 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8619 wxPy_BEGIN_ALLOW_THREADS
;
8620 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
8622 wxPy_END_ALLOW_THREADS
;
8623 if (PyErr_Occurred()) return NULL
;
8624 } _resultobj
= Py_BuildValue("i",_result
);
8628 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8629 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8630 PyObject
* _resultobj
;
8632 wxImageList
* _arg0
;
8637 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
8638 bool _arg6
= (bool ) FALSE
;
8639 PyObject
* _argo0
= 0;
8640 PyObject
* _argo2
= 0;
8641 int tempbool6
= (int) FALSE
;
8642 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
8645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
8648 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8649 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8650 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8655 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8656 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
8657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8661 _arg6
= (bool ) tempbool6
;
8663 wxPy_BEGIN_ALLOW_THREADS
;
8664 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8666 wxPy_END_ALLOW_THREADS
;
8667 if (PyErr_Occurred()) return NULL
;
8668 } _resultobj
= Py_BuildValue("i",_result
);
8672 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
8673 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8674 PyObject
* _resultobj
;
8676 wxImageList
* _arg0
;
8677 PyObject
* _argo0
= 0;
8678 char *_kwnames
[] = { "self", NULL
};
8681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
8684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8691 wxPy_BEGIN_ALLOW_THREADS
;
8692 _result
= (int )wxImageList_GetImageCount(_arg0
);
8694 wxPy_END_ALLOW_THREADS
;
8695 if (PyErr_Occurred()) return NULL
;
8696 } _resultobj
= Py_BuildValue("i",_result
);
8700 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8701 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8702 PyObject
* _resultobj
;
8704 wxImageList
* _arg0
;
8706 PyObject
* _argo0
= 0;
8707 char *_kwnames
[] = { "self","index", NULL
};
8710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
8713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
8720 wxPy_BEGIN_ALLOW_THREADS
;
8721 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
8723 wxPy_END_ALLOW_THREADS
;
8724 if (PyErr_Occurred()) return NULL
;
8725 } _resultobj
= Py_BuildValue("i",_result
);
8729 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
8730 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8731 PyObject
* _resultobj
;
8733 wxImageList
* _arg0
;
8734 PyObject
* _argo0
= 0;
8735 char *_kwnames
[] = { "self", NULL
};
8738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
8741 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8742 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
8748 wxPy_BEGIN_ALLOW_THREADS
;
8749 _result
= (bool )wxImageList_RemoveAll(_arg0
);
8751 wxPy_END_ALLOW_THREADS
;
8752 if (PyErr_Occurred()) return NULL
;
8753 } _resultobj
= Py_BuildValue("i",_result
);
8757 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
8758 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8759 PyObject
* _resultobj
;
8760 wxImageList
* _arg0
;
8766 PyObject
* _argo0
= 0;
8767 char *_kwnames
[] = { "self","index", NULL
};
8776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
8779 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8780 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
8786 wxPy_BEGIN_ALLOW_THREADS
;
8787 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
8789 wxPy_END_ALLOW_THREADS
;
8790 if (PyErr_Occurred()) return NULL
;
8791 } Py_INCREF(Py_None
);
8792 _resultobj
= Py_None
;
8795 o
= PyInt_FromLong((long) (*_arg2
));
8796 _resultobj
= t_output_helper(_resultobj
, o
);
8800 o
= PyInt_FromLong((long) (*_arg3
));
8801 _resultobj
= t_output_helper(_resultobj
, o
);
8806 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
8809 src
= (wxRegion
*) ptr
;
8810 dest
= (wxGDIObject
*) src
;
8811 return (void *) dest
;
8814 static void *SwigwxRegionTowxObject(void *ptr
) {
8817 src
= (wxRegion
*) ptr
;
8818 dest
= (wxObject
*) src
;
8819 return (void *) dest
;
8822 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8823 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8824 PyObject
* _resultobj
;
8826 long _arg0
= (long ) 0;
8827 long _arg1
= (long ) 0;
8828 long _arg2
= (long ) 0;
8829 long _arg3
= (long ) 0;
8830 char *_kwnames
[] = { "x","y","width","height", NULL
};
8834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
8837 wxPy_BEGIN_ALLOW_THREADS
;
8838 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
8840 wxPy_END_ALLOW_THREADS
;
8841 if (PyErr_Occurred()) return NULL
;
8843 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
8844 _resultobj
= Py_BuildValue("s",_ptemp
);
8847 _resultobj
= Py_None
;
8852 #define delete_wxRegion(_swigobj) (delete _swigobj)
8853 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8854 PyObject
* _resultobj
;
8856 PyObject
* _argo0
= 0;
8857 char *_kwnames
[] = { "self", NULL
};
8860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
8863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
8865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
8870 wxPy_BEGIN_ALLOW_THREADS
;
8871 delete_wxRegion(_arg0
);
8873 wxPy_END_ALLOW_THREADS
;
8874 if (PyErr_Occurred()) return NULL
;
8875 } Py_INCREF(Py_None
);
8876 _resultobj
= Py_None
;
8880 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
8881 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8882 PyObject
* _resultobj
;
8884 PyObject
* _argo0
= 0;
8885 char *_kwnames
[] = { "self", NULL
};
8888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
8891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
8893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
8898 wxPy_BEGIN_ALLOW_THREADS
;
8899 wxRegion_Clear(_arg0
);
8901 wxPy_END_ALLOW_THREADS
;
8902 if (PyErr_Occurred()) return NULL
;
8903 } Py_INCREF(Py_None
);
8904 _resultobj
= Py_None
;
8908 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
8909 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8910 PyObject
* _resultobj
;
8911 wxRegionContain _result
;
8915 PyObject
* _argo0
= 0;
8916 char *_kwnames
[] = { "self","x","y", NULL
};
8919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
8924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
8929 wxPy_BEGIN_ALLOW_THREADS
;
8930 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
8932 wxPy_END_ALLOW_THREADS
;
8933 if (PyErr_Occurred()) return NULL
;
8934 } _resultobj
= Py_BuildValue("i",_result
);
8938 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
8939 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8940 PyObject
* _resultobj
;
8941 wxRegionContain _result
;
8944 PyObject
* _argo0
= 0;
8946 PyObject
* _obj1
= 0;
8947 char *_kwnames
[] = { "self","pt", NULL
};
8950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
8953 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8954 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
8955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
8961 if (! wxPoint_helper(_obj1
, &_arg1
))
8965 wxPy_BEGIN_ALLOW_THREADS
;
8966 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
8968 wxPy_END_ALLOW_THREADS
;
8969 if (PyErr_Occurred()) return NULL
;
8970 } _resultobj
= Py_BuildValue("i",_result
);
8974 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
8975 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8976 PyObject
* _resultobj
;
8977 wxRegionContain _result
;
8980 PyObject
* _argo0
= 0;
8982 PyObject
* _obj1
= 0;
8983 char *_kwnames
[] = { "self","rect", NULL
};
8986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
8989 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8990 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
8991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
8997 if (! wxRect_helper(_obj1
, &_arg1
))
9001 wxPy_BEGIN_ALLOW_THREADS
;
9002 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
9004 wxPy_END_ALLOW_THREADS
;
9005 if (PyErr_Occurred()) return NULL
;
9006 } _resultobj
= Py_BuildValue("i",_result
);
9010 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9011 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9012 PyObject
* _resultobj
;
9013 wxRegionContain _result
;
9019 PyObject
* _argo0
= 0;
9020 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
9023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9033 wxPy_BEGIN_ALLOW_THREADS
;
9034 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9036 wxPy_END_ALLOW_THREADS
;
9037 if (PyErr_Occurred()) return NULL
;
9038 } _resultobj
= Py_BuildValue("i",_result
);
9042 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9043 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9044 PyObject
* _resultobj
;
9047 PyObject
* _argo0
= 0;
9048 char *_kwnames
[] = { "self", NULL
};
9052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
9055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9062 wxPy_BEGIN_ALLOW_THREADS
;
9063 _result
= new wxRect (wxRegion_GetBox(_arg0
));
9065 wxPy_END_ALLOW_THREADS
;
9066 if (PyErr_Occurred()) return NULL
;
9067 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9068 _resultobj
= Py_BuildValue("s",_ptemp
);
9072 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9073 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9074 PyObject
* _resultobj
;
9081 PyObject
* _argo0
= 0;
9082 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9085 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9088 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9089 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9090 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9095 wxPy_BEGIN_ALLOW_THREADS
;
9096 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9098 wxPy_END_ALLOW_THREADS
;
9099 if (PyErr_Occurred()) return NULL
;
9100 } _resultobj
= Py_BuildValue("i",_result
);
9104 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9105 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9106 PyObject
* _resultobj
;
9110 PyObject
* _argo0
= 0;
9112 PyObject
* _obj1
= 0;
9113 char *_kwnames
[] = { "self","rect", NULL
};
9116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
9119 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9120 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9127 if (! wxRect_helper(_obj1
, &_arg1
))
9131 wxPy_BEGIN_ALLOW_THREADS
;
9132 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
9134 wxPy_END_ALLOW_THREADS
;
9135 if (PyErr_Occurred()) return NULL
;
9136 } _resultobj
= Py_BuildValue("i",_result
);
9140 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9141 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9142 PyObject
* _resultobj
;
9146 PyObject
* _argo0
= 0;
9147 PyObject
* _argo1
= 0;
9148 char *_kwnames
[] = { "self","region", NULL
};
9151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
9154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9161 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9162 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9163 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9168 wxPy_BEGIN_ALLOW_THREADS
;
9169 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
9171 wxPy_END_ALLOW_THREADS
;
9172 if (PyErr_Occurred()) return NULL
;
9173 } _resultobj
= Py_BuildValue("i",_result
);
9177 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
9178 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9179 PyObject
* _resultobj
;
9182 PyObject
* _argo0
= 0;
9183 char *_kwnames
[] = { "self", NULL
};
9186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
9189 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9190 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
9196 wxPy_BEGIN_ALLOW_THREADS
;
9197 _result
= (bool )wxRegion_IsEmpty(_arg0
);
9199 wxPy_END_ALLOW_THREADS
;
9200 if (PyErr_Occurred()) return NULL
;
9201 } _resultobj
= Py_BuildValue("i",_result
);
9205 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9206 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9207 PyObject
* _resultobj
;
9214 PyObject
* _argo0
= 0;
9215 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9218 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9221 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9222 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
9228 wxPy_BEGIN_ALLOW_THREADS
;
9229 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9231 wxPy_END_ALLOW_THREADS
;
9232 if (PyErr_Occurred()) return NULL
;
9233 } _resultobj
= Py_BuildValue("i",_result
);
9237 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9238 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9239 PyObject
* _resultobj
;
9243 PyObject
* _argo0
= 0;
9245 PyObject
* _obj1
= 0;
9246 char *_kwnames
[] = { "self","rect", NULL
};
9249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
9252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
9260 if (! wxRect_helper(_obj1
, &_arg1
))
9264 wxPy_BEGIN_ALLOW_THREADS
;
9265 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
9267 wxPy_END_ALLOW_THREADS
;
9268 if (PyErr_Occurred()) return NULL
;
9269 } _resultobj
= Py_BuildValue("i",_result
);
9273 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9274 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9275 PyObject
* _resultobj
;
9279 PyObject
* _argo0
= 0;
9280 PyObject
* _argo1
= 0;
9281 char *_kwnames
[] = { "self","region", NULL
};
9284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
9287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9294 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9295 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9301 wxPy_BEGIN_ALLOW_THREADS
;
9302 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
9304 wxPy_END_ALLOW_THREADS
;
9305 if (PyErr_Occurred()) return NULL
;
9306 } _resultobj
= Py_BuildValue("i",_result
);
9310 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9311 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9312 PyObject
* _resultobj
;
9319 PyObject
* _argo0
= 0;
9320 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
9333 wxPy_BEGIN_ALLOW_THREADS
;
9334 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9336 wxPy_END_ALLOW_THREADS
;
9337 if (PyErr_Occurred()) return NULL
;
9338 } _resultobj
= Py_BuildValue("i",_result
);
9342 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9343 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9344 PyObject
* _resultobj
;
9348 PyObject
* _argo0
= 0;
9350 PyObject
* _obj1
= 0;
9351 char *_kwnames
[] = { "self","rect", NULL
};
9354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
9357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
9365 if (! wxRect_helper(_obj1
, &_arg1
))
9369 wxPy_BEGIN_ALLOW_THREADS
;
9370 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
9372 wxPy_END_ALLOW_THREADS
;
9373 if (PyErr_Occurred()) return NULL
;
9374 } _resultobj
= Py_BuildValue("i",_result
);
9378 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9379 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9380 PyObject
* _resultobj
;
9384 PyObject
* _argo0
= 0;
9385 PyObject
* _argo1
= 0;
9386 char *_kwnames
[] = { "self","region", NULL
};
9389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
9392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9399 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9400 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9406 wxPy_BEGIN_ALLOW_THREADS
;
9407 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
9409 wxPy_END_ALLOW_THREADS
;
9410 if (PyErr_Occurred()) return NULL
;
9411 } _resultobj
= Py_BuildValue("i",_result
);
9415 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9416 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9417 PyObject
* _resultobj
;
9424 PyObject
* _argo0
= 0;
9425 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9431 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9432 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9433 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
9438 wxPy_BEGIN_ALLOW_THREADS
;
9439 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9441 wxPy_END_ALLOW_THREADS
;
9442 if (PyErr_Occurred()) return NULL
;
9443 } _resultobj
= Py_BuildValue("i",_result
);
9447 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9448 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9449 PyObject
* _resultobj
;
9453 PyObject
* _argo0
= 0;
9455 PyObject
* _obj1
= 0;
9456 char *_kwnames
[] = { "self","rect", NULL
};
9459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
9462 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9463 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
9470 if (! wxRect_helper(_obj1
, &_arg1
))
9474 wxPy_BEGIN_ALLOW_THREADS
;
9475 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
9477 wxPy_END_ALLOW_THREADS
;
9478 if (PyErr_Occurred()) return NULL
;
9479 } _resultobj
= Py_BuildValue("i",_result
);
9483 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9484 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9485 PyObject
* _resultobj
;
9489 PyObject
* _argo0
= 0;
9490 PyObject
* _argo1
= 0;
9491 char *_kwnames
[] = { "self","region", NULL
};
9494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
9497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
9504 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9505 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9506 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
9511 wxPy_BEGIN_ALLOW_THREADS
;
9512 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
9514 wxPy_END_ALLOW_THREADS
;
9515 if (PyErr_Occurred()) return NULL
;
9516 } _resultobj
= Py_BuildValue("i",_result
);
9520 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
9521 wxRegionIterator
*src
;
9523 src
= (wxRegionIterator
*) ptr
;
9524 dest
= (wxObject
*) src
;
9525 return (void *) dest
;
9528 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
9529 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9530 PyObject
* _resultobj
;
9531 wxRegionIterator
* _result
;
9533 PyObject
* _argo0
= 0;
9534 char *_kwnames
[] = { "region", NULL
};
9538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
9541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
9548 wxPy_BEGIN_ALLOW_THREADS
;
9549 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
9551 wxPy_END_ALLOW_THREADS
;
9552 if (PyErr_Occurred()) return NULL
;
9554 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
9555 _resultobj
= Py_BuildValue("s",_ptemp
);
9558 _resultobj
= Py_None
;
9563 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
9564 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9565 PyObject
* _resultobj
;
9566 wxRegionIterator
* _arg0
;
9567 PyObject
* _argo0
= 0;
9568 char *_kwnames
[] = { "self", NULL
};
9571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
9574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
9581 wxPy_BEGIN_ALLOW_THREADS
;
9582 delete_wxRegionIterator(_arg0
);
9584 wxPy_END_ALLOW_THREADS
;
9585 if (PyErr_Occurred()) return NULL
;
9586 } Py_INCREF(Py_None
);
9587 _resultobj
= Py_None
;
9591 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
9592 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9593 PyObject
* _resultobj
;
9595 wxRegionIterator
* _arg0
;
9596 PyObject
* _argo0
= 0;
9597 char *_kwnames
[] = { "self", NULL
};
9600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
9603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
9610 wxPy_BEGIN_ALLOW_THREADS
;
9611 _result
= (long )wxRegionIterator_GetX(_arg0
);
9613 wxPy_END_ALLOW_THREADS
;
9614 if (PyErr_Occurred()) return NULL
;
9615 } _resultobj
= Py_BuildValue("l",_result
);
9619 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
9620 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9621 PyObject
* _resultobj
;
9623 wxRegionIterator
* _arg0
;
9624 PyObject
* _argo0
= 0;
9625 char *_kwnames
[] = { "self", NULL
};
9628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
9631 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9632 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
9638 wxPy_BEGIN_ALLOW_THREADS
;
9639 _result
= (long )wxRegionIterator_GetY(_arg0
);
9641 wxPy_END_ALLOW_THREADS
;
9642 if (PyErr_Occurred()) return NULL
;
9643 } _resultobj
= Py_BuildValue("l",_result
);
9647 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
9648 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9649 PyObject
* _resultobj
;
9651 wxRegionIterator
* _arg0
;
9652 PyObject
* _argo0
= 0;
9653 char *_kwnames
[] = { "self", NULL
};
9656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
9659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
9666 wxPy_BEGIN_ALLOW_THREADS
;
9667 _result
= (long )wxRegionIterator_GetW(_arg0
);
9669 wxPy_END_ALLOW_THREADS
;
9670 if (PyErr_Occurred()) return NULL
;
9671 } _resultobj
= Py_BuildValue("l",_result
);
9675 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
9676 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9677 PyObject
* _resultobj
;
9679 wxRegionIterator
* _arg0
;
9680 PyObject
* _argo0
= 0;
9681 char *_kwnames
[] = { "self", NULL
};
9684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
9687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
9694 wxPy_BEGIN_ALLOW_THREADS
;
9695 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
9697 wxPy_END_ALLOW_THREADS
;
9698 if (PyErr_Occurred()) return NULL
;
9699 } _resultobj
= Py_BuildValue("l",_result
);
9703 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
9704 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9705 PyObject
* _resultobj
;
9707 wxRegionIterator
* _arg0
;
9708 PyObject
* _argo0
= 0;
9709 char *_kwnames
[] = { "self", NULL
};
9712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
9715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
9722 wxPy_BEGIN_ALLOW_THREADS
;
9723 _result
= (long )wxRegionIterator_GetH(_arg0
);
9725 wxPy_END_ALLOW_THREADS
;
9726 if (PyErr_Occurred()) return NULL
;
9727 } _resultobj
= Py_BuildValue("l",_result
);
9731 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
9732 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9733 PyObject
* _resultobj
;
9735 wxRegionIterator
* _arg0
;
9736 PyObject
* _argo0
= 0;
9737 char *_kwnames
[] = { "self", NULL
};
9740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
9743 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9744 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9745 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
9750 wxPy_BEGIN_ALLOW_THREADS
;
9751 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
9753 wxPy_END_ALLOW_THREADS
;
9754 if (PyErr_Occurred()) return NULL
;
9755 } _resultobj
= Py_BuildValue("l",_result
);
9759 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
9760 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9761 PyObject
* _resultobj
;
9763 wxRegionIterator
* _arg0
;
9764 PyObject
* _argo0
= 0;
9765 char *_kwnames
[] = { "self", NULL
};
9769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
9772 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9773 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
9779 wxPy_BEGIN_ALLOW_THREADS
;
9780 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
9782 wxPy_END_ALLOW_THREADS
;
9783 if (PyErr_Occurred()) return NULL
;
9784 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9785 _resultobj
= Py_BuildValue("s",_ptemp
);
9789 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
9790 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9791 PyObject
* _resultobj
;
9793 wxRegionIterator
* _arg0
;
9794 PyObject
* _argo0
= 0;
9795 char *_kwnames
[] = { "self", NULL
};
9798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
9801 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9802 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
9808 wxPy_BEGIN_ALLOW_THREADS
;
9809 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
9811 wxPy_END_ALLOW_THREADS
;
9812 if (PyErr_Occurred()) return NULL
;
9813 } _resultobj
= Py_BuildValue("i",_result
);
9817 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
9818 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9819 PyObject
* _resultobj
;
9820 wxRegionIterator
* _arg0
;
9821 PyObject
* _argo0
= 0;
9822 char *_kwnames
[] = { "self", NULL
};
9825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
9828 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9829 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
9835 wxPy_BEGIN_ALLOW_THREADS
;
9836 wxRegionIterator_Reset(_arg0
);
9838 wxPy_END_ALLOW_THREADS
;
9839 if (PyErr_Occurred()) return NULL
;
9840 } Py_INCREF(Py_None
);
9841 _resultobj
= Py_None
;
9845 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
9848 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9849 PyObject
* _resultobj
;
9850 wxRegionIterator
* _arg0
;
9851 PyObject
* _argo0
= 0;
9852 char *_kwnames
[] = { "self", NULL
};
9855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
9858 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9859 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
9865 wxPy_BEGIN_ALLOW_THREADS
;
9866 wxRegionIterator_Next(_arg0
);
9868 wxPy_END_ALLOW_THREADS
;
9869 if (PyErr_Occurred()) return NULL
;
9870 } Py_INCREF(Py_None
);
9871 _resultobj
= Py_None
;
9875 static PyMethodDef gdicMethods
[] = {
9876 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
9877 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
9878 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
9879 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
9880 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9881 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
9882 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9883 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
9884 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
9885 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
9886 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
9887 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
9888 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
9889 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
9890 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
9891 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
9892 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
9893 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
9894 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
9895 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
9896 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
9897 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
9898 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
9899 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
9900 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
9901 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
9902 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
9903 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
9904 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
9905 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
9906 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
9907 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
9908 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
9909 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
9910 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
9911 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9912 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
9913 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
9914 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
9915 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
9916 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
9917 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
9918 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
9919 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
9920 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9921 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
9922 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
9923 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
9924 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
9925 { "new_wxPostScriptDC", (PyCFunction
) _wrap_new_wxPostScriptDC
, METH_VARARGS
| METH_KEYWORDS
},
9926 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
9927 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
9928 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
9929 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
9930 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
9931 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
9932 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
9933 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
9934 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
9935 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
9936 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
9937 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
9938 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9939 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9940 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9941 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
9942 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9943 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
9944 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9945 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9946 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
9947 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
9948 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
9949 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
9950 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
9951 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
9952 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
9953 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
9954 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
9955 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
9956 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
9957 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
9958 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
9959 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
9960 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
9961 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
9962 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9963 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9964 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
9965 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
9966 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
9967 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
9968 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
9969 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
9970 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
9971 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
9972 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
9973 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
9974 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
9975 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
9976 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
9977 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
9978 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
9979 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
9980 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
9981 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
9982 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
9983 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
9984 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
9985 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
9986 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
9987 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
9988 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
9989 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
9990 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
9991 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
9992 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
9993 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
9994 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
9995 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
9996 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
9997 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
9998 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
9999 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
10000 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10001 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
10002 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
10003 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
10004 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
10005 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
10006 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
10007 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
10008 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
10009 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
10010 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
10011 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
10012 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
10013 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
10014 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10015 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
10016 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10017 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
10018 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10019 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
10020 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
10021 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
10022 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
10023 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10024 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10025 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10026 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10027 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10028 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10029 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10030 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10031 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10032 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
10033 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
10034 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
10035 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10036 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10037 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10038 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10039 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10040 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10041 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
10042 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10043 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10044 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10045 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10046 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10047 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
10048 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10049 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10050 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
10051 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
10052 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
10053 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
10054 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
10055 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10056 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
10057 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
10058 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
10059 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10060 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10061 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
10062 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
10063 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
10064 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
10065 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
10066 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
10067 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10068 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
10069 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
10070 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10071 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
10072 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
10073 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
10074 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10075 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
10076 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
10077 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10078 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
10079 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
10080 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
10081 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10082 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
10083 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
10084 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10085 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
10086 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10087 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10088 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10089 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10090 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10091 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10092 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10093 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10094 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10095 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10096 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10097 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10098 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
10099 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10100 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10101 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10102 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10103 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10104 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10105 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10106 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10107 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
10108 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
10109 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10110 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
10111 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10112 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10113 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10114 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
10115 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10116 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10117 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10118 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10119 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
10120 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
10121 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10122 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10123 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
10124 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10125 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
10126 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
10127 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10128 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10129 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10136 * This table is used by the pointer type-checker
10138 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10139 { "_signed_long","_long",0},
10140 { "_wxPrintQuality","_wxCoord",0},
10141 { "_wxPrintQuality","_int",0},
10142 { "_wxPrintQuality","_signed_int",0},
10143 { "_wxPrintQuality","_unsigned_int",0},
10144 { "_wxPrintQuality","_wxWindowID",0},
10145 { "_wxPrintQuality","_uint",0},
10146 { "_wxPrintQuality","_EBool",0},
10147 { "_wxPrintQuality","_size_t",0},
10148 { "_wxPrintQuality","_time_t",0},
10149 { "_byte","_unsigned_char",0},
10150 { "_long","_unsigned_long",0},
10151 { "_long","_signed_long",0},
10152 { "_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject
},
10153 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
10154 { "_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject
},
10155 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
10156 { "_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject
},
10157 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
10158 { "_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject
},
10159 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
10160 { "_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject
},
10161 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
10162 { "_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject
},
10163 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
10164 { "_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject
},
10165 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
10166 { "_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject
},
10167 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
10168 { "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
10169 { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
10170 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
10171 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
10172 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
10173 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
10174 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
10175 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
10176 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
10177 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
10178 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10179 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10180 { "_class_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10181 { "_class_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10182 { "_class_wxObject","_class_wxRegion",SwigwxRegionTowxObject
},
10183 { "_class_wxObject","_wxRegion",SwigwxRegionTowxObject
},
10184 { "_class_wxObject","_class_wxImageList",SwigwxImageListTowxObject
},
10185 { "_class_wxObject","_wxImageList",SwigwxImageListTowxObject
},
10186 { "_class_wxObject","_class_wxPalette",SwigwxPaletteTowxObject
},
10187 { "_class_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
10188 { "_class_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
10189 { "_class_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
10190 { "_class_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject
},
10191 { "_class_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
10192 { "_class_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject
},
10193 { "_class_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
10194 { "_class_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject
},
10195 { "_class_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
10196 { "_class_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject
},
10197 { "_class_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
10198 { "_class_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10199 { "_class_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10200 { "_class_wxObject","_class_wxDC",SwigwxDCTowxObject
},
10201 { "_class_wxObject","_wxDC",SwigwxDCTowxObject
},
10202 { "_class_wxObject","_class_wxBrush",SwigwxBrushTowxObject
},
10203 { "_class_wxObject","_wxBrush",SwigwxBrushTowxObject
},
10204 { "_class_wxObject","_class_wxPenList",SwigwxPenListTowxObject
},
10205 { "_class_wxObject","_wxPenList",SwigwxPenListTowxObject
},
10206 { "_class_wxObject","_class_wxPen",SwigwxPenTowxObject
},
10207 { "_class_wxObject","_wxPen",SwigwxPenTowxObject
},
10208 { "_class_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10209 { "_class_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10210 { "_class_wxObject","_class_wxColour",SwigwxColourTowxObject
},
10211 { "_class_wxObject","_wxColour",SwigwxColourTowxObject
},
10212 { "_class_wxObject","_class_wxFontList",SwigwxFontListTowxObject
},
10213 { "_class_wxObject","_wxFontList",SwigwxFontListTowxObject
},
10214 { "_class_wxObject","_class_wxFont",SwigwxFontTowxObject
},
10215 { "_class_wxObject","_wxFont",SwigwxFontTowxObject
},
10216 { "_class_wxObject","_class_wxCursor",SwigwxCursorTowxObject
},
10217 { "_class_wxObject","_wxCursor",SwigwxCursorTowxObject
},
10218 { "_class_wxObject","_class_wxIcon",SwigwxIconTowxObject
},
10219 { "_class_wxObject","_wxIcon",SwigwxIconTowxObject
},
10220 { "_class_wxObject","_class_wxMask",SwigwxMaskTowxObject
},
10221 { "_class_wxObject","_wxMask",SwigwxMaskTowxObject
},
10222 { "_class_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject
},
10223 { "_class_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
10224 { "_class_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject
},
10225 { "_class_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
10226 { "_size_t","_wxCoord",0},
10227 { "_size_t","_wxPrintQuality",0},
10228 { "_size_t","_time_t",0},
10229 { "_size_t","_unsigned_int",0},
10230 { "_size_t","_int",0},
10231 { "_size_t","_wxWindowID",0},
10232 { "_size_t","_uint",0},
10233 { "_uint","_wxCoord",0},
10234 { "_uint","_wxPrintQuality",0},
10235 { "_uint","_time_t",0},
10236 { "_uint","_size_t",0},
10237 { "_uint","_unsigned_int",0},
10238 { "_uint","_int",0},
10239 { "_uint","_wxWindowID",0},
10240 { "_wxChar","_char",0},
10241 { "_char","_wxChar",0},
10242 { "_EBool","_wxCoord",0},
10243 { "_EBool","_wxPrintQuality",0},
10244 { "_EBool","_signed_int",0},
10245 { "_EBool","_int",0},
10246 { "_EBool","_wxWindowID",0},
10247 { "_unsigned_long","_long",0},
10248 { "_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
10249 { "_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
10250 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
10251 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
10252 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
10253 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
10254 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
10255 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
10256 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
10257 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
10258 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10259 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10260 { "_signed_int","_wxCoord",0},
10261 { "_signed_int","_wxPrintQuality",0},
10262 { "_signed_int","_EBool",0},
10263 { "_signed_int","_wxWindowID",0},
10264 { "_signed_int","_int",0},
10265 { "_WXTYPE","_short",0},
10266 { "_WXTYPE","_signed_short",0},
10267 { "_WXTYPE","_unsigned_short",0},
10268 { "_unsigned_short","_WXTYPE",0},
10269 { "_unsigned_short","_short",0},
10270 { "_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10271 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10272 { "_wxObject","_class_wxRegion",SwigwxRegionTowxObject
},
10273 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
10274 { "_wxObject","_class_wxImageList",SwigwxImageListTowxObject
},
10275 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
10276 { "_wxObject","_class_wxPalette",SwigwxPaletteTowxObject
},
10277 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
10278 { "_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
10279 { "_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
10280 { "_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject
},
10281 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
10282 { "_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject
},
10283 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
10284 { "_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject
},
10285 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
10286 { "_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject
},
10287 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
10288 { "_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10289 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10290 { "_wxObject","_class_wxDC",SwigwxDCTowxObject
},
10291 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
10292 { "_wxObject","_class_wxBrush",SwigwxBrushTowxObject
},
10293 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
10294 { "_wxObject","_class_wxPenList",SwigwxPenListTowxObject
},
10295 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
10296 { "_wxObject","_class_wxPen",SwigwxPenTowxObject
},
10297 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
10298 { "_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10299 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10300 { "_wxObject","_class_wxColour",SwigwxColourTowxObject
},
10301 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
10302 { "_wxObject","_class_wxFontList",SwigwxFontListTowxObject
},
10303 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
10304 { "_wxObject","_class_wxFont",SwigwxFontTowxObject
},
10305 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
10306 { "_wxObject","_class_wxCursor",SwigwxCursorTowxObject
},
10307 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
10308 { "_wxObject","_class_wxIcon",SwigwxIconTowxObject
},
10309 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
10310 { "_wxObject","_class_wxMask",SwigwxMaskTowxObject
},
10311 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
10312 { "_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject
},
10313 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
10314 { "_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject
},
10315 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
10316 { "_signed_short","_WXTYPE",0},
10317 { "_signed_short","_short",0},
10318 { "_unsigned_char","_byte",0},
10319 { "_unsigned_int","_wxCoord",0},
10320 { "_unsigned_int","_wxPrintQuality",0},
10321 { "_unsigned_int","_time_t",0},
10322 { "_unsigned_int","_size_t",0},
10323 { "_unsigned_int","_uint",0},
10324 { "_unsigned_int","_wxWindowID",0},
10325 { "_unsigned_int","_int",0},
10326 { "_short","_WXTYPE",0},
10327 { "_short","_unsigned_short",0},
10328 { "_short","_signed_short",0},
10329 { "_wxWindowID","_wxCoord",0},
10330 { "_wxWindowID","_wxPrintQuality",0},
10331 { "_wxWindowID","_time_t",0},
10332 { "_wxWindowID","_size_t",0},
10333 { "_wxWindowID","_EBool",0},
10334 { "_wxWindowID","_uint",0},
10335 { "_wxWindowID","_int",0},
10336 { "_wxWindowID","_signed_int",0},
10337 { "_wxWindowID","_unsigned_int",0},
10338 { "_class_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject
},
10339 { "_class_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
10340 { "_class_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject
},
10341 { "_class_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
10342 { "_class_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject
},
10343 { "_class_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
10344 { "_class_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject
},
10345 { "_class_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
10346 { "_class_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject
},
10347 { "_class_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
10348 { "_class_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject
},
10349 { "_class_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
10350 { "_class_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject
},
10351 { "_class_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
10352 { "_class_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject
},
10353 { "_class_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
10354 { "_int","_wxCoord",0},
10355 { "_int","_wxPrintQuality",0},
10356 { "_int","_time_t",0},
10357 { "_int","_size_t",0},
10358 { "_int","_EBool",0},
10359 { "_int","_uint",0},
10360 { "_int","_wxWindowID",0},
10361 { "_int","_unsigned_int",0},
10362 { "_int","_signed_int",0},
10363 { "_time_t","_wxCoord",0},
10364 { "_time_t","_wxPrintQuality",0},
10365 { "_time_t","_unsigned_int",0},
10366 { "_time_t","_int",0},
10367 { "_time_t","_wxWindowID",0},
10368 { "_time_t","_uint",0},
10369 { "_time_t","_size_t",0},
10370 { "_wxCoord","_int",0},
10371 { "_wxCoord","_signed_int",0},
10372 { "_wxCoord","_unsigned_int",0},
10373 { "_wxCoord","_wxWindowID",0},
10374 { "_wxCoord","_uint",0},
10375 { "_wxCoord","_EBool",0},
10376 { "_wxCoord","_size_t",0},
10377 { "_wxCoord","_time_t",0},
10378 { "_wxCoord","_wxPrintQuality",0},
10381 static PyObject
*SWIG_globals
;
10385 SWIGEXPORT(void) initgdic() {
10387 SWIG_globals
= SWIG_newvarlink();
10388 m
= Py_InitModule("gdic", gdicMethods
);
10389 d
= PyModule_GetDict(m
);
10390 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
10391 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
10392 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
10393 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
10394 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
10395 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
10396 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
10397 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
10398 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
10399 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
10400 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
10401 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
10402 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
10403 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
10404 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
10405 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
10406 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
10407 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
10408 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
10409 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
10410 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
10411 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
10412 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
10413 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
10414 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
10415 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
10416 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
10417 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
10418 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
10419 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
10420 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
10421 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
10422 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
10423 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
10424 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
10425 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
10426 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
10427 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
10428 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
10429 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
10430 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
10431 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
10432 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
10433 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
10434 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
10435 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
10436 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
10437 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
10438 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
10439 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
10440 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
10441 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
10442 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
10443 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
10444 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
10445 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
10446 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
10447 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
10448 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
10449 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
10450 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
10451 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
10452 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
10453 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
10454 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
10455 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
10456 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
10457 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
10458 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
10459 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
10460 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
10461 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
10462 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
10463 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
10464 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
10465 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
10466 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
10467 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
10468 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
10469 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
10470 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
10471 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
10472 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
10473 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
10474 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
10475 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
10478 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10479 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);