2 * FILE : src/msw/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/metafile.h>
60 #include <wx/imaglist.h>
65 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyList_Check(target
)) {
75 target
= PyList_New(0);
76 PyList_Append(target
, o2
);
79 PyList_Append(target
,o
);
85 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
91 } else if (target
== Py_None
) {
95 if (!PyTuple_Check(target
)) {
97 target
= PyTuple_New(1);
98 PyTuple_SetItem(target
, 0, o2
);
101 PyTuple_SetItem(o3
, 0, o
);
104 target
= PySequence_Concat(o2
, o3
);
111 #if PYTHON_API_VERSION >= 1009
112 static char* wxStringErrorMsg
= "String or Unicode type required";
114 static char* wxStringErrorMsg
= "string type is required for parameter";
117 static wxString
wxPyEmptyStr("");
118 // Implementations of some alternate "constructors"
120 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
121 return new wxBitmap(width
, height
, depth
);
124 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
125 char** cArray
= NULL
;
128 if (!PyList_Check(listOfStrings
)) {
129 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
132 count
= PyList_Size(listOfStrings
);
133 cArray
= new char*[count
];
135 for(int x
=0; x
<count
; x
++) {
136 // TODO: Need some validation and error checking here
137 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
142 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
143 char** cArray
= NULL
;
146 cArray
= ConvertListOfStrings(listOfStrings
);
149 bmp
= new wxBitmap(cArray
);
155 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
156 return new wxBitmap(icon
);
162 wxBitmap
* wxBitmapFromData(PyObject
* data
, long type
,
163 int width
, int height
, int depth
= 1) {
164 if (! PyString_Check(data
)) {
165 PyErr_SetString(PyExc_TypeError
, "Expected string object");
169 return new wxBitmap((void*)PyString_AsString(data
), type
, width
, height
, depth
);
173 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
174 return new wxMask(bitmap
, colour
);
176 // Implementations of some alternate "constructors"
177 wxIcon
* wxEmptyIcon() {
181 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
182 char** cArray
= NULL
;
185 cArray
= ConvertListOfStrings(listOfStrings
);
188 icon
= new wxIcon(cArray
);
192 // Alternate 'constructor'
193 wxCursor
* wxPyStockCursor(int id
) {
194 return new wxCursor(id
);
197 wxFontEncoding
wxFont_GetDefaultEncoding() {
198 return wxFont::GetDefaultEncoding();
201 void wxFont_SetDefaultEncoding(wxFontEncoding encoding
) {
202 wxFont::SetDefaultEncoding(encoding
);
204 // Alternate 'constructor'
205 wxColour
* wxNamedColour(const wxString
& colorName
) {
206 return new wxColour(colorName
);
208 // Alternate 'constructor'
209 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
210 return new wxMemoryDC(oldDC
);
214 extern wxFont
* wxNORMAL_FONT
;
215 extern wxFont
* wxSMALL_FONT
;
216 extern wxFont
* wxITALIC_FONT
;
217 extern wxFont
* wxSWISS_FONT
;
218 extern wxPen
* wxRED_PEN
;
219 extern wxPen
* wxCYAN_PEN
;
220 extern wxPen
* wxGREEN_PEN
;
221 extern wxPen
* wxBLACK_PEN
;
222 extern wxPen
* wxWHITE_PEN
;
223 extern wxPen
* wxTRANSPARENT_PEN
;
224 extern wxPen
* wxBLACK_DASHED_PEN
;
225 extern wxPen
* wxGREY_PEN
;
226 extern wxPen
* wxMEDIUM_GREY_PEN
;
227 extern wxPen
* wxLIGHT_GREY_PEN
;
228 extern wxBrush
* wxBLUE_BRUSH
;
229 extern wxBrush
* wxGREEN_BRUSH
;
230 extern wxBrush
* wxWHITE_BRUSH
;
231 extern wxBrush
* wxBLACK_BRUSH
;
232 extern wxBrush
* wxTRANSPARENT_BRUSH
;
233 extern wxBrush
* wxCYAN_BRUSH
;
234 extern wxBrush
* wxRED_BRUSH
;
235 extern wxBrush
* wxGREY_BRUSH
;
236 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
237 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
238 extern wxColour
* wxBLACK
;
239 extern wxColour
* wxWHITE
;
240 extern wxColour
* wxRED
;
241 extern wxColour
* wxBLUE
;
242 extern wxColour
* wxGREEN
;
243 extern wxColour
* wxCYAN
;
244 extern wxColour
* wxLIGHT_GREY
;
245 extern wxCursor
* wxSTANDARD_CURSOR
;
246 extern wxCursor
* wxHOURGLASS_CURSOR
;
247 extern wxCursor
* wxCROSS_CURSOR
;
248 extern wxBitmap wxNullBitmap
;
249 extern wxIcon wxNullIcon
;
250 extern wxCursor wxNullCursor
;
251 extern wxPen wxNullPen
;
252 extern wxBrush wxNullBrush
;
253 extern wxPalette wxNullPalette
;
254 extern wxFont wxNullFont
;
255 extern wxColour wxNullColour
;
256 extern wxFontList
* wxTheFontList
;
257 extern wxPenList
* wxThePenList
;
258 extern wxBrushlist
* wxTheBrushList
;
259 extern wxColourDatabase
* wxTheColourDatabase
;
265 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
266 PyObject
* _resultobj
;
270 int _arg2
= (int ) -1;
271 char *_kwnames
[] = { "width","height","depth", NULL
};
275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
278 wxPy_BEGIN_ALLOW_THREADS
;
279 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
281 wxPy_END_ALLOW_THREADS
;
283 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
284 _resultobj
= Py_BuildValue("s",_ptemp
);
287 _resultobj
= Py_None
;
292 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
293 PyObject
* _resultobj
;
296 PyObject
* _obj0
= 0;
297 char *_kwnames
[] = { "listOfStrings", NULL
};
301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
307 wxPy_BEGIN_ALLOW_THREADS
;
308 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
310 wxPy_END_ALLOW_THREADS
;
312 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
313 _resultobj
= Py_BuildValue("s",_ptemp
);
316 _resultobj
= Py_None
;
321 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
322 PyObject
* _resultobj
;
325 PyObject
* _argo0
= 0;
326 char *_kwnames
[] = { "icon", NULL
};
330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
333 if (_argo0
== Py_None
) { _arg0
= NULL
; }
334 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
340 wxPy_BEGIN_ALLOW_THREADS
;
341 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
343 wxPy_END_ALLOW_THREADS
;
345 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
346 _resultobj
= Py_BuildValue("s",_ptemp
);
349 _resultobj
= Py_None
;
354 static PyObject
*_wrap_wxBitmapFromData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
355 PyObject
* _resultobj
;
361 int _arg4
= (int ) 1;
362 PyObject
* _obj0
= 0;
363 char *_kwnames
[] = { "data","type","width","height","depth", NULL
};
367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olii|i:wxBitmapFromData",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
373 wxPy_BEGIN_ALLOW_THREADS
;
374 _result
= (wxBitmap
*)wxBitmapFromData(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
376 wxPy_END_ALLOW_THREADS
;
378 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
379 _resultobj
= Py_BuildValue("s",_ptemp
);
382 _resultobj
= Py_None
;
387 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
388 PyObject
* _resultobj
;
392 PyObject
* _argo0
= 0;
394 PyObject
* _obj1
= 0;
395 char *_kwnames
[] = { "bitmap","colour", NULL
};
399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
410 if (! wxColour_helper(_obj1
, &_arg1
))
414 wxPy_BEGIN_ALLOW_THREADS
;
415 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
417 wxPy_END_ALLOW_THREADS
;
419 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
420 _resultobj
= Py_BuildValue("s",_ptemp
);
423 _resultobj
= Py_None
;
428 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
429 PyObject
* _resultobj
;
431 char *_kwnames
[] = { NULL
};
435 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
438 wxPy_BEGIN_ALLOW_THREADS
;
439 _result
= (wxIcon
*)wxEmptyIcon();
441 wxPy_END_ALLOW_THREADS
;
443 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
444 _resultobj
= Py_BuildValue("s",_ptemp
);
447 _resultobj
= Py_None
;
452 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
453 PyObject
* _resultobj
;
456 PyObject
* _obj0
= 0;
457 char *_kwnames
[] = { "listOfStrings", NULL
};
461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
467 wxPy_BEGIN_ALLOW_THREADS
;
468 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
470 wxPy_END_ALLOW_THREADS
;
472 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
473 _resultobj
= Py_BuildValue("s",_ptemp
);
476 _resultobj
= Py_None
;
481 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
482 PyObject
* _resultobj
;
485 char *_kwnames
[] = { "id", NULL
};
489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
492 wxPy_BEGIN_ALLOW_THREADS
;
493 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
495 wxPy_END_ALLOW_THREADS
;
497 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
498 _resultobj
= Py_BuildValue("s",_ptemp
);
501 _resultobj
= Py_None
;
506 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
507 PyObject
* _resultobj
;
508 wxFontEncoding _result
;
509 char *_kwnames
[] = { NULL
};
512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
515 wxPy_BEGIN_ALLOW_THREADS
;
516 _result
= (wxFontEncoding
)wxFont_GetDefaultEncoding();
518 wxPy_END_ALLOW_THREADS
;
519 } _resultobj
= Py_BuildValue("i",_result
);
523 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
524 PyObject
* _resultobj
;
525 wxFontEncoding _arg0
;
526 char *_kwnames
[] = { "encoding", NULL
};
529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
532 wxPy_BEGIN_ALLOW_THREADS
;
533 wxFont_SetDefaultEncoding(_arg0
);
535 wxPy_END_ALLOW_THREADS
;
536 } Py_INCREF(Py_None
);
537 _resultobj
= Py_None
;
541 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
542 PyObject
* _resultobj
;
545 PyObject
* _obj0
= 0;
546 char *_kwnames
[] = { "colorName", NULL
};
550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
553 #if PYTHON_API_VERSION >= 1009
554 char* tmpPtr
; int tmpSize
;
555 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
556 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
559 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
561 _arg0
= new wxString(tmpPtr
, tmpSize
);
563 if (!PyString_Check(_obj0
)) {
564 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
567 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
571 wxPy_BEGIN_ALLOW_THREADS
;
572 _result
= (wxColour
*)wxNamedColour(*_arg0
);
574 wxPy_END_ALLOW_THREADS
;
576 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
577 _resultobj
= Py_BuildValue("s",_ptemp
);
580 _resultobj
= Py_None
;
589 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
590 PyObject
* _resultobj
;
591 wxMemoryDC
* _result
;
593 PyObject
* _argo0
= 0;
594 char *_kwnames
[] = { "oldDC", NULL
};
598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
608 wxPy_BEGIN_ALLOW_THREADS
;
609 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
611 wxPy_END_ALLOW_THREADS
;
613 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
614 _resultobj
= Py_BuildValue("s",_ptemp
);
617 _resultobj
= Py_None
;
622 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
624 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
628 static PyObject
*_wrap_wxNORMAL_FONT_get() {
632 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
633 pyobj
= PyString_FromString(ptemp
);
637 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
639 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
643 static PyObject
*_wrap_wxSMALL_FONT_get() {
647 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
648 pyobj
= PyString_FromString(ptemp
);
652 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
654 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
658 static PyObject
*_wrap_wxITALIC_FONT_get() {
662 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
663 pyobj
= PyString_FromString(ptemp
);
667 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
669 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
673 static PyObject
*_wrap_wxSWISS_FONT_get() {
677 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
678 pyobj
= PyString_FromString(ptemp
);
682 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
684 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
688 static PyObject
*_wrap_wxRED_PEN_get() {
692 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
693 pyobj
= PyString_FromString(ptemp
);
697 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
699 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
703 static PyObject
*_wrap_wxCYAN_PEN_get() {
707 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
708 pyobj
= PyString_FromString(ptemp
);
712 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
714 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
718 static PyObject
*_wrap_wxGREEN_PEN_get() {
722 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
723 pyobj
= PyString_FromString(ptemp
);
727 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
729 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
733 static PyObject
*_wrap_wxBLACK_PEN_get() {
737 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
738 pyobj
= PyString_FromString(ptemp
);
742 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
744 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
748 static PyObject
*_wrap_wxWHITE_PEN_get() {
752 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
753 pyobj
= PyString_FromString(ptemp
);
757 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
759 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
763 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
767 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
768 pyobj
= PyString_FromString(ptemp
);
772 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
774 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
778 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
782 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
783 pyobj
= PyString_FromString(ptemp
);
787 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
789 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
793 static PyObject
*_wrap_wxGREY_PEN_get() {
797 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
798 pyobj
= PyString_FromString(ptemp
);
802 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
804 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
808 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
812 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
813 pyobj
= PyString_FromString(ptemp
);
817 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
819 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
823 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
827 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
828 pyobj
= PyString_FromString(ptemp
);
832 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
834 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
838 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
842 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
843 pyobj
= PyString_FromString(ptemp
);
847 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
849 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
853 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
857 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
858 pyobj
= PyString_FromString(ptemp
);
862 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
864 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
868 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
872 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
873 pyobj
= PyString_FromString(ptemp
);
877 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
879 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
883 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
887 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
888 pyobj
= PyString_FromString(ptemp
);
892 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
894 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
898 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
902 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
903 pyobj
= PyString_FromString(ptemp
);
907 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
909 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
913 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
917 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
918 pyobj
= PyString_FromString(ptemp
);
922 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
924 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
928 static PyObject
*_wrap_wxRED_BRUSH_get() {
932 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
933 pyobj
= PyString_FromString(ptemp
);
937 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
939 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
943 static PyObject
*_wrap_wxGREY_BRUSH_get() {
947 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
948 pyobj
= PyString_FromString(ptemp
);
952 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
954 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
958 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
962 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
963 pyobj
= PyString_FromString(ptemp
);
967 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
969 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
973 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
977 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
978 pyobj
= PyString_FromString(ptemp
);
982 static int _wrap_wxBLACK_set(PyObject
*val
) {
984 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
988 static PyObject
*_wrap_wxBLACK_get() {
992 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
993 pyobj
= PyString_FromString(ptemp
);
997 static int _wrap_wxWHITE_set(PyObject
*val
) {
999 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
1003 static PyObject
*_wrap_wxWHITE_get() {
1007 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
1008 pyobj
= PyString_FromString(ptemp
);
1012 static int _wrap_wxRED_set(PyObject
*val
) {
1014 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
1018 static PyObject
*_wrap_wxRED_get() {
1022 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1023 pyobj
= PyString_FromString(ptemp
);
1027 static int _wrap_wxBLUE_set(PyObject
*val
) {
1029 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1033 static PyObject
*_wrap_wxBLUE_get() {
1037 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1038 pyobj
= PyString_FromString(ptemp
);
1042 static int _wrap_wxGREEN_set(PyObject
*val
) {
1044 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1048 static PyObject
*_wrap_wxGREEN_get() {
1052 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1053 pyobj
= PyString_FromString(ptemp
);
1057 static int _wrap_wxCYAN_set(PyObject
*val
) {
1059 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1063 static PyObject
*_wrap_wxCYAN_get() {
1067 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1068 pyobj
= PyString_FromString(ptemp
);
1072 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1074 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1078 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1082 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1083 pyobj
= PyString_FromString(ptemp
);
1087 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1089 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1093 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1097 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1098 pyobj
= PyString_FromString(ptemp
);
1102 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1104 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1108 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1112 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1113 pyobj
= PyString_FromString(ptemp
);
1117 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1119 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1123 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1127 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1128 pyobj
= PyString_FromString(ptemp
);
1132 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1134 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1138 static PyObject
*_wrap_wxNullBitmap_get() {
1142 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1143 pyobj
= PyString_FromString(ptemp
);
1147 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1149 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1153 static PyObject
*_wrap_wxNullIcon_get() {
1157 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1158 pyobj
= PyString_FromString(ptemp
);
1162 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1164 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1168 static PyObject
*_wrap_wxNullCursor_get() {
1172 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1173 pyobj
= PyString_FromString(ptemp
);
1177 static int _wrap_wxNullPen_set(PyObject
*val
) {
1179 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1183 static PyObject
*_wrap_wxNullPen_get() {
1187 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1188 pyobj
= PyString_FromString(ptemp
);
1192 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1194 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1198 static PyObject
*_wrap_wxNullBrush_get() {
1202 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1203 pyobj
= PyString_FromString(ptemp
);
1207 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1209 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1213 static PyObject
*_wrap_wxNullPalette_get() {
1217 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1218 pyobj
= PyString_FromString(ptemp
);
1222 static int _wrap_wxNullFont_set(PyObject
*val
) {
1224 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1228 static PyObject
*_wrap_wxNullFont_get() {
1232 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1233 pyobj
= PyString_FromString(ptemp
);
1237 static int _wrap_wxNullColour_set(PyObject
*val
) {
1239 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1243 static PyObject
*_wrap_wxNullColour_get() {
1247 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1248 pyobj
= PyString_FromString(ptemp
);
1252 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1254 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1258 static PyObject
*_wrap_wxTheFontList_get() {
1262 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1263 pyobj
= PyString_FromString(ptemp
);
1267 static int _wrap_wxThePenList_set(PyObject
*val
) {
1269 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1273 static PyObject
*_wrap_wxThePenList_get() {
1277 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1278 pyobj
= PyString_FromString(ptemp
);
1282 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1284 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1288 static PyObject
*_wrap_wxTheBrushList_get() {
1292 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushlist_p");
1293 pyobj
= PyString_FromString(ptemp
);
1297 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1299 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1303 static PyObject
*_wrap_wxTheColourDatabase_get() {
1307 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1308 pyobj
= PyString_FromString(ptemp
);
1312 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1313 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1314 PyObject
* _resultobj
;
1318 PyObject
* _obj0
= 0;
1319 char *_kwnames
[] = { "name","type", NULL
};
1323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1326 #if PYTHON_API_VERSION >= 1009
1327 char* tmpPtr
; int tmpSize
;
1328 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1329 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1332 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1334 _arg0
= new wxString(tmpPtr
, tmpSize
);
1336 if (!PyString_Check(_obj0
)) {
1337 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1340 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1344 wxPy_BEGIN_ALLOW_THREADS
;
1345 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1347 wxPy_END_ALLOW_THREADS
;
1349 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1350 _resultobj
= Py_BuildValue("s",_ptemp
);
1353 _resultobj
= Py_None
;
1362 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1363 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1364 PyObject
* _resultobj
;
1366 PyObject
* _argo0
= 0;
1367 char *_kwnames
[] = { "self", NULL
};
1370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1380 wxPy_BEGIN_ALLOW_THREADS
;
1381 delete_wxBitmap(_arg0
);
1383 wxPy_END_ALLOW_THREADS
;
1384 } Py_INCREF(Py_None
);
1385 _resultobj
= Py_None
;
1389 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1390 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1391 PyObject
* _resultobj
;
1392 wxPalette
* _result
;
1394 PyObject
* _argo0
= 0;
1395 char *_kwnames
[] = { "self", NULL
};
1399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1409 wxPy_BEGIN_ALLOW_THREADS
;
1410 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1412 wxPy_END_ALLOW_THREADS
;
1414 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1415 _resultobj
= Py_BuildValue("s",_ptemp
);
1418 _resultobj
= Py_None
;
1423 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1424 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1425 PyObject
* _resultobj
;
1428 PyObject
* _argo0
= 0;
1429 char *_kwnames
[] = { "self", NULL
};
1433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1436 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1437 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1443 wxPy_BEGIN_ALLOW_THREADS
;
1444 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1446 wxPy_END_ALLOW_THREADS
;
1448 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1449 _resultobj
= Py_BuildValue("s",_ptemp
);
1452 _resultobj
= Py_None
;
1457 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1458 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1459 PyObject
* _resultobj
;
1464 PyObject
* _argo0
= 0;
1465 PyObject
* _obj1
= 0;
1466 char *_kwnames
[] = { "self","name","flags", NULL
};
1469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1479 #if PYTHON_API_VERSION >= 1009
1480 char* tmpPtr
; int tmpSize
;
1481 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1482 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1485 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1487 _arg1
= new wxString(tmpPtr
, tmpSize
);
1489 if (!PyString_Check(_obj1
)) {
1490 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1493 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1497 wxPy_BEGIN_ALLOW_THREADS
;
1498 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1500 wxPy_END_ALLOW_THREADS
;
1501 } _resultobj
= Py_BuildValue("i",_result
);
1509 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1510 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1511 PyObject
* _resultobj
;
1516 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1517 PyObject
* _argo0
= 0;
1518 PyObject
* _obj1
= 0;
1519 PyObject
* _argo3
= 0;
1520 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1533 #if PYTHON_API_VERSION >= 1009
1534 char* tmpPtr
; int tmpSize
;
1535 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1536 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1539 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1541 _arg1
= new wxString(tmpPtr
, tmpSize
);
1543 if (!PyString_Check(_obj1
)) {
1544 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1547 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1551 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1552 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1558 wxPy_BEGIN_ALLOW_THREADS
;
1559 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1561 wxPy_END_ALLOW_THREADS
;
1562 } _resultobj
= Py_BuildValue("i",_result
);
1570 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1571 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1572 PyObject
* _resultobj
;
1575 PyObject
* _argo0
= 0;
1576 PyObject
* _argo1
= 0;
1577 char *_kwnames
[] = { "self","mask", NULL
};
1580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1583 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1584 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1585 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1590 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1591 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1597 wxPy_BEGIN_ALLOW_THREADS
;
1598 wxBitmap_SetMask(_arg0
,_arg1
);
1600 wxPy_END_ALLOW_THREADS
;
1601 } Py_INCREF(Py_None
);
1602 _resultobj
= Py_None
;
1606 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1607 static PyObject
*_wrap_wxBitmap_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1608 PyObject
* _resultobj
;
1611 PyObject
* _argo0
= 0;
1612 PyObject
* _argo1
= 0;
1613 char *_kwnames
[] = { "self","palette", NULL
};
1616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetPalette",_kwnames
,&_argo0
,&_argo1
))
1619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1626 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1627 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
1628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1633 wxPy_BEGIN_ALLOW_THREADS
;
1634 wxBitmap_SetPalette(_arg0
,*_arg1
);
1636 wxPy_END_ALLOW_THREADS
;
1637 } Py_INCREF(Py_None
);
1638 _resultobj
= Py_None
;
1642 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1643 static PyObject
*_wrap_wxBitmap_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1644 PyObject
* _resultobj
;
1647 PyObject
* _argo0
= 0;
1648 char *_kwnames
[] = { "self", NULL
};
1651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHandle",_kwnames
,&_argo0
))
1654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1661 wxPy_BEGIN_ALLOW_THREADS
;
1662 _result
= (long )wxBitmap_GetHandle(_arg0
);
1664 wxPy_END_ALLOW_THREADS
;
1665 } _resultobj
= Py_BuildValue("l",_result
);
1669 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1670 static PyObject
*_wrap_wxBitmap_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1671 PyObject
* _resultobj
;
1674 PyObject
* _argo0
= 0;
1675 char *_kwnames
[] = { "self","handle", NULL
};
1678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxBitmap_SetHandle",_kwnames
,&_argo0
,&_arg1
))
1681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1688 wxPy_BEGIN_ALLOW_THREADS
;
1689 wxBitmap_SetHandle(_arg0
,_arg1
);
1691 wxPy_END_ALLOW_THREADS
;
1692 } Py_INCREF(Py_None
);
1693 _resultobj
= Py_None
;
1697 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1698 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1699 PyObject
* _resultobj
;
1702 PyObject
* _argo0
= 0;
1703 char *_kwnames
[] = { "self", NULL
};
1706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1709 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1710 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1716 wxPy_BEGIN_ALLOW_THREADS
;
1717 _result
= (bool )wxBitmap_Ok(_arg0
);
1719 wxPy_END_ALLOW_THREADS
;
1720 } _resultobj
= Py_BuildValue("i",_result
);
1724 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1725 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1726 PyObject
* _resultobj
;
1729 PyObject
* _argo0
= 0;
1730 char *_kwnames
[] = { "self", NULL
};
1733 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1736 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1737 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1738 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1743 wxPy_BEGIN_ALLOW_THREADS
;
1744 _result
= (int )wxBitmap_GetWidth(_arg0
);
1746 wxPy_END_ALLOW_THREADS
;
1747 } _resultobj
= Py_BuildValue("i",_result
);
1751 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1752 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1753 PyObject
* _resultobj
;
1756 PyObject
* _argo0
= 0;
1757 char *_kwnames
[] = { "self", NULL
};
1760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1770 wxPy_BEGIN_ALLOW_THREADS
;
1771 _result
= (int )wxBitmap_GetHeight(_arg0
);
1773 wxPy_END_ALLOW_THREADS
;
1774 } _resultobj
= Py_BuildValue("i",_result
);
1778 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1779 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1780 PyObject
* _resultobj
;
1783 PyObject
* _argo0
= 0;
1784 char *_kwnames
[] = { "self", NULL
};
1787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1797 wxPy_BEGIN_ALLOW_THREADS
;
1798 _result
= (int )wxBitmap_GetDepth(_arg0
);
1800 wxPy_END_ALLOW_THREADS
;
1801 } _resultobj
= Py_BuildValue("i",_result
);
1805 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1806 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1807 PyObject
* _resultobj
;
1810 PyObject
* _argo0
= 0;
1811 char *_kwnames
[] = { "self","w", NULL
};
1814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1817 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1818 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1824 wxPy_BEGIN_ALLOW_THREADS
;
1825 wxBitmap_SetWidth(_arg0
,_arg1
);
1827 wxPy_END_ALLOW_THREADS
;
1828 } Py_INCREF(Py_None
);
1829 _resultobj
= Py_None
;
1833 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1834 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1835 PyObject
* _resultobj
;
1838 PyObject
* _argo0
= 0;
1839 char *_kwnames
[] = { "self","h", NULL
};
1842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1845 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1846 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1852 wxPy_BEGIN_ALLOW_THREADS
;
1853 wxBitmap_SetHeight(_arg0
,_arg1
);
1855 wxPy_END_ALLOW_THREADS
;
1856 } Py_INCREF(Py_None
);
1857 _resultobj
= Py_None
;
1861 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1862 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1863 PyObject
* _resultobj
;
1866 PyObject
* _argo0
= 0;
1867 char *_kwnames
[] = { "self","d", NULL
};
1870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1880 wxPy_BEGIN_ALLOW_THREADS
;
1881 wxBitmap_SetDepth(_arg0
,_arg1
);
1883 wxPy_END_ALLOW_THREADS
;
1884 } Py_INCREF(Py_None
);
1885 _resultobj
= Py_None
;
1889 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
1890 static PyObject
*_wrap_wxBitmap_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1891 PyObject
* _resultobj
;
1894 PyObject
* _argo0
= 0;
1896 PyObject
* _obj1
= 0;
1897 char *_kwnames
[] = { "self","size", NULL
};
1900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetSize",_kwnames
,&_argo0
,&_obj1
))
1903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
1911 if (! wxSize_helper(_obj1
, &_arg1
))
1915 wxPy_BEGIN_ALLOW_THREADS
;
1916 wxBitmap_SetSize(_arg0
,*_arg1
);
1918 wxPy_END_ALLOW_THREADS
;
1919 } Py_INCREF(Py_None
);
1920 _resultobj
= Py_None
;
1924 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1925 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1926 PyObject
* _resultobj
;
1930 PyObject
* _argo0
= 0;
1932 PyObject
* _obj1
= 0;
1933 char *_kwnames
[] = { "self","rect", NULL
};
1937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1948 if (! wxRect_helper(_obj1
, &_arg1
))
1952 wxPy_BEGIN_ALLOW_THREADS
;
1953 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
1955 wxPy_END_ALLOW_THREADS
;
1956 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1957 _resultobj
= Py_BuildValue("s",_ptemp
);
1961 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
1962 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1963 PyObject
* _resultobj
;
1967 PyObject
* _argo0
= 0;
1968 PyObject
* _argo1
= 0;
1969 char *_kwnames
[] = { "self","icon", NULL
};
1972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
1975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
1982 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1983 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
1984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
1989 wxPy_BEGIN_ALLOW_THREADS
;
1990 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
1992 wxPy_END_ALLOW_THREADS
;
1993 } _resultobj
= Py_BuildValue("i",_result
);
1997 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
1998 static PyObject
*_wrap_wxBitmap_CopyFromCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1999 PyObject
* _resultobj
;
2003 PyObject
* _argo0
= 0;
2004 PyObject
* _argo1
= 0;
2005 char *_kwnames
[] = { "self","cursor", NULL
};
2008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromCursor",_kwnames
,&_argo0
,&_argo1
))
2011 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2012 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2018 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2019 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2025 wxPy_BEGIN_ALLOW_THREADS
;
2026 _result
= (bool )wxBitmap_CopyFromCursor(_arg0
,*_arg1
);
2028 wxPy_END_ALLOW_THREADS
;
2029 } _resultobj
= Py_BuildValue("i",_result
);
2033 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2034 static PyObject
*_wrap_wxBitmap_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2035 PyObject
* _resultobj
;
2038 PyObject
* _argo0
= 0;
2039 char *_kwnames
[] = { "self", NULL
};
2042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetQuality",_kwnames
,&_argo0
))
2045 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2046 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2052 wxPy_BEGIN_ALLOW_THREADS
;
2053 _result
= (int )wxBitmap_GetQuality(_arg0
);
2055 wxPy_END_ALLOW_THREADS
;
2056 } _resultobj
= Py_BuildValue("i",_result
);
2060 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2061 static PyObject
*_wrap_wxBitmap_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2062 PyObject
* _resultobj
;
2065 PyObject
* _argo0
= 0;
2066 char *_kwnames
[] = { "self","q", NULL
};
2069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetQuality",_kwnames
,&_argo0
,&_arg1
))
2072 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2073 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2074 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2079 wxPy_BEGIN_ALLOW_THREADS
;
2080 wxBitmap_SetQuality(_arg0
,_arg1
);
2082 wxPy_END_ALLOW_THREADS
;
2083 } Py_INCREF(Py_None
);
2084 _resultobj
= Py_None
;
2088 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2089 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2090 PyObject
* _resultobj
;
2093 PyObject
* _argo0
= 0;
2094 char *_kwnames
[] = { "bitmap", NULL
};
2098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2101 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2102 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2108 wxPy_BEGIN_ALLOW_THREADS
;
2109 _result
= (wxMask
*)new_wxMask(*_arg0
);
2111 wxPy_END_ALLOW_THREADS
;
2113 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2114 _resultobj
= Py_BuildValue("s",_ptemp
);
2117 _resultobj
= Py_None
;
2122 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2123 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2124 PyObject
* _resultobj
;
2126 PyObject
* _argo0
= 0;
2127 char *_kwnames
[] = { "self", NULL
};
2130 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2133 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2134 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2135 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2140 wxPy_BEGIN_ALLOW_THREADS
;
2141 wxMask_Destroy(_arg0
);
2143 wxPy_END_ALLOW_THREADS
;
2144 } Py_INCREF(Py_None
);
2145 _resultobj
= Py_None
;
2149 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2150 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2151 PyObject
* _resultobj
;
2155 int _arg2
= (int ) -1;
2156 int _arg3
= (int ) -1;
2157 PyObject
* _obj0
= 0;
2158 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2165 #if PYTHON_API_VERSION >= 1009
2166 char* tmpPtr
; int tmpSize
;
2167 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2168 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2171 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2173 _arg0
= new wxString(tmpPtr
, tmpSize
);
2175 if (!PyString_Check(_obj0
)) {
2176 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2179 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2183 wxPy_BEGIN_ALLOW_THREADS
;
2184 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2186 wxPy_END_ALLOW_THREADS
;
2188 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2189 _resultobj
= Py_BuildValue("s",_ptemp
);
2192 _resultobj
= Py_None
;
2201 #define delete_wxIcon(_swigobj) (delete _swigobj)
2202 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2203 PyObject
* _resultobj
;
2205 PyObject
* _argo0
= 0;
2206 char *_kwnames
[] = { "self", NULL
};
2209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2219 wxPy_BEGIN_ALLOW_THREADS
;
2220 delete_wxIcon(_arg0
);
2222 wxPy_END_ALLOW_THREADS
;
2223 } Py_INCREF(Py_None
);
2224 _resultobj
= Py_None
;
2228 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2229 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2230 PyObject
* _resultobj
;
2235 PyObject
* _argo0
= 0;
2236 PyObject
* _obj1
= 0;
2237 char *_kwnames
[] = { "self","name","flags", NULL
};
2240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2250 #if PYTHON_API_VERSION >= 1009
2251 char* tmpPtr
; int tmpSize
;
2252 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2253 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2256 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2258 _arg1
= new wxString(tmpPtr
, tmpSize
);
2260 if (!PyString_Check(_obj1
)) {
2261 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2264 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2268 wxPy_BEGIN_ALLOW_THREADS
;
2269 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2271 wxPy_END_ALLOW_THREADS
;
2272 } _resultobj
= Py_BuildValue("i",_result
);
2280 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2281 static PyObject
*_wrap_wxIcon_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2282 PyObject
* _resultobj
;
2285 PyObject
* _argo0
= 0;
2286 char *_kwnames
[] = { "self", NULL
};
2289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHandle",_kwnames
,&_argo0
))
2292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2299 wxPy_BEGIN_ALLOW_THREADS
;
2300 _result
= (long )wxIcon_GetHandle(_arg0
);
2302 wxPy_END_ALLOW_THREADS
;
2303 } _resultobj
= Py_BuildValue("l",_result
);
2307 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2308 static PyObject
*_wrap_wxIcon_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2309 PyObject
* _resultobj
;
2312 PyObject
* _argo0
= 0;
2313 char *_kwnames
[] = { "self","handle", NULL
};
2316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxIcon_SetHandle",_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_SetHandle. Expected _wxIcon_p.");
2326 wxPy_BEGIN_ALLOW_THREADS
;
2327 wxIcon_SetHandle(_arg0
,_arg1
);
2329 wxPy_END_ALLOW_THREADS
;
2330 } Py_INCREF(Py_None
);
2331 _resultobj
= Py_None
;
2335 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2336 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2337 PyObject
* _resultobj
;
2340 PyObject
* _argo0
= 0;
2341 char *_kwnames
[] = { "self", NULL
};
2344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2354 wxPy_BEGIN_ALLOW_THREADS
;
2355 _result
= (bool )wxIcon_Ok(_arg0
);
2357 wxPy_END_ALLOW_THREADS
;
2358 } _resultobj
= Py_BuildValue("i",_result
);
2362 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2363 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2364 PyObject
* _resultobj
;
2367 PyObject
* _argo0
= 0;
2368 char *_kwnames
[] = { "self", NULL
};
2371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2381 wxPy_BEGIN_ALLOW_THREADS
;
2382 _result
= (int )wxIcon_GetWidth(_arg0
);
2384 wxPy_END_ALLOW_THREADS
;
2385 } _resultobj
= Py_BuildValue("i",_result
);
2389 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2390 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2391 PyObject
* _resultobj
;
2394 PyObject
* _argo0
= 0;
2395 char *_kwnames
[] = { "self", NULL
};
2398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2408 wxPy_BEGIN_ALLOW_THREADS
;
2409 _result
= (int )wxIcon_GetHeight(_arg0
);
2411 wxPy_END_ALLOW_THREADS
;
2412 } _resultobj
= Py_BuildValue("i",_result
);
2416 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2417 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2418 PyObject
* _resultobj
;
2421 PyObject
* _argo0
= 0;
2422 char *_kwnames
[] = { "self", NULL
};
2425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2435 wxPy_BEGIN_ALLOW_THREADS
;
2436 _result
= (int )wxIcon_GetDepth(_arg0
);
2438 wxPy_END_ALLOW_THREADS
;
2439 } _resultobj
= Py_BuildValue("i",_result
);
2443 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2444 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2445 PyObject
* _resultobj
;
2448 PyObject
* _argo0
= 0;
2449 char *_kwnames
[] = { "self","w", NULL
};
2452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2462 wxPy_BEGIN_ALLOW_THREADS
;
2463 wxIcon_SetWidth(_arg0
,_arg1
);
2465 wxPy_END_ALLOW_THREADS
;
2466 } Py_INCREF(Py_None
);
2467 _resultobj
= Py_None
;
2471 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2472 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2473 PyObject
* _resultobj
;
2476 PyObject
* _argo0
= 0;
2477 char *_kwnames
[] = { "self","h", NULL
};
2480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2490 wxPy_BEGIN_ALLOW_THREADS
;
2491 wxIcon_SetHeight(_arg0
,_arg1
);
2493 wxPy_END_ALLOW_THREADS
;
2494 } Py_INCREF(Py_None
);
2495 _resultobj
= Py_None
;
2499 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2500 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2501 PyObject
* _resultobj
;
2504 PyObject
* _argo0
= 0;
2505 char *_kwnames
[] = { "self","d", NULL
};
2508 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2511 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2512 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2513 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2518 wxPy_BEGIN_ALLOW_THREADS
;
2519 wxIcon_SetDepth(_arg0
,_arg1
);
2521 wxPy_END_ALLOW_THREADS
;
2522 } Py_INCREF(Py_None
);
2523 _resultobj
= Py_None
;
2527 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2528 static PyObject
*_wrap_wxIcon_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2529 PyObject
* _resultobj
;
2532 PyObject
* _argo0
= 0;
2534 PyObject
* _obj1
= 0;
2535 char *_kwnames
[] = { "self","size", NULL
};
2538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_SetSize",_kwnames
,&_argo0
,&_obj1
))
2541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2549 if (! wxSize_helper(_obj1
, &_arg1
))
2553 wxPy_BEGIN_ALLOW_THREADS
;
2554 wxIcon_SetSize(_arg0
,*_arg1
);
2556 wxPy_END_ALLOW_THREADS
;
2557 } Py_INCREF(Py_None
);
2558 _resultobj
= Py_None
;
2562 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2563 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2564 PyObject
* _resultobj
;
2567 PyObject
* _argo0
= 0;
2568 PyObject
* _argo1
= 0;
2569 char *_kwnames
[] = { "self","bmp", NULL
};
2572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2582 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2583 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2584 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2589 wxPy_BEGIN_ALLOW_THREADS
;
2590 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2592 wxPy_END_ALLOW_THREADS
;
2593 } Py_INCREF(Py_None
);
2594 _resultobj
= Py_None
;
2598 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2599 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2600 PyObject
* _resultobj
;
2604 int _arg2
= (int ) 0;
2605 int _arg3
= (int ) 0;
2606 PyObject
* _obj0
= 0;
2607 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
2611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2614 #if PYTHON_API_VERSION >= 1009
2615 char* tmpPtr
; int tmpSize
;
2616 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2617 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2620 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2622 _arg0
= new wxString(tmpPtr
, tmpSize
);
2624 if (!PyString_Check(_obj0
)) {
2625 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2628 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2632 wxPy_BEGIN_ALLOW_THREADS
;
2633 _result
= (wxCursor
*)new_wxCursor(*_arg0
,_arg1
,_arg2
,_arg3
);
2635 wxPy_END_ALLOW_THREADS
;
2637 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
2638 _resultobj
= Py_BuildValue("s",_ptemp
);
2641 _resultobj
= Py_None
;
2650 #define delete_wxCursor(_swigobj) (delete _swigobj)
2651 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2652 PyObject
* _resultobj
;
2654 PyObject
* _argo0
= 0;
2655 char *_kwnames
[] = { "self", NULL
};
2658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2661 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2662 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2668 wxPy_BEGIN_ALLOW_THREADS
;
2669 delete_wxCursor(_arg0
);
2671 wxPy_END_ALLOW_THREADS
;
2672 } Py_INCREF(Py_None
);
2673 _resultobj
= Py_None
;
2677 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2678 static PyObject
*_wrap_wxCursor_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2679 PyObject
* _resultobj
;
2682 PyObject
* _argo0
= 0;
2683 char *_kwnames
[] = { "self", NULL
};
2686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHandle",_kwnames
,&_argo0
))
2689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2696 wxPy_BEGIN_ALLOW_THREADS
;
2697 _result
= (long )wxCursor_GetHandle(_arg0
);
2699 wxPy_END_ALLOW_THREADS
;
2700 } _resultobj
= Py_BuildValue("l",_result
);
2704 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2705 static PyObject
*_wrap_wxCursor_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2706 PyObject
* _resultobj
;
2709 PyObject
* _argo0
= 0;
2710 char *_kwnames
[] = { "self","handle", NULL
};
2713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxCursor_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2716 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2717 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2723 wxPy_BEGIN_ALLOW_THREADS
;
2724 wxCursor_SetHandle(_arg0
,_arg1
);
2726 wxPy_END_ALLOW_THREADS
;
2727 } Py_INCREF(Py_None
);
2728 _resultobj
= Py_None
;
2732 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2733 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2734 PyObject
* _resultobj
;
2737 PyObject
* _argo0
= 0;
2738 char *_kwnames
[] = { "self", NULL
};
2741 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2744 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2745 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2751 wxPy_BEGIN_ALLOW_THREADS
;
2752 _result
= (bool )wxCursor_Ok(_arg0
);
2754 wxPy_END_ALLOW_THREADS
;
2755 } _resultobj
= Py_BuildValue("i",_result
);
2759 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2760 static PyObject
*_wrap_wxCursor_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2761 PyObject
* _resultobj
;
2764 PyObject
* _argo0
= 0;
2765 char *_kwnames
[] = { "self", NULL
};
2768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetWidth",_kwnames
,&_argo0
))
2771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
2778 wxPy_BEGIN_ALLOW_THREADS
;
2779 _result
= (int )wxCursor_GetWidth(_arg0
);
2781 wxPy_END_ALLOW_THREADS
;
2782 } _resultobj
= Py_BuildValue("i",_result
);
2786 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
2787 static PyObject
*_wrap_wxCursor_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2788 PyObject
* _resultobj
;
2791 PyObject
* _argo0
= 0;
2792 char *_kwnames
[] = { "self", NULL
};
2795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHeight",_kwnames
,&_argo0
))
2798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
2805 wxPy_BEGIN_ALLOW_THREADS
;
2806 _result
= (int )wxCursor_GetHeight(_arg0
);
2808 wxPy_END_ALLOW_THREADS
;
2809 } _resultobj
= Py_BuildValue("i",_result
);
2813 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
2814 static PyObject
*_wrap_wxCursor_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2815 PyObject
* _resultobj
;
2818 PyObject
* _argo0
= 0;
2819 char *_kwnames
[] = { "self", NULL
};
2822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetDepth",_kwnames
,&_argo0
))
2825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
2832 wxPy_BEGIN_ALLOW_THREADS
;
2833 _result
= (int )wxCursor_GetDepth(_arg0
);
2835 wxPy_END_ALLOW_THREADS
;
2836 } _resultobj
= Py_BuildValue("i",_result
);
2840 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2841 static PyObject
*_wrap_wxCursor_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2842 PyObject
* _resultobj
;
2845 PyObject
* _argo0
= 0;
2846 char *_kwnames
[] = { "self","w", NULL
};
2849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
2859 wxPy_BEGIN_ALLOW_THREADS
;
2860 wxCursor_SetWidth(_arg0
,_arg1
);
2862 wxPy_END_ALLOW_THREADS
;
2863 } Py_INCREF(Py_None
);
2864 _resultobj
= Py_None
;
2868 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2869 static PyObject
*_wrap_wxCursor_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2870 PyObject
* _resultobj
;
2873 PyObject
* _argo0
= 0;
2874 char *_kwnames
[] = { "self","h", NULL
};
2877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2880 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2881 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
2887 wxPy_BEGIN_ALLOW_THREADS
;
2888 wxCursor_SetHeight(_arg0
,_arg1
);
2890 wxPy_END_ALLOW_THREADS
;
2891 } Py_INCREF(Py_None
);
2892 _resultobj
= Py_None
;
2896 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2897 static PyObject
*_wrap_wxCursor_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2898 PyObject
* _resultobj
;
2901 PyObject
* _argo0
= 0;
2902 char *_kwnames
[] = { "self","d", NULL
};
2905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2908 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2909 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
2915 wxPy_BEGIN_ALLOW_THREADS
;
2916 wxCursor_SetDepth(_arg0
,_arg1
);
2918 wxPy_END_ALLOW_THREADS
;
2919 } Py_INCREF(Py_None
);
2920 _resultobj
= Py_None
;
2924 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2925 static PyObject
*_wrap_wxCursor_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2926 PyObject
* _resultobj
;
2929 PyObject
* _argo0
= 0;
2931 PyObject
* _obj1
= 0;
2932 char *_kwnames
[] = { "self","size", NULL
};
2935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCursor_SetSize",_kwnames
,&_argo0
,&_obj1
))
2938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
2946 if (! wxSize_helper(_obj1
, &_arg1
))
2950 wxPy_BEGIN_ALLOW_THREADS
;
2951 wxCursor_SetSize(_arg0
,*_arg1
);
2953 wxPy_END_ALLOW_THREADS
;
2954 } Py_INCREF(Py_None
);
2955 _resultobj
= Py_None
;
2959 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2960 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2961 PyObject
* _resultobj
;
2967 int _arg4
= (int ) FALSE
;
2968 char * _arg5
= (char *) "";
2969 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
2970 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
2974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
2977 wxPy_BEGIN_ALLOW_THREADS
;
2978 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2980 wxPy_END_ALLOW_THREADS
;
2982 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
2983 _resultobj
= Py_BuildValue("s",_ptemp
);
2986 _resultobj
= Py_None
;
2991 #define delete_wxFont(_swigobj) (delete _swigobj)
2992 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2993 PyObject
* _resultobj
;
2995 PyObject
* _argo0
= 0;
2996 char *_kwnames
[] = { "self", NULL
};
2999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3009 wxPy_BEGIN_ALLOW_THREADS
;
3010 delete_wxFont(_arg0
);
3012 wxPy_END_ALLOW_THREADS
;
3013 } Py_INCREF(Py_None
);
3014 _resultobj
= Py_None
;
3018 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3019 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3020 PyObject
* _resultobj
;
3023 PyObject
* _argo0
= 0;
3024 char *_kwnames
[] = { "self", NULL
};
3027 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3030 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3031 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3032 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3037 wxPy_BEGIN_ALLOW_THREADS
;
3038 _result
= (bool )wxFont_Ok(_arg0
);
3040 wxPy_END_ALLOW_THREADS
;
3041 } _resultobj
= Py_BuildValue("i",_result
);
3045 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3046 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3047 PyObject
* _resultobj
;
3050 PyObject
* _argo0
= 0;
3051 char *_kwnames
[] = { "self", NULL
};
3054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
3057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3064 wxPy_BEGIN_ALLOW_THREADS
;
3065 _result
= new wxString (wxFont_GetFaceName(_arg0
));
3067 wxPy_END_ALLOW_THREADS
;
3069 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3077 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3078 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3079 PyObject
* _resultobj
;
3082 PyObject
* _argo0
= 0;
3083 char *_kwnames
[] = { "self", NULL
};
3086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3096 wxPy_BEGIN_ALLOW_THREADS
;
3097 _result
= (int )wxFont_GetFamily(_arg0
);
3099 wxPy_END_ALLOW_THREADS
;
3100 } _resultobj
= Py_BuildValue("i",_result
);
3104 #define wxFont_GetFontId(_swigobj) (_swigobj->GetFontId())
3105 static PyObject
*_wrap_wxFont_GetFontId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3106 PyObject
* _resultobj
;
3109 PyObject
* _argo0
= 0;
3110 char *_kwnames
[] = { "self", NULL
};
3113 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFontId",_kwnames
,&_argo0
))
3116 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3117 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3118 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFontId. Expected _wxFont_p.");
3123 wxPy_BEGIN_ALLOW_THREADS
;
3124 _result
= (int )wxFont_GetFontId(_arg0
);
3126 wxPy_END_ALLOW_THREADS
;
3127 } _resultobj
= Py_BuildValue("i",_result
);
3131 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3132 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3133 PyObject
* _resultobj
;
3136 PyObject
* _argo0
= 0;
3137 char *_kwnames
[] = { "self", NULL
};
3140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3150 wxPy_BEGIN_ALLOW_THREADS
;
3151 _result
= (int )wxFont_GetPointSize(_arg0
);
3153 wxPy_END_ALLOW_THREADS
;
3154 } _resultobj
= Py_BuildValue("i",_result
);
3158 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3159 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3160 PyObject
* _resultobj
;
3163 PyObject
* _argo0
= 0;
3164 char *_kwnames
[] = { "self", NULL
};
3167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3177 wxPy_BEGIN_ALLOW_THREADS
;
3178 _result
= (int )wxFont_GetStyle(_arg0
);
3180 wxPy_END_ALLOW_THREADS
;
3181 } _resultobj
= Py_BuildValue("i",_result
);
3185 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3186 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3187 PyObject
* _resultobj
;
3190 PyObject
* _argo0
= 0;
3191 char *_kwnames
[] = { "self", NULL
};
3194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
3197 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3198 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3204 wxPy_BEGIN_ALLOW_THREADS
;
3205 _result
= (bool )wxFont_GetUnderlined(_arg0
);
3207 wxPy_END_ALLOW_THREADS
;
3208 } _resultobj
= Py_BuildValue("i",_result
);
3212 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3213 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3214 PyObject
* _resultobj
;
3217 PyObject
* _argo0
= 0;
3218 char *_kwnames
[] = { "self", NULL
};
3221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
3224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3231 wxPy_BEGIN_ALLOW_THREADS
;
3232 _result
= (int )wxFont_GetWeight(_arg0
);
3234 wxPy_END_ALLOW_THREADS
;
3235 } _resultobj
= Py_BuildValue("i",_result
);
3239 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3240 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3241 PyObject
* _resultobj
;
3242 wxFontEncoding _result
;
3244 PyObject
* _argo0
= 0;
3245 char *_kwnames
[] = { "self", NULL
};
3248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
3251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3258 wxPy_BEGIN_ALLOW_THREADS
;
3259 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
3261 wxPy_END_ALLOW_THREADS
;
3262 } _resultobj
= Py_BuildValue("i",_result
);
3266 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3267 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3268 PyObject
* _resultobj
;
3271 PyObject
* _argo0
= 0;
3272 PyObject
* _obj1
= 0;
3273 char *_kwnames
[] = { "self","faceName", NULL
};
3276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
3279 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3280 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
3286 #if PYTHON_API_VERSION >= 1009
3287 char* tmpPtr
; int tmpSize
;
3288 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3289 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3292 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3294 _arg1
= new wxString(tmpPtr
, tmpSize
);
3296 if (!PyString_Check(_obj1
)) {
3297 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3300 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3304 wxPy_BEGIN_ALLOW_THREADS
;
3305 wxFont_SetFaceName(_arg0
,*_arg1
);
3307 wxPy_END_ALLOW_THREADS
;
3308 } Py_INCREF(Py_None
);
3309 _resultobj
= Py_None
;
3317 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3318 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3319 PyObject
* _resultobj
;
3322 PyObject
* _argo0
= 0;
3323 char *_kwnames
[] = { "self","family", NULL
};
3326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
3329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
3336 wxPy_BEGIN_ALLOW_THREADS
;
3337 wxFont_SetFamily(_arg0
,_arg1
);
3339 wxPy_END_ALLOW_THREADS
;
3340 } Py_INCREF(Py_None
);
3341 _resultobj
= Py_None
;
3345 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3346 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3347 PyObject
* _resultobj
;
3350 PyObject
* _argo0
= 0;
3351 char *_kwnames
[] = { "self","pointSize", NULL
};
3354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
3357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
3364 wxPy_BEGIN_ALLOW_THREADS
;
3365 wxFont_SetPointSize(_arg0
,_arg1
);
3367 wxPy_END_ALLOW_THREADS
;
3368 } Py_INCREF(Py_None
);
3369 _resultobj
= Py_None
;
3373 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3374 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3375 PyObject
* _resultobj
;
3378 PyObject
* _argo0
= 0;
3379 char *_kwnames
[] = { "self","style", NULL
};
3382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
3392 wxPy_BEGIN_ALLOW_THREADS
;
3393 wxFont_SetStyle(_arg0
,_arg1
);
3395 wxPy_END_ALLOW_THREADS
;
3396 } Py_INCREF(Py_None
);
3397 _resultobj
= Py_None
;
3401 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3402 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3403 PyObject
* _resultobj
;
3406 PyObject
* _argo0
= 0;
3408 char *_kwnames
[] = { "self","underlined", NULL
};
3411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
3414 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3415 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
3420 _arg1
= (bool ) tempbool1
;
3422 wxPy_BEGIN_ALLOW_THREADS
;
3423 wxFont_SetUnderlined(_arg0
,_arg1
);
3425 wxPy_END_ALLOW_THREADS
;
3426 } Py_INCREF(Py_None
);
3427 _resultobj
= Py_None
;
3431 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3432 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3433 PyObject
* _resultobj
;
3436 PyObject
* _argo0
= 0;
3437 char *_kwnames
[] = { "self","weight", NULL
};
3440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
3443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
3450 wxPy_BEGIN_ALLOW_THREADS
;
3451 wxFont_SetWeight(_arg0
,_arg1
);
3453 wxPy_END_ALLOW_THREADS
;
3454 } Py_INCREF(Py_None
);
3455 _resultobj
= Py_None
;
3459 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3460 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3461 PyObject
* _resultobj
;
3463 wxFontEncoding _arg1
;
3464 PyObject
* _argo0
= 0;
3465 char *_kwnames
[] = { "self","encoding", NULL
};
3468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
3471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
3478 wxPy_BEGIN_ALLOW_THREADS
;
3479 wxFont_SetEncoding(_arg0
,_arg1
);
3481 wxPy_END_ALLOW_THREADS
;
3482 } Py_INCREF(Py_None
);
3483 _resultobj
= Py_None
;
3487 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
3488 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3489 PyObject
* _resultobj
;
3492 PyObject
* _argo0
= 0;
3493 char *_kwnames
[] = { "self", NULL
};
3496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
3499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
3506 wxPy_BEGIN_ALLOW_THREADS
;
3507 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
3509 wxPy_END_ALLOW_THREADS
;
3511 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3519 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
3520 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3521 PyObject
* _resultobj
;
3524 PyObject
* _argo0
= 0;
3525 char *_kwnames
[] = { "self", NULL
};
3528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
3531 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3532 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
3538 wxPy_BEGIN_ALLOW_THREADS
;
3539 _result
= new wxString (wxFont_GetStyleString(_arg0
));
3541 wxPy_END_ALLOW_THREADS
;
3543 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3551 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
3552 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3553 PyObject
* _resultobj
;
3556 PyObject
* _argo0
= 0;
3557 char *_kwnames
[] = { "self", NULL
};
3560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
3563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
3570 wxPy_BEGIN_ALLOW_THREADS
;
3571 _result
= new wxString (wxFont_GetWeightString(_arg0
));
3573 wxPy_END_ALLOW_THREADS
;
3575 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3583 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
3584 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3585 PyObject
* _resultobj
;
3588 PyObject
* _argo0
= 0;
3589 PyObject
* _argo1
= 0;
3590 char *_kwnames
[] = { "self","font", NULL
};
3593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
3596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
3603 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3604 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
3610 wxPy_BEGIN_ALLOW_THREADS
;
3611 wxFontList_AddFont(_arg0
,_arg1
);
3613 wxPy_END_ALLOW_THREADS
;
3614 } Py_INCREF(Py_None
);
3615 _resultobj
= Py_None
;
3619 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3620 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3621 PyObject
* _resultobj
;
3628 bool _arg5
= (bool ) FALSE
;
3629 char * _arg6
= (char *) NULL
;
3630 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3631 PyObject
* _argo0
= 0;
3632 int tempbool5
= (int) FALSE
;
3633 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
3637 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
3640 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3641 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
3646 _arg5
= (bool ) tempbool5
;
3648 wxPy_BEGIN_ALLOW_THREADS
;
3649 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
3651 wxPy_END_ALLOW_THREADS
;
3653 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3654 _resultobj
= Py_BuildValue("s",_ptemp
);
3657 _resultobj
= Py_None
;
3662 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
3663 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3664 PyObject
* _resultobj
;
3667 PyObject
* _argo0
= 0;
3668 PyObject
* _argo1
= 0;
3669 char *_kwnames
[] = { "self","font", NULL
};
3672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
3675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
3682 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3683 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
3689 wxPy_BEGIN_ALLOW_THREADS
;
3690 wxFontList_RemoveFont(_arg0
,_arg1
);
3692 wxPy_END_ALLOW_THREADS
;
3693 } Py_INCREF(Py_None
);
3694 _resultobj
= Py_None
;
3698 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
3699 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3700 PyObject
* _resultobj
;
3702 unsigned char _arg0
= (unsigned char ) 0;
3703 unsigned char _arg1
= (unsigned char ) 0;
3704 unsigned char _arg2
= (unsigned char ) 0;
3705 char *_kwnames
[] = { "red","green","blue", NULL
};
3709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
3712 wxPy_BEGIN_ALLOW_THREADS
;
3713 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
3715 wxPy_END_ALLOW_THREADS
;
3717 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3718 _resultobj
= Py_BuildValue("s",_ptemp
);
3721 _resultobj
= Py_None
;
3726 #define delete_wxColour(_swigobj) (delete _swigobj)
3727 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3728 PyObject
* _resultobj
;
3731 PyObject
* _obj0
= 0;
3732 char *_kwnames
[] = { "self", NULL
};
3735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
3739 if (! wxColour_helper(_obj0
, &_arg0
))
3743 wxPy_BEGIN_ALLOW_THREADS
;
3744 delete_wxColour(_arg0
);
3746 wxPy_END_ALLOW_THREADS
;
3747 } Py_INCREF(Py_None
);
3748 _resultobj
= Py_None
;
3752 #define wxColour_Red(_swigobj) (_swigobj->Red())
3753 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3754 PyObject
* _resultobj
;
3755 unsigned char _result
;
3758 PyObject
* _obj0
= 0;
3759 char *_kwnames
[] = { "self", NULL
};
3762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
3766 if (! wxColour_helper(_obj0
, &_arg0
))
3770 wxPy_BEGIN_ALLOW_THREADS
;
3771 _result
= (unsigned char )wxColour_Red(_arg0
);
3773 wxPy_END_ALLOW_THREADS
;
3774 } _resultobj
= Py_BuildValue("b",_result
);
3778 #define wxColour_Green(_swigobj) (_swigobj->Green())
3779 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3780 PyObject
* _resultobj
;
3781 unsigned char _result
;
3784 PyObject
* _obj0
= 0;
3785 char *_kwnames
[] = { "self", NULL
};
3788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
3792 if (! wxColour_helper(_obj0
, &_arg0
))
3796 wxPy_BEGIN_ALLOW_THREADS
;
3797 _result
= (unsigned char )wxColour_Green(_arg0
);
3799 wxPy_END_ALLOW_THREADS
;
3800 } _resultobj
= Py_BuildValue("b",_result
);
3804 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
3805 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3806 PyObject
* _resultobj
;
3807 unsigned char _result
;
3810 PyObject
* _obj0
= 0;
3811 char *_kwnames
[] = { "self", NULL
};
3814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
3818 if (! wxColour_helper(_obj0
, &_arg0
))
3822 wxPy_BEGIN_ALLOW_THREADS
;
3823 _result
= (unsigned char )wxColour_Blue(_arg0
);
3825 wxPy_END_ALLOW_THREADS
;
3826 } _resultobj
= Py_BuildValue("b",_result
);
3830 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
3831 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3832 PyObject
* _resultobj
;
3836 PyObject
* _obj0
= 0;
3837 char *_kwnames
[] = { "self", NULL
};
3840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
3844 if (! wxColour_helper(_obj0
, &_arg0
))
3848 wxPy_BEGIN_ALLOW_THREADS
;
3849 _result
= (bool )wxColour_Ok(_arg0
);
3851 wxPy_END_ALLOW_THREADS
;
3852 } _resultobj
= Py_BuildValue("i",_result
);
3856 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
3857 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3858 PyObject
* _resultobj
;
3860 unsigned char _arg1
;
3861 unsigned char _arg2
;
3862 unsigned char _arg3
;
3864 PyObject
* _obj0
= 0;
3865 char *_kwnames
[] = { "self","red","green","blue", NULL
};
3868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
3872 if (! wxColour_helper(_obj0
, &_arg0
))
3876 wxPy_BEGIN_ALLOW_THREADS
;
3877 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
3879 wxPy_END_ALLOW_THREADS
;
3880 } Py_INCREF(Py_None
);
3881 _resultobj
= Py_None
;
3885 static PyObject
* wxColour_Get(wxColour
*self
) {
3886 PyObject
* rv
= PyTuple_New(3);
3887 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
3888 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
3889 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
3892 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3893 PyObject
* _resultobj
;
3897 PyObject
* _obj0
= 0;
3898 char *_kwnames
[] = { "self", NULL
};
3901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
3905 if (! wxColour_helper(_obj0
, &_arg0
))
3909 wxPy_BEGIN_ALLOW_THREADS
;
3910 _result
= (PyObject
*)wxColour_Get(_arg0
);
3912 wxPy_END_ALLOW_THREADS
;
3914 _resultobj
= _result
;
3919 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
3920 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3921 PyObject
* _resultobj
;
3923 wxColourDatabase
* _arg0
;
3925 PyObject
* _argo0
= 0;
3926 PyObject
* _obj1
= 0;
3927 char *_kwnames
[] = { "self","colour", NULL
};
3931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
3934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
3941 #if PYTHON_API_VERSION >= 1009
3942 char* tmpPtr
; int tmpSize
;
3943 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3944 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3947 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3949 _arg1
= new wxString(tmpPtr
, tmpSize
);
3951 if (!PyString_Check(_obj1
)) {
3952 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3955 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3959 wxPy_BEGIN_ALLOW_THREADS
;
3960 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
3962 wxPy_END_ALLOW_THREADS
;
3964 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3965 _resultobj
= Py_BuildValue("s",_ptemp
);
3968 _resultobj
= Py_None
;
3977 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3978 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3979 PyObject
* _resultobj
;
3981 wxColourDatabase
* _arg0
;
3983 PyObject
* _argo0
= 0;
3985 PyObject
* _obj1
= 0;
3986 char *_kwnames
[] = { "self","colour", NULL
};
3989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
3992 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3993 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
4000 if (! wxColour_helper(_obj1
, &_arg1
))
4004 wxPy_BEGIN_ALLOW_THREADS
;
4005 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
4007 wxPy_END_ALLOW_THREADS
;
4009 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4017 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
4018 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
4020 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4021 PyObject
* _resultobj
;
4022 wxColourDatabase
* _arg0
;
4027 PyObject
* _argo0
= 0;
4028 PyObject
* _obj1
= 0;
4029 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
4032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4035 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4036 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4037 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4042 #if PYTHON_API_VERSION >= 1009
4043 char* tmpPtr
; int tmpSize
;
4044 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4045 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4048 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4050 _arg1
= new wxString(tmpPtr
, tmpSize
);
4052 if (!PyString_Check(_obj1
)) {
4053 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4056 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4060 wxPy_BEGIN_ALLOW_THREADS
;
4061 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
4063 wxPy_END_ALLOW_THREADS
;
4064 } Py_INCREF(Py_None
);
4065 _resultobj
= Py_None
;
4073 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4074 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4075 PyObject
* _resultobj
;
4078 int _arg1
= (int ) 1;
4079 int _arg2
= (int ) wxSOLID
;
4081 PyObject
* _obj0
= 0;
4082 char *_kwnames
[] = { "colour","width","style", NULL
};
4086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4090 if (! wxColour_helper(_obj0
, &_arg0
))
4094 wxPy_BEGIN_ALLOW_THREADS
;
4095 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
4097 wxPy_END_ALLOW_THREADS
;
4099 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4100 _resultobj
= Py_BuildValue("s",_ptemp
);
4103 _resultobj
= Py_None
;
4108 #define delete_wxPen(_swigobj) (delete _swigobj)
4109 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4110 PyObject
* _resultobj
;
4112 PyObject
* _argo0
= 0;
4113 char *_kwnames
[] = { "self", NULL
};
4116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
4119 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4120 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4126 wxPy_BEGIN_ALLOW_THREADS
;
4127 delete_wxPen(_arg0
);
4129 wxPy_END_ALLOW_THREADS
;
4130 } Py_INCREF(Py_None
);
4131 _resultobj
= Py_None
;
4135 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4136 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4137 PyObject
* _resultobj
;
4140 PyObject
* _argo0
= 0;
4141 char *_kwnames
[] = { "self", NULL
};
4144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
4147 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4148 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4154 wxPy_BEGIN_ALLOW_THREADS
;
4155 _result
= (int )wxPen_GetCap(_arg0
);
4157 wxPy_END_ALLOW_THREADS
;
4158 } _resultobj
= Py_BuildValue("i",_result
);
4162 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4163 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4164 PyObject
* _resultobj
;
4167 PyObject
* _argo0
= 0;
4168 char *_kwnames
[] = { "self", NULL
};
4172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
4175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4182 wxPy_BEGIN_ALLOW_THREADS
;
4183 wxColour
& _result_ref
= wxPen_GetColour(_arg0
);
4184 _result
= (wxColour
*) &_result_ref
;
4186 wxPy_END_ALLOW_THREADS
;
4188 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4189 _resultobj
= Py_BuildValue("s",_ptemp
);
4192 _resultobj
= Py_None
;
4197 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
4198 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4199 PyObject
* _resultobj
;
4202 PyObject
* _argo0
= 0;
4203 char *_kwnames
[] = { "self", NULL
};
4206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
4209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4216 wxPy_BEGIN_ALLOW_THREADS
;
4217 _result
= (int )wxPen_GetJoin(_arg0
);
4219 wxPy_END_ALLOW_THREADS
;
4220 } _resultobj
= Py_BuildValue("i",_result
);
4224 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
4225 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4226 PyObject
* _resultobj
;
4229 PyObject
* _argo0
= 0;
4230 char *_kwnames
[] = { "self", NULL
};
4233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
4236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4243 wxPy_BEGIN_ALLOW_THREADS
;
4244 _result
= (int )wxPen_GetStyle(_arg0
);
4246 wxPy_END_ALLOW_THREADS
;
4247 } _resultobj
= Py_BuildValue("i",_result
);
4251 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
4252 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4253 PyObject
* _resultobj
;
4256 PyObject
* _argo0
= 0;
4257 char *_kwnames
[] = { "self", NULL
};
4260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
4263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
4270 wxPy_BEGIN_ALLOW_THREADS
;
4271 _result
= (int )wxPen_GetWidth(_arg0
);
4273 wxPy_END_ALLOW_THREADS
;
4274 } _resultobj
= Py_BuildValue("i",_result
);
4278 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
4279 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4280 PyObject
* _resultobj
;
4283 PyObject
* _argo0
= 0;
4284 char *_kwnames
[] = { "self", NULL
};
4287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
4290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
4297 wxPy_BEGIN_ALLOW_THREADS
;
4298 _result
= (bool )wxPen_Ok(_arg0
);
4300 wxPy_END_ALLOW_THREADS
;
4301 } _resultobj
= Py_BuildValue("i",_result
);
4305 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
4306 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4307 PyObject
* _resultobj
;
4310 PyObject
* _argo0
= 0;
4311 char *_kwnames
[] = { "self","cap_style", NULL
};
4314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
4317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4324 wxPy_BEGIN_ALLOW_THREADS
;
4325 wxPen_SetCap(_arg0
,_arg1
);
4327 wxPy_END_ALLOW_THREADS
;
4328 } Py_INCREF(Py_None
);
4329 _resultobj
= Py_None
;
4333 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4334 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4335 PyObject
* _resultobj
;
4338 PyObject
* _argo0
= 0;
4340 PyObject
* _obj1
= 0;
4341 char *_kwnames
[] = { "self","colour", NULL
};
4344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
4347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4355 if (! wxColour_helper(_obj1
, &_arg1
))
4359 wxPy_BEGIN_ALLOW_THREADS
;
4360 wxPen_SetColour(_arg0
,*_arg1
);
4362 wxPy_END_ALLOW_THREADS
;
4363 } Py_INCREF(Py_None
);
4364 _resultobj
= Py_None
;
4368 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4369 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4370 PyObject
* _resultobj
;
4373 PyObject
* _argo0
= 0;
4374 char *_kwnames
[] = { "self","join_style", NULL
};
4377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
4380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4387 wxPy_BEGIN_ALLOW_THREADS
;
4388 wxPen_SetJoin(_arg0
,_arg1
);
4390 wxPy_END_ALLOW_THREADS
;
4391 } Py_INCREF(Py_None
);
4392 _resultobj
= Py_None
;
4396 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4397 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4398 PyObject
* _resultobj
;
4401 PyObject
* _argo0
= 0;
4402 char *_kwnames
[] = { "self","style", NULL
};
4405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4415 wxPy_BEGIN_ALLOW_THREADS
;
4416 wxPen_SetStyle(_arg0
,_arg1
);
4418 wxPy_END_ALLOW_THREADS
;
4419 } Py_INCREF(Py_None
);
4420 _resultobj
= Py_None
;
4424 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4425 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4426 PyObject
* _resultobj
;
4429 PyObject
* _argo0
= 0;
4430 char *_kwnames
[] = { "self","width", NULL
};
4433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4436 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4437 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4443 wxPy_BEGIN_ALLOW_THREADS
;
4444 wxPen_SetWidth(_arg0
,_arg1
);
4446 wxPy_END_ALLOW_THREADS
;
4447 } Py_INCREF(Py_None
);
4448 _resultobj
= Py_None
;
4452 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
4453 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4454 PyObject
* _resultobj
;
4458 PyObject
* _argo0
= 0;
4459 PyObject
* _argo1
= 0;
4460 char *_kwnames
[] = { "self","dashes", NULL
};
4463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_GetDashes",_kwnames
,&_argo0
,&_argo1
))
4466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4473 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4474 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDash_pp")) {
4475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
4480 wxPy_BEGIN_ALLOW_THREADS
;
4481 _result
= (int )wxPen_GetDashes(_arg0
,_arg1
);
4483 wxPy_END_ALLOW_THREADS
;
4484 } _resultobj
= Py_BuildValue("i",_result
);
4488 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4489 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4490 PyObject
* _resultobj
;
4494 PyObject
* _argo0
= 0;
4495 PyObject
* _obj2
= 0;
4496 char *_kwnames
[] = { "self","choices", NULL
};
4499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4502 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4503 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4510 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4511 if (_arg2
== NULL
) {
4517 _arg1
= PyList_Size(_obj2
);
4524 wxPy_BEGIN_ALLOW_THREADS
;
4525 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4527 wxPy_END_ALLOW_THREADS
;
4528 } Py_INCREF(Py_None
);
4529 _resultobj
= Py_None
;
4536 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
4537 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4538 PyObject
* _resultobj
;
4541 PyObject
* _argo0
= 0;
4542 char *_kwnames
[] = { "self", NULL
};
4546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
4549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
4556 wxPy_BEGIN_ALLOW_THREADS
;
4557 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
4559 wxPy_END_ALLOW_THREADS
;
4561 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4562 _resultobj
= Py_BuildValue("s",_ptemp
);
4565 _resultobj
= Py_None
;
4570 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4571 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4572 PyObject
* _resultobj
;
4575 PyObject
* _argo0
= 0;
4576 PyObject
* _argo1
= 0;
4577 char *_kwnames
[] = { "self","stipple", NULL
};
4580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4583 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4584 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4585 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
4590 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4591 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
4597 wxPy_BEGIN_ALLOW_THREADS
;
4598 wxPen_SetStipple(_arg0
,*_arg1
);
4600 wxPy_END_ALLOW_THREADS
;
4601 } Py_INCREF(Py_None
);
4602 _resultobj
= Py_None
;
4606 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4607 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4608 PyObject
* _resultobj
;
4611 PyObject
* _argo0
= 0;
4612 PyObject
* _argo1
= 0;
4613 char *_kwnames
[] = { "self","pen", NULL
};
4616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
4619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4626 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4627 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4633 wxPy_BEGIN_ALLOW_THREADS
;
4634 wxPenList_AddPen(_arg0
,_arg1
);
4636 wxPy_END_ALLOW_THREADS
;
4637 } Py_INCREF(Py_None
);
4638 _resultobj
= Py_None
;
4642 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
4643 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4644 PyObject
* _resultobj
;
4650 PyObject
* _argo0
= 0;
4652 PyObject
* _obj1
= 0;
4653 char *_kwnames
[] = { "self","colour","width","style", NULL
};
4657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
4660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
4668 if (! wxColour_helper(_obj1
, &_arg1
))
4672 wxPy_BEGIN_ALLOW_THREADS
;
4673 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
4675 wxPy_END_ALLOW_THREADS
;
4677 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4678 _resultobj
= Py_BuildValue("s",_ptemp
);
4681 _resultobj
= Py_None
;
4686 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
4687 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4688 PyObject
* _resultobj
;
4691 PyObject
* _argo0
= 0;
4692 PyObject
* _argo1
= 0;
4693 char *_kwnames
[] = { "self","pen", NULL
};
4696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
4699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
4706 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4707 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4708 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
4713 wxPy_BEGIN_ALLOW_THREADS
;
4714 wxPenList_RemovePen(_arg0
,_arg1
);
4716 wxPy_END_ALLOW_THREADS
;
4717 } Py_INCREF(Py_None
);
4718 _resultobj
= Py_None
;
4722 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
4723 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4724 PyObject
* _resultobj
;
4727 int _arg1
= (int ) wxSOLID
;
4729 PyObject
* _obj0
= 0;
4730 char *_kwnames
[] = { "colour","style", NULL
};
4734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
4738 if (! wxColour_helper(_obj0
, &_arg0
))
4742 wxPy_BEGIN_ALLOW_THREADS
;
4743 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
4745 wxPy_END_ALLOW_THREADS
;
4747 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4748 _resultobj
= Py_BuildValue("s",_ptemp
);
4751 _resultobj
= Py_None
;
4756 #define delete_wxBrush(_swigobj) (delete _swigobj)
4757 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4758 PyObject
* _resultobj
;
4760 PyObject
* _argo0
= 0;
4761 char *_kwnames
[] = { "self", NULL
};
4764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
4767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
4774 wxPy_BEGIN_ALLOW_THREADS
;
4775 delete_wxBrush(_arg0
);
4777 wxPy_END_ALLOW_THREADS
;
4778 } Py_INCREF(Py_None
);
4779 _resultobj
= Py_None
;
4783 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
4784 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4785 PyObject
* _resultobj
;
4788 PyObject
* _argo0
= 0;
4789 char *_kwnames
[] = { "self", NULL
};
4793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
4796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4803 wxPy_BEGIN_ALLOW_THREADS
;
4804 wxColour
& _result_ref
= wxBrush_GetColour(_arg0
);
4805 _result
= (wxColour
*) &_result_ref
;
4807 wxPy_END_ALLOW_THREADS
;
4809 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4810 _resultobj
= Py_BuildValue("s",_ptemp
);
4813 _resultobj
= Py_None
;
4818 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4819 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4820 PyObject
* _resultobj
;
4823 PyObject
* _argo0
= 0;
4824 char *_kwnames
[] = { "self", NULL
};
4828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
4831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4838 wxPy_BEGIN_ALLOW_THREADS
;
4839 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
4841 wxPy_END_ALLOW_THREADS
;
4843 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4844 _resultobj
= Py_BuildValue("s",_ptemp
);
4847 _resultobj
= Py_None
;
4852 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4853 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4854 PyObject
* _resultobj
;
4857 PyObject
* _argo0
= 0;
4858 char *_kwnames
[] = { "self", NULL
};
4861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
4864 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4865 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4871 wxPy_BEGIN_ALLOW_THREADS
;
4872 _result
= (int )wxBrush_GetStyle(_arg0
);
4874 wxPy_END_ALLOW_THREADS
;
4875 } _resultobj
= Py_BuildValue("i",_result
);
4879 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4880 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4881 PyObject
* _resultobj
;
4884 PyObject
* _argo0
= 0;
4885 char *_kwnames
[] = { "self", NULL
};
4888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
4891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4898 wxPy_BEGIN_ALLOW_THREADS
;
4899 _result
= (bool )wxBrush_Ok(_arg0
);
4901 wxPy_END_ALLOW_THREADS
;
4902 } _resultobj
= Py_BuildValue("i",_result
);
4906 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4907 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4908 PyObject
* _resultobj
;
4911 PyObject
* _argo0
= 0;
4913 PyObject
* _obj1
= 0;
4914 char *_kwnames
[] = { "self","colour", NULL
};
4917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
4920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4928 if (! wxColour_helper(_obj1
, &_arg1
))
4932 wxPy_BEGIN_ALLOW_THREADS
;
4933 wxBrush_SetColour(_arg0
,*_arg1
);
4935 wxPy_END_ALLOW_THREADS
;
4936 } Py_INCREF(Py_None
);
4937 _resultobj
= Py_None
;
4941 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4942 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4943 PyObject
* _resultobj
;
4946 PyObject
* _argo0
= 0;
4947 PyObject
* _argo1
= 0;
4948 char *_kwnames
[] = { "self","bitmap", NULL
};
4951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4954 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4955 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4961 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4962 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4968 wxPy_BEGIN_ALLOW_THREADS
;
4969 wxBrush_SetStipple(_arg0
,*_arg1
);
4971 wxPy_END_ALLOW_THREADS
;
4972 } Py_INCREF(Py_None
);
4973 _resultobj
= Py_None
;
4977 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4978 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4979 PyObject
* _resultobj
;
4982 PyObject
* _argo0
= 0;
4983 char *_kwnames
[] = { "self","style", NULL
};
4986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4989 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4990 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4996 wxPy_BEGIN_ALLOW_THREADS
;
4997 wxBrush_SetStyle(_arg0
,_arg1
);
4999 wxPy_END_ALLOW_THREADS
;
5000 } Py_INCREF(Py_None
);
5001 _resultobj
= Py_None
;
5005 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5006 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5007 PyObject
* _resultobj
;
5008 wxBrushList
* _arg0
;
5010 PyObject
* _argo0
= 0;
5011 PyObject
* _argo1
= 0;
5012 char *_kwnames
[] = { "self","brush", NULL
};
5015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
5018 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5019 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5025 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5026 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5027 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5032 wxPy_BEGIN_ALLOW_THREADS
;
5033 wxBrushList_AddBrush(_arg0
,_arg1
);
5035 wxPy_END_ALLOW_THREADS
;
5036 } Py_INCREF(Py_None
);
5037 _resultobj
= Py_None
;
5041 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5042 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5043 PyObject
* _resultobj
;
5045 wxBrushList
* _arg0
;
5048 PyObject
* _argo0
= 0;
5050 PyObject
* _obj1
= 0;
5051 char *_kwnames
[] = { "self","colour","style", NULL
};
5055 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
5058 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5059 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5060 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5066 if (! wxColour_helper(_obj1
, &_arg1
))
5070 wxPy_BEGIN_ALLOW_THREADS
;
5071 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
5073 wxPy_END_ALLOW_THREADS
;
5075 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5076 _resultobj
= Py_BuildValue("s",_ptemp
);
5079 _resultobj
= Py_None
;
5084 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5085 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5086 PyObject
* _resultobj
;
5087 wxBrushList
* _arg0
;
5089 PyObject
* _argo0
= 0;
5090 PyObject
* _argo1
= 0;
5091 char *_kwnames
[] = { "self","brush", NULL
};
5094 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
5097 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5098 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5099 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5104 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5105 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5111 wxPy_BEGIN_ALLOW_THREADS
;
5112 wxBrushList_RemoveBrush(_arg0
,_arg1
);
5114 wxPy_END_ALLOW_THREADS
;
5115 } Py_INCREF(Py_None
);
5116 _resultobj
= Py_None
;
5120 #define delete_wxDC(_swigobj) (delete _swigobj)
5121 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5122 PyObject
* _resultobj
;
5124 PyObject
* _argo0
= 0;
5125 char *_kwnames
[] = { "self", NULL
};
5128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
5131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5138 wxPy_BEGIN_ALLOW_THREADS
;
5141 wxPy_END_ALLOW_THREADS
;
5142 } Py_INCREF(Py_None
);
5143 _resultobj
= Py_None
;
5147 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
5148 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5149 PyObject
* _resultobj
;
5151 PyObject
* _argo0
= 0;
5152 char *_kwnames
[] = { "self", NULL
};
5155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
5158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5165 wxPy_BEGIN_ALLOW_THREADS
;
5166 wxDC_BeginDrawing(_arg0
);
5168 wxPy_END_ALLOW_THREADS
;
5169 } Py_INCREF(Py_None
);
5170 _resultobj
= Py_None
;
5174 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5175 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5176 PyObject
* _resultobj
;
5186 int _arg8
= (int ) wxCOPY
;
5187 int _arg9
= (int ) FALSE
;
5188 PyObject
* _argo0
= 0;
5189 PyObject
* _argo5
= 0;
5190 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
5193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
5196 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5197 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5203 if (_argo5
== Py_None
) { _arg5
= NULL
; }
5204 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
5205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5210 wxPy_BEGIN_ALLOW_THREADS
;
5211 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
5213 wxPy_END_ALLOW_THREADS
;
5214 } _resultobj
= Py_BuildValue("i",_result
);
5218 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
5219 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5220 PyObject
* _resultobj
;
5222 PyObject
* _argo0
= 0;
5223 char *_kwnames
[] = { "self", NULL
};
5226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
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_Clear. Expected _wxDC_p.");
5236 wxPy_BEGIN_ALLOW_THREADS
;
5239 wxPy_END_ALLOW_THREADS
;
5240 } Py_INCREF(Py_None
);
5241 _resultobj
= Py_None
;
5245 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5246 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5247 PyObject
* _resultobj
;
5251 PyObject
* _argo0
= 0;
5252 char *_kwnames
[] = { "self","x","y", NULL
};
5255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5258 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5259 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5265 wxPy_BEGIN_ALLOW_THREADS
;
5266 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
5268 wxPy_END_ALLOW_THREADS
;
5269 } Py_INCREF(Py_None
);
5270 _resultobj
= Py_None
;
5274 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5275 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5276 PyObject
* _resultobj
;
5278 PyObject
* _argo0
= 0;
5279 char *_kwnames
[] = { "self", NULL
};
5282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
5285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5292 wxPy_BEGIN_ALLOW_THREADS
;
5293 wxDC_DestroyClippingRegion(_arg0
);
5295 wxPy_END_ALLOW_THREADS
;
5296 } Py_INCREF(Py_None
);
5297 _resultobj
= Py_None
;
5301 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5302 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5303 PyObject
* _resultobj
;
5307 PyObject
* _argo0
= 0;
5308 char *_kwnames
[] = { "self","x", NULL
};
5311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
5314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5321 wxPy_BEGIN_ALLOW_THREADS
;
5322 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
5324 wxPy_END_ALLOW_THREADS
;
5325 } _resultobj
= Py_BuildValue("l",_result
);
5329 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5330 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5331 PyObject
* _resultobj
;
5335 PyObject
* _argo0
= 0;
5336 char *_kwnames
[] = { "self","x", NULL
};
5339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
5342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5349 wxPy_BEGIN_ALLOW_THREADS
;
5350 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
5352 wxPy_END_ALLOW_THREADS
;
5353 } _resultobj
= Py_BuildValue("l",_result
);
5357 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5358 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5359 PyObject
* _resultobj
;
5363 PyObject
* _argo0
= 0;
5364 char *_kwnames
[] = { "self","y", NULL
};
5367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
5370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5377 wxPy_BEGIN_ALLOW_THREADS
;
5378 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
5380 wxPy_END_ALLOW_THREADS
;
5381 } _resultobj
= Py_BuildValue("l",_result
);
5385 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5386 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5387 PyObject
* _resultobj
;
5391 PyObject
* _argo0
= 0;
5392 char *_kwnames
[] = { "self","y", NULL
};
5395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
5398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5405 wxPy_BEGIN_ALLOW_THREADS
;
5406 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5408 wxPy_END_ALLOW_THREADS
;
5409 } _resultobj
= Py_BuildValue("l",_result
);
5413 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5414 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5415 PyObject
* _resultobj
;
5423 PyObject
* _argo0
= 0;
5424 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5437 wxPy_BEGIN_ALLOW_THREADS
;
5438 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5440 wxPy_END_ALLOW_THREADS
;
5441 } Py_INCREF(Py_None
);
5442 _resultobj
= Py_None
;
5446 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5447 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5448 PyObject
* _resultobj
;
5453 PyObject
* _argo0
= 0;
5454 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5467 wxPy_BEGIN_ALLOW_THREADS
;
5468 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
5470 wxPy_END_ALLOW_THREADS
;
5471 } Py_INCREF(Py_None
);
5472 _resultobj
= Py_None
;
5476 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5477 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5478 PyObject
* _resultobj
;
5484 PyObject
* _argo0
= 0;
5485 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5498 wxPy_BEGIN_ALLOW_THREADS
;
5499 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5501 wxPy_END_ALLOW_THREADS
;
5502 } Py_INCREF(Py_None
);
5503 _resultobj
= Py_None
;
5507 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5508 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5509 PyObject
* _resultobj
;
5517 PyObject
* _argo0
= 0;
5518 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
5521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5524 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5525 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5526 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
5531 wxPy_BEGIN_ALLOW_THREADS
;
5532 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5534 wxPy_END_ALLOW_THREADS
;
5535 } Py_INCREF(Py_None
);
5536 _resultobj
= Py_None
;
5540 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
5541 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5542 PyObject
* _resultobj
;
5547 PyObject
* _argo0
= 0;
5548 PyObject
* _argo1
= 0;
5549 char *_kwnames
[] = { "self","icon","x","y", NULL
};
5552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
5555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5562 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5563 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
5564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5569 wxPy_BEGIN_ALLOW_THREADS
;
5570 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
5572 wxPy_END_ALLOW_THREADS
;
5573 } Py_INCREF(Py_None
);
5574 _resultobj
= Py_None
;
5578 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5579 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5580 PyObject
* _resultobj
;
5586 PyObject
* _argo0
= 0;
5587 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
5590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5600 wxPy_BEGIN_ALLOW_THREADS
;
5601 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5603 wxPy_END_ALLOW_THREADS
;
5604 } Py_INCREF(Py_None
);
5605 _resultobj
= Py_None
;
5609 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5610 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5611 PyObject
* _resultobj
;
5615 long _arg3
= (long ) 0;
5616 long _arg4
= (long ) 0;
5617 PyObject
* _argo0
= 0;
5619 PyObject
* _obj2
= 0;
5620 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
5623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
5626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5634 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5635 if (_arg2
== NULL
) {
5643 wxPy_BEGIN_ALLOW_THREADS
;
5644 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5646 wxPy_END_ALLOW_THREADS
;
5647 } Py_INCREF(Py_None
);
5648 _resultobj
= Py_None
;
5655 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5656 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5657 PyObject
* _resultobj
;
5661 long _arg3
= (long ) 0;
5662 long _arg4
= (long ) 0;
5663 int _arg5
= (int ) wxODDEVEN_RULE
;
5664 PyObject
* _argo0
= 0;
5666 PyObject
* _obj2
= 0;
5667 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
5670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
5673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5681 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5682 if (_arg2
== NULL
) {
5690 wxPy_BEGIN_ALLOW_THREADS
;
5691 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5693 wxPy_END_ALLOW_THREADS
;
5694 } Py_INCREF(Py_None
);
5695 _resultobj
= Py_None
;
5702 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
5703 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5704 PyObject
* _resultobj
;
5708 PyObject
* _argo0
= 0;
5709 char *_kwnames
[] = { "self","x","y", NULL
};
5712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
5722 wxPy_BEGIN_ALLOW_THREADS
;
5723 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
5725 wxPy_END_ALLOW_THREADS
;
5726 } Py_INCREF(Py_None
);
5727 _resultobj
= Py_None
;
5731 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5732 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5733 PyObject
* _resultobj
;
5739 PyObject
* _argo0
= 0;
5740 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
5753 wxPy_BEGIN_ALLOW_THREADS
;
5754 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5756 wxPy_END_ALLOW_THREADS
;
5757 } Py_INCREF(Py_None
);
5758 _resultobj
= Py_None
;
5762 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5763 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5764 PyObject
* _resultobj
;
5770 PyObject
* _argo0
= 0;
5771 PyObject
* _obj1
= 0;
5772 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
5775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5778 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5779 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5785 #if PYTHON_API_VERSION >= 1009
5786 char* tmpPtr
; int tmpSize
;
5787 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5788 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5791 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5793 _arg1
= new wxString(tmpPtr
, tmpSize
);
5795 if (!PyString_Check(_obj1
)) {
5796 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5799 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5803 wxPy_BEGIN_ALLOW_THREADS
;
5804 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5806 wxPy_END_ALLOW_THREADS
;
5807 } Py_INCREF(Py_None
);
5808 _resultobj
= Py_None
;
5816 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5817 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5818 PyObject
* _resultobj
;
5824 long _arg5
= (long ) 20;
5825 PyObject
* _argo0
= 0;
5826 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
5829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
5832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5839 wxPy_BEGIN_ALLOW_THREADS
;
5840 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5842 wxPy_END_ALLOW_THREADS
;
5843 } Py_INCREF(Py_None
);
5844 _resultobj
= Py_None
;
5848 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5849 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5850 PyObject
* _resultobj
;
5854 PyObject
* _argo0
= 0;
5856 PyObject
* _obj2
= 0;
5857 char *_kwnames
[] = { "self","points", NULL
};
5860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
5863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5871 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5872 if (_arg2
== NULL
) {
5880 wxPy_BEGIN_ALLOW_THREADS
;
5881 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
5883 wxPy_END_ALLOW_THREADS
;
5884 } Py_INCREF(Py_None
);
5885 _resultobj
= Py_None
;
5892 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5893 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5894 PyObject
* _resultobj
;
5899 PyObject
* _argo0
= 0;
5900 PyObject
* _obj1
= 0;
5901 char *_kwnames
[] = { "self","text","x","y", NULL
};
5904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5907 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5908 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5909 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5914 #if PYTHON_API_VERSION >= 1009
5915 char* tmpPtr
; int tmpSize
;
5916 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5917 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5920 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5922 _arg1
= new wxString(tmpPtr
, tmpSize
);
5924 if (!PyString_Check(_obj1
)) {
5925 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5928 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5932 wxPy_BEGIN_ALLOW_THREADS
;
5933 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
5935 wxPy_END_ALLOW_THREADS
;
5936 } Py_INCREF(Py_None
);
5937 _resultobj
= Py_None
;
5945 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5946 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5947 PyObject
* _resultobj
;
5949 PyObject
* _argo0
= 0;
5950 char *_kwnames
[] = { "self", NULL
};
5953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
5956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5963 wxPy_BEGIN_ALLOW_THREADS
;
5966 wxPy_END_ALLOW_THREADS
;
5967 } Py_INCREF(Py_None
);
5968 _resultobj
= Py_None
;
5972 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
5973 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5974 PyObject
* _resultobj
;
5976 PyObject
* _argo0
= 0;
5977 char *_kwnames
[] = { "self", NULL
};
5980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
5983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5990 wxPy_BEGIN_ALLOW_THREADS
;
5991 wxDC_EndDrawing(_arg0
);
5993 wxPy_END_ALLOW_THREADS
;
5994 } Py_INCREF(Py_None
);
5995 _resultobj
= Py_None
;
5999 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
6000 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6001 PyObject
* _resultobj
;
6003 PyObject
* _argo0
= 0;
6004 char *_kwnames
[] = { "self", NULL
};
6007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
6010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6017 wxPy_BEGIN_ALLOW_THREADS
;
6018 wxDC_EndPage(_arg0
);
6020 wxPy_END_ALLOW_THREADS
;
6021 } Py_INCREF(Py_None
);
6022 _resultobj
= Py_None
;
6026 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6027 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6028 PyObject
* _resultobj
;
6033 int _arg4
= (int ) wxFLOOD_SURFACE
;
6034 PyObject
* _argo0
= 0;
6036 PyObject
* _obj3
= 0;
6037 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
6040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
6043 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6044 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6051 if (! wxColour_helper(_obj3
, &_arg3
))
6055 wxPy_BEGIN_ALLOW_THREADS
;
6056 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
6058 wxPy_END_ALLOW_THREADS
;
6059 } Py_INCREF(Py_None
);
6060 _resultobj
= Py_None
;
6064 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
6065 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6066 PyObject
* _resultobj
;
6069 PyObject
* _argo0
= 0;
6070 char *_kwnames
[] = { "self", NULL
};
6074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
6077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6084 wxPy_BEGIN_ALLOW_THREADS
;
6085 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
6086 _result
= (wxBrush
*) &_result_ref
;
6088 wxPy_END_ALLOW_THREADS
;
6090 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6091 _resultobj
= Py_BuildValue("s",_ptemp
);
6094 _resultobj
= Py_None
;
6099 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
6100 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6101 PyObject
* _resultobj
;
6104 PyObject
* _argo0
= 0;
6105 char *_kwnames
[] = { "self", NULL
};
6109 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
6112 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6113 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6119 wxPy_BEGIN_ALLOW_THREADS
;
6120 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
6121 _result
= (wxBrush
*) &_result_ref
;
6123 wxPy_END_ALLOW_THREADS
;
6125 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6126 _resultobj
= Py_BuildValue("s",_ptemp
);
6129 _resultobj
= Py_None
;
6134 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
6135 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6136 PyObject
* _resultobj
;
6139 PyObject
* _argo0
= 0;
6140 char *_kwnames
[] = { "self", NULL
};
6143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
6146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6153 wxPy_BEGIN_ALLOW_THREADS
;
6154 _result
= (long )wxDC_GetCharHeight(_arg0
);
6156 wxPy_END_ALLOW_THREADS
;
6157 } _resultobj
= Py_BuildValue("l",_result
);
6161 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
6162 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6163 PyObject
* _resultobj
;
6166 PyObject
* _argo0
= 0;
6167 char *_kwnames
[] = { "self", NULL
};
6170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
6173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6180 wxPy_BEGIN_ALLOW_THREADS
;
6181 _result
= (long )wxDC_GetCharWidth(_arg0
);
6183 wxPy_END_ALLOW_THREADS
;
6184 } _resultobj
= Py_BuildValue("l",_result
);
6188 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6189 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6190 PyObject
* _resultobj
;
6200 PyObject
* _argo0
= 0;
6201 char *_kwnames
[] = { "self", NULL
};
6216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
6219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6226 wxPy_BEGIN_ALLOW_THREADS
;
6227 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6229 wxPy_END_ALLOW_THREADS
;
6230 } Py_INCREF(Py_None
);
6231 _resultobj
= Py_None
;
6234 o
= PyInt_FromLong((long) (*_arg1
));
6235 _resultobj
= t_output_helper(_resultobj
, o
);
6239 o
= PyInt_FromLong((long) (*_arg2
));
6240 _resultobj
= t_output_helper(_resultobj
, o
);
6244 o
= PyInt_FromLong((long) (*_arg3
));
6245 _resultobj
= t_output_helper(_resultobj
, o
);
6249 o
= PyInt_FromLong((long) (*_arg4
));
6250 _resultobj
= t_output_helper(_resultobj
, o
);
6255 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6256 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6257 PyObject
* _resultobj
;
6260 PyObject
* _argo0
= 0;
6261 char *_kwnames
[] = { "self", NULL
};
6265 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
6268 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6269 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6270 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6275 wxPy_BEGIN_ALLOW_THREADS
;
6276 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
6277 _result
= (wxFont
*) &_result_ref
;
6279 wxPy_END_ALLOW_THREADS
;
6281 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
6282 _resultobj
= Py_BuildValue("s",_ptemp
);
6285 _resultobj
= Py_None
;
6290 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6291 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6292 PyObject
* _resultobj
;
6295 PyObject
* _argo0
= 0;
6296 char *_kwnames
[] = { "self", NULL
};
6299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
6302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6309 wxPy_BEGIN_ALLOW_THREADS
;
6310 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
6312 wxPy_END_ALLOW_THREADS
;
6313 } _resultobj
= Py_BuildValue("i",_result
);
6317 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6318 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6319 PyObject
* _resultobj
;
6325 PyObject
* _argo0
= 0;
6326 char *_kwnames
[] = { "self", NULL
};
6335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
6338 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6339 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
6345 wxPy_BEGIN_ALLOW_THREADS
;
6346 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
6348 wxPy_END_ALLOW_THREADS
;
6349 } Py_INCREF(Py_None
);
6350 _resultobj
= Py_None
;
6353 o
= PyFloat_FromDouble((double) (*_arg1
));
6354 _resultobj
= t_output_helper(_resultobj
, o
);
6358 o
= PyFloat_FromDouble((double) (*_arg2
));
6359 _resultobj
= t_output_helper(_resultobj
, o
);
6364 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6365 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6366 PyObject
* _resultobj
;
6369 PyObject
* _argo0
= 0;
6370 char *_kwnames
[] = { "self", NULL
};
6373 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
6376 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6377 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6378 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6383 wxPy_BEGIN_ALLOW_THREADS
;
6384 _result
= (int )wxDC_GetMapMode(_arg0
);
6386 wxPy_END_ALLOW_THREADS
;
6387 } _resultobj
= Py_BuildValue("i",_result
);
6391 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6392 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6393 PyObject
* _resultobj
;
6396 PyObject
* _argo0
= 0;
6397 char *_kwnames
[] = { "self", NULL
};
6400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
6403 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6404 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6410 wxPy_BEGIN_ALLOW_THREADS
;
6411 _result
= (bool )wxDC_GetOptimization(_arg0
);
6413 wxPy_END_ALLOW_THREADS
;
6414 } _resultobj
= Py_BuildValue("i",_result
);
6418 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6419 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6420 PyObject
* _resultobj
;
6423 PyObject
* _argo0
= 0;
6424 char *_kwnames
[] = { "self", NULL
};
6428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
6431 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6432 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6433 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6438 wxPy_BEGIN_ALLOW_THREADS
;
6439 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
6440 _result
= (wxPen
*) &_result_ref
;
6442 wxPy_END_ALLOW_THREADS
;
6444 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6445 _resultobj
= Py_BuildValue("s",_ptemp
);
6448 _resultobj
= Py_None
;
6453 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
6454 wxColour
* wc
= new wxColour();
6455 self
->GetPixel(x
, y
, wc
);
6458 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6459 PyObject
* _resultobj
;
6464 PyObject
* _argo0
= 0;
6465 char *_kwnames
[] = { "self","x","y", NULL
};
6469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6479 wxPy_BEGIN_ALLOW_THREADS
;
6480 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
6482 wxPy_END_ALLOW_THREADS
;
6484 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6485 _resultobj
= Py_BuildValue("s",_ptemp
);
6488 _resultobj
= Py_None
;
6493 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6494 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6495 PyObject
* _resultobj
;
6501 PyObject
* _argo0
= 0;
6502 char *_kwnames
[] = { "self", NULL
};
6511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
6514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6521 wxPy_BEGIN_ALLOW_THREADS
;
6522 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
6524 wxPy_END_ALLOW_THREADS
;
6525 } Py_INCREF(Py_None
);
6526 _resultobj
= Py_None
;
6529 o
= PyInt_FromLong((long) (*_arg1
));
6530 _resultobj
= t_output_helper(_resultobj
, o
);
6534 o
= PyInt_FromLong((long) (*_arg2
));
6535 _resultobj
= t_output_helper(_resultobj
, o
);
6540 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6541 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6542 PyObject
* _resultobj
;
6545 PyObject
* _argo0
= 0;
6546 char *_kwnames
[] = { "self", NULL
};
6550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
6553 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6554 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6560 wxPy_BEGIN_ALLOW_THREADS
;
6561 _result
= new wxSize (wxDC_GetSize(_arg0
));
6563 wxPy_END_ALLOW_THREADS
;
6564 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6565 _resultobj
= Py_BuildValue("s",_ptemp
);
6569 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6570 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6571 PyObject
* _resultobj
;
6574 PyObject
* _argo0
= 0;
6575 char *_kwnames
[] = { "self", NULL
};
6579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
6582 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6583 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6584 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6589 wxPy_BEGIN_ALLOW_THREADS
;
6590 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
6592 wxPy_END_ALLOW_THREADS
;
6593 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6594 _resultobj
= Py_BuildValue("s",_ptemp
);
6598 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
6599 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6600 PyObject
* _resultobj
;
6603 PyObject
* _argo0
= 0;
6604 char *_kwnames
[] = { "self", NULL
};
6608 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
6611 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6612 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6613 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
6618 wxPy_BEGIN_ALLOW_THREADS
;
6619 wxColour
& _result_ref
= wxDC_GetTextBackground(_arg0
);
6620 _result
= (wxColour
*) &_result_ref
;
6622 wxPy_END_ALLOW_THREADS
;
6624 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6625 _resultobj
= Py_BuildValue("s",_ptemp
);
6628 _resultobj
= Py_None
;
6633 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
6634 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6635 PyObject
* _resultobj
;
6642 PyObject
* _argo0
= 0;
6643 PyObject
* _obj1
= 0;
6644 char *_kwnames
[] = { "self","string", NULL
};
6653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
6656 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6657 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6663 #if PYTHON_API_VERSION >= 1009
6664 char* tmpPtr
; int tmpSize
;
6665 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6666 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6669 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6671 _arg1
= new wxString(tmpPtr
, tmpSize
);
6673 if (!PyString_Check(_obj1
)) {
6674 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6677 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6681 wxPy_BEGIN_ALLOW_THREADS
;
6682 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
6684 wxPy_END_ALLOW_THREADS
;
6685 } Py_INCREF(Py_None
);
6686 _resultobj
= Py_None
;
6689 o
= PyInt_FromLong((long) (*_arg2
));
6690 _resultobj
= t_output_helper(_resultobj
, o
);
6694 o
= PyInt_FromLong((long) (*_arg3
));
6695 _resultobj
= t_output_helper(_resultobj
, o
);
6704 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6705 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6706 PyObject
* _resultobj
;
6717 wxFont
* _arg6
= (wxFont
*) NULL
;
6718 PyObject
* _argo0
= 0;
6719 PyObject
* _obj1
= 0;
6720 PyObject
* _argo6
= 0;
6721 char *_kwnames
[] = { "self","string","font", NULL
};
6736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
6739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
6746 #if PYTHON_API_VERSION >= 1009
6747 char* tmpPtr
; int tmpSize
;
6748 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6749 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6752 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6754 _arg1
= new wxString(tmpPtr
, tmpSize
);
6756 if (!PyString_Check(_obj1
)) {
6757 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6760 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6764 if (_argo6
== Py_None
) { _arg6
= NULL
; }
6765 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
6766 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6771 wxPy_BEGIN_ALLOW_THREADS
;
6772 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6774 wxPy_END_ALLOW_THREADS
;
6775 } Py_INCREF(Py_None
);
6776 _resultobj
= Py_None
;
6779 o
= PyInt_FromLong((long) (*_arg2
));
6780 _resultobj
= t_output_helper(_resultobj
, o
);
6784 o
= PyInt_FromLong((long) (*_arg3
));
6785 _resultobj
= t_output_helper(_resultobj
, o
);
6789 o
= PyInt_FromLong((long) (*_arg4
));
6790 _resultobj
= t_output_helper(_resultobj
, o
);
6794 o
= PyInt_FromLong((long) (*_arg5
));
6795 _resultobj
= t_output_helper(_resultobj
, o
);
6804 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6805 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6806 PyObject
* _resultobj
;
6809 PyObject
* _argo0
= 0;
6810 char *_kwnames
[] = { "self", NULL
};
6814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
6817 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6818 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6824 wxPy_BEGIN_ALLOW_THREADS
;
6825 wxColour
& _result_ref
= wxDC_GetTextForeground(_arg0
);
6826 _result
= (wxColour
*) &_result_ref
;
6828 wxPy_END_ALLOW_THREADS
;
6830 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6831 _resultobj
= Py_BuildValue("s",_ptemp
);
6834 _resultobj
= Py_None
;
6839 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6840 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6841 PyObject
* _resultobj
;
6847 PyObject
* _argo0
= 0;
6848 char *_kwnames
[] = { "self", NULL
};
6857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
6860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6867 wxPy_BEGIN_ALLOW_THREADS
;
6868 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
6870 wxPy_END_ALLOW_THREADS
;
6871 } Py_INCREF(Py_None
);
6872 _resultobj
= Py_None
;
6875 o
= PyFloat_FromDouble((double) (*_arg1
));
6876 _resultobj
= t_output_helper(_resultobj
, o
);
6880 o
= PyFloat_FromDouble((double) (*_arg2
));
6881 _resultobj
= t_output_helper(_resultobj
, o
);
6886 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6887 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6888 PyObject
* _resultobj
;
6892 PyObject
* _argo0
= 0;
6893 char *_kwnames
[] = { "self","x", NULL
};
6896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
6899 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6900 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6901 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6906 wxPy_BEGIN_ALLOW_THREADS
;
6907 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
6909 wxPy_END_ALLOW_THREADS
;
6910 } _resultobj
= Py_BuildValue("l",_result
);
6914 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6915 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6916 PyObject
* _resultobj
;
6920 PyObject
* _argo0
= 0;
6921 char *_kwnames
[] = { "self","x", NULL
};
6924 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
6927 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6928 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6929 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6934 wxPy_BEGIN_ALLOW_THREADS
;
6935 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
6937 wxPy_END_ALLOW_THREADS
;
6938 } _resultobj
= Py_BuildValue("l",_result
);
6942 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
6943 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6944 PyObject
* _resultobj
;
6948 PyObject
* _argo0
= 0;
6949 char *_kwnames
[] = { "self","y", NULL
};
6952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
6955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
6962 wxPy_BEGIN_ALLOW_THREADS
;
6963 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
6965 wxPy_END_ALLOW_THREADS
;
6966 } _resultobj
= Py_BuildValue("l",_result
);
6970 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
6971 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6972 PyObject
* _resultobj
;
6976 PyObject
* _argo0
= 0;
6977 char *_kwnames
[] = { "self","y", NULL
};
6980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
6983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
6990 wxPy_BEGIN_ALLOW_THREADS
;
6991 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
6993 wxPy_END_ALLOW_THREADS
;
6994 } _resultobj
= Py_BuildValue("l",_result
);
6998 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
6999 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7000 PyObject
* _resultobj
;
7003 PyObject
* _argo0
= 0;
7004 char *_kwnames
[] = { "self", NULL
};
7007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
7010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7017 wxPy_BEGIN_ALLOW_THREADS
;
7018 _result
= (long )wxDC_MaxX(_arg0
);
7020 wxPy_END_ALLOW_THREADS
;
7021 } _resultobj
= Py_BuildValue("l",_result
);
7025 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7026 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7027 PyObject
* _resultobj
;
7030 PyObject
* _argo0
= 0;
7031 char *_kwnames
[] = { "self", NULL
};
7034 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
7037 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7038 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7039 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7044 wxPy_BEGIN_ALLOW_THREADS
;
7045 _result
= (long )wxDC_MaxY(_arg0
);
7047 wxPy_END_ALLOW_THREADS
;
7048 } _resultobj
= Py_BuildValue("l",_result
);
7052 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
7053 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7054 PyObject
* _resultobj
;
7057 PyObject
* _argo0
= 0;
7058 char *_kwnames
[] = { "self", NULL
};
7061 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
7064 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7065 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7066 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7071 wxPy_BEGIN_ALLOW_THREADS
;
7072 _result
= (long )wxDC_MinX(_arg0
);
7074 wxPy_END_ALLOW_THREADS
;
7075 } _resultobj
= Py_BuildValue("l",_result
);
7079 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
7080 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7081 PyObject
* _resultobj
;
7084 PyObject
* _argo0
= 0;
7085 char *_kwnames
[] = { "self", NULL
};
7088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
7091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7098 wxPy_BEGIN_ALLOW_THREADS
;
7099 _result
= (long )wxDC_MinY(_arg0
);
7101 wxPy_END_ALLOW_THREADS
;
7102 } _resultobj
= Py_BuildValue("l",_result
);
7106 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
7107 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7108 PyObject
* _resultobj
;
7111 PyObject
* _argo0
= 0;
7112 char *_kwnames
[] = { "self", NULL
};
7115 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
7118 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7119 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7120 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7125 wxPy_BEGIN_ALLOW_THREADS
;
7126 _result
= (bool )wxDC_Ok(_arg0
);
7128 wxPy_END_ALLOW_THREADS
;
7129 } _resultobj
= Py_BuildValue("i",_result
);
7133 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
7134 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7135 PyObject
* _resultobj
;
7139 PyObject
* _argo0
= 0;
7140 char *_kwnames
[] = { "self","x","y", NULL
};
7143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7153 wxPy_BEGIN_ALLOW_THREADS
;
7154 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7156 wxPy_END_ALLOW_THREADS
;
7157 } Py_INCREF(Py_None
);
7158 _resultobj
= Py_None
;
7162 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
7163 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7164 PyObject
* _resultobj
;
7167 PyObject
* _argo0
= 0;
7168 PyObject
* _argo1
= 0;
7169 char *_kwnames
[] = { "self","brush", NULL
};
7172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
7175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7182 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7183 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7184 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7189 wxPy_BEGIN_ALLOW_THREADS
;
7190 wxDC_SetBackground(_arg0
,*_arg1
);
7192 wxPy_END_ALLOW_THREADS
;
7193 } Py_INCREF(Py_None
);
7194 _resultobj
= Py_None
;
7198 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
7199 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7200 PyObject
* _resultobj
;
7203 PyObject
* _argo0
= 0;
7204 char *_kwnames
[] = { "self","mode", NULL
};
7207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
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_SetBackgroundMode. Expected _wxDC_p.");
7217 wxPy_BEGIN_ALLOW_THREADS
;
7218 wxDC_SetBackgroundMode(_arg0
,_arg1
);
7220 wxPy_END_ALLOW_THREADS
;
7221 } Py_INCREF(Py_None
);
7222 _resultobj
= Py_None
;
7226 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7227 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7228 PyObject
* _resultobj
;
7234 PyObject
* _argo0
= 0;
7235 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7241 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7242 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7243 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7248 wxPy_BEGIN_ALLOW_THREADS
;
7249 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7251 wxPy_END_ALLOW_THREADS
;
7252 } Py_INCREF(Py_None
);
7253 _resultobj
= Py_None
;
7257 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
7258 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7259 PyObject
* _resultobj
;
7262 PyObject
* _argo0
= 0;
7263 PyObject
* _argo1
= 0;
7264 char *_kwnames
[] = { "self","colourMap", NULL
};
7267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
7270 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7271 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
7277 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7278 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
7279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
7284 wxPy_BEGIN_ALLOW_THREADS
;
7285 wxDC_SetPalette(_arg0
,*_arg1
);
7287 wxPy_END_ALLOW_THREADS
;
7288 } Py_INCREF(Py_None
);
7289 _resultobj
= Py_None
;
7293 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
7294 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7295 PyObject
* _resultobj
;
7298 PyObject
* _argo0
= 0;
7299 PyObject
* _argo1
= 0;
7300 char *_kwnames
[] = { "self","brush", NULL
};
7303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
7306 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7307 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
7313 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7314 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
7320 wxPy_BEGIN_ALLOW_THREADS
;
7321 wxDC_SetBrush(_arg0
,*_arg1
);
7323 wxPy_END_ALLOW_THREADS
;
7324 } Py_INCREF(Py_None
);
7325 _resultobj
= Py_None
;
7329 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7330 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7331 PyObject
* _resultobj
;
7334 PyObject
* _argo0
= 0;
7335 PyObject
* _argo1
= 0;
7336 char *_kwnames
[] = { "self","font", NULL
};
7339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
7342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7349 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7350 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
7351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7356 wxPy_BEGIN_ALLOW_THREADS
;
7357 wxDC_SetFont(_arg0
,*_arg1
);
7359 wxPy_END_ALLOW_THREADS
;
7360 } Py_INCREF(Py_None
);
7361 _resultobj
= Py_None
;
7365 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7366 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7367 PyObject
* _resultobj
;
7370 PyObject
* _argo0
= 0;
7371 char *_kwnames
[] = { "self","function", NULL
};
7374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7377 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7378 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7379 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7384 wxPy_BEGIN_ALLOW_THREADS
;
7385 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7387 wxPy_END_ALLOW_THREADS
;
7388 } Py_INCREF(Py_None
);
7389 _resultobj
= Py_None
;
7393 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7394 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7395 PyObject
* _resultobj
;
7399 PyObject
* _argo0
= 0;
7400 char *_kwnames
[] = { "self","x","y", NULL
};
7403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7413 wxPy_BEGIN_ALLOW_THREADS
;
7414 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7416 wxPy_END_ALLOW_THREADS
;
7417 } Py_INCREF(Py_None
);
7418 _resultobj
= Py_None
;
7422 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7423 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7424 PyObject
* _resultobj
;
7427 PyObject
* _argo0
= 0;
7428 char *_kwnames
[] = { "self","mode", NULL
};
7431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
7434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7441 wxPy_BEGIN_ALLOW_THREADS
;
7442 wxDC_SetMapMode(_arg0
,_arg1
);
7444 wxPy_END_ALLOW_THREADS
;
7445 } Py_INCREF(Py_None
);
7446 _resultobj
= Py_None
;
7450 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7451 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7452 PyObject
* _resultobj
;
7455 PyObject
* _argo0
= 0;
7457 char *_kwnames
[] = { "self","optimize", NULL
};
7460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
7463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7469 _arg1
= (bool ) tempbool1
;
7471 wxPy_BEGIN_ALLOW_THREADS
;
7472 wxDC_SetOptimization(_arg0
,_arg1
);
7474 wxPy_END_ALLOW_THREADS
;
7475 } Py_INCREF(Py_None
);
7476 _resultobj
= Py_None
;
7480 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7481 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7482 PyObject
* _resultobj
;
7485 PyObject
* _argo0
= 0;
7486 PyObject
* _argo1
= 0;
7487 char *_kwnames
[] = { "self","pen", NULL
};
7490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
7493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7500 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7501 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
7502 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7507 wxPy_BEGIN_ALLOW_THREADS
;
7508 wxDC_SetPen(_arg0
,*_arg1
);
7510 wxPy_END_ALLOW_THREADS
;
7511 } Py_INCREF(Py_None
);
7512 _resultobj
= Py_None
;
7516 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7517 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7518 PyObject
* _resultobj
;
7521 PyObject
* _argo0
= 0;
7523 PyObject
* _obj1
= 0;
7524 char *_kwnames
[] = { "self","colour", NULL
};
7527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
7530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7538 if (! wxColour_helper(_obj1
, &_arg1
))
7542 wxPy_BEGIN_ALLOW_THREADS
;
7543 wxDC_SetTextBackground(_arg0
,*_arg1
);
7545 wxPy_END_ALLOW_THREADS
;
7546 } Py_INCREF(Py_None
);
7547 _resultobj
= Py_None
;
7551 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
7552 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7553 PyObject
* _resultobj
;
7556 PyObject
* _argo0
= 0;
7558 PyObject
* _obj1
= 0;
7559 char *_kwnames
[] = { "self","colour", NULL
};
7562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
7565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7573 if (! wxColour_helper(_obj1
, &_arg1
))
7577 wxPy_BEGIN_ALLOW_THREADS
;
7578 wxDC_SetTextForeground(_arg0
,*_arg1
);
7580 wxPy_END_ALLOW_THREADS
;
7581 } Py_INCREF(Py_None
);
7582 _resultobj
= Py_None
;
7586 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
7587 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7588 PyObject
* _resultobj
;
7592 PyObject
* _argo0
= 0;
7593 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
7596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
7606 wxPy_BEGIN_ALLOW_THREADS
;
7607 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
7609 wxPy_END_ALLOW_THREADS
;
7610 } Py_INCREF(Py_None
);
7611 _resultobj
= Py_None
;
7615 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
7616 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7617 PyObject
* _resultobj
;
7621 PyObject
* _argo0
= 0;
7622 PyObject
* _obj1
= 0;
7623 char *_kwnames
[] = { "self","message", NULL
};
7626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
7629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7636 #if PYTHON_API_VERSION >= 1009
7637 char* tmpPtr
; int tmpSize
;
7638 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7639 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7642 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7644 _arg1
= new wxString(tmpPtr
, tmpSize
);
7646 if (!PyString_Check(_obj1
)) {
7647 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7650 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7654 wxPy_BEGIN_ALLOW_THREADS
;
7655 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
7657 wxPy_END_ALLOW_THREADS
;
7658 } _resultobj
= Py_BuildValue("i",_result
);
7666 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
7667 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7668 PyObject
* _resultobj
;
7670 PyObject
* _argo0
= 0;
7671 char *_kwnames
[] = { "self", NULL
};
7674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
7677 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7678 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7684 wxPy_BEGIN_ALLOW_THREADS
;
7685 wxDC_StartPage(_arg0
);
7687 wxPy_END_ALLOW_THREADS
;
7688 } Py_INCREF(Py_None
);
7689 _resultobj
= Py_None
;
7693 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7694 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7695 PyObject
* _resultobj
;
7700 int _arg4
= (int ) FALSE
;
7701 PyObject
* _argo0
= 0;
7702 PyObject
* _argo1
= 0;
7703 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
7706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
7709 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7710 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
7716 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7717 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
7723 wxPy_BEGIN_ALLOW_THREADS
;
7724 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7726 wxPy_END_ALLOW_THREADS
;
7727 } Py_INCREF(Py_None
);
7728 _resultobj
= Py_None
;
7732 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
7733 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7734 PyObject
* _resultobj
;
7737 PyObject
* _argo0
= 0;
7738 char *_kwnames
[] = { "self", NULL
};
7741 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
7744 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7745 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
7751 wxPy_BEGIN_ALLOW_THREADS
;
7752 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
7754 wxPy_END_ALLOW_THREADS
;
7755 } _resultobj
= Py_BuildValue("i",_result
);
7759 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
7760 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7761 PyObject
* _resultobj
;
7764 PyObject
* _argo0
= 0;
7765 char *_kwnames
[] = { "self", NULL
};
7768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
7771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
7778 wxPy_BEGIN_ALLOW_THREADS
;
7779 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
7781 wxPy_END_ALLOW_THREADS
;
7782 } _resultobj
= Py_BuildValue("i",_result
);
7786 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7787 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7788 PyObject
* _resultobj
;
7791 PyObject
* _argo0
= 0;
7792 char *_kwnames
[] = { "self", NULL
};
7795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
7798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7805 wxPy_BEGIN_ALLOW_THREADS
;
7806 _result
= (int )wxDC_GetDepth(_arg0
);
7808 wxPy_END_ALLOW_THREADS
;
7809 } _resultobj
= Py_BuildValue("i",_result
);
7813 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7814 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7815 PyObject
* _resultobj
;
7818 PyObject
* _argo0
= 0;
7819 char *_kwnames
[] = { "self", NULL
};
7823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
7826 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7827 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7833 wxPy_BEGIN_ALLOW_THREADS
;
7834 _result
= new wxSize (wxDC_GetPPI(_arg0
));
7836 wxPy_END_ALLOW_THREADS
;
7837 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7838 _resultobj
= Py_BuildValue("s",_ptemp
);
7842 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7843 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7844 PyObject
* _resultobj
;
7850 PyObject
* _argo0
= 0;
7851 char *_kwnames
[] = { "self", NULL
};
7860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
7863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
7870 wxPy_BEGIN_ALLOW_THREADS
;
7871 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7873 wxPy_END_ALLOW_THREADS
;
7874 } Py_INCREF(Py_None
);
7875 _resultobj
= Py_None
;
7878 o
= PyInt_FromLong((long) (*_arg1
));
7879 _resultobj
= t_output_helper(_resultobj
, o
);
7883 o
= PyInt_FromLong((long) (*_arg2
));
7884 _resultobj
= t_output_helper(_resultobj
, o
);
7889 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7890 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7891 PyObject
* _resultobj
;
7895 PyObject
* _argo0
= 0;
7896 char *_kwnames
[] = { "self","x","y", NULL
};
7899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7909 wxPy_BEGIN_ALLOW_THREADS
;
7910 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7912 wxPy_END_ALLOW_THREADS
;
7913 } Py_INCREF(Py_None
);
7914 _resultobj
= Py_None
;
7918 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7919 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7920 PyObject
* _resultobj
;
7926 PyObject
* _argo0
= 0;
7927 char *_kwnames
[] = { "self", NULL
};
7936 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
7939 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7940 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7941 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7946 wxPy_BEGIN_ALLOW_THREADS
;
7947 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7949 wxPy_END_ALLOW_THREADS
;
7950 } Py_INCREF(Py_None
);
7951 _resultobj
= Py_None
;
7954 o
= PyInt_FromLong((long) (*_arg1
));
7955 _resultobj
= t_output_helper(_resultobj
, o
);
7959 o
= PyInt_FromLong((long) (*_arg2
));
7960 _resultobj
= t_output_helper(_resultobj
, o
);
7965 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7966 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7967 PyObject
* _resultobj
;
7971 PyObject
* _argo0
= 0;
7974 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
7977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
7980 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7981 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7986 _arg1
= (bool ) tempbool1
;
7987 _arg2
= (bool ) tempbool2
;
7989 wxPy_BEGIN_ALLOW_THREADS
;
7990 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
7992 wxPy_END_ALLOW_THREADS
;
7993 } Py_INCREF(Py_None
);
7994 _resultobj
= Py_None
;
7998 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7999 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8000 PyObject
* _resultobj
;
8004 PyObject
* _argo0
= 0;
8005 char *_kwnames
[] = { "self","x","y", NULL
};
8008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8011 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8012 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8018 wxPy_BEGIN_ALLOW_THREADS
;
8019 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
8021 wxPy_END_ALLOW_THREADS
;
8022 } Py_INCREF(Py_None
);
8023 _resultobj
= Py_None
;
8027 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8028 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8029 PyObject
* _resultobj
;
8031 PyObject
* _argo0
= 0;
8032 char *_kwnames
[] = { "self", NULL
};
8035 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
8038 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8039 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8045 wxPy_BEGIN_ALLOW_THREADS
;
8046 wxDC_ResetBoundingBox(_arg0
);
8048 wxPy_END_ALLOW_THREADS
;
8049 } Py_INCREF(Py_None
);
8050 _resultobj
= Py_None
;
8054 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
8057 src
= (wxMemoryDC
*) ptr
;
8058 dest
= (wxDC
*) src
;
8059 return (void *) dest
;
8062 #define new_wxMemoryDC() (new wxMemoryDC())
8063 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8064 PyObject
* _resultobj
;
8065 wxMemoryDC
* _result
;
8066 char *_kwnames
[] = { NULL
};
8070 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
8073 wxPy_BEGIN_ALLOW_THREADS
;
8074 _result
= (wxMemoryDC
*)new_wxMemoryDC();
8076 wxPy_END_ALLOW_THREADS
;
8078 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
8079 _resultobj
= Py_BuildValue("s",_ptemp
);
8082 _resultobj
= Py_None
;
8087 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
8088 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8089 PyObject
* _resultobj
;
8092 PyObject
* _argo0
= 0;
8093 PyObject
* _argo1
= 0;
8094 char *_kwnames
[] = { "self","bitmap", NULL
};
8097 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
8100 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8101 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
8102 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
8107 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8108 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
8114 wxPy_BEGIN_ALLOW_THREADS
;
8115 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
8117 wxPy_END_ALLOW_THREADS
;
8118 } Py_INCREF(Py_None
);
8119 _resultobj
= Py_None
;
8123 static void *SwigwxScreenDCTowxDC(void *ptr
) {
8126 src
= (wxScreenDC
*) ptr
;
8127 dest
= (wxDC
*) src
;
8128 return (void *) dest
;
8131 #define new_wxScreenDC() (new wxScreenDC())
8132 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8133 PyObject
* _resultobj
;
8134 wxScreenDC
* _result
;
8135 char *_kwnames
[] = { NULL
};
8139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
8142 wxPy_BEGIN_ALLOW_THREADS
;
8143 _result
= (wxScreenDC
*)new_wxScreenDC();
8145 wxPy_END_ALLOW_THREADS
;
8147 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
8148 _resultobj
= Py_BuildValue("s",_ptemp
);
8151 _resultobj
= Py_None
;
8156 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8157 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8158 PyObject
* _resultobj
;
8162 PyObject
* _argo0
= 0;
8163 PyObject
* _argo1
= 0;
8164 char *_kwnames
[] = { "self","window", NULL
};
8167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
8170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
8177 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8178 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
8184 wxPy_BEGIN_ALLOW_THREADS
;
8185 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
8187 wxPy_END_ALLOW_THREADS
;
8188 } _resultobj
= Py_BuildValue("i",_result
);
8192 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8193 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8194 PyObject
* _resultobj
;
8197 wxRect
* _arg1
= (wxRect
*) NULL
;
8198 PyObject
* _argo0
= 0;
8200 PyObject
* _obj1
= 0;
8201 char *_kwnames
[] = { "self","rect", NULL
};
8204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
8207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
8216 if (! wxRect_helper(_obj1
, &_arg1
))
8220 wxPy_BEGIN_ALLOW_THREADS
;
8221 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
8223 wxPy_END_ALLOW_THREADS
;
8224 } _resultobj
= Py_BuildValue("i",_result
);
8228 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
8229 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8230 PyObject
* _resultobj
;
8233 PyObject
* _argo0
= 0;
8234 char *_kwnames
[] = { "self", NULL
};
8237 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
8240 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8241 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8242 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8247 wxPy_BEGIN_ALLOW_THREADS
;
8248 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
8250 wxPy_END_ALLOW_THREADS
;
8251 } _resultobj
= Py_BuildValue("i",_result
);
8255 static void *SwigwxClientDCTowxDC(void *ptr
) {
8258 src
= (wxClientDC
*) ptr
;
8259 dest
= (wxDC
*) src
;
8260 return (void *) dest
;
8263 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
8264 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8265 PyObject
* _resultobj
;
8266 wxClientDC
* _result
;
8268 PyObject
* _argo0
= 0;
8269 char *_kwnames
[] = { "win", NULL
};
8273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
8276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8283 wxPy_BEGIN_ALLOW_THREADS
;
8284 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
8286 wxPy_END_ALLOW_THREADS
;
8288 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
8289 _resultobj
= Py_BuildValue("s",_ptemp
);
8292 _resultobj
= Py_None
;
8297 static void *SwigwxPaintDCTowxDC(void *ptr
) {
8300 src
= (wxPaintDC
*) ptr
;
8301 dest
= (wxDC
*) src
;
8302 return (void *) dest
;
8305 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8306 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8307 PyObject
* _resultobj
;
8308 wxPaintDC
* _result
;
8310 PyObject
* _argo0
= 0;
8311 char *_kwnames
[] = { "win", NULL
};
8315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8325 wxPy_BEGIN_ALLOW_THREADS
;
8326 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8328 wxPy_END_ALLOW_THREADS
;
8330 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8331 _resultobj
= Py_BuildValue("s",_ptemp
);
8334 _resultobj
= Py_None
;
8339 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8342 src
= (wxWindowDC
*) ptr
;
8343 dest
= (wxDC
*) src
;
8344 return (void *) dest
;
8347 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8348 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8349 PyObject
* _resultobj
;
8350 wxWindowDC
* _result
;
8352 PyObject
* _argo0
= 0;
8353 char *_kwnames
[] = { "win", NULL
};
8357 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
8360 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8361 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8362 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8367 wxPy_BEGIN_ALLOW_THREADS
;
8368 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
8370 wxPy_END_ALLOW_THREADS
;
8372 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
8373 _resultobj
= Py_BuildValue("s",_ptemp
);
8376 _resultobj
= Py_None
;
8381 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
8384 src
= (wxMetaFileDC
*) ptr
;
8385 dest
= (wxDC
*) src
;
8386 return (void *) dest
;
8389 #define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0))
8390 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8391 PyObject
* _resultobj
;
8392 wxMetaFileDC
* _result
;
8393 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
8394 PyObject
* _obj0
= 0;
8395 char *_kwnames
[] = { "filename", NULL
};
8399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFileDC",_kwnames
,&_obj0
))
8403 #if PYTHON_API_VERSION >= 1009
8404 char* tmpPtr
; int tmpSize
;
8405 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
8406 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8409 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
8411 _arg0
= new wxString(tmpPtr
, tmpSize
);
8413 if (!PyString_Check(_obj0
)) {
8414 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8417 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
8421 wxPy_BEGIN_ALLOW_THREADS
;
8422 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
);
8424 wxPy_END_ALLOW_THREADS
;
8426 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
8427 _resultobj
= Py_BuildValue("s",_ptemp
);
8430 _resultobj
= Py_None
;
8439 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
8440 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8441 PyObject
* _resultobj
;
8442 wxMetaFile
* _result
;
8443 wxMetaFileDC
* _arg0
;
8444 PyObject
* _argo0
= 0;
8445 char *_kwnames
[] = { "self", NULL
};
8449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
8452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
8454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
8459 wxPy_BEGIN_ALLOW_THREADS
;
8460 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
8462 wxPy_END_ALLOW_THREADS
;
8464 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
8465 _resultobj
= Py_BuildValue("s",_ptemp
);
8468 _resultobj
= Py_None
;
8473 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8474 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8475 PyObject
* _resultobj
;
8476 wxPalette
* _result
;
8481 PyObject
* _obj1
= 0;
8482 PyObject
* _obj2
= 0;
8483 PyObject
* _obj3
= 0;
8484 char *_kwnames
[] = { "choices","choices","choices", NULL
};
8488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
8491 _arg1
= byte_LIST_helper(_obj1
);
8492 if (_arg1
== NULL
) {
8497 _arg2
= byte_LIST_helper(_obj2
);
8498 if (_arg2
== NULL
) {
8504 _arg3
= byte_LIST_helper(_obj3
);
8505 if (_arg3
== NULL
) {
8511 _arg0
= PyList_Size(_obj1
);
8518 wxPy_BEGIN_ALLOW_THREADS
;
8519 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
8521 wxPy_END_ALLOW_THREADS
;
8523 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
8524 _resultobj
= Py_BuildValue("s",_ptemp
);
8527 _resultobj
= Py_None
;
8541 #define delete_wxPalette(_swigobj) (delete _swigobj)
8542 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8543 PyObject
* _resultobj
;
8545 PyObject
* _argo0
= 0;
8546 char *_kwnames
[] = { "self", NULL
};
8549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
8552 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8553 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
8559 wxPy_BEGIN_ALLOW_THREADS
;
8560 delete_wxPalette(_arg0
);
8562 wxPy_END_ALLOW_THREADS
;
8563 } Py_INCREF(Py_None
);
8564 _resultobj
= Py_None
;
8568 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
8569 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8570 PyObject
* _resultobj
;
8576 PyObject
* _argo0
= 0;
8577 char *_kwnames
[] = { "self","red","green","blue", NULL
};
8580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
8583 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8584 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8585 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
8590 wxPy_BEGIN_ALLOW_THREADS
;
8591 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
8593 wxPy_END_ALLOW_THREADS
;
8594 } _resultobj
= Py_BuildValue("i",_result
);
8598 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8599 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8600 PyObject
* _resultobj
;
8607 PyObject
* _argo0
= 0;
8608 PyObject
* _argo2
= 0;
8609 PyObject
* _argo3
= 0;
8610 PyObject
* _argo4
= 0;
8611 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
8614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
8617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
8624 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8625 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
8626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
8631 if (_argo3
== Py_None
) { _arg3
= NULL
; }
8632 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
8633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
8638 if (_argo4
== Py_None
) { _arg4
= NULL
; }
8639 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
8640 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
8645 wxPy_BEGIN_ALLOW_THREADS
;
8646 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8648 wxPy_END_ALLOW_THREADS
;
8649 } _resultobj
= Py_BuildValue("i",_result
);
8653 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
8654 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8655 PyObject
* _resultobj
;
8658 PyObject
* _argo0
= 0;
8659 char *_kwnames
[] = { "self", NULL
};
8662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
8665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
8672 wxPy_BEGIN_ALLOW_THREADS
;
8673 _result
= (bool )wxPalette_Ok(_arg0
);
8675 wxPy_END_ALLOW_THREADS
;
8676 } _resultobj
= Py_BuildValue("i",_result
);
8680 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8681 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8682 PyObject
* _resultobj
;
8683 wxImageList
* _result
;
8686 int _arg2
= (int ) TRUE
;
8687 int _arg3
= (int ) 1;
8688 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
8692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
8695 wxPy_BEGIN_ALLOW_THREADS
;
8696 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
8698 wxPy_END_ALLOW_THREADS
;
8700 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
8701 _resultobj
= Py_BuildValue("s",_ptemp
);
8704 _resultobj
= Py_None
;
8709 #define delete_wxImageList(_swigobj) (delete _swigobj)
8710 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8711 PyObject
* _resultobj
;
8712 wxImageList
* _arg0
;
8713 PyObject
* _argo0
= 0;
8714 char *_kwnames
[] = { "self", NULL
};
8717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
8720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
8727 wxPy_BEGIN_ALLOW_THREADS
;
8728 delete_wxImageList(_arg0
);
8730 wxPy_END_ALLOW_THREADS
;
8731 } Py_INCREF(Py_None
);
8732 _resultobj
= Py_None
;
8736 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8737 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8738 PyObject
* _resultobj
;
8740 wxImageList
* _arg0
;
8742 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
8743 PyObject
* _argo0
= 0;
8744 PyObject
* _argo1
= 0;
8745 PyObject
* _argo2
= 0;
8746 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
8749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
8752 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8753 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
8759 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8760 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
8766 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8767 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
8773 wxPy_BEGIN_ALLOW_THREADS
;
8774 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
8776 wxPy_END_ALLOW_THREADS
;
8777 } _resultobj
= Py_BuildValue("i",_result
);
8781 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8782 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8783 PyObject
* _resultobj
;
8785 wxImageList
* _arg0
;
8788 PyObject
* _argo0
= 0;
8789 PyObject
* _argo1
= 0;
8791 PyObject
* _obj2
= 0;
8792 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
8795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
8805 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8806 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8813 if (! wxColour_helper(_obj2
, &_arg2
))
8817 wxPy_BEGIN_ALLOW_THREADS
;
8818 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
8820 wxPy_END_ALLOW_THREADS
;
8821 } _resultobj
= Py_BuildValue("i",_result
);
8825 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8826 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8827 PyObject
* _resultobj
;
8829 wxImageList
* _arg0
;
8831 PyObject
* _argo0
= 0;
8832 PyObject
* _argo1
= 0;
8833 char *_kwnames
[] = { "self","icon", NULL
};
8836 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
8839 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8840 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8841 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8846 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8847 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
8848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8853 wxPy_BEGIN_ALLOW_THREADS
;
8854 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
8856 wxPy_END_ALLOW_THREADS
;
8857 } _resultobj
= Py_BuildValue("i",_result
);
8861 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8862 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8863 PyObject
* _resultobj
;
8865 wxImageList
* _arg0
;
8868 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
8869 PyObject
* _argo0
= 0;
8870 PyObject
* _argo2
= 0;
8871 PyObject
* _argo3
= 0;
8872 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
8875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
8878 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8879 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8880 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8885 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8886 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8887 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8892 if (_argo3
== Py_None
) { _arg3
= NULL
; }
8893 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
8894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
8899 wxPy_BEGIN_ALLOW_THREADS
;
8900 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
8902 wxPy_END_ALLOW_THREADS
;
8903 } _resultobj
= Py_BuildValue("i",_result
);
8907 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8908 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8909 PyObject
* _resultobj
;
8911 wxImageList
* _arg0
;
8916 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
8917 bool _arg6
= (bool ) FALSE
;
8918 PyObject
* _argo0
= 0;
8919 PyObject
* _argo2
= 0;
8920 int tempbool6
= (int) FALSE
;
8921 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
8924 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
8927 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8928 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8929 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8934 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8935 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
8936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8940 _arg6
= (bool ) tempbool6
;
8942 wxPy_BEGIN_ALLOW_THREADS
;
8943 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8945 wxPy_END_ALLOW_THREADS
;
8946 } _resultobj
= Py_BuildValue("i",_result
);
8950 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
8951 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8952 PyObject
* _resultobj
;
8954 wxImageList
* _arg0
;
8955 PyObject
* _argo0
= 0;
8956 char *_kwnames
[] = { "self", NULL
};
8959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
8962 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8963 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8969 wxPy_BEGIN_ALLOW_THREADS
;
8970 _result
= (int )wxImageList_GetImageCount(_arg0
);
8972 wxPy_END_ALLOW_THREADS
;
8973 } _resultobj
= Py_BuildValue("i",_result
);
8977 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8978 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8979 PyObject
* _resultobj
;
8981 wxImageList
* _arg0
;
8983 PyObject
* _argo0
= 0;
8984 char *_kwnames
[] = { "self","index", NULL
};
8987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
8990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
8997 wxPy_BEGIN_ALLOW_THREADS
;
8998 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
9000 wxPy_END_ALLOW_THREADS
;
9001 } _resultobj
= Py_BuildValue("i",_result
);
9005 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
9006 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9007 PyObject
* _resultobj
;
9009 wxImageList
* _arg0
;
9010 PyObject
* _argo0
= 0;
9011 char *_kwnames
[] = { "self", NULL
};
9014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
9017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9024 wxPy_BEGIN_ALLOW_THREADS
;
9025 _result
= (bool )wxImageList_RemoveAll(_arg0
);
9027 wxPy_END_ALLOW_THREADS
;
9028 } _resultobj
= Py_BuildValue("i",_result
);
9032 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9033 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9034 PyObject
* _resultobj
;
9035 wxImageList
* _arg0
;
9041 PyObject
* _argo0
= 0;
9042 char *_kwnames
[] = { "self","index", NULL
};
9051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
9054 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9055 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9061 wxPy_BEGIN_ALLOW_THREADS
;
9062 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
9064 wxPy_END_ALLOW_THREADS
;
9065 } Py_INCREF(Py_None
);
9066 _resultobj
= Py_None
;
9069 o
= PyInt_FromLong((long) (*_arg2
));
9070 _resultobj
= t_output_helper(_resultobj
, o
);
9074 o
= PyInt_FromLong((long) (*_arg3
));
9075 _resultobj
= t_output_helper(_resultobj
, o
);
9080 static PyMethodDef gdicMethods
[] = {
9081 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
9082 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
9083 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9084 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
9085 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
9086 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
9087 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
9088 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
9089 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
9090 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
9091 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
9092 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9093 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
9094 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
9095 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
9096 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
9097 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
9098 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
9099 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
9100 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
9101 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
9102 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
9103 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
9104 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
9105 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
9106 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
9107 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
9108 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
9109 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
9110 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
9111 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9112 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9113 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9114 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
9115 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9116 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
9117 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9118 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9119 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
9120 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
9121 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
9122 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
9123 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
9124 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
9125 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
9126 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
9127 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
9128 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
9129 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
9130 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
9131 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
9132 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
9133 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
9134 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
9135 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9136 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9137 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
9138 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
9139 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
9140 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
9141 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
9142 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
9143 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
9144 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
9145 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
9146 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
9147 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
9148 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
9149 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
9150 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
9151 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
9152 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
9153 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
9154 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
9155 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
9156 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
9157 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
9158 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
9159 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
9160 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
9161 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
9162 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
9163 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
9164 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
9165 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
9166 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
9167 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
9168 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
9169 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
9170 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
9171 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
9172 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
9173 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
9174 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
9175 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
9176 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
9177 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
9178 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
9179 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
9180 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
9181 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
9182 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
9183 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
9184 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
9185 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
9186 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
9187 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
9188 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
9189 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
9190 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
9191 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
9192 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
9193 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
9194 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
9195 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
9196 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9197 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
9198 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
9199 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9200 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9201 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
9202 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
9203 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
9204 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
9205 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
9206 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
9207 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
9208 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
9209 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
9210 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
9211 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
9212 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9213 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9214 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
9215 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
9216 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
9217 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9218 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9219 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9220 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
9221 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
9222 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
9223 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
9224 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
9225 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
9226 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
9227 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
9228 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
9229 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
9230 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9231 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
9232 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
9233 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
9234 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
9235 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
9236 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
9237 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
9238 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
9239 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
9240 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
9241 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
9242 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
9243 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
9244 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
9245 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9246 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
9247 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
9248 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
9249 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
9250 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
9251 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
9252 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9253 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
9254 { "wxFont_GetFontId", (PyCFunction
) _wrap_wxFont_GetFontId
, METH_VARARGS
| METH_KEYWORDS
},
9255 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
9256 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
9257 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9258 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
9259 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
9260 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
9261 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9262 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9263 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9264 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9265 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9266 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9267 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9268 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9269 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9270 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
9271 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
9272 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9273 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
9274 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9275 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9276 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9277 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9278 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9279 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9280 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9281 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9282 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9283 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
9284 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
9285 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
9286 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
9287 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
9288 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
9289 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
9290 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
9291 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
9292 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9293 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
9294 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9295 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9296 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9297 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9298 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9299 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9300 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9301 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9302 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9303 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
9304 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
9305 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
9306 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
9307 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
9308 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
9309 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9310 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9311 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
9312 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
9313 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
9314 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
9315 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
9316 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
9317 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
9318 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
9319 { "wxBitmapFromData", (PyCFunction
) _wrap_wxBitmapFromData
, METH_VARARGS
| METH_KEYWORDS
},
9320 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
9321 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
9322 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9329 * This table is used by the pointer type-checker
9331 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
9332 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
9333 { "_signed_long","_long",0},
9334 { "_wxPrintQuality","_wxCoord",0},
9335 { "_wxPrintQuality","_int",0},
9336 { "_wxPrintQuality","_signed_int",0},
9337 { "_wxPrintQuality","_unsigned_int",0},
9338 { "_wxPrintQuality","_wxWindowID",0},
9339 { "_wxPrintQuality","_uint",0},
9340 { "_wxPrintQuality","_EBool",0},
9341 { "_wxPrintQuality","_size_t",0},
9342 { "_wxPrintQuality","_time_t",0},
9343 { "_class_wxRegionIterator","_wxRegionIterator",0},
9344 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
9345 { "_wxCursor","_class_wxCursor",0},
9346 { "_wxMask","_class_wxMask",0},
9347 { "_wxPen","_class_wxPen",0},
9348 { "_byte","_unsigned_char",0},
9349 { "_wxColourDatabase","_class_wxColourDatabase",0},
9350 { "_long","_unsigned_long",0},
9351 { "_long","_signed_long",0},
9352 { "_wxImageList","_class_wxImageList",0},
9353 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
9354 { "_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
9355 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
9356 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
9357 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
9358 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
9359 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
9360 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
9361 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
9362 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
9363 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
9364 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
9365 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
9366 { "_wxDC","_class_wxDC",0},
9367 { "_size_t","_wxCoord",0},
9368 { "_size_t","_wxPrintQuality",0},
9369 { "_size_t","_time_t",0},
9370 { "_size_t","_unsigned_int",0},
9371 { "_size_t","_int",0},
9372 { "_size_t","_wxWindowID",0},
9373 { "_size_t","_uint",0},
9374 { "_class_wxRealPoint","_wxRealPoint",0},
9375 { "_class_wxMask","_wxMask",0},
9376 { "_wxColour","_class_wxColour",0},
9377 { "_wxBrush","_class_wxBrush",0},
9378 { "_uint","_wxCoord",0},
9379 { "_uint","_wxPrintQuality",0},
9380 { "_uint","_time_t",0},
9381 { "_uint","_size_t",0},
9382 { "_uint","_unsigned_int",0},
9383 { "_uint","_int",0},
9384 { "_uint","_wxWindowID",0},
9385 { "_wxChar","_char",0},
9386 { "_wxRect","_class_wxRect",0},
9387 { "_wxPoint","_class_wxPoint",0},
9388 { "_char","_wxChar",0},
9389 { "_wxBitmap","_class_wxBitmap",0},
9390 { "_wxPenList","_class_wxPenList",0},
9391 { "_wxWindowDC","_class_wxWindowDC",0},
9392 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
9393 { "_class_wxColourDatabase","_wxColourDatabase",0},
9394 { "_EBool","_wxCoord",0},
9395 { "_EBool","_wxPrintQuality",0},
9396 { "_EBool","_signed_int",0},
9397 { "_EBool","_int",0},
9398 { "_EBool","_wxWindowID",0},
9399 { "_class_wxRegion","_wxRegion",0},
9400 { "_wxFont","_class_wxFont",0},
9401 { "_unsigned_long","_long",0},
9402 { "_class_wxRect","_wxRect",0},
9403 { "_class_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
9404 { "_class_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
9405 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
9406 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
9407 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
9408 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
9409 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
9410 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
9411 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
9412 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
9413 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
9414 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
9415 { "_class_wxDC","_wxDC",0},
9416 { "_class_wxBrushList","_wxBrushList",0},
9417 { "_class_wxPenList","_wxPenList",0},
9418 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
9419 { "_signed_int","_wxCoord",0},
9420 { "_signed_int","_wxPrintQuality",0},
9421 { "_signed_int","_EBool",0},
9422 { "_signed_int","_wxWindowID",0},
9423 { "_signed_int","_int",0},
9424 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
9425 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
9426 { "_wxScreenDC","_class_wxScreenDC",0},
9427 { "_WXTYPE","_short",0},
9428 { "_WXTYPE","_signed_short",0},
9429 { "_WXTYPE","_unsigned_short",0},
9430 { "_class_wxBrush","_wxBrush",0},
9431 { "_unsigned_short","_WXTYPE",0},
9432 { "_unsigned_short","_short",0},
9433 { "_class_wxFont","_wxFont",0},
9434 { "_wxBusyInfo","_class_wxBusyInfo",0},
9435 { "_wxFontList","_class_wxFontList",0},
9436 { "_wxClientDC","_class_wxClientDC",0},
9437 { "_class_wxPoint","_wxPoint",0},
9438 { "_wxRealPoint","_class_wxRealPoint",0},
9439 { "_signed_short","_WXTYPE",0},
9440 { "_signed_short","_short",0},
9441 { "_wxMemoryDC","_class_wxMemoryDC",0},
9442 { "_wxPaintDC","_class_wxPaintDC",0},
9443 { "_class_wxWindowDC","_wxWindowDC",0},
9444 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
9445 { "_class_wxCursor","_wxCursor",0},
9446 { "_unsigned_char","_byte",0},
9447 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
9448 { "_unsigned_int","_wxCoord",0},
9449 { "_unsigned_int","_wxPrintQuality",0},
9450 { "_unsigned_int","_time_t",0},
9451 { "_unsigned_int","_size_t",0},
9452 { "_unsigned_int","_uint",0},
9453 { "_unsigned_int","_wxWindowID",0},
9454 { "_unsigned_int","_int",0},
9455 { "_wxIcon","_class_wxIcon",0},
9456 { "_class_wxPen","_wxPen",0},
9457 { "_short","_WXTYPE",0},
9458 { "_short","_unsigned_short",0},
9459 { "_short","_signed_short",0},
9460 { "_class_wxImageList","_wxImageList",0},
9461 { "_wxWindowID","_wxCoord",0},
9462 { "_wxWindowID","_wxPrintQuality",0},
9463 { "_wxWindowID","_time_t",0},
9464 { "_wxWindowID","_size_t",0},
9465 { "_wxWindowID","_EBool",0},
9466 { "_wxWindowID","_uint",0},
9467 { "_wxWindowID","_int",0},
9468 { "_wxWindowID","_signed_int",0},
9469 { "_wxWindowID","_unsigned_int",0},
9470 { "_int","_wxCoord",0},
9471 { "_int","_wxPrintQuality",0},
9472 { "_int","_time_t",0},
9473 { "_int","_size_t",0},
9474 { "_int","_EBool",0},
9475 { "_int","_uint",0},
9476 { "_int","_wxWindowID",0},
9477 { "_int","_unsigned_int",0},
9478 { "_int","_signed_int",0},
9479 { "_time_t","_wxCoord",0},
9480 { "_time_t","_wxPrintQuality",0},
9481 { "_time_t","_unsigned_int",0},
9482 { "_time_t","_int",0},
9483 { "_time_t","_wxWindowID",0},
9484 { "_time_t","_uint",0},
9485 { "_time_t","_size_t",0},
9486 { "_wxSize","_class_wxSize",0},
9487 { "_wxRegionIterator","_class_wxRegionIterator",0},
9488 { "_class_wxPaintDC","_wxPaintDC",0},
9489 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
9490 { "_class_wxIcon","_wxIcon",0},
9491 { "_class_wxColour","_wxColour",0},
9492 { "_class_wxScreenDC","_wxScreenDC",0},
9493 { "_wxPalette","_class_wxPalette",0},
9494 { "_wxCoord","_int",0},
9495 { "_wxCoord","_signed_int",0},
9496 { "_wxCoord","_unsigned_int",0},
9497 { "_wxCoord","_wxWindowID",0},
9498 { "_wxCoord","_uint",0},
9499 { "_wxCoord","_EBool",0},
9500 { "_wxCoord","_size_t",0},
9501 { "_wxCoord","_time_t",0},
9502 { "_wxCoord","_wxPrintQuality",0},
9503 { "_wxRegion","_class_wxRegion",0},
9504 { "_class_wxBusyInfo","_wxBusyInfo",0},
9505 { "_class_wxFontList","_wxFontList",0},
9506 { "_class_wxClientDC","_wxClientDC",0},
9507 { "_wxBrushList","_class_wxBrushList",0},
9508 { "_class_wxSize","_wxSize",0},
9509 { "_class_wxBitmap","_wxBitmap",0},
9510 { "_class_wxMemoryDC","_wxMemoryDC",0},
9511 { "_class_wxPalette","_wxPalette",0},
9514 static PyObject
*SWIG_globals
;
9518 SWIGEXPORT(void) initgdic() {
9520 SWIG_globals
= SWIG_newvarlink();
9521 m
= Py_InitModule("gdic", gdicMethods
);
9522 d
= PyModule_GetDict(m
);
9523 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
9524 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
9525 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
9526 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
9527 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
9528 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
9529 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
9530 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
9531 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
9532 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
9533 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
9534 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
9535 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
9536 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
9537 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
9538 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
9539 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
9540 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
9541 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
9542 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
9543 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
9544 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
9545 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
9546 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
9547 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
9548 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
9549 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
9550 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
9551 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
9552 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
9553 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
9554 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
9555 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
9556 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
9557 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
9558 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
9559 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
9560 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
9561 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
9562 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
9563 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
9564 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
9565 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
9566 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
9567 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
9568 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
9569 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
9570 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
9571 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
9572 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
9573 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
9574 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
9575 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
9576 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
9577 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
9578 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
9579 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
9580 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
9581 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
9582 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
9583 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
9584 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
9585 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
9586 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
9587 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
9588 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
9589 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
9590 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
9591 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
9592 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
9593 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
9594 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
9595 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
9596 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
9597 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
9598 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
9599 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
9600 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
9601 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
9602 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
9603 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
9604 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
9605 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
9608 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
9609 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);