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/imaglist.h>
60 #include <wx/fontmap.h>
61 #include <wx/fontenc.h>
62 #include <wx/fontmap.h>
63 #include <wx/fontutil.h>
66 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
72 } else if (target
== Py_None
) {
76 if (!PyTuple_Check(target
)) {
78 target
= PyTuple_New(1);
79 PyTuple_SetItem(target
, 0, o2
);
82 PyTuple_SetItem(o3
, 0, o
);
85 target
= PySequence_Concat(o2
, o3
);
92 #if PYTHON_API_VERSION >= 1009
93 static char* wxStringErrorMsg
= "String or Unicode type required";
95 static char* wxStringErrorMsg
= "String type required";
98 static wxString
wxPyEmptyStr("");
99 // Implementations of some alternate "constructors"
101 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
102 return new wxBitmap(width
, height
, depth
);
105 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
106 char** cArray
= NULL
;
109 if (!PyList_Check(listOfStrings
)) {
110 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
113 count
= PyList_Size(listOfStrings
);
114 cArray
= new char*[count
];
116 for(int x
=0; x
<count
; x
++) {
117 // TODO: Need some validation and error checking here
118 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
124 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
125 char** cArray
= NULL
;
128 cArray
= ConvertListOfStrings(listOfStrings
);
131 bmp
= new wxBitmap(cArray
);
137 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
138 return new wxBitmap(icon
);
142 wxBitmap
* wxBitmapFromBits(char* bits
, int width
, int height
, int depth
= 1 ) {
143 return new wxBitmap(bits
, width
, height
, depth
);
148 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
149 // int width, int height, int depth = 1) {
150 // if (! PyString_Check(data)) {
151 // PyErr_SetString(PyExc_TypeError, "Expected string object");
154 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
158 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
159 return new wxMask(bitmap
, colour
);
161 // Implementations of some alternate "constructors"
162 wxIcon
* wxEmptyIcon() {
166 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
167 char** cArray
= NULL
;
170 cArray
= ConvertListOfStrings(listOfStrings
);
173 icon
= new wxIcon(cArray
);
177 // Alternate 'constructor'
178 wxCursor
* wxPyStockCursor(int id
) {
179 return new wxCursor(id
);
181 // Alternate 'constructor'
182 wxColour
* wxNamedColour(const wxString
& colorName
) {
183 return new wxColour(colorName
);
186 class wxPyPen
: public wxPen
{
188 wxPyPen(wxColour
& colour
, int width
=1, int style
=wxSOLID
)
189 : wxPen(colour
, width
, style
)
196 void SetDashes(int nb_dashes
, const wxDash
*dash
) {
199 m_dash
= new wxDash
[nb_dashes
];
200 for (int i
=0; i
<nb_dashes
; i
++) {
203 wxPen::SetDashes(nb_dashes
, m_dash
);
210 static void wxDC_GetBoundingBox(wxDC
* dc
, int* x1
, int* y1
, int* x2
, int* y2
) {
216 // Alternate 'constructor'
217 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
218 return new wxMemoryDC(oldDC
);
221 #include <wx/metafile.h>
224 extern wxFont
* wxNORMAL_FONT
;
225 extern wxFont
* wxSMALL_FONT
;
226 extern wxFont
* wxITALIC_FONT
;
227 extern wxFont
* wxSWISS_FONT
;
228 extern wxPen
* wxRED_PEN
;
229 extern wxPen
* wxCYAN_PEN
;
230 extern wxPen
* wxGREEN_PEN
;
231 extern wxPen
* wxBLACK_PEN
;
232 extern wxPen
* wxWHITE_PEN
;
233 extern wxPen
* wxTRANSPARENT_PEN
;
234 extern wxPen
* wxBLACK_DASHED_PEN
;
235 extern wxPen
* wxGREY_PEN
;
236 extern wxPen
* wxMEDIUM_GREY_PEN
;
237 extern wxPen
* wxLIGHT_GREY_PEN
;
238 extern wxBrush
* wxBLUE_BRUSH
;
239 extern wxBrush
* wxGREEN_BRUSH
;
240 extern wxBrush
* wxWHITE_BRUSH
;
241 extern wxBrush
* wxBLACK_BRUSH
;
242 extern wxBrush
* wxTRANSPARENT_BRUSH
;
243 extern wxBrush
* wxCYAN_BRUSH
;
244 extern wxBrush
* wxRED_BRUSH
;
245 extern wxBrush
* wxGREY_BRUSH
;
246 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
247 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
248 extern wxColour
* wxBLACK
;
249 extern wxColour
* wxWHITE
;
250 extern wxColour
* wxRED
;
251 extern wxColour
* wxBLUE
;
252 extern wxColour
* wxGREEN
;
253 extern wxColour
* wxCYAN
;
254 extern wxColour
* wxLIGHT_GREY
;
255 extern wxCursor
* wxSTANDARD_CURSOR
;
256 extern wxCursor
* wxHOURGLASS_CURSOR
;
257 extern wxCursor
* wxCROSS_CURSOR
;
258 extern wxBitmap wxNullBitmap
;
259 extern wxIcon wxNullIcon
;
260 extern wxCursor wxNullCursor
;
261 extern wxPen wxNullPen
;
262 extern wxBrush wxNullBrush
;
263 extern wxPalette wxNullPalette
;
264 extern wxFont wxNullFont
;
265 extern wxColour wxNullColour
;
266 extern wxFontList
* wxTheFontList
;
267 extern wxPenList
* wxThePenList
;
268 extern wxBrushList
* wxTheBrushList
;
269 extern wxColourDatabase
* wxTheColourDatabase
;
275 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
276 PyObject
* _resultobj
;
280 int _arg2
= (int ) -1;
281 char *_kwnames
[] = { "width","height","depth", NULL
};
285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
288 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
289 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
291 wxPyEndAllowThreads(__tstate
);
292 if (PyErr_Occurred()) return NULL
;
294 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
295 _resultobj
= Py_BuildValue("s",_ptemp
);
298 _resultobj
= Py_None
;
303 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
304 PyObject
* _resultobj
;
307 PyObject
* _obj0
= 0;
308 char *_kwnames
[] = { "listOfStrings", NULL
};
312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
319 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
321 wxPyEndAllowThreads(__tstate
);
322 if (PyErr_Occurred()) return NULL
;
324 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
325 _resultobj
= Py_BuildValue("s",_ptemp
);
328 _resultobj
= Py_None
;
333 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
334 PyObject
* _resultobj
;
337 PyObject
* _argo0
= 0;
338 char *_kwnames
[] = { "icon", NULL
};
342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
352 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
353 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
355 wxPyEndAllowThreads(__tstate
);
356 if (PyErr_Occurred()) return NULL
;
358 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
359 _resultobj
= Py_BuildValue("s",_ptemp
);
362 _resultobj
= Py_None
;
367 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
368 PyObject
* _resultobj
;
373 int _arg3
= (int ) 1;
374 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"sii|i:wxBitmapFromBits",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
381 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
382 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
384 wxPyEndAllowThreads(__tstate
);
385 if (PyErr_Occurred()) return NULL
;
387 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
388 _resultobj
= Py_BuildValue("s",_ptemp
);
391 _resultobj
= Py_None
;
396 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
397 PyObject
* _resultobj
;
401 PyObject
* _argo0
= 0;
403 PyObject
* _obj1
= 0;
404 char *_kwnames
[] = { "bitmap","colour", NULL
};
408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
411 if (_argo0
== Py_None
) { _arg0
= NULL
; }
412 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
413 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
419 if (! wxColour_helper(_obj1
, &_arg1
))
423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
424 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
426 wxPyEndAllowThreads(__tstate
);
427 if (PyErr_Occurred()) return NULL
;
429 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
430 _resultobj
= Py_BuildValue("s",_ptemp
);
433 _resultobj
= Py_None
;
438 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
439 PyObject
* _resultobj
;
441 char *_kwnames
[] = { NULL
};
445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
448 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
449 _result
= (wxIcon
*)wxEmptyIcon();
451 wxPyEndAllowThreads(__tstate
);
452 if (PyErr_Occurred()) return NULL
;
454 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
455 _resultobj
= Py_BuildValue("s",_ptemp
);
458 _resultobj
= Py_None
;
463 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
464 PyObject
* _resultobj
;
467 PyObject
* _obj0
= 0;
468 char *_kwnames
[] = { "listOfStrings", NULL
};
472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
478 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
479 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
481 wxPyEndAllowThreads(__tstate
);
482 if (PyErr_Occurred()) return NULL
;
484 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
485 _resultobj
= Py_BuildValue("s",_ptemp
);
488 _resultobj
= Py_None
;
493 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
494 PyObject
* _resultobj
;
497 char *_kwnames
[] = { "id", NULL
};
501 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
505 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
507 wxPyEndAllowThreads(__tstate
);
508 if (PyErr_Occurred()) return NULL
;
510 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
511 _resultobj
= Py_BuildValue("s",_ptemp
);
514 _resultobj
= Py_None
;
519 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
520 PyObject
* _resultobj
;
523 PyObject
* _obj0
= 0;
524 char *_kwnames
[] = { "colorName", NULL
};
528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
531 #if PYTHON_API_VERSION >= 1009
532 char* tmpPtr
; int tmpSize
;
533 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
534 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
537 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
539 _arg0
= new wxString(tmpPtr
, tmpSize
);
541 if (!PyString_Check(_obj0
)) {
542 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
545 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
549 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
550 _result
= (wxColour
*)wxNamedColour(*_arg0
);
552 wxPyEndAllowThreads(__tstate
);
553 if (PyErr_Occurred()) return NULL
;
555 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
556 _resultobj
= Py_BuildValue("s",_ptemp
);
559 _resultobj
= Py_None
;
568 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
569 PyObject
* _resultobj
;
570 wxMemoryDC
* _result
;
572 PyObject
* _argo0
= 0;
573 char *_kwnames
[] = { "oldDC", NULL
};
577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
587 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
588 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
590 wxPyEndAllowThreads(__tstate
);
591 if (PyErr_Occurred()) return NULL
;
593 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
594 _resultobj
= Py_BuildValue("s",_ptemp
);
597 _resultobj
= Py_None
;
602 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
604 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
608 static PyObject
*_wrap_wxNORMAL_FONT_get() {
612 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
613 pyobj
= PyString_FromString(ptemp
);
617 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
619 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
623 static PyObject
*_wrap_wxSMALL_FONT_get() {
627 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
628 pyobj
= PyString_FromString(ptemp
);
632 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
634 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
638 static PyObject
*_wrap_wxITALIC_FONT_get() {
642 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
643 pyobj
= PyString_FromString(ptemp
);
647 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
649 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
653 static PyObject
*_wrap_wxSWISS_FONT_get() {
657 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
658 pyobj
= PyString_FromString(ptemp
);
662 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
664 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
668 static PyObject
*_wrap_wxRED_PEN_get() {
672 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
673 pyobj
= PyString_FromString(ptemp
);
677 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
679 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
683 static PyObject
*_wrap_wxCYAN_PEN_get() {
687 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
688 pyobj
= PyString_FromString(ptemp
);
692 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
694 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
698 static PyObject
*_wrap_wxGREEN_PEN_get() {
702 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
703 pyobj
= PyString_FromString(ptemp
);
707 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
709 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
713 static PyObject
*_wrap_wxBLACK_PEN_get() {
717 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
718 pyobj
= PyString_FromString(ptemp
);
722 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
724 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
728 static PyObject
*_wrap_wxWHITE_PEN_get() {
732 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
733 pyobj
= PyString_FromString(ptemp
);
737 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
739 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
743 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
747 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
748 pyobj
= PyString_FromString(ptemp
);
752 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
754 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
758 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
762 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
763 pyobj
= PyString_FromString(ptemp
);
767 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
769 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
773 static PyObject
*_wrap_wxGREY_PEN_get() {
777 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
778 pyobj
= PyString_FromString(ptemp
);
782 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
784 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
788 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
792 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
793 pyobj
= PyString_FromString(ptemp
);
797 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
799 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
803 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
807 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
808 pyobj
= PyString_FromString(ptemp
);
812 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
814 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
818 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
822 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
823 pyobj
= PyString_FromString(ptemp
);
827 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
829 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
833 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
837 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
838 pyobj
= PyString_FromString(ptemp
);
842 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
844 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
848 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
852 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
853 pyobj
= PyString_FromString(ptemp
);
857 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
859 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
863 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
867 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
868 pyobj
= PyString_FromString(ptemp
);
872 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
874 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
878 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
882 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
883 pyobj
= PyString_FromString(ptemp
);
887 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
889 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
893 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
897 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
898 pyobj
= PyString_FromString(ptemp
);
902 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
904 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
908 static PyObject
*_wrap_wxRED_BRUSH_get() {
912 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
913 pyobj
= PyString_FromString(ptemp
);
917 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
919 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
923 static PyObject
*_wrap_wxGREY_BRUSH_get() {
927 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
928 pyobj
= PyString_FromString(ptemp
);
932 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
934 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
938 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
942 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
943 pyobj
= PyString_FromString(ptemp
);
947 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
949 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
953 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
957 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
958 pyobj
= PyString_FromString(ptemp
);
962 static int _wrap_wxBLACK_set(PyObject
*val
) {
964 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
968 static PyObject
*_wrap_wxBLACK_get() {
972 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
973 pyobj
= PyString_FromString(ptemp
);
977 static int _wrap_wxWHITE_set(PyObject
*val
) {
979 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
983 static PyObject
*_wrap_wxWHITE_get() {
987 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
988 pyobj
= PyString_FromString(ptemp
);
992 static int _wrap_wxRED_set(PyObject
*val
) {
994 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
998 static PyObject
*_wrap_wxRED_get() {
1002 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1003 pyobj
= PyString_FromString(ptemp
);
1007 static int _wrap_wxBLUE_set(PyObject
*val
) {
1009 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1013 static PyObject
*_wrap_wxBLUE_get() {
1017 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1018 pyobj
= PyString_FromString(ptemp
);
1022 static int _wrap_wxGREEN_set(PyObject
*val
) {
1024 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1028 static PyObject
*_wrap_wxGREEN_get() {
1032 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1033 pyobj
= PyString_FromString(ptemp
);
1037 static int _wrap_wxCYAN_set(PyObject
*val
) {
1039 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1043 static PyObject
*_wrap_wxCYAN_get() {
1047 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1048 pyobj
= PyString_FromString(ptemp
);
1052 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1054 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1058 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1062 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1063 pyobj
= PyString_FromString(ptemp
);
1067 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1069 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1073 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1077 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1078 pyobj
= PyString_FromString(ptemp
);
1082 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1084 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1088 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1092 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1093 pyobj
= PyString_FromString(ptemp
);
1097 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1099 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1103 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1107 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1108 pyobj
= PyString_FromString(ptemp
);
1112 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1114 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1118 static PyObject
*_wrap_wxNullBitmap_get() {
1122 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1123 pyobj
= PyString_FromString(ptemp
);
1127 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1129 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1133 static PyObject
*_wrap_wxNullIcon_get() {
1137 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1138 pyobj
= PyString_FromString(ptemp
);
1142 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1144 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1148 static PyObject
*_wrap_wxNullCursor_get() {
1152 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1153 pyobj
= PyString_FromString(ptemp
);
1157 static int _wrap_wxNullPen_set(PyObject
*val
) {
1159 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1163 static PyObject
*_wrap_wxNullPen_get() {
1167 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1168 pyobj
= PyString_FromString(ptemp
);
1172 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1174 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1178 static PyObject
*_wrap_wxNullBrush_get() {
1182 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1183 pyobj
= PyString_FromString(ptemp
);
1187 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1189 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1193 static PyObject
*_wrap_wxNullPalette_get() {
1197 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1198 pyobj
= PyString_FromString(ptemp
);
1202 static int _wrap_wxNullFont_set(PyObject
*val
) {
1204 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1208 static PyObject
*_wrap_wxNullFont_get() {
1212 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1213 pyobj
= PyString_FromString(ptemp
);
1217 static int _wrap_wxNullColour_set(PyObject
*val
) {
1219 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1223 static PyObject
*_wrap_wxNullColour_get() {
1227 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1228 pyobj
= PyString_FromString(ptemp
);
1232 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1234 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1238 static PyObject
*_wrap_wxTheFontList_get() {
1242 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1243 pyobj
= PyString_FromString(ptemp
);
1247 static int _wrap_wxThePenList_set(PyObject
*val
) {
1249 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1253 static PyObject
*_wrap_wxThePenList_get() {
1257 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1258 pyobj
= PyString_FromString(ptemp
);
1262 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1264 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1268 static PyObject
*_wrap_wxTheBrushList_get() {
1272 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1273 pyobj
= PyString_FromString(ptemp
);
1277 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1279 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1283 static PyObject
*_wrap_wxTheColourDatabase_get() {
1287 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1288 pyobj
= PyString_FromString(ptemp
);
1292 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1295 src
= (wxGDIObject
*) ptr
;
1296 dest
= (wxObject
*) src
;
1297 return (void *) dest
;
1300 #define new_wxGDIObject() (new wxGDIObject())
1301 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1302 PyObject
* _resultobj
;
1303 wxGDIObject
* _result
;
1304 char *_kwnames
[] = { NULL
};
1308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1311 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1312 _result
= (wxGDIObject
*)new_wxGDIObject();
1314 wxPyEndAllowThreads(__tstate
);
1315 if (PyErr_Occurred()) return NULL
;
1317 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1318 _resultobj
= Py_BuildValue("s",_ptemp
);
1321 _resultobj
= Py_None
;
1326 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1327 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1328 PyObject
* _resultobj
;
1329 wxGDIObject
* _arg0
;
1330 PyObject
* _argo0
= 0;
1331 char *_kwnames
[] = { "self", NULL
};
1334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1337 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1338 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1339 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1344 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1345 delete_wxGDIObject(_arg0
);
1347 wxPyEndAllowThreads(__tstate
);
1348 if (PyErr_Occurred()) return NULL
;
1349 } Py_INCREF(Py_None
);
1350 _resultobj
= Py_None
;
1354 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1355 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1356 PyObject
* _resultobj
;
1358 wxGDIObject
* _arg0
;
1359 PyObject
* _argo0
= 0;
1360 char *_kwnames
[] = { "self", NULL
};
1363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1373 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1374 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1376 wxPyEndAllowThreads(__tstate
);
1377 if (PyErr_Occurred()) return NULL
;
1378 } _resultobj
= Py_BuildValue("i",_result
);
1382 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1383 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1384 PyObject
* _resultobj
;
1385 wxGDIObject
* _arg0
;
1387 PyObject
* _argo0
= 0;
1389 char *_kwnames
[] = { "self","visible", NULL
};
1392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1401 _arg1
= (bool ) tempbool1
;
1403 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1404 wxGDIObject_SetVisible(_arg0
,_arg1
);
1406 wxPyEndAllowThreads(__tstate
);
1407 if (PyErr_Occurred()) return NULL
;
1408 } Py_INCREF(Py_None
);
1409 _resultobj
= Py_None
;
1413 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1414 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1415 PyObject
* _resultobj
;
1417 wxGDIObject
* _arg0
;
1418 PyObject
* _argo0
= 0;
1419 char *_kwnames
[] = { "self", NULL
};
1422 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1425 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1426 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1433 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1435 wxPyEndAllowThreads(__tstate
);
1436 if (PyErr_Occurred()) return NULL
;
1437 } _resultobj
= Py_BuildValue("i",_result
);
1441 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1444 src
= (wxBitmap
*) ptr
;
1445 dest
= (wxGDIObject
*) src
;
1446 return (void *) dest
;
1449 static void *SwigwxBitmapTowxObject(void *ptr
) {
1452 src
= (wxBitmap
*) ptr
;
1453 dest
= (wxObject
*) src
;
1454 return (void *) dest
;
1457 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1458 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1459 PyObject
* _resultobj
;
1462 wxBitmapType _arg1
= (wxBitmapType
) wxBITMAP_TYPE_BMP
;
1463 PyObject
* _obj0
= 0;
1464 char *_kwnames
[] = { "name","type", NULL
};
1468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1471 #if PYTHON_API_VERSION >= 1009
1472 char* tmpPtr
; int tmpSize
;
1473 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1474 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1477 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1479 _arg0
= new wxString(tmpPtr
, tmpSize
);
1481 if (!PyString_Check(_obj0
)) {
1482 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1485 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1490 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1492 wxPyEndAllowThreads(__tstate
);
1493 if (PyErr_Occurred()) return NULL
;
1495 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1496 _resultobj
= Py_BuildValue("s",_ptemp
);
1499 _resultobj
= Py_None
;
1508 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1509 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1510 PyObject
* _resultobj
;
1512 PyObject
* _argo0
= 0;
1513 char *_kwnames
[] = { "self", NULL
};
1516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1519 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1520 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1526 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1527 delete_wxBitmap(_arg0
);
1529 wxPyEndAllowThreads(__tstate
);
1530 if (PyErr_Occurred()) return NULL
;
1531 } Py_INCREF(Py_None
);
1532 _resultobj
= Py_None
;
1536 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1537 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1538 PyObject
* _resultobj
;
1539 wxPalette
* _result
;
1541 PyObject
* _argo0
= 0;
1542 char *_kwnames
[] = { "self", NULL
};
1546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1556 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1557 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1559 wxPyEndAllowThreads(__tstate
);
1560 if (PyErr_Occurred()) return NULL
;
1562 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1563 _resultobj
= Py_BuildValue("s",_ptemp
);
1566 _resultobj
= Py_None
;
1571 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1572 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1573 PyObject
* _resultobj
;
1576 PyObject
* _argo0
= 0;
1577 char *_kwnames
[] = { "self", NULL
};
1581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1592 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1594 wxPyEndAllowThreads(__tstate
);
1595 if (PyErr_Occurred()) return NULL
;
1597 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1598 _resultobj
= Py_BuildValue("s",_ptemp
);
1601 _resultobj
= Py_None
;
1606 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1607 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1608 PyObject
* _resultobj
;
1612 wxBitmapType _arg2
= (wxBitmapType
) wxBITMAP_TYPE_BMP
;
1613 PyObject
* _argo0
= 0;
1614 PyObject
* _obj1
= 0;
1615 char *_kwnames
[] = { "self","name","type", NULL
};
1618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1628 #if PYTHON_API_VERSION >= 1009
1629 char* tmpPtr
; int tmpSize
;
1630 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1631 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1634 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1636 _arg1
= new wxString(tmpPtr
, tmpSize
);
1638 if (!PyString_Check(_obj1
)) {
1639 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1642 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1646 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1647 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1649 wxPyEndAllowThreads(__tstate
);
1650 if (PyErr_Occurred()) return NULL
;
1651 } _resultobj
= Py_BuildValue("i",_result
);
1659 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1660 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1661 PyObject
* _resultobj
;
1666 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1667 PyObject
* _argo0
= 0;
1668 PyObject
* _obj1
= 0;
1669 PyObject
* _argo3
= 0;
1670 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1676 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1677 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1683 #if PYTHON_API_VERSION >= 1009
1684 char* tmpPtr
; int tmpSize
;
1685 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1686 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1689 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1691 _arg1
= new wxString(tmpPtr
, tmpSize
);
1693 if (!PyString_Check(_obj1
)) {
1694 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1697 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1701 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1702 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1703 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1708 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1709 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1711 wxPyEndAllowThreads(__tstate
);
1712 if (PyErr_Occurred()) return NULL
;
1713 } _resultobj
= Py_BuildValue("i",_result
);
1721 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1722 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1723 PyObject
* _resultobj
;
1726 PyObject
* _argo0
= 0;
1727 PyObject
* _argo1
= 0;
1728 char *_kwnames
[] = { "self","mask", NULL
};
1731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1734 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1735 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1736 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1741 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1742 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1749 wxBitmap_SetMask(_arg0
,_arg1
);
1751 wxPyEndAllowThreads(__tstate
);
1752 if (PyErr_Occurred()) return NULL
;
1753 } Py_INCREF(Py_None
);
1754 _resultobj
= Py_None
;
1758 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1759 static PyObject
*_wrap_wxBitmap_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1760 PyObject
* _resultobj
;
1763 PyObject
* _argo0
= 0;
1764 PyObject
* _argo1
= 0;
1765 char *_kwnames
[] = { "self","palette", NULL
};
1768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetPalette",_kwnames
,&_argo0
,&_argo1
))
1771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1778 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1779 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
1780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1785 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1786 wxBitmap_SetPalette(_arg0
,*_arg1
);
1788 wxPyEndAllowThreads(__tstate
);
1789 if (PyErr_Occurred()) return NULL
;
1790 } Py_INCREF(Py_None
);
1791 _resultobj
= Py_None
;
1795 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1796 static PyObject
*_wrap_wxBitmap_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1797 PyObject
* _resultobj
;
1800 PyObject
* _argo0
= 0;
1801 char *_kwnames
[] = { "self", NULL
};
1804 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHandle",_kwnames
,&_argo0
))
1807 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1808 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1814 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1815 _result
= (long )wxBitmap_GetHandle(_arg0
);
1817 wxPyEndAllowThreads(__tstate
);
1818 if (PyErr_Occurred()) return NULL
;
1819 } _resultobj
= Py_BuildValue("l",_result
);
1823 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1824 static PyObject
*_wrap_wxBitmap_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1825 PyObject
* _resultobj
;
1828 PyObject
* _argo0
= 0;
1829 char *_kwnames
[] = { "self","handle", NULL
};
1832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxBitmap_SetHandle",_kwnames
,&_argo0
,&_arg1
))
1835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1842 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1843 wxBitmap_SetHandle(_arg0
,_arg1
);
1845 wxPyEndAllowThreads(__tstate
);
1846 if (PyErr_Occurred()) return NULL
;
1847 } Py_INCREF(Py_None
);
1848 _resultobj
= Py_None
;
1852 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1853 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1854 PyObject
* _resultobj
;
1857 PyObject
* _argo0
= 0;
1858 char *_kwnames
[] = { "self", NULL
};
1861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1864 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1865 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1871 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1872 _result
= (bool )wxBitmap_Ok(_arg0
);
1874 wxPyEndAllowThreads(__tstate
);
1875 if (PyErr_Occurred()) return NULL
;
1876 } _resultobj
= Py_BuildValue("i",_result
);
1880 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1881 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1882 PyObject
* _resultobj
;
1885 PyObject
* _argo0
= 0;
1886 char *_kwnames
[] = { "self", NULL
};
1889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1899 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1900 _result
= (int )wxBitmap_GetWidth(_arg0
);
1902 wxPyEndAllowThreads(__tstate
);
1903 if (PyErr_Occurred()) return NULL
;
1904 } _resultobj
= Py_BuildValue("i",_result
);
1908 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1909 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1910 PyObject
* _resultobj
;
1913 PyObject
* _argo0
= 0;
1914 char *_kwnames
[] = { "self", NULL
};
1917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1927 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1928 _result
= (int )wxBitmap_GetHeight(_arg0
);
1930 wxPyEndAllowThreads(__tstate
);
1931 if (PyErr_Occurred()) return NULL
;
1932 } _resultobj
= Py_BuildValue("i",_result
);
1936 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1937 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1938 PyObject
* _resultobj
;
1941 PyObject
* _argo0
= 0;
1942 char *_kwnames
[] = { "self", NULL
};
1945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1955 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1956 _result
= (int )wxBitmap_GetDepth(_arg0
);
1958 wxPyEndAllowThreads(__tstate
);
1959 if (PyErr_Occurred()) return NULL
;
1960 } _resultobj
= Py_BuildValue("i",_result
);
1964 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1965 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1966 PyObject
* _resultobj
;
1969 PyObject
* _argo0
= 0;
1970 char *_kwnames
[] = { "self","w", NULL
};
1973 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1976 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1977 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1978 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1984 wxBitmap_SetWidth(_arg0
,_arg1
);
1986 wxPyEndAllowThreads(__tstate
);
1987 if (PyErr_Occurred()) return NULL
;
1988 } Py_INCREF(Py_None
);
1989 _resultobj
= Py_None
;
1993 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1994 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1995 PyObject
* _resultobj
;
1998 PyObject
* _argo0
= 0;
1999 char *_kwnames
[] = { "self","h", NULL
};
2002 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2005 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2006 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2007 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2012 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2013 wxBitmap_SetHeight(_arg0
,_arg1
);
2015 wxPyEndAllowThreads(__tstate
);
2016 if (PyErr_Occurred()) return NULL
;
2017 } Py_INCREF(Py_None
);
2018 _resultobj
= Py_None
;
2022 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2023 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2024 PyObject
* _resultobj
;
2027 PyObject
* _argo0
= 0;
2028 char *_kwnames
[] = { "self","d", NULL
};
2031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2034 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2035 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2041 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2042 wxBitmap_SetDepth(_arg0
,_arg1
);
2044 wxPyEndAllowThreads(__tstate
);
2045 if (PyErr_Occurred()) return NULL
;
2046 } Py_INCREF(Py_None
);
2047 _resultobj
= Py_None
;
2051 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2052 static PyObject
*_wrap_wxBitmap_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2053 PyObject
* _resultobj
;
2056 PyObject
* _argo0
= 0;
2058 PyObject
* _obj1
= 0;
2059 char *_kwnames
[] = { "self","size", NULL
};
2062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetSize",_kwnames
,&_argo0
,&_obj1
))
2065 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2066 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2073 if (! wxSize_helper(_obj1
, &_arg1
))
2077 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2078 wxBitmap_SetSize(_arg0
,*_arg1
);
2080 wxPyEndAllowThreads(__tstate
);
2081 if (PyErr_Occurred()) return NULL
;
2082 } Py_INCREF(Py_None
);
2083 _resultobj
= Py_None
;
2087 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2088 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2089 PyObject
* _resultobj
;
2093 PyObject
* _argo0
= 0;
2095 PyObject
* _obj1
= 0;
2096 char *_kwnames
[] = { "self","rect", NULL
};
2100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
2103 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2104 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2105 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2111 if (! wxRect_helper(_obj1
, &_arg1
))
2115 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2116 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2118 wxPyEndAllowThreads(__tstate
);
2119 if (PyErr_Occurred()) return NULL
;
2120 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2121 _resultobj
= Py_BuildValue("s",_ptemp
);
2125 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2126 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2127 PyObject
* _resultobj
;
2131 PyObject
* _argo0
= 0;
2132 PyObject
* _argo1
= 0;
2133 char *_kwnames
[] = { "self","icon", NULL
};
2136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2139 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2140 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2146 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2147 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2154 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2156 wxPyEndAllowThreads(__tstate
);
2157 if (PyErr_Occurred()) return NULL
;
2158 } _resultobj
= Py_BuildValue("i",_result
);
2162 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2163 static PyObject
*_wrap_wxBitmap_CopyFromCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2164 PyObject
* _resultobj
;
2168 PyObject
* _argo0
= 0;
2169 PyObject
* _argo1
= 0;
2170 char *_kwnames
[] = { "self","cursor", NULL
};
2173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromCursor",_kwnames
,&_argo0
,&_argo1
))
2176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2183 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2184 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2191 _result
= (bool )wxBitmap_CopyFromCursor(_arg0
,*_arg1
);
2193 wxPyEndAllowThreads(__tstate
);
2194 if (PyErr_Occurred()) return NULL
;
2195 } _resultobj
= Py_BuildValue("i",_result
);
2199 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2200 static PyObject
*_wrap_wxBitmap_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2201 PyObject
* _resultobj
;
2204 PyObject
* _argo0
= 0;
2205 char *_kwnames
[] = { "self", NULL
};
2208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetQuality",_kwnames
,&_argo0
))
2211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2218 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2219 _result
= (int )wxBitmap_GetQuality(_arg0
);
2221 wxPyEndAllowThreads(__tstate
);
2222 if (PyErr_Occurred()) return NULL
;
2223 } _resultobj
= Py_BuildValue("i",_result
);
2227 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2228 static PyObject
*_wrap_wxBitmap_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2229 PyObject
* _resultobj
;
2232 PyObject
* _argo0
= 0;
2233 char *_kwnames
[] = { "self","q", NULL
};
2236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetQuality",_kwnames
,&_argo0
,&_arg1
))
2239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2247 wxBitmap_SetQuality(_arg0
,_arg1
);
2249 wxPyEndAllowThreads(__tstate
);
2250 if (PyErr_Occurred()) return NULL
;
2251 } Py_INCREF(Py_None
);
2252 _resultobj
= Py_None
;
2256 static void *SwigwxMaskTowxObject(void *ptr
) {
2259 src
= (wxMask
*) ptr
;
2260 dest
= (wxObject
*) src
;
2261 return (void *) dest
;
2264 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2265 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2266 PyObject
* _resultobj
;
2269 PyObject
* _argo0
= 0;
2270 char *_kwnames
[] = { "bitmap", NULL
};
2274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2284 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2285 _result
= (wxMask
*)new_wxMask(*_arg0
);
2287 wxPyEndAllowThreads(__tstate
);
2288 if (PyErr_Occurred()) return NULL
;
2290 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2291 _resultobj
= Py_BuildValue("s",_ptemp
);
2294 _resultobj
= Py_None
;
2299 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2300 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2301 PyObject
* _resultobj
;
2303 PyObject
* _argo0
= 0;
2304 char *_kwnames
[] = { "self", NULL
};
2307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2310 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2311 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2312 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2317 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2318 wxMask_Destroy(_arg0
);
2320 wxPyEndAllowThreads(__tstate
);
2321 if (PyErr_Occurred()) return NULL
;
2322 } Py_INCREF(Py_None
);
2323 _resultobj
= Py_None
;
2327 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2330 src
= (wxIcon
*) ptr
;
2331 dest
= (wxGDIObject
*) src
;
2332 return (void *) dest
;
2335 static void *SwigwxIconTowxObject(void *ptr
) {
2338 src
= (wxIcon
*) ptr
;
2339 dest
= (wxObject
*) src
;
2340 return (void *) dest
;
2343 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2344 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2345 PyObject
* _resultobj
;
2349 int _arg2
= (int ) -1;
2350 int _arg3
= (int ) -1;
2351 PyObject
* _obj0
= 0;
2352 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2359 #if PYTHON_API_VERSION >= 1009
2360 char* tmpPtr
; int tmpSize
;
2361 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2362 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2365 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2367 _arg0
= new wxString(tmpPtr
, tmpSize
);
2369 if (!PyString_Check(_obj0
)) {
2370 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2373 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2378 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2380 wxPyEndAllowThreads(__tstate
);
2381 if (PyErr_Occurred()) return NULL
;
2383 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2384 _resultobj
= Py_BuildValue("s",_ptemp
);
2387 _resultobj
= Py_None
;
2396 #define delete_wxIcon(_swigobj) (delete _swigobj)
2397 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2398 PyObject
* _resultobj
;
2400 PyObject
* _argo0
= 0;
2401 char *_kwnames
[] = { "self", NULL
};
2404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2414 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2415 delete_wxIcon(_arg0
);
2417 wxPyEndAllowThreads(__tstate
);
2418 if (PyErr_Occurred()) return NULL
;
2419 } Py_INCREF(Py_None
);
2420 _resultobj
= Py_None
;
2424 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2425 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2426 PyObject
* _resultobj
;
2431 PyObject
* _argo0
= 0;
2432 PyObject
* _obj1
= 0;
2433 char *_kwnames
[] = { "self","name","flags", NULL
};
2436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2446 #if PYTHON_API_VERSION >= 1009
2447 char* tmpPtr
; int tmpSize
;
2448 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2449 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2452 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2454 _arg1
= new wxString(tmpPtr
, tmpSize
);
2456 if (!PyString_Check(_obj1
)) {
2457 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2460 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2465 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2467 wxPyEndAllowThreads(__tstate
);
2468 if (PyErr_Occurred()) return NULL
;
2469 } _resultobj
= Py_BuildValue("i",_result
);
2477 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2478 static PyObject
*_wrap_wxIcon_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2479 PyObject
* _resultobj
;
2482 PyObject
* _argo0
= 0;
2483 char *_kwnames
[] = { "self", NULL
};
2486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHandle",_kwnames
,&_argo0
))
2489 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2490 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2496 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2497 _result
= (long )wxIcon_GetHandle(_arg0
);
2499 wxPyEndAllowThreads(__tstate
);
2500 if (PyErr_Occurred()) return NULL
;
2501 } _resultobj
= Py_BuildValue("l",_result
);
2505 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2506 static PyObject
*_wrap_wxIcon_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2507 PyObject
* _resultobj
;
2510 PyObject
* _argo0
= 0;
2511 char *_kwnames
[] = { "self","handle", NULL
};
2514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxIcon_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2525 wxIcon_SetHandle(_arg0
,_arg1
);
2527 wxPyEndAllowThreads(__tstate
);
2528 if (PyErr_Occurred()) return NULL
;
2529 } Py_INCREF(Py_None
);
2530 _resultobj
= Py_None
;
2534 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2535 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2536 PyObject
* _resultobj
;
2539 PyObject
* _argo0
= 0;
2540 char *_kwnames
[] = { "self", NULL
};
2543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2553 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2554 _result
= (bool )wxIcon_Ok(_arg0
);
2556 wxPyEndAllowThreads(__tstate
);
2557 if (PyErr_Occurred()) return NULL
;
2558 } _resultobj
= Py_BuildValue("i",_result
);
2562 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2563 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2564 PyObject
* _resultobj
;
2567 PyObject
* _argo0
= 0;
2568 char *_kwnames
[] = { "self", NULL
};
2571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2581 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2582 _result
= (int )wxIcon_GetWidth(_arg0
);
2584 wxPyEndAllowThreads(__tstate
);
2585 if (PyErr_Occurred()) return NULL
;
2586 } _resultobj
= Py_BuildValue("i",_result
);
2590 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2591 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2592 PyObject
* _resultobj
;
2595 PyObject
* _argo0
= 0;
2596 char *_kwnames
[] = { "self", NULL
};
2599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2609 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2610 _result
= (int )wxIcon_GetHeight(_arg0
);
2612 wxPyEndAllowThreads(__tstate
);
2613 if (PyErr_Occurred()) return NULL
;
2614 } _resultobj
= Py_BuildValue("i",_result
);
2618 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2619 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2620 PyObject
* _resultobj
;
2623 PyObject
* _argo0
= 0;
2624 char *_kwnames
[] = { "self", NULL
};
2627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2637 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2638 _result
= (int )wxIcon_GetDepth(_arg0
);
2640 wxPyEndAllowThreads(__tstate
);
2641 if (PyErr_Occurred()) return NULL
;
2642 } _resultobj
= Py_BuildValue("i",_result
);
2646 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2647 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2648 PyObject
* _resultobj
;
2651 PyObject
* _argo0
= 0;
2652 char *_kwnames
[] = { "self","w", NULL
};
2655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2666 wxIcon_SetWidth(_arg0
,_arg1
);
2668 wxPyEndAllowThreads(__tstate
);
2669 if (PyErr_Occurred()) return NULL
;
2670 } Py_INCREF(Py_None
);
2671 _resultobj
= Py_None
;
2675 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2676 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2677 PyObject
* _resultobj
;
2680 PyObject
* _argo0
= 0;
2681 char *_kwnames
[] = { "self","h", NULL
};
2684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2694 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2695 wxIcon_SetHeight(_arg0
,_arg1
);
2697 wxPyEndAllowThreads(__tstate
);
2698 if (PyErr_Occurred()) return NULL
;
2699 } Py_INCREF(Py_None
);
2700 _resultobj
= Py_None
;
2704 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2705 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2706 PyObject
* _resultobj
;
2709 PyObject
* _argo0
= 0;
2710 char *_kwnames
[] = { "self","d", NULL
};
2713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2716 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2717 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2723 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2724 wxIcon_SetDepth(_arg0
,_arg1
);
2726 wxPyEndAllowThreads(__tstate
);
2727 if (PyErr_Occurred()) return NULL
;
2728 } Py_INCREF(Py_None
);
2729 _resultobj
= Py_None
;
2733 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2734 static PyObject
*_wrap_wxIcon_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2735 PyObject
* _resultobj
;
2738 PyObject
* _argo0
= 0;
2740 PyObject
* _obj1
= 0;
2741 char *_kwnames
[] = { "self","size", NULL
};
2744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_SetSize",_kwnames
,&_argo0
,&_obj1
))
2747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2755 if (! wxSize_helper(_obj1
, &_arg1
))
2759 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2760 wxIcon_SetSize(_arg0
,*_arg1
);
2762 wxPyEndAllowThreads(__tstate
);
2763 if (PyErr_Occurred()) return NULL
;
2764 } Py_INCREF(Py_None
);
2765 _resultobj
= Py_None
;
2769 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2770 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2771 PyObject
* _resultobj
;
2774 PyObject
* _argo0
= 0;
2775 PyObject
* _argo1
= 0;
2776 char *_kwnames
[] = { "self","bmp", NULL
};
2779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2789 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2790 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2797 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2799 wxPyEndAllowThreads(__tstate
);
2800 if (PyErr_Occurred()) return NULL
;
2801 } Py_INCREF(Py_None
);
2802 _resultobj
= Py_None
;
2806 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2809 src
= (wxCursor
*) ptr
;
2810 dest
= (wxGDIObject
*) src
;
2811 return (void *) dest
;
2814 static void *SwigwxCursorTowxObject(void *ptr
) {
2817 src
= (wxCursor
*) ptr
;
2818 dest
= (wxObject
*) src
;
2819 return (void *) dest
;
2822 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2823 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2824 PyObject
* _resultobj
;
2828 int _arg2
= (int ) 0;
2829 int _arg3
= (int ) 0;
2830 PyObject
* _obj0
= 0;
2831 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
2835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2838 #if PYTHON_API_VERSION >= 1009
2839 char* tmpPtr
; int tmpSize
;
2840 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2841 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2844 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2846 _arg0
= new wxString(tmpPtr
, tmpSize
);
2848 if (!PyString_Check(_obj0
)) {
2849 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2852 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2856 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2857 _result
= (wxCursor
*)new_wxCursor(*_arg0
,_arg1
,_arg2
,_arg3
);
2859 wxPyEndAllowThreads(__tstate
);
2860 if (PyErr_Occurred()) return NULL
;
2862 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
2863 _resultobj
= Py_BuildValue("s",_ptemp
);
2866 _resultobj
= Py_None
;
2875 #define delete_wxCursor(_swigobj) (delete _swigobj)
2876 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2877 PyObject
* _resultobj
;
2879 PyObject
* _argo0
= 0;
2880 char *_kwnames
[] = { "self", NULL
};
2883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2893 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2894 delete_wxCursor(_arg0
);
2896 wxPyEndAllowThreads(__tstate
);
2897 if (PyErr_Occurred()) return NULL
;
2898 } Py_INCREF(Py_None
);
2899 _resultobj
= Py_None
;
2903 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2904 static PyObject
*_wrap_wxCursor_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2905 PyObject
* _resultobj
;
2908 PyObject
* _argo0
= 0;
2909 char *_kwnames
[] = { "self", NULL
};
2912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHandle",_kwnames
,&_argo0
))
2915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2923 _result
= (long )wxCursor_GetHandle(_arg0
);
2925 wxPyEndAllowThreads(__tstate
);
2926 if (PyErr_Occurred()) return NULL
;
2927 } _resultobj
= Py_BuildValue("l",_result
);
2931 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2932 static PyObject
*_wrap_wxCursor_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2933 PyObject
* _resultobj
;
2936 PyObject
* _argo0
= 0;
2937 char *_kwnames
[] = { "self","handle", NULL
};
2940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxCursor_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2943 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2944 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2950 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2951 wxCursor_SetHandle(_arg0
,_arg1
);
2953 wxPyEndAllowThreads(__tstate
);
2954 if (PyErr_Occurred()) return NULL
;
2955 } Py_INCREF(Py_None
);
2956 _resultobj
= Py_None
;
2960 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2961 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2962 PyObject
* _resultobj
;
2965 PyObject
* _argo0
= 0;
2966 char *_kwnames
[] = { "self", NULL
};
2969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2979 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2980 _result
= (bool )wxCursor_Ok(_arg0
);
2982 wxPyEndAllowThreads(__tstate
);
2983 if (PyErr_Occurred()) return NULL
;
2984 } _resultobj
= Py_BuildValue("i",_result
);
2988 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2989 static PyObject
*_wrap_wxCursor_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2990 PyObject
* _resultobj
;
2993 PyObject
* _argo0
= 0;
2994 char *_kwnames
[] = { "self", NULL
};
2997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetWidth",_kwnames
,&_argo0
))
3000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3007 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3008 _result
= (int )wxCursor_GetWidth(_arg0
);
3010 wxPyEndAllowThreads(__tstate
);
3011 if (PyErr_Occurred()) return NULL
;
3012 } _resultobj
= Py_BuildValue("i",_result
);
3016 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3017 static PyObject
*_wrap_wxCursor_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3018 PyObject
* _resultobj
;
3021 PyObject
* _argo0
= 0;
3022 char *_kwnames
[] = { "self", NULL
};
3025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHeight",_kwnames
,&_argo0
))
3028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3035 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3036 _result
= (int )wxCursor_GetHeight(_arg0
);
3038 wxPyEndAllowThreads(__tstate
);
3039 if (PyErr_Occurred()) return NULL
;
3040 } _resultobj
= Py_BuildValue("i",_result
);
3044 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3045 static PyObject
*_wrap_wxCursor_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3046 PyObject
* _resultobj
;
3049 PyObject
* _argo0
= 0;
3050 char *_kwnames
[] = { "self", NULL
};
3053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetDepth",_kwnames
,&_argo0
))
3056 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3057 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3063 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3064 _result
= (int )wxCursor_GetDepth(_arg0
);
3066 wxPyEndAllowThreads(__tstate
);
3067 if (PyErr_Occurred()) return NULL
;
3068 } _resultobj
= Py_BuildValue("i",_result
);
3072 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3073 static PyObject
*_wrap_wxCursor_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3074 PyObject
* _resultobj
;
3077 PyObject
* _argo0
= 0;
3078 char *_kwnames
[] = { "self","w", NULL
};
3081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3092 wxCursor_SetWidth(_arg0
,_arg1
);
3094 wxPyEndAllowThreads(__tstate
);
3095 if (PyErr_Occurred()) return NULL
;
3096 } Py_INCREF(Py_None
);
3097 _resultobj
= Py_None
;
3101 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3102 static PyObject
*_wrap_wxCursor_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3103 PyObject
* _resultobj
;
3106 PyObject
* _argo0
= 0;
3107 char *_kwnames
[] = { "self","h", NULL
};
3110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetHeight",_kwnames
,&_argo0
,&_arg1
))
3113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3121 wxCursor_SetHeight(_arg0
,_arg1
);
3123 wxPyEndAllowThreads(__tstate
);
3124 if (PyErr_Occurred()) return NULL
;
3125 } Py_INCREF(Py_None
);
3126 _resultobj
= Py_None
;
3130 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3131 static PyObject
*_wrap_wxCursor_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3132 PyObject
* _resultobj
;
3135 PyObject
* _argo0
= 0;
3136 char *_kwnames
[] = { "self","d", NULL
};
3139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetDepth",_kwnames
,&_argo0
,&_arg1
))
3142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3149 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3150 wxCursor_SetDepth(_arg0
,_arg1
);
3152 wxPyEndAllowThreads(__tstate
);
3153 if (PyErr_Occurred()) return NULL
;
3154 } Py_INCREF(Py_None
);
3155 _resultobj
= Py_None
;
3159 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3160 static PyObject
*_wrap_wxCursor_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3161 PyObject
* _resultobj
;
3164 PyObject
* _argo0
= 0;
3166 PyObject
* _obj1
= 0;
3167 char *_kwnames
[] = { "self","size", NULL
};
3170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCursor_SetSize",_kwnames
,&_argo0
,&_obj1
))
3173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3181 if (! wxSize_helper(_obj1
, &_arg1
))
3185 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3186 wxCursor_SetSize(_arg0
,*_arg1
);
3188 wxPyEndAllowThreads(__tstate
);
3189 if (PyErr_Occurred()) return NULL
;
3190 } Py_INCREF(Py_None
);
3191 _resultobj
= Py_None
;
3195 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
3196 static PyObject
*_wrap_new_wxNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3197 PyObject
* _resultobj
;
3198 wxNativeFontInfo
* _result
;
3199 char *_kwnames
[] = { NULL
};
3203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxNativeFontInfo",_kwnames
))
3206 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3207 _result
= (wxNativeFontInfo
*)new_wxNativeFontInfo();
3209 wxPyEndAllowThreads(__tstate
);
3210 if (PyErr_Occurred()) return NULL
;
3212 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
3213 _resultobj
= Py_BuildValue("s",_ptemp
);
3216 _resultobj
= Py_None
;
3221 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
3222 static PyObject
*_wrap_wxNativeFontInfo_Init(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3223 PyObject
* _resultobj
;
3224 wxNativeFontInfo
* _arg0
;
3225 PyObject
* _argo0
= 0;
3226 char *_kwnames
[] = { "self", NULL
};
3229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_Init",_kwnames
,&_argo0
))
3232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
3239 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3240 wxNativeFontInfo_Init(_arg0
);
3242 wxPyEndAllowThreads(__tstate
);
3243 if (PyErr_Occurred()) return NULL
;
3244 } Py_INCREF(Py_None
);
3245 _resultobj
= Py_None
;
3249 #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3250 static PyObject
*_wrap_wxNativeFontInfo_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3251 PyObject
* _resultobj
;
3253 wxNativeFontInfo
* _arg0
;
3254 PyObject
* _argo0
= 0;
3255 char *_kwnames
[] = { "self", NULL
};
3258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetPointSize",_kwnames
,&_argo0
))
3261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p.");
3268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3269 _result
= (int )wxNativeFontInfo_GetPointSize(_arg0
);
3271 wxPyEndAllowThreads(__tstate
);
3272 if (PyErr_Occurred()) return NULL
;
3273 } _resultobj
= Py_BuildValue("i",_result
);
3277 #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle())
3278 static PyObject
*_wrap_wxNativeFontInfo_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3279 PyObject
* _resultobj
;
3280 wxFontStyle _result
;
3281 wxNativeFontInfo
* _arg0
;
3282 PyObject
* _argo0
= 0;
3283 char *_kwnames
[] = { "self", NULL
};
3286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetStyle",_kwnames
,&_argo0
))
3289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p.");
3296 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3297 _result
= (wxFontStyle
)wxNativeFontInfo_GetStyle(_arg0
);
3299 wxPyEndAllowThreads(__tstate
);
3300 if (PyErr_Occurred()) return NULL
;
3301 } _resultobj
= Py_BuildValue("i",_result
);
3305 #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight())
3306 static PyObject
*_wrap_wxNativeFontInfo_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3307 PyObject
* _resultobj
;
3308 wxFontWeight _result
;
3309 wxNativeFontInfo
* _arg0
;
3310 PyObject
* _argo0
= 0;
3311 char *_kwnames
[] = { "self", NULL
};
3314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetWeight",_kwnames
,&_argo0
))
3317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p.");
3324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3325 _result
= (wxFontWeight
)wxNativeFontInfo_GetWeight(_arg0
);
3327 wxPyEndAllowThreads(__tstate
);
3328 if (PyErr_Occurred()) return NULL
;
3329 } _resultobj
= Py_BuildValue("i",_result
);
3333 #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3334 static PyObject
*_wrap_wxNativeFontInfo_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3335 PyObject
* _resultobj
;
3337 wxNativeFontInfo
* _arg0
;
3338 PyObject
* _argo0
= 0;
3339 char *_kwnames
[] = { "self", NULL
};
3342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetUnderlined",_kwnames
,&_argo0
))
3345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p.");
3352 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3353 _result
= (bool )wxNativeFontInfo_GetUnderlined(_arg0
);
3355 wxPyEndAllowThreads(__tstate
);
3356 if (PyErr_Occurred()) return NULL
;
3357 } _resultobj
= Py_BuildValue("i",_result
);
3361 #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3362 static PyObject
*_wrap_wxNativeFontInfo_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3363 PyObject
* _resultobj
;
3365 wxNativeFontInfo
* _arg0
;
3366 PyObject
* _argo0
= 0;
3367 char *_kwnames
[] = { "self", NULL
};
3370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetFaceName",_kwnames
,&_argo0
))
3373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p.");
3380 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3381 _result
= new wxString (wxNativeFontInfo_GetFaceName(_arg0
));
3383 wxPyEndAllowThreads(__tstate
);
3384 if (PyErr_Occurred()) return NULL
;
3386 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3394 #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily())
3395 static PyObject
*_wrap_wxNativeFontInfo_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3396 PyObject
* _resultobj
;
3397 wxFontFamily _result
;
3398 wxNativeFontInfo
* _arg0
;
3399 PyObject
* _argo0
= 0;
3400 char *_kwnames
[] = { "self", NULL
};
3403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetFamily",_kwnames
,&_argo0
))
3406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p.");
3413 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3414 _result
= (wxFontFamily
)wxNativeFontInfo_GetFamily(_arg0
);
3416 wxPyEndAllowThreads(__tstate
);
3417 if (PyErr_Occurred()) return NULL
;
3418 } _resultobj
= Py_BuildValue("i",_result
);
3422 #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3423 static PyObject
*_wrap_wxNativeFontInfo_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3424 PyObject
* _resultobj
;
3425 wxFontEncoding _result
;
3426 wxNativeFontInfo
* _arg0
;
3427 PyObject
* _argo0
= 0;
3428 char *_kwnames
[] = { "self", NULL
};
3431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetEncoding",_kwnames
,&_argo0
))
3434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p.");
3441 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3442 _result
= (wxFontEncoding
)wxNativeFontInfo_GetEncoding(_arg0
);
3444 wxPyEndAllowThreads(__tstate
);
3445 if (PyErr_Occurred()) return NULL
;
3446 } _resultobj
= Py_BuildValue("i",_result
);
3450 #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3451 static PyObject
*_wrap_wxNativeFontInfo_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3452 PyObject
* _resultobj
;
3453 wxNativeFontInfo
* _arg0
;
3455 PyObject
* _argo0
= 0;
3456 char *_kwnames
[] = { "self","pointsize", NULL
};
3459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
3462 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3463 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p.");
3469 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3470 wxNativeFontInfo_SetPointSize(_arg0
,_arg1
);
3472 wxPyEndAllowThreads(__tstate
);
3473 if (PyErr_Occurred()) return NULL
;
3474 } Py_INCREF(Py_None
);
3475 _resultobj
= Py_None
;
3479 #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3480 static PyObject
*_wrap_wxNativeFontInfo_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3481 PyObject
* _resultobj
;
3482 wxNativeFontInfo
* _arg0
;
3484 PyObject
* _argo0
= 0;
3485 char *_kwnames
[] = { "self","style", NULL
};
3488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p.");
3498 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3499 wxNativeFontInfo_SetStyle(_arg0
,_arg1
);
3501 wxPyEndAllowThreads(__tstate
);
3502 if (PyErr_Occurred()) return NULL
;
3503 } Py_INCREF(Py_None
);
3504 _resultobj
= Py_None
;
3508 #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3509 static PyObject
*_wrap_wxNativeFontInfo_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3510 PyObject
* _resultobj
;
3511 wxNativeFontInfo
* _arg0
;
3513 PyObject
* _argo0
= 0;
3514 char *_kwnames
[] = { "self","weight", NULL
};
3517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetWeight",_kwnames
,&_argo0
,&_arg1
))
3520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p.");
3527 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3528 wxNativeFontInfo_SetWeight(_arg0
,_arg1
);
3530 wxPyEndAllowThreads(__tstate
);
3531 if (PyErr_Occurred()) return NULL
;
3532 } Py_INCREF(Py_None
);
3533 _resultobj
= Py_None
;
3537 #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3538 static PyObject
*_wrap_wxNativeFontInfo_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3539 PyObject
* _resultobj
;
3540 wxNativeFontInfo
* _arg0
;
3542 PyObject
* _argo0
= 0;
3544 char *_kwnames
[] = { "self","underlined", NULL
};
3547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
3550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p.");
3556 _arg1
= (bool ) tempbool1
;
3558 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3559 wxNativeFontInfo_SetUnderlined(_arg0
,_arg1
);
3561 wxPyEndAllowThreads(__tstate
);
3562 if (PyErr_Occurred()) return NULL
;
3563 } Py_INCREF(Py_None
);
3564 _resultobj
= Py_None
;
3568 #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3569 static PyObject
*_wrap_wxNativeFontInfo_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3570 PyObject
* _resultobj
;
3571 wxNativeFontInfo
* _arg0
;
3573 PyObject
* _argo0
= 0;
3574 PyObject
* _obj1
= 0;
3575 char *_kwnames
[] = { "self","facename", NULL
};
3578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
3581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p.");
3588 #if PYTHON_API_VERSION >= 1009
3589 char* tmpPtr
; int tmpSize
;
3590 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3591 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3594 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3596 _arg1
= new wxString(tmpPtr
, tmpSize
);
3598 if (!PyString_Check(_obj1
)) {
3599 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3602 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3606 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3607 wxNativeFontInfo_SetFaceName(_arg0
,*_arg1
);
3609 wxPyEndAllowThreads(__tstate
);
3610 if (PyErr_Occurred()) return NULL
;
3611 } Py_INCREF(Py_None
);
3612 _resultobj
= Py_None
;
3620 #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3621 static PyObject
*_wrap_wxNativeFontInfo_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3622 PyObject
* _resultobj
;
3623 wxNativeFontInfo
* _arg0
;
3625 PyObject
* _argo0
= 0;
3626 char *_kwnames
[] = { "self","family", NULL
};
3629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetFamily",_kwnames
,&_argo0
,&_arg1
))
3632 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3633 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p.");
3639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3640 wxNativeFontInfo_SetFamily(_arg0
,_arg1
);
3642 wxPyEndAllowThreads(__tstate
);
3643 if (PyErr_Occurred()) return NULL
;
3644 } Py_INCREF(Py_None
);
3645 _resultobj
= Py_None
;
3649 #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3650 static PyObject
*_wrap_wxNativeFontInfo_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3651 PyObject
* _resultobj
;
3652 wxNativeFontInfo
* _arg0
;
3653 wxFontEncoding _arg1
;
3654 PyObject
* _argo0
= 0;
3655 char *_kwnames
[] = { "self","encoding", NULL
};
3658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
3661 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3662 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p.");
3668 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3669 wxNativeFontInfo_SetEncoding(_arg0
,_arg1
);
3671 wxPyEndAllowThreads(__tstate
);
3672 if (PyErr_Occurred()) return NULL
;
3673 } Py_INCREF(Py_None
);
3674 _resultobj
= Py_None
;
3678 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
3679 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3680 PyObject
* _resultobj
;
3682 wxNativeFontInfo
* _arg0
;
3684 PyObject
* _argo0
= 0;
3685 PyObject
* _obj1
= 0;
3686 char *_kwnames
[] = { "self","s", NULL
};
3689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
3692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3699 #if PYTHON_API_VERSION >= 1009
3700 char* tmpPtr
; int tmpSize
;
3701 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3702 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3705 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3707 _arg1
= new wxString(tmpPtr
, tmpSize
);
3709 if (!PyString_Check(_obj1
)) {
3710 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3713 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3717 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3718 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
3720 wxPyEndAllowThreads(__tstate
);
3721 if (PyErr_Occurred()) return NULL
;
3722 } _resultobj
= Py_BuildValue("i",_result
);
3730 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3731 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3732 PyObject
* _resultobj
;
3734 wxNativeFontInfo
* _arg0
;
3735 PyObject
* _argo0
= 0;
3736 char *_kwnames
[] = { "self", NULL
};
3739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
3742 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3743 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3744 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3749 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3750 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
3752 wxPyEndAllowThreads(__tstate
);
3753 if (PyErr_Occurred()) return NULL
;
3755 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3763 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
3764 return self
->ToString();
3766 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3767 PyObject
* _resultobj
;
3769 wxNativeFontInfo
* _arg0
;
3770 PyObject
* _argo0
= 0;
3771 char *_kwnames
[] = { "self", NULL
};
3774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
3777 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3778 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3784 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3785 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
3787 wxPyEndAllowThreads(__tstate
);
3788 if (PyErr_Occurred()) return NULL
;
3790 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3798 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
3799 static PyObject
*_wrap_wxNativeFontInfo_FromUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3800 PyObject
* _resultobj
;
3802 wxNativeFontInfo
* _arg0
;
3804 PyObject
* _argo0
= 0;
3805 PyObject
* _obj1
= 0;
3806 char *_kwnames
[] = { "self","s", NULL
};
3809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromUserString",_kwnames
,&_argo0
,&_obj1
))
3812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
3819 #if PYTHON_API_VERSION >= 1009
3820 char* tmpPtr
; int tmpSize
;
3821 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3822 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3825 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3827 _arg1
= new wxString(tmpPtr
, tmpSize
);
3829 if (!PyString_Check(_obj1
)) {
3830 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3833 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3837 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3838 _result
= (bool )wxNativeFontInfo_FromUserString(_arg0
,*_arg1
);
3840 wxPyEndAllowThreads(__tstate
);
3841 if (PyErr_Occurred()) return NULL
;
3842 } _resultobj
= Py_BuildValue("i",_result
);
3850 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
3851 static PyObject
*_wrap_wxNativeFontInfo_ToUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3852 PyObject
* _resultobj
;
3854 wxNativeFontInfo
* _arg0
;
3855 PyObject
* _argo0
= 0;
3856 char *_kwnames
[] = { "self", NULL
};
3859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToUserString",_kwnames
,&_argo0
))
3862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
3869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3870 _result
= new wxString (wxNativeFontInfo_ToUserString(_arg0
));
3872 wxPyEndAllowThreads(__tstate
);
3873 if (PyErr_Occurred()) return NULL
;
3875 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3883 #define new_wxFontMapper() (new wxFontMapper())
3884 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3885 PyObject
* _resultobj
;
3886 wxFontMapper
* _result
;
3887 char *_kwnames
[] = { NULL
};
3891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
3894 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3895 _result
= (wxFontMapper
*)new_wxFontMapper();
3897 wxPyEndAllowThreads(__tstate
);
3898 if (PyErr_Occurred()) return NULL
;
3900 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
3901 _resultobj
= Py_BuildValue("s",_ptemp
);
3904 _resultobj
= Py_None
;
3909 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3910 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3911 PyObject
* _resultobj
;
3912 wxFontMapper
* _arg0
;
3913 PyObject
* _argo0
= 0;
3914 char *_kwnames
[] = { "self", NULL
};
3917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
3920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3927 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3928 delete_wxFontMapper(_arg0
);
3930 wxPyEndAllowThreads(__tstate
);
3931 if (PyErr_Occurred()) return NULL
;
3932 } Py_INCREF(Py_None
);
3933 _resultobj
= Py_None
;
3937 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
3938 wxFontEncoding alt_enc
;
3939 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
3940 return PyInt_FromLong(alt_enc
);
3946 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3947 PyObject
* _resultobj
;
3949 wxFontMapper
* _arg0
;
3950 wxFontEncoding _arg1
;
3951 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3952 bool _arg3
= (bool ) TRUE
;
3953 PyObject
* _argo0
= 0;
3954 PyObject
* _obj2
= 0;
3955 int tempbool3
= (int) TRUE
;
3956 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
3959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
3962 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3963 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3970 #if PYTHON_API_VERSION >= 1009
3971 char* tmpPtr
; int tmpSize
;
3972 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3973 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3976 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3978 _arg2
= new wxString(tmpPtr
, tmpSize
);
3980 if (!PyString_Check(_obj2
)) {
3981 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3984 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3987 _arg3
= (bool ) tempbool3
;
3989 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3990 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
3992 wxPyEndAllowThreads(__tstate
);
3993 if (PyErr_Occurred()) return NULL
;
3995 _resultobj
= _result
;
4004 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
4005 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4006 PyObject
* _resultobj
;
4008 wxFontMapper
* _arg0
;
4009 wxFontEncoding _arg1
;
4010 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
4011 PyObject
* _argo0
= 0;
4012 PyObject
* _obj2
= 0;
4013 char *_kwnames
[] = { "self","encoding","facename", NULL
};
4016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
4019 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4020 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
4027 #if PYTHON_API_VERSION >= 1009
4028 char* tmpPtr
; int tmpSize
;
4029 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
4030 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4033 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
4035 _arg2
= new wxString(tmpPtr
, tmpSize
);
4037 if (!PyString_Check(_obj2
)) {
4038 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4041 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
4045 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4046 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
4048 wxPyEndAllowThreads(__tstate
);
4049 if (PyErr_Occurred()) return NULL
;
4050 } _resultobj
= Py_BuildValue("i",_result
);
4058 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
4059 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4060 PyObject
* _resultobj
;
4061 wxFontEncoding _result
;
4062 wxFontMapper
* _arg0
;
4064 bool _arg2
= (bool ) TRUE
;
4065 PyObject
* _argo0
= 0;
4066 PyObject
* _obj1
= 0;
4067 int tempbool2
= (int) TRUE
;
4068 char *_kwnames
[] = { "self","charset","interactive", NULL
};
4071 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
4074 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4075 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4076 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
4081 #if PYTHON_API_VERSION >= 1009
4082 char* tmpPtr
; int tmpSize
;
4083 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4084 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4087 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4089 _arg1
= new wxString(tmpPtr
, tmpSize
);
4091 if (!PyString_Check(_obj1
)) {
4092 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4095 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4098 _arg2
= (bool ) tempbool2
;
4100 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4101 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
4103 wxPyEndAllowThreads(__tstate
);
4104 if (PyErr_Occurred()) return NULL
;
4105 } _resultobj
= Py_BuildValue("i",_result
);
4113 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4114 PyObject
* _resultobj
;
4116 wxFontEncoding _arg0
;
4117 char *_kwnames
[] = { "encoding", NULL
};
4120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
4123 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4124 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
4126 wxPyEndAllowThreads(__tstate
);
4127 if (PyErr_Occurred()) return NULL
;
4129 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4137 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4138 PyObject
* _resultobj
;
4140 wxFontEncoding _arg0
;
4141 char *_kwnames
[] = { "encoding", NULL
};
4144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
4147 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4148 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
4150 wxPyEndAllowThreads(__tstate
);
4151 if (PyErr_Occurred()) return NULL
;
4153 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4161 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
4162 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4163 PyObject
* _resultobj
;
4164 wxFontMapper
* _arg0
;
4166 PyObject
* _argo0
= 0;
4167 PyObject
* _argo1
= 0;
4168 char *_kwnames
[] = { "self","parent", NULL
};
4171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
4174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
4181 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4182 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
4183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
4188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4189 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
4191 wxPyEndAllowThreads(__tstate
);
4192 if (PyErr_Occurred()) return NULL
;
4193 } Py_INCREF(Py_None
);
4194 _resultobj
= Py_None
;
4198 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
4199 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4200 PyObject
* _resultobj
;
4201 wxFontMapper
* _arg0
;
4203 PyObject
* _argo0
= 0;
4204 PyObject
* _obj1
= 0;
4205 char *_kwnames
[] = { "self","title", NULL
};
4208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
4211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
4218 #if PYTHON_API_VERSION >= 1009
4219 char* tmpPtr
; int tmpSize
;
4220 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4221 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4224 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4226 _arg1
= new wxString(tmpPtr
, tmpSize
);
4228 if (!PyString_Check(_obj1
)) {
4229 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4232 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4237 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
4239 wxPyEndAllowThreads(__tstate
);
4240 if (PyErr_Occurred()) return NULL
;
4241 } Py_INCREF(Py_None
);
4242 _resultobj
= Py_None
;
4250 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
4251 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4252 PyObject
* _resultobj
;
4253 wxFontMapper
* _arg0
;
4254 wxConfigBase
* _arg1
;
4255 PyObject
* _argo0
= 0;
4256 PyObject
* _argo1
= 0;
4257 char *_kwnames
[] = { "self","config", NULL
};
4260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
4263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
4270 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4271 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
4272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
4277 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4278 wxFontMapper_SetConfig(_arg0
,_arg1
);
4280 wxPyEndAllowThreads(__tstate
);
4281 if (PyErr_Occurred()) return NULL
;
4282 } Py_INCREF(Py_None
);
4283 _resultobj
= Py_None
;
4287 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
4288 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4289 PyObject
* _resultobj
;
4290 wxFontMapper
* _arg0
;
4292 PyObject
* _argo0
= 0;
4293 PyObject
* _obj1
= 0;
4294 char *_kwnames
[] = { "self","prefix", NULL
};
4297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
4300 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4301 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4302 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
4307 #if PYTHON_API_VERSION >= 1009
4308 char* tmpPtr
; int tmpSize
;
4309 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4310 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4313 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4315 _arg1
= new wxString(tmpPtr
, tmpSize
);
4317 if (!PyString_Check(_obj1
)) {
4318 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4321 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4325 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4326 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
4328 wxPyEndAllowThreads(__tstate
);
4329 if (PyErr_Occurred()) return NULL
;
4330 } Py_INCREF(Py_None
);
4331 _resultobj
= Py_None
;
4339 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4340 PyObject
* _resultobj
;
4342 char *_kwnames
[] = { NULL
};
4345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
4348 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4349 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
4351 wxPyEndAllowThreads(__tstate
);
4352 if (PyErr_Occurred()) return NULL
;
4353 } _resultobj
= Py_BuildValue("s", _result
);
4357 static void *SwigwxFontTowxGDIObject(void *ptr
) {
4360 src
= (wxFont
*) ptr
;
4361 dest
= (wxGDIObject
*) src
;
4362 return (void *) dest
;
4365 static void *SwigwxFontTowxObject(void *ptr
) {
4368 src
= (wxFont
*) ptr
;
4369 dest
= (wxObject
*) src
;
4370 return (void *) dest
;
4373 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4374 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4375 PyObject
* _resultobj
;
4381 int _arg4
= (int ) FALSE
;
4382 char * _arg5
= (char *) "";
4383 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
4384 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
4388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4391 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4392 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4394 wxPyEndAllowThreads(__tstate
);
4395 if (PyErr_Occurred()) return NULL
;
4397 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4398 _resultobj
= Py_BuildValue("s",_ptemp
);
4401 _resultobj
= Py_None
;
4406 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
4407 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4408 PyObject
* _resultobj
;
4410 wxNativeFontInfo
* _arg0
;
4411 PyObject
* _argo0
= 0;
4412 char *_kwnames
[] = { "info", NULL
};
4416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
4419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
4421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
4426 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4427 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
4429 wxPyEndAllowThreads(__tstate
);
4430 if (PyErr_Occurred()) return NULL
;
4432 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4433 _resultobj
= Py_BuildValue("s",_ptemp
);
4436 _resultobj
= Py_None
;
4441 #define delete_wxFont(_swigobj) (delete _swigobj)
4442 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4443 PyObject
* _resultobj
;
4445 PyObject
* _argo0
= 0;
4446 char *_kwnames
[] = { "self", NULL
};
4449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
4452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
4459 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4460 delete_wxFont(_arg0
);
4462 wxPyEndAllowThreads(__tstate
);
4463 if (PyErr_Occurred()) return NULL
;
4464 } Py_INCREF(Py_None
);
4465 _resultobj
= Py_None
;
4469 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
4470 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4471 PyObject
* _resultobj
;
4474 PyObject
* _argo0
= 0;
4475 char *_kwnames
[] = { "self", NULL
};
4478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
4481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
4488 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4489 _result
= (bool )wxFont_Ok(_arg0
);
4491 wxPyEndAllowThreads(__tstate
);
4492 if (PyErr_Occurred()) return NULL
;
4493 } _resultobj
= Py_BuildValue("i",_result
);
4497 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
4498 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4499 PyObject
* _resultobj
;
4502 PyObject
* _argo0
= 0;
4503 char *_kwnames
[] = { "self", NULL
};
4506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
4509 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4510 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
4516 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4517 _result
= (int )wxFont_GetPointSize(_arg0
);
4519 wxPyEndAllowThreads(__tstate
);
4520 if (PyErr_Occurred()) return NULL
;
4521 } _resultobj
= Py_BuildValue("i",_result
);
4525 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
4526 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4527 PyObject
* _resultobj
;
4530 PyObject
* _argo0
= 0;
4531 char *_kwnames
[] = { "self", NULL
};
4534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
4537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
4544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4545 _result
= (int )wxFont_GetFamily(_arg0
);
4547 wxPyEndAllowThreads(__tstate
);
4548 if (PyErr_Occurred()) return NULL
;
4549 } _resultobj
= Py_BuildValue("i",_result
);
4553 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
4554 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4555 PyObject
* _resultobj
;
4558 PyObject
* _argo0
= 0;
4559 char *_kwnames
[] = { "self", NULL
};
4562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
4565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
4572 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4573 _result
= (int )wxFont_GetStyle(_arg0
);
4575 wxPyEndAllowThreads(__tstate
);
4576 if (PyErr_Occurred()) return NULL
;
4577 } _resultobj
= Py_BuildValue("i",_result
);
4581 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
4582 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4583 PyObject
* _resultobj
;
4586 PyObject
* _argo0
= 0;
4587 char *_kwnames
[] = { "self", NULL
};
4590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
4593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
4600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4601 _result
= (int )wxFont_GetWeight(_arg0
);
4603 wxPyEndAllowThreads(__tstate
);
4604 if (PyErr_Occurred()) return NULL
;
4605 } _resultobj
= Py_BuildValue("i",_result
);
4609 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
4610 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4611 PyObject
* _resultobj
;
4614 PyObject
* _argo0
= 0;
4615 char *_kwnames
[] = { "self", NULL
};
4618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
4621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
4628 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4629 _result
= (bool )wxFont_GetUnderlined(_arg0
);
4631 wxPyEndAllowThreads(__tstate
);
4632 if (PyErr_Occurred()) return NULL
;
4633 } _resultobj
= Py_BuildValue("i",_result
);
4637 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
4638 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4639 PyObject
* _resultobj
;
4642 PyObject
* _argo0
= 0;
4643 char *_kwnames
[] = { "self", NULL
};
4646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
4649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
4656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4657 _result
= new wxString (wxFont_GetFaceName(_arg0
));
4659 wxPyEndAllowThreads(__tstate
);
4660 if (PyErr_Occurred()) return NULL
;
4662 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4670 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
4671 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4672 PyObject
* _resultobj
;
4673 wxFontEncoding _result
;
4675 PyObject
* _argo0
= 0;
4676 char *_kwnames
[] = { "self", NULL
};
4679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
4682 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4683 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4689 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4690 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
4692 wxPyEndAllowThreads(__tstate
);
4693 if (PyErr_Occurred()) return NULL
;
4694 } _resultobj
= Py_BuildValue("i",_result
);
4698 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4699 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4700 PyObject
* _resultobj
;
4701 wxNativeFontInfo
* _result
;
4703 PyObject
* _argo0
= 0;
4704 char *_kwnames
[] = { "self", NULL
};
4708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
4711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4719 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
4721 wxPyEndAllowThreads(__tstate
);
4722 if (PyErr_Occurred()) return NULL
;
4724 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
4725 _resultobj
= Py_BuildValue("s",_ptemp
);
4728 _resultobj
= Py_None
;
4733 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
4734 static PyObject
*_wrap_wxFont_GetNativeFontInfoDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4735 PyObject
* _resultobj
;
4738 PyObject
* _argo0
= 0;
4739 char *_kwnames
[] = { "self", NULL
};
4742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoDesc",_kwnames
,&_argo0
))
4745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
4752 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4753 _result
= new wxString (wxFont_GetNativeFontInfoDesc(_arg0
));
4755 wxPyEndAllowThreads(__tstate
);
4756 if (PyErr_Occurred()) return NULL
;
4758 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4766 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
4767 static PyObject
*_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4768 PyObject
* _resultobj
;
4771 PyObject
* _argo0
= 0;
4772 char *_kwnames
[] = { "self", NULL
};
4775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames
,&_argo0
))
4778 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4779 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
4785 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4786 _result
= new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0
));
4788 wxPyEndAllowThreads(__tstate
);
4789 if (PyErr_Occurred()) return NULL
;
4791 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4799 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4800 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4801 PyObject
* _resultobj
;
4804 PyObject
* _argo0
= 0;
4805 char *_kwnames
[] = { "self","pointSize", NULL
};
4808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
4811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4819 wxFont_SetPointSize(_arg0
,_arg1
);
4821 wxPyEndAllowThreads(__tstate
);
4822 if (PyErr_Occurred()) return NULL
;
4823 } Py_INCREF(Py_None
);
4824 _resultobj
= Py_None
;
4828 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4829 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4830 PyObject
* _resultobj
;
4833 PyObject
* _argo0
= 0;
4834 char *_kwnames
[] = { "self","family", NULL
};
4837 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
4840 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4841 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4842 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4847 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4848 wxFont_SetFamily(_arg0
,_arg1
);
4850 wxPyEndAllowThreads(__tstate
);
4851 if (PyErr_Occurred()) return NULL
;
4852 } Py_INCREF(Py_None
);
4853 _resultobj
= Py_None
;
4857 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4858 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4859 PyObject
* _resultobj
;
4862 PyObject
* _argo0
= 0;
4863 char *_kwnames
[] = { "self","style", NULL
};
4866 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4869 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4870 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4871 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4876 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4877 wxFont_SetStyle(_arg0
,_arg1
);
4879 wxPyEndAllowThreads(__tstate
);
4880 if (PyErr_Occurred()) return NULL
;
4881 } Py_INCREF(Py_None
);
4882 _resultobj
= Py_None
;
4886 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4887 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4888 PyObject
* _resultobj
;
4891 PyObject
* _argo0
= 0;
4892 char *_kwnames
[] = { "self","weight", NULL
};
4895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
4898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4905 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4906 wxFont_SetWeight(_arg0
,_arg1
);
4908 wxPyEndAllowThreads(__tstate
);
4909 if (PyErr_Occurred()) return NULL
;
4910 } Py_INCREF(Py_None
);
4911 _resultobj
= Py_None
;
4915 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4916 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4917 PyObject
* _resultobj
;
4920 PyObject
* _argo0
= 0;
4921 PyObject
* _obj1
= 0;
4922 char *_kwnames
[] = { "self","faceName", NULL
};
4925 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
4928 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4929 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4930 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4935 #if PYTHON_API_VERSION >= 1009
4936 char* tmpPtr
; int tmpSize
;
4937 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4938 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4941 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4943 _arg1
= new wxString(tmpPtr
, tmpSize
);
4945 if (!PyString_Check(_obj1
)) {
4946 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4949 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4953 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4954 wxFont_SetFaceName(_arg0
,*_arg1
);
4956 wxPyEndAllowThreads(__tstate
);
4957 if (PyErr_Occurred()) return NULL
;
4958 } Py_INCREF(Py_None
);
4959 _resultobj
= Py_None
;
4967 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4968 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4969 PyObject
* _resultobj
;
4972 PyObject
* _argo0
= 0;
4974 char *_kwnames
[] = { "self","underlined", NULL
};
4977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
4980 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4981 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4986 _arg1
= (bool ) tempbool1
;
4988 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4989 wxFont_SetUnderlined(_arg0
,_arg1
);
4991 wxPyEndAllowThreads(__tstate
);
4992 if (PyErr_Occurred()) return NULL
;
4993 } Py_INCREF(Py_None
);
4994 _resultobj
= Py_None
;
4998 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4999 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5000 PyObject
* _resultobj
;
5002 wxFontEncoding _arg1
;
5003 PyObject
* _argo0
= 0;
5004 char *_kwnames
[] = { "self","encoding", NULL
};
5007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
5010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
5017 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5018 wxFont_SetEncoding(_arg0
,_arg1
);
5020 wxPyEndAllowThreads(__tstate
);
5021 if (PyErr_Occurred()) return NULL
;
5022 } Py_INCREF(Py_None
);
5023 _resultobj
= Py_None
;
5027 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
5028 static PyObject
*_wrap_wxFont_SetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5029 PyObject
* _resultobj
;
5031 wxNativeFontInfo
* _arg1
;
5032 PyObject
* _argo0
= 0;
5033 PyObject
* _argo1
= 0;
5034 char *_kwnames
[] = { "self","info", NULL
};
5037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfo",_kwnames
,&_argo0
,&_argo1
))
5040 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5041 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5042 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
5047 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5048 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxNativeFontInfo_p")) {
5049 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
5054 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5055 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
5057 wxPyEndAllowThreads(__tstate
);
5058 if (PyErr_Occurred()) return NULL
;
5059 } Py_INCREF(Py_None
);
5060 _resultobj
= Py_None
;
5064 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
5065 static PyObject
*_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5066 PyObject
* _resultobj
;
5069 PyObject
* _argo0
= 0;
5070 PyObject
* _obj1
= 0;
5071 char *_kwnames
[] = { "self","info", NULL
};
5074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames
,&_argo0
,&_obj1
))
5077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
5084 #if PYTHON_API_VERSION >= 1009
5085 char* tmpPtr
; int tmpSize
;
5086 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5087 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5090 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5092 _arg1
= new wxString(tmpPtr
, tmpSize
);
5094 if (!PyString_Check(_obj1
)) {
5095 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5098 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5102 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5103 wxFont_SetNativeFontInfoUserDesc(_arg0
,*_arg1
);
5105 wxPyEndAllowThreads(__tstate
);
5106 if (PyErr_Occurred()) return NULL
;
5107 } Py_INCREF(Py_None
);
5108 _resultobj
= Py_None
;
5116 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
5117 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5118 PyObject
* _resultobj
;
5121 PyObject
* _argo0
= 0;
5122 char *_kwnames
[] = { "self", NULL
};
5125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
5128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
5135 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5136 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
5138 wxPyEndAllowThreads(__tstate
);
5139 if (PyErr_Occurred()) return NULL
;
5141 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5149 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
5150 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5151 PyObject
* _resultobj
;
5154 PyObject
* _argo0
= 0;
5155 char *_kwnames
[] = { "self", NULL
};
5158 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
5161 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5162 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5163 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
5168 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5169 _result
= new wxString (wxFont_GetStyleString(_arg0
));
5171 wxPyEndAllowThreads(__tstate
);
5172 if (PyErr_Occurred()) return NULL
;
5174 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5182 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
5183 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5184 PyObject
* _resultobj
;
5187 PyObject
* _argo0
= 0;
5188 char *_kwnames
[] = { "self", NULL
};
5191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
5194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
5201 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5202 _result
= new wxString (wxFont_GetWeightString(_arg0
));
5204 wxPyEndAllowThreads(__tstate
);
5205 if (PyErr_Occurred()) return NULL
;
5207 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5215 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5216 PyObject
* _resultobj
;
5217 wxFontEncoding _result
;
5218 char *_kwnames
[] = { NULL
};
5221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
5224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5225 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
5227 wxPyEndAllowThreads(__tstate
);
5228 if (PyErr_Occurred()) return NULL
;
5229 } _resultobj
= Py_BuildValue("i",_result
);
5233 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5234 PyObject
* _resultobj
;
5235 wxFontEncoding _arg0
;
5236 char *_kwnames
[] = { "encoding", NULL
};
5239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
5242 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5243 wxFont::SetDefaultEncoding(_arg0
);
5245 wxPyEndAllowThreads(__tstate
);
5246 if (PyErr_Occurred()) return NULL
;
5247 } Py_INCREF(Py_None
);
5248 _resultobj
= Py_None
;
5252 static void *SwigwxFontListTowxObject(void *ptr
) {
5255 src
= (wxFontList
*) ptr
;
5256 dest
= (wxObject
*) src
;
5257 return (void *) dest
;
5260 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
5261 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5262 PyObject
* _resultobj
;
5265 PyObject
* _argo0
= 0;
5266 PyObject
* _argo1
= 0;
5267 char *_kwnames
[] = { "self","font", NULL
};
5270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
5273 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5274 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
5275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
5280 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5281 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
5282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
5287 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5288 wxFontList_AddFont(_arg0
,_arg1
);
5290 wxPyEndAllowThreads(__tstate
);
5291 if (PyErr_Occurred()) return NULL
;
5292 } Py_INCREF(Py_None
);
5293 _resultobj
= Py_None
;
5297 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5298 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5299 PyObject
* _resultobj
;
5306 bool _arg5
= (bool ) FALSE
;
5307 char * _arg6
= (char *) NULL
;
5308 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
5309 PyObject
* _argo0
= 0;
5310 int tempbool5
= (int) FALSE
;
5311 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
5315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
5318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
5320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
5324 _arg5
= (bool ) tempbool5
;
5326 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5327 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
5329 wxPyEndAllowThreads(__tstate
);
5330 if (PyErr_Occurred()) return NULL
;
5332 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
5333 _resultobj
= Py_BuildValue("s",_ptemp
);
5336 _resultobj
= Py_None
;
5341 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
5342 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5343 PyObject
* _resultobj
;
5346 PyObject
* _argo0
= 0;
5347 PyObject
* _argo1
= 0;
5348 char *_kwnames
[] = { "self","font", NULL
};
5351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
5354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
5356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
5361 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5362 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
5363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
5368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5369 wxFontList_RemoveFont(_arg0
,_arg1
);
5371 wxPyEndAllowThreads(__tstate
);
5372 if (PyErr_Occurred()) return NULL
;
5373 } Py_INCREF(Py_None
);
5374 _resultobj
= Py_None
;
5378 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
5379 static PyObject
*_wrap_wxFontList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5380 PyObject
* _resultobj
;
5383 PyObject
* _argo0
= 0;
5384 char *_kwnames
[] = { "self", NULL
};
5387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFontList_GetCount",_kwnames
,&_argo0
))
5390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
5392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
5397 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5398 _result
= (int )wxFontList_GetCount(_arg0
);
5400 wxPyEndAllowThreads(__tstate
);
5401 if (PyErr_Occurred()) return NULL
;
5402 } _resultobj
= Py_BuildValue("i",_result
);
5406 static void *SwigwxColourTowxObject(void *ptr
) {
5409 src
= (wxColour
*) ptr
;
5410 dest
= (wxObject
*) src
;
5411 return (void *) dest
;
5414 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
5415 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5416 PyObject
* _resultobj
;
5418 unsigned char _arg0
= (unsigned char ) 0;
5419 unsigned char _arg1
= (unsigned char ) 0;
5420 unsigned char _arg2
= (unsigned char ) 0;
5421 char *_kwnames
[] = { "red","green","blue", NULL
};
5425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
5428 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5429 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
5431 wxPyEndAllowThreads(__tstate
);
5432 if (PyErr_Occurred()) return NULL
;
5434 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5435 _resultobj
= Py_BuildValue("s",_ptemp
);
5438 _resultobj
= Py_None
;
5443 #define delete_wxColour(_swigobj) (delete _swigobj)
5444 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5445 PyObject
* _resultobj
;
5448 PyObject
* _obj0
= 0;
5449 char *_kwnames
[] = { "self", NULL
};
5452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
5456 if (! wxColour_helper(_obj0
, &_arg0
))
5460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5461 delete_wxColour(_arg0
);
5463 wxPyEndAllowThreads(__tstate
);
5464 if (PyErr_Occurred()) return NULL
;
5465 } Py_INCREF(Py_None
);
5466 _resultobj
= Py_None
;
5470 #define wxColour_Red(_swigobj) (_swigobj->Red())
5471 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5472 PyObject
* _resultobj
;
5473 unsigned char _result
;
5476 PyObject
* _obj0
= 0;
5477 char *_kwnames
[] = { "self", NULL
};
5480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
5484 if (! wxColour_helper(_obj0
, &_arg0
))
5488 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5489 _result
= (unsigned char )wxColour_Red(_arg0
);
5491 wxPyEndAllowThreads(__tstate
);
5492 if (PyErr_Occurred()) return NULL
;
5493 } _resultobj
= Py_BuildValue("b",_result
);
5497 #define wxColour_Green(_swigobj) (_swigobj->Green())
5498 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5499 PyObject
* _resultobj
;
5500 unsigned char _result
;
5503 PyObject
* _obj0
= 0;
5504 char *_kwnames
[] = { "self", NULL
};
5507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
5511 if (! wxColour_helper(_obj0
, &_arg0
))
5515 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5516 _result
= (unsigned char )wxColour_Green(_arg0
);
5518 wxPyEndAllowThreads(__tstate
);
5519 if (PyErr_Occurred()) return NULL
;
5520 } _resultobj
= Py_BuildValue("b",_result
);
5524 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
5525 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5526 PyObject
* _resultobj
;
5527 unsigned char _result
;
5530 PyObject
* _obj0
= 0;
5531 char *_kwnames
[] = { "self", NULL
};
5534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
5538 if (! wxColour_helper(_obj0
, &_arg0
))
5542 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5543 _result
= (unsigned char )wxColour_Blue(_arg0
);
5545 wxPyEndAllowThreads(__tstate
);
5546 if (PyErr_Occurred()) return NULL
;
5547 } _resultobj
= Py_BuildValue("b",_result
);
5551 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
5552 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5553 PyObject
* _resultobj
;
5557 PyObject
* _obj0
= 0;
5558 char *_kwnames
[] = { "self", NULL
};
5561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
5565 if (! wxColour_helper(_obj0
, &_arg0
))
5569 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5570 _result
= (bool )wxColour_Ok(_arg0
);
5572 wxPyEndAllowThreads(__tstate
);
5573 if (PyErr_Occurred()) return NULL
;
5574 } _resultobj
= Py_BuildValue("i",_result
);
5578 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
5579 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5580 PyObject
* _resultobj
;
5582 unsigned char _arg1
;
5583 unsigned char _arg2
;
5584 unsigned char _arg3
;
5586 PyObject
* _obj0
= 0;
5587 char *_kwnames
[] = { "self","red","green","blue", NULL
};
5590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
5594 if (! wxColour_helper(_obj0
, &_arg0
))
5598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5599 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
5601 wxPyEndAllowThreads(__tstate
);
5602 if (PyErr_Occurred()) return NULL
;
5603 } Py_INCREF(Py_None
);
5604 _resultobj
= Py_None
;
5608 static PyObject
* wxColour_Get(wxColour
*self
) {
5609 PyObject
* rv
= PyTuple_New(3);
5610 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
5611 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
5612 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
5615 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5616 PyObject
* _resultobj
;
5620 PyObject
* _obj0
= 0;
5621 char *_kwnames
[] = { "self", NULL
};
5624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
5628 if (! wxColour_helper(_obj0
, &_arg0
))
5632 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5633 _result
= (PyObject
*)wxColour_Get(_arg0
);
5635 wxPyEndAllowThreads(__tstate
);
5636 if (PyErr_Occurred()) return NULL
;
5638 _resultobj
= _result
;
5643 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
5644 wxColourDatabase
*src
;
5646 src
= (wxColourDatabase
*) ptr
;
5647 dest
= (wxObject
*) src
;
5648 return (void *) dest
;
5651 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
5652 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5653 PyObject
* _resultobj
;
5655 wxColourDatabase
* _arg0
;
5657 PyObject
* _argo0
= 0;
5658 PyObject
* _obj1
= 0;
5659 char *_kwnames
[] = { "self","colour", NULL
};
5663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
5666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
5673 #if PYTHON_API_VERSION >= 1009
5674 char* tmpPtr
; int tmpSize
;
5675 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5676 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5679 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5681 _arg1
= new wxString(tmpPtr
, tmpSize
);
5683 if (!PyString_Check(_obj1
)) {
5684 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5687 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5691 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5692 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
5694 wxPyEndAllowThreads(__tstate
);
5695 if (PyErr_Occurred()) return NULL
;
5697 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5698 _resultobj
= Py_BuildValue("s",_ptemp
);
5701 _resultobj
= Py_None
;
5710 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
5711 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5712 PyObject
* _resultobj
;
5714 wxColourDatabase
* _arg0
;
5716 PyObject
* _argo0
= 0;
5718 PyObject
* _obj1
= 0;
5719 char *_kwnames
[] = { "self","colour", NULL
};
5722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
5725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5733 if (! wxColour_helper(_obj1
, &_arg1
))
5737 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5738 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
5740 wxPyEndAllowThreads(__tstate
);
5741 if (PyErr_Occurred()) return NULL
;
5743 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5751 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
5752 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
5754 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5755 PyObject
* _resultobj
;
5756 wxColourDatabase
* _arg0
;
5761 PyObject
* _argo0
= 0;
5762 PyObject
* _obj1
= 0;
5763 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
5766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5776 #if PYTHON_API_VERSION >= 1009
5777 char* tmpPtr
; int tmpSize
;
5778 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5779 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5782 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5784 _arg1
= new wxString(tmpPtr
, tmpSize
);
5786 if (!PyString_Check(_obj1
)) {
5787 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5790 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5795 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5797 wxPyEndAllowThreads(__tstate
);
5798 if (PyErr_Occurred()) return NULL
;
5799 } Py_INCREF(Py_None
);
5800 _resultobj
= Py_None
;
5808 static void *SwigwxPenTowxGDIObject(void *ptr
) {
5811 src
= (wxPen
*) ptr
;
5812 dest
= (wxGDIObject
*) src
;
5813 return (void *) dest
;
5816 static void *SwigwxPenTowxObject(void *ptr
) {
5819 src
= (wxPen
*) ptr
;
5820 dest
= (wxObject
*) src
;
5821 return (void *) dest
;
5824 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5825 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5826 PyObject
* _resultobj
;
5829 int _arg1
= (int ) 1;
5830 int _arg2
= (int ) wxSOLID
;
5832 PyObject
* _obj0
= 0;
5833 char *_kwnames
[] = { "colour","width","style", NULL
};
5837 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5841 if (! wxColour_helper(_obj0
, &_arg0
))
5845 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5846 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
5848 wxPyEndAllowThreads(__tstate
);
5849 if (PyErr_Occurred()) return NULL
;
5851 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5852 _resultobj
= Py_BuildValue("s",_ptemp
);
5855 _resultobj
= Py_None
;
5860 #define delete_wxPen(_swigobj) (delete _swigobj)
5861 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5862 PyObject
* _resultobj
;
5864 PyObject
* _argo0
= 0;
5865 char *_kwnames
[] = { "self", NULL
};
5868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
5871 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5872 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5879 delete_wxPen(_arg0
);
5881 wxPyEndAllowThreads(__tstate
);
5882 if (PyErr_Occurred()) return NULL
;
5883 } Py_INCREF(Py_None
);
5884 _resultobj
= Py_None
;
5888 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5889 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5890 PyObject
* _resultobj
;
5893 PyObject
* _argo0
= 0;
5894 char *_kwnames
[] = { "self", NULL
};
5897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
5900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5908 _result
= (int )wxPen_GetCap(_arg0
);
5910 wxPyEndAllowThreads(__tstate
);
5911 if (PyErr_Occurred()) return NULL
;
5912 } _resultobj
= Py_BuildValue("i",_result
);
5916 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5917 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5918 PyObject
* _resultobj
;
5921 PyObject
* _argo0
= 0;
5922 char *_kwnames
[] = { "self", NULL
};
5926 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
5929 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5930 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5931 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5936 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5937 _result
= new wxColour (wxPen_GetColour(_arg0
));
5939 wxPyEndAllowThreads(__tstate
);
5940 if (PyErr_Occurred()) return NULL
;
5941 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5942 _resultobj
= Py_BuildValue("s",_ptemp
);
5946 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5947 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5948 PyObject
* _resultobj
;
5951 PyObject
* _argo0
= 0;
5952 char *_kwnames
[] = { "self", NULL
};
5955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
5958 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5959 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5960 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5965 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5966 _result
= (int )wxPen_GetJoin(_arg0
);
5968 wxPyEndAllowThreads(__tstate
);
5969 if (PyErr_Occurred()) return NULL
;
5970 } _resultobj
= Py_BuildValue("i",_result
);
5974 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5975 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5976 PyObject
* _resultobj
;
5979 PyObject
* _argo0
= 0;
5980 char *_kwnames
[] = { "self", NULL
};
5983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
5986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5993 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5994 _result
= (int )wxPen_GetStyle(_arg0
);
5996 wxPyEndAllowThreads(__tstate
);
5997 if (PyErr_Occurred()) return NULL
;
5998 } _resultobj
= Py_BuildValue("i",_result
);
6002 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
6003 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6004 PyObject
* _resultobj
;
6007 PyObject
* _argo0
= 0;
6008 char *_kwnames
[] = { "self", NULL
};
6011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
6014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
6021 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6022 _result
= (int )wxPen_GetWidth(_arg0
);
6024 wxPyEndAllowThreads(__tstate
);
6025 if (PyErr_Occurred()) return NULL
;
6026 } _resultobj
= Py_BuildValue("i",_result
);
6030 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
6031 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6032 PyObject
* _resultobj
;
6035 PyObject
* _argo0
= 0;
6036 char *_kwnames
[] = { "self", NULL
};
6039 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
6042 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6043 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6044 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
6049 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6050 _result
= (bool )wxPen_Ok(_arg0
);
6052 wxPyEndAllowThreads(__tstate
);
6053 if (PyErr_Occurred()) return NULL
;
6054 } _resultobj
= Py_BuildValue("i",_result
);
6058 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
6059 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6060 PyObject
* _resultobj
;
6063 PyObject
* _argo0
= 0;
6064 char *_kwnames
[] = { "self","cap_style", NULL
};
6067 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
6070 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6071 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6072 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
6077 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6078 wxPen_SetCap(_arg0
,_arg1
);
6080 wxPyEndAllowThreads(__tstate
);
6081 if (PyErr_Occurred()) return NULL
;
6082 } Py_INCREF(Py_None
);
6083 _resultobj
= Py_None
;
6087 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6088 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6089 PyObject
* _resultobj
;
6092 PyObject
* _argo0
= 0;
6094 PyObject
* _obj1
= 0;
6095 char *_kwnames
[] = { "self","colour", NULL
};
6098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
6101 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6102 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
6109 if (! wxColour_helper(_obj1
, &_arg1
))
6113 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6114 wxPen_SetColour(_arg0
,*_arg1
);
6116 wxPyEndAllowThreads(__tstate
);
6117 if (PyErr_Occurred()) return NULL
;
6118 } Py_INCREF(Py_None
);
6119 _resultobj
= Py_None
;
6123 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
6124 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6125 PyObject
* _resultobj
;
6128 PyObject
* _argo0
= 0;
6129 char *_kwnames
[] = { "self","join_style", NULL
};
6132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
6135 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6136 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6137 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
6142 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6143 wxPen_SetJoin(_arg0
,_arg1
);
6145 wxPyEndAllowThreads(__tstate
);
6146 if (PyErr_Occurred()) return NULL
;
6147 } Py_INCREF(Py_None
);
6148 _resultobj
= Py_None
;
6152 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6153 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6154 PyObject
* _resultobj
;
6157 PyObject
* _argo0
= 0;
6158 char *_kwnames
[] = { "self","style", NULL
};
6161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
6164 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6165 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
6171 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6172 wxPen_SetStyle(_arg0
,_arg1
);
6174 wxPyEndAllowThreads(__tstate
);
6175 if (PyErr_Occurred()) return NULL
;
6176 } Py_INCREF(Py_None
);
6177 _resultobj
= Py_None
;
6181 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
6182 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6183 PyObject
* _resultobj
;
6186 PyObject
* _argo0
= 0;
6187 char *_kwnames
[] = { "self","width", NULL
};
6190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
6193 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6194 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
6200 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6201 wxPen_SetWidth(_arg0
,_arg1
);
6203 wxPyEndAllowThreads(__tstate
);
6204 if (PyErr_Occurred()) return NULL
;
6205 } Py_INCREF(Py_None
);
6206 _resultobj
= Py_None
;
6210 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6211 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6212 PyObject
* _resultobj
;
6216 PyObject
* _argo0
= 0;
6217 PyObject
* _obj2
= 0;
6218 char *_kwnames
[] = { "self","choices", NULL
};
6221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
6224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
6232 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
6233 if (_arg2
== NULL
) {
6239 _arg1
= PyList_Size(_obj2
);
6246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6247 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
6249 wxPyEndAllowThreads(__tstate
);
6250 if (PyErr_Occurred()) return NULL
;
6251 } Py_INCREF(Py_None
);
6252 _resultobj
= Py_None
;
6259 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
6260 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6261 PyObject
* _resultobj
;
6264 PyObject
* _argo0
= 0;
6265 char *_kwnames
[] = { "self", NULL
};
6269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
6272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
6279 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6280 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
6282 wxPyEndAllowThreads(__tstate
);
6283 if (PyErr_Occurred()) return NULL
;
6285 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
6286 _resultobj
= Py_BuildValue("s",_ptemp
);
6289 _resultobj
= Py_None
;
6294 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6295 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6296 PyObject
* _resultobj
;
6299 PyObject
* _argo0
= 0;
6300 PyObject
* _argo1
= 0;
6301 char *_kwnames
[] = { "self","stipple", NULL
};
6304 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
6307 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6308 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6309 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
6314 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6315 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
6321 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6322 wxPen_SetStipple(_arg0
,*_arg1
);
6324 wxPyEndAllowThreads(__tstate
);
6325 if (PyErr_Occurred()) return NULL
;
6326 } Py_INCREF(Py_None
);
6327 _resultobj
= Py_None
;
6331 static void *SwigwxPyPenTowxPen(void *ptr
) {
6334 src
= (wxPyPen
*) ptr
;
6335 dest
= (wxPen
*) src
;
6336 return (void *) dest
;
6339 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
6342 src
= (wxPyPen
*) ptr
;
6343 dest
= (wxGDIObject
*) src
;
6344 return (void *) dest
;
6347 static void *SwigwxPyPenTowxObject(void *ptr
) {
6350 src
= (wxPyPen
*) ptr
;
6351 dest
= (wxObject
*) src
;
6352 return (void *) dest
;
6355 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
6356 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6357 PyObject
* _resultobj
;
6360 int _arg1
= (int ) 1;
6361 int _arg2
= (int ) wxSOLID
;
6363 PyObject
* _obj0
= 0;
6364 char *_kwnames
[] = { "colour","width","style", NULL
};
6368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
6372 if (! wxColour_helper(_obj0
, &_arg0
))
6376 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6377 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
6379 wxPyEndAllowThreads(__tstate
);
6380 if (PyErr_Occurred()) return NULL
;
6382 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
6383 _resultobj
= Py_BuildValue("s",_ptemp
);
6386 _resultobj
= Py_None
;
6391 #define delete_wxPyPen(_swigobj) (delete _swigobj)
6392 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6393 PyObject
* _resultobj
;
6395 PyObject
* _argo0
= 0;
6396 char *_kwnames
[] = { "self", NULL
};
6399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
6402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
6404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
6409 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6410 delete_wxPyPen(_arg0
);
6412 wxPyEndAllowThreads(__tstate
);
6413 if (PyErr_Occurred()) return NULL
;
6414 } Py_INCREF(Py_None
);
6415 _resultobj
= Py_None
;
6419 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6420 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6421 PyObject
* _resultobj
;
6425 PyObject
* _argo0
= 0;
6426 PyObject
* _obj2
= 0;
6427 char *_kwnames
[] = { "self","choices", NULL
};
6430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
6433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
6435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
6441 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
6442 if (_arg2
== NULL
) {
6448 _arg1
= PyList_Size(_obj2
);
6455 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6456 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
6458 wxPyEndAllowThreads(__tstate
);
6459 if (PyErr_Occurred()) return NULL
;
6460 } Py_INCREF(Py_None
);
6461 _resultobj
= Py_None
;
6468 static void *SwigwxPenListTowxObject(void *ptr
) {
6471 src
= (wxPenList
*) ptr
;
6472 dest
= (wxObject
*) src
;
6473 return (void *) dest
;
6476 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
6477 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6478 PyObject
* _resultobj
;
6481 PyObject
* _argo0
= 0;
6482 PyObject
* _argo1
= 0;
6483 char *_kwnames
[] = { "self","pen", NULL
};
6486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
6489 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6490 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
6491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
6496 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6497 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
6498 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
6503 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6504 wxPenList_AddPen(_arg0
,_arg1
);
6506 wxPyEndAllowThreads(__tstate
);
6507 if (PyErr_Occurred()) return NULL
;
6508 } Py_INCREF(Py_None
);
6509 _resultobj
= Py_None
;
6513 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
6514 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6515 PyObject
* _resultobj
;
6521 PyObject
* _argo0
= 0;
6523 PyObject
* _obj1
= 0;
6524 char *_kwnames
[] = { "self","colour","width","style", NULL
};
6528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
6531 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6532 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
6533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
6539 if (! wxColour_helper(_obj1
, &_arg1
))
6543 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6544 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
6546 wxPyEndAllowThreads(__tstate
);
6547 if (PyErr_Occurred()) return NULL
;
6549 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6550 _resultobj
= Py_BuildValue("s",_ptemp
);
6553 _resultobj
= Py_None
;
6558 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
6559 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6560 PyObject
* _resultobj
;
6563 PyObject
* _argo0
= 0;
6564 PyObject
* _argo1
= 0;
6565 char *_kwnames
[] = { "self","pen", NULL
};
6568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
6571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
6573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
6578 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6579 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
6580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
6585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6586 wxPenList_RemovePen(_arg0
,_arg1
);
6588 wxPyEndAllowThreads(__tstate
);
6589 if (PyErr_Occurred()) return NULL
;
6590 } Py_INCREF(Py_None
);
6591 _resultobj
= Py_None
;
6595 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
6596 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6597 PyObject
* _resultobj
;
6600 PyObject
* _argo0
= 0;
6601 char *_kwnames
[] = { "self", NULL
};
6604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
6607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
6609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
6614 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6615 _result
= (int )wxPenList_GetCount(_arg0
);
6617 wxPyEndAllowThreads(__tstate
);
6618 if (PyErr_Occurred()) return NULL
;
6619 } _resultobj
= Py_BuildValue("i",_result
);
6623 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
6626 src
= (wxBrush
*) ptr
;
6627 dest
= (wxGDIObject
*) src
;
6628 return (void *) dest
;
6631 static void *SwigwxBrushTowxObject(void *ptr
) {
6634 src
= (wxBrush
*) ptr
;
6635 dest
= (wxObject
*) src
;
6636 return (void *) dest
;
6639 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
6640 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6641 PyObject
* _resultobj
;
6644 int _arg1
= (int ) wxSOLID
;
6646 PyObject
* _obj0
= 0;
6647 char *_kwnames
[] = { "colour","style", NULL
};
6651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
6655 if (! wxColour_helper(_obj0
, &_arg0
))
6659 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6660 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
6662 wxPyEndAllowThreads(__tstate
);
6663 if (PyErr_Occurred()) return NULL
;
6665 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6666 _resultobj
= Py_BuildValue("s",_ptemp
);
6669 _resultobj
= Py_None
;
6674 #define delete_wxBrush(_swigobj) (delete _swigobj)
6675 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6676 PyObject
* _resultobj
;
6678 PyObject
* _argo0
= 0;
6679 char *_kwnames
[] = { "self", NULL
};
6682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
6685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
6692 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6693 delete_wxBrush(_arg0
);
6695 wxPyEndAllowThreads(__tstate
);
6696 if (PyErr_Occurred()) return NULL
;
6697 } Py_INCREF(Py_None
);
6698 _resultobj
= Py_None
;
6702 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
6703 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6704 PyObject
* _resultobj
;
6707 PyObject
* _argo0
= 0;
6708 char *_kwnames
[] = { "self", NULL
};
6712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
6715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
6722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6723 _result
= new wxColour (wxBrush_GetColour(_arg0
));
6725 wxPyEndAllowThreads(__tstate
);
6726 if (PyErr_Occurred()) return NULL
;
6727 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6728 _resultobj
= Py_BuildValue("s",_ptemp
);
6732 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
6733 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6734 PyObject
* _resultobj
;
6737 PyObject
* _argo0
= 0;
6738 char *_kwnames
[] = { "self", NULL
};
6742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
6745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6752 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6753 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
6755 wxPyEndAllowThreads(__tstate
);
6756 if (PyErr_Occurred()) return NULL
;
6758 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
6759 _resultobj
= Py_BuildValue("s",_ptemp
);
6762 _resultobj
= Py_None
;
6767 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6768 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6769 PyObject
* _resultobj
;
6772 PyObject
* _argo0
= 0;
6773 char *_kwnames
[] = { "self", NULL
};
6776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
6779 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6780 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6786 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6787 _result
= (int )wxBrush_GetStyle(_arg0
);
6789 wxPyEndAllowThreads(__tstate
);
6790 if (PyErr_Occurred()) return NULL
;
6791 } _resultobj
= Py_BuildValue("i",_result
);
6795 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6796 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6797 PyObject
* _resultobj
;
6800 PyObject
* _argo0
= 0;
6801 char *_kwnames
[] = { "self", NULL
};
6804 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
6807 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6808 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6814 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6815 _result
= (bool )wxBrush_Ok(_arg0
);
6817 wxPyEndAllowThreads(__tstate
);
6818 if (PyErr_Occurred()) return NULL
;
6819 } _resultobj
= Py_BuildValue("i",_result
);
6823 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6824 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6825 PyObject
* _resultobj
;
6828 PyObject
* _argo0
= 0;
6830 PyObject
* _obj1
= 0;
6831 char *_kwnames
[] = { "self","colour", NULL
};
6834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
6837 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6838 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6839 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6845 if (! wxColour_helper(_obj1
, &_arg1
))
6849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6850 wxBrush_SetColour(_arg0
,*_arg1
);
6852 wxPyEndAllowThreads(__tstate
);
6853 if (PyErr_Occurred()) return NULL
;
6854 } Py_INCREF(Py_None
);
6855 _resultobj
= Py_None
;
6859 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6860 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6861 PyObject
* _resultobj
;
6864 PyObject
* _argo0
= 0;
6865 PyObject
* _argo1
= 0;
6866 char *_kwnames
[] = { "self","bitmap", NULL
};
6869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
6872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6879 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6880 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6886 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6887 wxBrush_SetStipple(_arg0
,*_arg1
);
6889 wxPyEndAllowThreads(__tstate
);
6890 if (PyErr_Occurred()) return NULL
;
6891 } Py_INCREF(Py_None
);
6892 _resultobj
= Py_None
;
6896 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6897 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6898 PyObject
* _resultobj
;
6901 PyObject
* _argo0
= 0;
6902 char *_kwnames
[] = { "self","style", NULL
};
6905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
6908 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6909 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6915 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6916 wxBrush_SetStyle(_arg0
,_arg1
);
6918 wxPyEndAllowThreads(__tstate
);
6919 if (PyErr_Occurred()) return NULL
;
6920 } Py_INCREF(Py_None
);
6921 _resultobj
= Py_None
;
6925 static void *SwigwxBrushListTowxObject(void *ptr
) {
6928 src
= (wxBrushList
*) ptr
;
6929 dest
= (wxObject
*) src
;
6930 return (void *) dest
;
6933 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6934 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6935 PyObject
* _resultobj
;
6936 wxBrushList
* _arg0
;
6938 PyObject
* _argo0
= 0;
6939 PyObject
* _argo1
= 0;
6940 char *_kwnames
[] = { "self","brush", NULL
};
6943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
6946 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6947 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6953 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6954 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6960 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6961 wxBrushList_AddBrush(_arg0
,_arg1
);
6963 wxPyEndAllowThreads(__tstate
);
6964 if (PyErr_Occurred()) return NULL
;
6965 } Py_INCREF(Py_None
);
6966 _resultobj
= Py_None
;
6970 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6971 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6972 PyObject
* _resultobj
;
6974 wxBrushList
* _arg0
;
6977 PyObject
* _argo0
= 0;
6979 PyObject
* _obj1
= 0;
6980 char *_kwnames
[] = { "self","colour","style", NULL
};
6984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
6987 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6988 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6995 if (! wxColour_helper(_obj1
, &_arg1
))
6999 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7000 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
7002 wxPyEndAllowThreads(__tstate
);
7003 if (PyErr_Occurred()) return NULL
;
7005 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
7006 _resultobj
= Py_BuildValue("s",_ptemp
);
7009 _resultobj
= Py_None
;
7014 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
7015 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7016 PyObject
* _resultobj
;
7017 wxBrushList
* _arg0
;
7019 PyObject
* _argo0
= 0;
7020 PyObject
* _argo1
= 0;
7021 char *_kwnames
[] = { "self","brush", NULL
};
7024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
7027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
7029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
7034 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7035 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
7041 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7042 wxBrushList_RemoveBrush(_arg0
,_arg1
);
7044 wxPyEndAllowThreads(__tstate
);
7045 if (PyErr_Occurred()) return NULL
;
7046 } Py_INCREF(Py_None
);
7047 _resultobj
= Py_None
;
7051 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
7052 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7053 PyObject
* _resultobj
;
7055 wxBrushList
* _arg0
;
7056 PyObject
* _argo0
= 0;
7057 char *_kwnames
[] = { "self", NULL
};
7060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
7063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
7065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
7070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7071 _result
= (int )wxBrushList_GetCount(_arg0
);
7073 wxPyEndAllowThreads(__tstate
);
7074 if (PyErr_Occurred()) return NULL
;
7075 } _resultobj
= Py_BuildValue("i",_result
);
7079 static void *SwigwxDCTowxObject(void *ptr
) {
7083 dest
= (wxObject
*) src
;
7084 return (void *) dest
;
7087 #define delete_wxDC(_swigobj) (delete _swigobj)
7088 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7089 PyObject
* _resultobj
;
7091 PyObject
* _argo0
= 0;
7092 char *_kwnames
[] = { "self", NULL
};
7095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
7098 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7099 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7100 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
7105 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7108 wxPyEndAllowThreads(__tstate
);
7109 if (PyErr_Occurred()) return NULL
;
7110 } Py_INCREF(Py_None
);
7111 _resultobj
= Py_None
;
7115 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
7116 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7117 PyObject
* _resultobj
;
7119 PyObject
* _argo0
= 0;
7120 char *_kwnames
[] = { "self", NULL
};
7123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
7126 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7127 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
7133 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7134 wxDC_BeginDrawing(_arg0
);
7136 wxPyEndAllowThreads(__tstate
);
7137 if (PyErr_Occurred()) return NULL
;
7138 } Py_INCREF(Py_None
);
7139 _resultobj
= Py_None
;
7143 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
7144 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7145 PyObject
* _resultobj
;
7155 int _arg8
= (int ) wxCOPY
;
7156 int _arg9
= (int ) FALSE
;
7157 PyObject
* _argo0
= 0;
7158 PyObject
* _argo5
= 0;
7159 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
7162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
7165 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7166 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
7172 if (_argo5
== Py_None
) { _arg5
= NULL
; }
7173 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
7174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
7179 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7180 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
7182 wxPyEndAllowThreads(__tstate
);
7183 if (PyErr_Occurred()) return NULL
;
7184 } _resultobj
= Py_BuildValue("i",_result
);
7188 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
7189 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7190 PyObject
* _resultobj
;
7192 PyObject
* _argo0
= 0;
7193 char *_kwnames
[] = { "self", NULL
};
7196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
7199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
7206 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7209 wxPyEndAllowThreads(__tstate
);
7210 if (PyErr_Occurred()) return NULL
;
7211 } Py_INCREF(Py_None
);
7212 _resultobj
= Py_None
;
7216 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
7217 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7218 PyObject
* _resultobj
;
7222 PyObject
* _argo0
= 0;
7223 char *_kwnames
[] = { "self","x","y", NULL
};
7226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
7236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7237 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
7239 wxPyEndAllowThreads(__tstate
);
7240 if (PyErr_Occurred()) return NULL
;
7241 } Py_INCREF(Py_None
);
7242 _resultobj
= Py_None
;
7246 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
7247 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7248 PyObject
* _resultobj
;
7250 PyObject
* _argo0
= 0;
7251 char *_kwnames
[] = { "self", NULL
};
7254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
7257 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7258 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
7264 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7265 wxDC_DestroyClippingRegion(_arg0
);
7267 wxPyEndAllowThreads(__tstate
);
7268 if (PyErr_Occurred()) return NULL
;
7269 } Py_INCREF(Py_None
);
7270 _resultobj
= Py_None
;
7274 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
7275 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7276 PyObject
* _resultobj
;
7280 PyObject
* _argo0
= 0;
7281 char *_kwnames
[] = { "self","x", NULL
};
7284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
7287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
7294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7295 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
7297 wxPyEndAllowThreads(__tstate
);
7298 if (PyErr_Occurred()) return NULL
;
7299 } _resultobj
= Py_BuildValue("l",_result
);
7303 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
7304 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7305 PyObject
* _resultobj
;
7309 PyObject
* _argo0
= 0;
7310 char *_kwnames
[] = { "self","x", NULL
};
7313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
7316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
7323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7324 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
7326 wxPyEndAllowThreads(__tstate
);
7327 if (PyErr_Occurred()) return NULL
;
7328 } _resultobj
= Py_BuildValue("l",_result
);
7332 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
7333 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7334 PyObject
* _resultobj
;
7338 PyObject
* _argo0
= 0;
7339 char *_kwnames
[] = { "self","y", NULL
};
7342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
7345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
7352 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7353 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
7355 wxPyEndAllowThreads(__tstate
);
7356 if (PyErr_Occurred()) return NULL
;
7357 } _resultobj
= Py_BuildValue("l",_result
);
7361 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
7362 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7363 PyObject
* _resultobj
;
7367 PyObject
* _argo0
= 0;
7368 char *_kwnames
[] = { "self","y", NULL
};
7371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
7374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
7381 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7382 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
7384 wxPyEndAllowThreads(__tstate
);
7385 if (PyErr_Occurred()) return NULL
;
7386 } _resultobj
= Py_BuildValue("l",_result
);
7390 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7391 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7392 PyObject
* _resultobj
;
7400 PyObject
* _argo0
= 0;
7401 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
7404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
7407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
7414 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7415 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7417 wxPyEndAllowThreads(__tstate
);
7418 if (PyErr_Occurred()) return NULL
;
7419 } Py_INCREF(Py_None
);
7420 _resultobj
= Py_None
;
7424 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
7425 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7426 PyObject
* _resultobj
;
7431 PyObject
* _argo0
= 0;
7432 char *_kwnames
[] = { "self","x","y","radius", NULL
};
7435 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
7438 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7439 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
7445 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7446 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
7448 wxPyEndAllowThreads(__tstate
);
7449 if (PyErr_Occurred()) return NULL
;
7450 } Py_INCREF(Py_None
);
7451 _resultobj
= Py_None
;
7455 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7456 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7457 PyObject
* _resultobj
;
7463 PyObject
* _argo0
= 0;
7464 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7470 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7471 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
7477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7478 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7480 wxPyEndAllowThreads(__tstate
);
7481 if (PyErr_Occurred()) return NULL
;
7482 } Py_INCREF(Py_None
);
7483 _resultobj
= Py_None
;
7487 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7488 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7489 PyObject
* _resultobj
;
7497 PyObject
* _argo0
= 0;
7498 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
7501 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
7504 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7505 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7506 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
7511 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7512 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7514 wxPyEndAllowThreads(__tstate
);
7515 if (PyErr_Occurred()) return NULL
;
7516 } Py_INCREF(Py_None
);
7517 _resultobj
= Py_None
;
7521 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
7522 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7523 PyObject
* _resultobj
;
7528 PyObject
* _argo0
= 0;
7529 PyObject
* _argo1
= 0;
7530 char *_kwnames
[] = { "self","icon","x","y", NULL
};
7533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
7536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
7543 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7544 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
7545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
7550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7551 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
7553 wxPyEndAllowThreads(__tstate
);
7554 if (PyErr_Occurred()) return NULL
;
7555 } Py_INCREF(Py_None
);
7556 _resultobj
= Py_None
;
7560 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7561 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7562 PyObject
* _resultobj
;
7568 PyObject
* _argo0
= 0;
7569 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
7572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
7582 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7583 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7585 wxPyEndAllowThreads(__tstate
);
7586 if (PyErr_Occurred()) return NULL
;
7587 } Py_INCREF(Py_None
);
7588 _resultobj
= Py_None
;
7592 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7593 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7594 PyObject
* _resultobj
;
7598 long _arg3
= (long ) 0;
7599 long _arg4
= (long ) 0;
7600 PyObject
* _argo0
= 0;
7602 PyObject
* _obj2
= 0;
7603 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
7606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
7609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
7617 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7618 if (_arg2
== NULL
) {
7626 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7627 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7629 wxPyEndAllowThreads(__tstate
);
7630 if (PyErr_Occurred()) return NULL
;
7631 } Py_INCREF(Py_None
);
7632 _resultobj
= Py_None
;
7639 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7640 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7641 PyObject
* _resultobj
;
7645 long _arg3
= (long ) 0;
7646 long _arg4
= (long ) 0;
7647 int _arg5
= (int ) wxODDEVEN_RULE
;
7648 PyObject
* _argo0
= 0;
7650 PyObject
* _obj2
= 0;
7651 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
7654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
7657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
7665 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7666 if (_arg2
== NULL
) {
7674 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7675 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7677 wxPyEndAllowThreads(__tstate
);
7678 if (PyErr_Occurred()) return NULL
;
7679 } Py_INCREF(Py_None
);
7680 _resultobj
= Py_None
;
7687 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
7688 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7689 PyObject
* _resultobj
;
7693 PyObject
* _argo0
= 0;
7694 char *_kwnames
[] = { "self","x","y", NULL
};
7697 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7700 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7701 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7702 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
7707 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7708 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
7710 wxPyEndAllowThreads(__tstate
);
7711 if (PyErr_Occurred()) return NULL
;
7712 } Py_INCREF(Py_None
);
7713 _resultobj
= Py_None
;
7717 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7718 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7719 PyObject
* _resultobj
;
7725 PyObject
* _argo0
= 0;
7726 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7729 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7732 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7733 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7734 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
7739 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7740 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7742 wxPyEndAllowThreads(__tstate
);
7743 if (PyErr_Occurred()) return NULL
;
7744 } Py_INCREF(Py_None
);
7745 _resultobj
= Py_None
;
7749 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7750 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7751 PyObject
* _resultobj
;
7757 PyObject
* _argo0
= 0;
7758 PyObject
* _obj1
= 0;
7759 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
7762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
7765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
7772 #if PYTHON_API_VERSION >= 1009
7773 char* tmpPtr
; int tmpSize
;
7774 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7775 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7778 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7780 _arg1
= new wxString(tmpPtr
, tmpSize
);
7782 if (!PyString_Check(_obj1
)) {
7783 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7786 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7790 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7791 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7793 wxPyEndAllowThreads(__tstate
);
7794 if (PyErr_Occurred()) return NULL
;
7795 } Py_INCREF(Py_None
);
7796 _resultobj
= Py_None
;
7804 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7805 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7806 PyObject
* _resultobj
;
7812 long _arg5
= (long ) 20;
7813 PyObject
* _argo0
= 0;
7814 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
7817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
7820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7828 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7830 wxPyEndAllowThreads(__tstate
);
7831 if (PyErr_Occurred()) return NULL
;
7832 } Py_INCREF(Py_None
);
7833 _resultobj
= Py_None
;
7837 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7838 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7839 PyObject
* _resultobj
;
7843 PyObject
* _argo0
= 0;
7845 PyObject
* _obj2
= 0;
7846 char *_kwnames
[] = { "self","points", NULL
};
7849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
7852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7860 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7861 if (_arg2
== NULL
) {
7869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7870 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
7872 wxPyEndAllowThreads(__tstate
);
7873 if (PyErr_Occurred()) return NULL
;
7874 } Py_INCREF(Py_None
);
7875 _resultobj
= Py_None
;
7882 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7883 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7884 PyObject
* _resultobj
;
7889 PyObject
* _argo0
= 0;
7890 PyObject
* _obj1
= 0;
7891 char *_kwnames
[] = { "self","text","x","y", NULL
};
7894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
7897 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7898 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7904 #if PYTHON_API_VERSION >= 1009
7905 char* tmpPtr
; int tmpSize
;
7906 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7907 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7910 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7912 _arg1
= new wxString(tmpPtr
, tmpSize
);
7914 if (!PyString_Check(_obj1
)) {
7915 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7918 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7923 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
7925 wxPyEndAllowThreads(__tstate
);
7926 if (PyErr_Occurred()) return NULL
;
7927 } Py_INCREF(Py_None
);
7928 _resultobj
= Py_None
;
7936 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7937 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7938 PyObject
* _resultobj
;
7940 PyObject
* _argo0
= 0;
7941 char *_kwnames
[] = { "self", NULL
};
7944 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
7947 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7948 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7949 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7954 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7957 wxPyEndAllowThreads(__tstate
);
7958 if (PyErr_Occurred()) return NULL
;
7959 } Py_INCREF(Py_None
);
7960 _resultobj
= Py_None
;
7964 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7965 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7966 PyObject
* _resultobj
;
7968 PyObject
* _argo0
= 0;
7969 char *_kwnames
[] = { "self", NULL
};
7972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
7975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7982 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7983 wxDC_EndDrawing(_arg0
);
7985 wxPyEndAllowThreads(__tstate
);
7986 if (PyErr_Occurred()) return NULL
;
7987 } Py_INCREF(Py_None
);
7988 _resultobj
= Py_None
;
7992 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7993 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7994 PyObject
* _resultobj
;
7996 PyObject
* _argo0
= 0;
7997 char *_kwnames
[] = { "self", NULL
};
8000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
8003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
8010 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8011 wxDC_EndPage(_arg0
);
8013 wxPyEndAllowThreads(__tstate
);
8014 if (PyErr_Occurred()) return NULL
;
8015 } Py_INCREF(Py_None
);
8016 _resultobj
= Py_None
;
8020 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8021 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8022 PyObject
* _resultobj
;
8027 int _arg4
= (int ) wxFLOOD_SURFACE
;
8028 PyObject
* _argo0
= 0;
8030 PyObject
* _obj3
= 0;
8031 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
8034 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
8037 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8038 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8039 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
8045 if (! wxColour_helper(_obj3
, &_arg3
))
8049 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8050 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
8052 wxPyEndAllowThreads(__tstate
);
8053 if (PyErr_Occurred()) return NULL
;
8054 } Py_INCREF(Py_None
);
8055 _resultobj
= Py_None
;
8059 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
8060 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8061 PyObject
* _resultobj
;
8064 PyObject
* _argo0
= 0;
8065 char *_kwnames
[] = { "self", NULL
};
8069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
8072 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8073 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8074 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
8079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8080 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
8082 wxPyEndAllowThreads(__tstate
);
8083 if (PyErr_Occurred()) return NULL
;
8084 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
8085 _resultobj
= Py_BuildValue("s",_ptemp
);
8089 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
8090 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8091 PyObject
* _resultobj
;
8094 PyObject
* _argo0
= 0;
8095 char *_kwnames
[] = { "self", NULL
};
8099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
8102 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8103 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8104 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
8109 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8110 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
8112 wxPyEndAllowThreads(__tstate
);
8113 if (PyErr_Occurred()) return NULL
;
8114 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
8115 _resultobj
= Py_BuildValue("s",_ptemp
);
8119 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
8120 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8121 PyObject
* _resultobj
;
8124 PyObject
* _argo0
= 0;
8125 char *_kwnames
[] = { "self", NULL
};
8128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
8131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
8138 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8139 _result
= (long )wxDC_GetCharHeight(_arg0
);
8141 wxPyEndAllowThreads(__tstate
);
8142 if (PyErr_Occurred()) return NULL
;
8143 } _resultobj
= Py_BuildValue("l",_result
);
8147 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
8148 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8149 PyObject
* _resultobj
;
8152 PyObject
* _argo0
= 0;
8153 char *_kwnames
[] = { "self", NULL
};
8156 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
8159 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8160 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8161 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
8166 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8167 _result
= (long )wxDC_GetCharWidth(_arg0
);
8169 wxPyEndAllowThreads(__tstate
);
8170 if (PyErr_Occurred()) return NULL
;
8171 } _resultobj
= Py_BuildValue("l",_result
);
8175 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8176 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8177 PyObject
* _resultobj
;
8187 PyObject
* _argo0
= 0;
8188 char *_kwnames
[] = { "self", NULL
};
8203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
8206 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8207 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8208 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
8213 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8214 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8216 wxPyEndAllowThreads(__tstate
);
8217 if (PyErr_Occurred()) return NULL
;
8218 } Py_INCREF(Py_None
);
8219 _resultobj
= Py_None
;
8222 o
= PyInt_FromLong((long) (*_arg1
));
8223 _resultobj
= t_output_helper(_resultobj
, o
);
8227 o
= PyInt_FromLong((long) (*_arg2
));
8228 _resultobj
= t_output_helper(_resultobj
, o
);
8232 o
= PyInt_FromLong((long) (*_arg3
));
8233 _resultobj
= t_output_helper(_resultobj
, o
);
8237 o
= PyInt_FromLong((long) (*_arg4
));
8238 _resultobj
= t_output_helper(_resultobj
, o
);
8243 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
8244 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8245 PyObject
* _resultobj
;
8248 PyObject
* _argo0
= 0;
8249 char *_kwnames
[] = { "self", NULL
};
8253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
8256 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8257 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
8263 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8264 _result
= new wxFont (wxDC_GetFont(_arg0
));
8266 wxPyEndAllowThreads(__tstate
);
8267 if (PyErr_Occurred()) return NULL
;
8268 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
8269 _resultobj
= Py_BuildValue("s",_ptemp
);
8273 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
8274 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8275 PyObject
* _resultobj
;
8278 PyObject
* _argo0
= 0;
8279 char *_kwnames
[] = { "self", NULL
};
8282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
8285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
8292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8293 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
8295 wxPyEndAllowThreads(__tstate
);
8296 if (PyErr_Occurred()) return NULL
;
8297 } _resultobj
= Py_BuildValue("i",_result
);
8301 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
8302 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8303 PyObject
* _resultobj
;
8309 PyObject
* _argo0
= 0;
8310 char *_kwnames
[] = { "self", NULL
};
8319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
8322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
8329 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8330 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
8332 wxPyEndAllowThreads(__tstate
);
8333 if (PyErr_Occurred()) return NULL
;
8334 } Py_INCREF(Py_None
);
8335 _resultobj
= Py_None
;
8338 o
= PyFloat_FromDouble((double) (*_arg1
));
8339 _resultobj
= t_output_helper(_resultobj
, o
);
8343 o
= PyFloat_FromDouble((double) (*_arg2
));
8344 _resultobj
= t_output_helper(_resultobj
, o
);
8349 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
8350 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8351 PyObject
* _resultobj
;
8354 PyObject
* _argo0
= 0;
8355 char *_kwnames
[] = { "self", NULL
};
8358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
8361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
8368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8369 _result
= (int )wxDC_GetMapMode(_arg0
);
8371 wxPyEndAllowThreads(__tstate
);
8372 if (PyErr_Occurred()) return NULL
;
8373 } _resultobj
= Py_BuildValue("i",_result
);
8377 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
8378 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8379 PyObject
* _resultobj
;
8382 PyObject
* _argo0
= 0;
8383 char *_kwnames
[] = { "self", NULL
};
8386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
8389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
8396 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8397 _result
= (bool )wxDC_GetOptimization(_arg0
);
8399 wxPyEndAllowThreads(__tstate
);
8400 if (PyErr_Occurred()) return NULL
;
8401 } _resultobj
= Py_BuildValue("i",_result
);
8405 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
8406 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8407 PyObject
* _resultobj
;
8410 PyObject
* _argo0
= 0;
8411 char *_kwnames
[] = { "self", NULL
};
8415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
8418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
8425 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8426 _result
= new wxPen (wxDC_GetPen(_arg0
));
8428 wxPyEndAllowThreads(__tstate
);
8429 if (PyErr_Occurred()) return NULL
;
8430 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
8431 _resultobj
= Py_BuildValue("s",_ptemp
);
8435 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
8436 wxColour
* wc
= new wxColour();
8437 self
->GetPixel(x
, y
, wc
);
8440 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8441 PyObject
* _resultobj
;
8446 PyObject
* _argo0
= 0;
8447 char *_kwnames
[] = { "self","x","y", NULL
};
8451 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8454 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8455 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8456 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
8461 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8462 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
8464 wxPyEndAllowThreads(__tstate
);
8465 if (PyErr_Occurred()) return NULL
;
8467 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
8468 _resultobj
= Py_BuildValue("s",_ptemp
);
8471 _resultobj
= Py_None
;
8476 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
8477 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8478 PyObject
* _resultobj
;
8484 PyObject
* _argo0
= 0;
8485 char *_kwnames
[] = { "self", NULL
};
8494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
8497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
8504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8505 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
8507 wxPyEndAllowThreads(__tstate
);
8508 if (PyErr_Occurred()) return NULL
;
8509 } Py_INCREF(Py_None
);
8510 _resultobj
= Py_None
;
8513 o
= PyInt_FromLong((long) (*_arg1
));
8514 _resultobj
= t_output_helper(_resultobj
, o
);
8518 o
= PyInt_FromLong((long) (*_arg2
));
8519 _resultobj
= t_output_helper(_resultobj
, o
);
8524 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
8525 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8526 PyObject
* _resultobj
;
8529 PyObject
* _argo0
= 0;
8530 char *_kwnames
[] = { "self", NULL
};
8534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
8537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
8544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8545 _result
= new wxSize (wxDC_GetSize(_arg0
));
8547 wxPyEndAllowThreads(__tstate
);
8548 if (PyErr_Occurred()) return NULL
;
8549 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8550 _resultobj
= Py_BuildValue("s",_ptemp
);
8554 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
8555 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8556 PyObject
* _resultobj
;
8559 PyObject
* _argo0
= 0;
8560 char *_kwnames
[] = { "self", NULL
};
8564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
8567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
8574 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8575 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
8577 wxPyEndAllowThreads(__tstate
);
8578 if (PyErr_Occurred()) return NULL
;
8579 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8580 _resultobj
= Py_BuildValue("s",_ptemp
);
8584 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
8585 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8586 PyObject
* _resultobj
;
8589 PyObject
* _argo0
= 0;
8590 char *_kwnames
[] = { "self", NULL
};
8594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
8597 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8598 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
8604 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8605 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
8607 wxPyEndAllowThreads(__tstate
);
8608 if (PyErr_Occurred()) return NULL
;
8609 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8610 _resultobj
= Py_BuildValue("s",_ptemp
);
8614 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
8615 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8616 PyObject
* _resultobj
;
8623 PyObject
* _argo0
= 0;
8624 PyObject
* _obj1
= 0;
8625 char *_kwnames
[] = { "self","string", NULL
};
8634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
8637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
8644 #if PYTHON_API_VERSION >= 1009
8645 char* tmpPtr
; int tmpSize
;
8646 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8647 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8650 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8652 _arg1
= new wxString(tmpPtr
, tmpSize
);
8654 if (!PyString_Check(_obj1
)) {
8655 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8658 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8663 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
8665 wxPyEndAllowThreads(__tstate
);
8666 if (PyErr_Occurred()) return NULL
;
8667 } Py_INCREF(Py_None
);
8668 _resultobj
= Py_None
;
8671 o
= PyInt_FromLong((long) (*_arg2
));
8672 _resultobj
= t_output_helper(_resultobj
, o
);
8676 o
= PyInt_FromLong((long) (*_arg3
));
8677 _resultobj
= t_output_helper(_resultobj
, o
);
8686 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8687 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8688 PyObject
* _resultobj
;
8699 wxFont
* _arg6
= (wxFont
*) NULL
;
8700 PyObject
* _argo0
= 0;
8701 PyObject
* _obj1
= 0;
8702 PyObject
* _argo6
= 0;
8703 char *_kwnames
[] = { "self","string","font", NULL
};
8718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
8721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
8728 #if PYTHON_API_VERSION >= 1009
8729 char* tmpPtr
; int tmpSize
;
8730 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8731 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8734 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8736 _arg1
= new wxString(tmpPtr
, tmpSize
);
8738 if (!PyString_Check(_obj1
)) {
8739 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8742 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8746 if (_argo6
== Py_None
) { _arg6
= NULL
; }
8747 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
8748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8753 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8754 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8756 wxPyEndAllowThreads(__tstate
);
8757 if (PyErr_Occurred()) return NULL
;
8758 } Py_INCREF(Py_None
);
8759 _resultobj
= Py_None
;
8762 o
= PyInt_FromLong((long) (*_arg2
));
8763 _resultobj
= t_output_helper(_resultobj
, o
);
8767 o
= PyInt_FromLong((long) (*_arg3
));
8768 _resultobj
= t_output_helper(_resultobj
, o
);
8772 o
= PyInt_FromLong((long) (*_arg4
));
8773 _resultobj
= t_output_helper(_resultobj
, o
);
8777 o
= PyInt_FromLong((long) (*_arg5
));
8778 _resultobj
= t_output_helper(_resultobj
, o
);
8787 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8788 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8789 PyObject
* _resultobj
;
8792 PyObject
* _argo0
= 0;
8793 char *_kwnames
[] = { "self", NULL
};
8797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
8800 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8801 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8807 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8808 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
8810 wxPyEndAllowThreads(__tstate
);
8811 if (PyErr_Occurred()) return NULL
;
8812 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8813 _resultobj
= Py_BuildValue("s",_ptemp
);
8817 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8818 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8819 PyObject
* _resultobj
;
8825 PyObject
* _argo0
= 0;
8826 char *_kwnames
[] = { "self", NULL
};
8835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
8838 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8839 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8845 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8846 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
8848 wxPyEndAllowThreads(__tstate
);
8849 if (PyErr_Occurred()) return NULL
;
8850 } Py_INCREF(Py_None
);
8851 _resultobj
= Py_None
;
8854 o
= PyFloat_FromDouble((double) (*_arg1
));
8855 _resultobj
= t_output_helper(_resultobj
, o
);
8859 o
= PyFloat_FromDouble((double) (*_arg2
));
8860 _resultobj
= t_output_helper(_resultobj
, o
);
8865 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8866 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8867 PyObject
* _resultobj
;
8871 PyObject
* _argo0
= 0;
8872 char *_kwnames
[] = { "self","x", NULL
};
8875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
8878 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8879 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8880 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8885 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8886 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
8888 wxPyEndAllowThreads(__tstate
);
8889 if (PyErr_Occurred()) return NULL
;
8890 } _resultobj
= Py_BuildValue("l",_result
);
8894 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8895 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8896 PyObject
* _resultobj
;
8900 PyObject
* _argo0
= 0;
8901 char *_kwnames
[] = { "self","x", NULL
};
8904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
8907 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8908 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8909 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8914 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8915 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
8917 wxPyEndAllowThreads(__tstate
);
8918 if (PyErr_Occurred()) return NULL
;
8919 } _resultobj
= Py_BuildValue("l",_result
);
8923 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8924 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8925 PyObject
* _resultobj
;
8929 PyObject
* _argo0
= 0;
8930 char *_kwnames
[] = { "self","y", NULL
};
8933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
8936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8943 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8944 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
8946 wxPyEndAllowThreads(__tstate
);
8947 if (PyErr_Occurred()) return NULL
;
8948 } _resultobj
= Py_BuildValue("l",_result
);
8952 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8953 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8954 PyObject
* _resultobj
;
8958 PyObject
* _argo0
= 0;
8959 char *_kwnames
[] = { "self","y", NULL
};
8962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
8965 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8966 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8972 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8973 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
8975 wxPyEndAllowThreads(__tstate
);
8976 if (PyErr_Occurred()) return NULL
;
8977 } _resultobj
= Py_BuildValue("l",_result
);
8981 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8982 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8983 PyObject
* _resultobj
;
8986 PyObject
* _argo0
= 0;
8987 char *_kwnames
[] = { "self", NULL
};
8990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
8993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
9000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9001 _result
= (long )wxDC_MaxX(_arg0
);
9003 wxPyEndAllowThreads(__tstate
);
9004 if (PyErr_Occurred()) return NULL
;
9005 } _resultobj
= Py_BuildValue("l",_result
);
9009 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
9010 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9011 PyObject
* _resultobj
;
9014 PyObject
* _argo0
= 0;
9015 char *_kwnames
[] = { "self", NULL
};
9018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
9021 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9022 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
9028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9029 _result
= (long )wxDC_MaxY(_arg0
);
9031 wxPyEndAllowThreads(__tstate
);
9032 if (PyErr_Occurred()) return NULL
;
9033 } _resultobj
= Py_BuildValue("l",_result
);
9037 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
9038 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9039 PyObject
* _resultobj
;
9042 PyObject
* _argo0
= 0;
9043 char *_kwnames
[] = { "self", NULL
};
9046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
9049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
9056 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9057 _result
= (long )wxDC_MinX(_arg0
);
9059 wxPyEndAllowThreads(__tstate
);
9060 if (PyErr_Occurred()) return NULL
;
9061 } _resultobj
= Py_BuildValue("l",_result
);
9065 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
9066 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9067 PyObject
* _resultobj
;
9070 PyObject
* _argo0
= 0;
9071 char *_kwnames
[] = { "self", NULL
};
9074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
9077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
9084 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9085 _result
= (long )wxDC_MinY(_arg0
);
9087 wxPyEndAllowThreads(__tstate
);
9088 if (PyErr_Occurred()) return NULL
;
9089 } _resultobj
= Py_BuildValue("l",_result
);
9093 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
9094 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9095 PyObject
* _resultobj
;
9098 PyObject
* _argo0
= 0;
9099 char *_kwnames
[] = { "self", NULL
};
9102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
9105 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9106 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9107 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
9112 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9113 _result
= (bool )wxDC_Ok(_arg0
);
9115 wxPyEndAllowThreads(__tstate
);
9116 if (PyErr_Occurred()) return NULL
;
9117 } _resultobj
= Py_BuildValue("i",_result
);
9121 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
9122 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9123 PyObject
* _resultobj
;
9127 PyObject
* _argo0
= 0;
9128 char *_kwnames
[] = { "self","x","y", NULL
};
9131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
9141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9142 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
9144 wxPyEndAllowThreads(__tstate
);
9145 if (PyErr_Occurred()) return NULL
;
9146 } Py_INCREF(Py_None
);
9147 _resultobj
= Py_None
;
9151 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
9152 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9153 PyObject
* _resultobj
;
9156 PyObject
* _argo0
= 0;
9157 PyObject
* _argo1
= 0;
9158 char *_kwnames
[] = { "self","brush", NULL
};
9161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
9164 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9165 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
9171 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9172 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
9173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
9178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9179 wxDC_SetBackground(_arg0
,*_arg1
);
9181 wxPyEndAllowThreads(__tstate
);
9182 if (PyErr_Occurred()) return NULL
;
9183 } Py_INCREF(Py_None
);
9184 _resultobj
= Py_None
;
9188 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
9189 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9190 PyObject
* _resultobj
;
9193 PyObject
* _argo0
= 0;
9194 char *_kwnames
[] = { "self","mode", NULL
};
9197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
9200 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9201 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
9207 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9208 wxDC_SetBackgroundMode(_arg0
,_arg1
);
9210 wxPyEndAllowThreads(__tstate
);
9211 if (PyErr_Occurred()) return NULL
;
9212 } Py_INCREF(Py_None
);
9213 _resultobj
= Py_None
;
9217 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9218 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9219 PyObject
* _resultobj
;
9225 PyObject
* _argo0
= 0;
9226 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
9239 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9240 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9242 wxPyEndAllowThreads(__tstate
);
9243 if (PyErr_Occurred()) return NULL
;
9244 } Py_INCREF(Py_None
);
9245 _resultobj
= Py_None
;
9249 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
9250 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9251 PyObject
* _resultobj
;
9254 PyObject
* _argo0
= 0;
9255 PyObject
* _argo1
= 0;
9256 char *_kwnames
[] = { "self","region", NULL
};
9259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
9262 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9263 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
9269 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9270 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
9276 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9277 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
9279 wxPyEndAllowThreads(__tstate
);
9280 if (PyErr_Occurred()) return NULL
;
9281 } Py_INCREF(Py_None
);
9282 _resultobj
= Py_None
;
9286 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
9287 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9288 PyObject
* _resultobj
;
9291 PyObject
* _argo0
= 0;
9292 PyObject
* _argo1
= 0;
9293 char *_kwnames
[] = { "self","colourMap", NULL
};
9296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
9299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
9306 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9307 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
9308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
9313 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9314 wxDC_SetPalette(_arg0
,*_arg1
);
9316 wxPyEndAllowThreads(__tstate
);
9317 if (PyErr_Occurred()) return NULL
;
9318 } Py_INCREF(Py_None
);
9319 _resultobj
= Py_None
;
9323 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
9324 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9325 PyObject
* _resultobj
;
9328 PyObject
* _argo0
= 0;
9329 PyObject
* _argo1
= 0;
9330 char *_kwnames
[] = { "self","brush", NULL
};
9333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
9336 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9337 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
9343 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9344 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
9345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
9350 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9351 wxDC_SetBrush(_arg0
,*_arg1
);
9353 wxPyEndAllowThreads(__tstate
);
9354 if (PyErr_Occurred()) return NULL
;
9355 } Py_INCREF(Py_None
);
9356 _resultobj
= Py_None
;
9360 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
9361 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9362 PyObject
* _resultobj
;
9365 PyObject
* _argo0
= 0;
9366 PyObject
* _argo1
= 0;
9367 char *_kwnames
[] = { "self","font", NULL
};
9370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
9373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
9380 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9381 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
9382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
9387 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9388 wxDC_SetFont(_arg0
,*_arg1
);
9390 wxPyEndAllowThreads(__tstate
);
9391 if (PyErr_Occurred()) return NULL
;
9392 } Py_INCREF(Py_None
);
9393 _resultobj
= Py_None
;
9397 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
9398 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9399 PyObject
* _resultobj
;
9402 PyObject
* _argo0
= 0;
9403 char *_kwnames
[] = { "self","function", NULL
};
9406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
9409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
9416 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9417 wxDC_SetLogicalFunction(_arg0
,_arg1
);
9419 wxPyEndAllowThreads(__tstate
);
9420 if (PyErr_Occurred()) return NULL
;
9421 } Py_INCREF(Py_None
);
9422 _resultobj
= Py_None
;
9426 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
9427 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9428 PyObject
* _resultobj
;
9432 PyObject
* _argo0
= 0;
9433 char *_kwnames
[] = { "self","x","y", NULL
};
9436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
9446 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9447 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
9449 wxPyEndAllowThreads(__tstate
);
9450 if (PyErr_Occurred()) return NULL
;
9451 } Py_INCREF(Py_None
);
9452 _resultobj
= Py_None
;
9456 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
9457 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9458 PyObject
* _resultobj
;
9461 PyObject
* _argo0
= 0;
9462 char *_kwnames
[] = { "self","mode", NULL
};
9465 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
9468 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9469 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
9475 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9476 wxDC_SetMapMode(_arg0
,_arg1
);
9478 wxPyEndAllowThreads(__tstate
);
9479 if (PyErr_Occurred()) return NULL
;
9480 } Py_INCREF(Py_None
);
9481 _resultobj
= Py_None
;
9485 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
9486 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9487 PyObject
* _resultobj
;
9490 PyObject
* _argo0
= 0;
9492 char *_kwnames
[] = { "self","optimize", NULL
};
9495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
9498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
9504 _arg1
= (bool ) tempbool1
;
9506 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9507 wxDC_SetOptimization(_arg0
,_arg1
);
9509 wxPyEndAllowThreads(__tstate
);
9510 if (PyErr_Occurred()) return NULL
;
9511 } Py_INCREF(Py_None
);
9512 _resultobj
= Py_None
;
9516 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
9517 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9518 PyObject
* _resultobj
;
9521 PyObject
* _argo0
= 0;
9522 PyObject
* _argo1
= 0;
9523 char *_kwnames
[] = { "self","pen", NULL
};
9526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
9529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
9536 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9537 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
9538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
9543 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9544 wxDC_SetPen(_arg0
,*_arg1
);
9546 wxPyEndAllowThreads(__tstate
);
9547 if (PyErr_Occurred()) return NULL
;
9548 } Py_INCREF(Py_None
);
9549 _resultobj
= Py_None
;
9553 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
9554 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9555 PyObject
* _resultobj
;
9558 PyObject
* _argo0
= 0;
9560 PyObject
* _obj1
= 0;
9561 char *_kwnames
[] = { "self","colour", NULL
};
9564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
9567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
9575 if (! wxColour_helper(_obj1
, &_arg1
))
9579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9580 wxDC_SetTextBackground(_arg0
,*_arg1
);
9582 wxPyEndAllowThreads(__tstate
);
9583 if (PyErr_Occurred()) return NULL
;
9584 } Py_INCREF(Py_None
);
9585 _resultobj
= Py_None
;
9589 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
9590 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9591 PyObject
* _resultobj
;
9594 PyObject
* _argo0
= 0;
9596 PyObject
* _obj1
= 0;
9597 char *_kwnames
[] = { "self","colour", NULL
};
9600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
9603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
9611 if (! wxColour_helper(_obj1
, &_arg1
))
9615 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9616 wxDC_SetTextForeground(_arg0
,*_arg1
);
9618 wxPyEndAllowThreads(__tstate
);
9619 if (PyErr_Occurred()) return NULL
;
9620 } Py_INCREF(Py_None
);
9621 _resultobj
= Py_None
;
9625 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
9626 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9627 PyObject
* _resultobj
;
9631 PyObject
* _argo0
= 0;
9632 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
9635 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9638 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9639 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9640 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
9645 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9646 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
9648 wxPyEndAllowThreads(__tstate
);
9649 if (PyErr_Occurred()) return NULL
;
9650 } Py_INCREF(Py_None
);
9651 _resultobj
= Py_None
;
9655 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
9656 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9657 PyObject
* _resultobj
;
9661 PyObject
* _argo0
= 0;
9662 PyObject
* _obj1
= 0;
9663 char *_kwnames
[] = { "self","message", NULL
};
9666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
9669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
9676 #if PYTHON_API_VERSION >= 1009
9677 char* tmpPtr
; int tmpSize
;
9678 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9679 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9682 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9684 _arg1
= new wxString(tmpPtr
, tmpSize
);
9686 if (!PyString_Check(_obj1
)) {
9687 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9690 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9694 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9695 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
9697 wxPyEndAllowThreads(__tstate
);
9698 if (PyErr_Occurred()) return NULL
;
9699 } _resultobj
= Py_BuildValue("i",_result
);
9707 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
9708 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9709 PyObject
* _resultobj
;
9711 PyObject
* _argo0
= 0;
9712 char *_kwnames
[] = { "self", NULL
};
9715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
9718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
9725 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9726 wxDC_StartPage(_arg0
);
9728 wxPyEndAllowThreads(__tstate
);
9729 if (PyErr_Occurred()) return NULL
;
9730 } Py_INCREF(Py_None
);
9731 _resultobj
= Py_None
;
9735 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9736 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9737 PyObject
* _resultobj
;
9742 int _arg4
= (int ) FALSE
;
9743 PyObject
* _argo0
= 0;
9744 PyObject
* _argo1
= 0;
9745 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
9748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
9751 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9752 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9758 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9759 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9765 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9766 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
9768 wxPyEndAllowThreads(__tstate
);
9769 if (PyErr_Occurred()) return NULL
;
9770 } Py_INCREF(Py_None
);
9771 _resultobj
= Py_None
;
9775 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9776 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9777 PyObject
* _resultobj
;
9780 PyObject
* _argo0
= 0;
9781 char *_kwnames
[] = { "self", NULL
};
9784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
9787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9795 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
9797 wxPyEndAllowThreads(__tstate
);
9798 if (PyErr_Occurred()) return NULL
;
9799 } _resultobj
= Py_BuildValue("i",_result
);
9803 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9804 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9805 PyObject
* _resultobj
;
9808 PyObject
* _argo0
= 0;
9809 char *_kwnames
[] = { "self", NULL
};
9812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
9815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9822 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9823 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
9825 wxPyEndAllowThreads(__tstate
);
9826 if (PyErr_Occurred()) return NULL
;
9827 } _resultobj
= Py_BuildValue("i",_result
);
9831 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9832 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9833 PyObject
* _resultobj
;
9836 PyObject
* _argo0
= 0;
9837 char *_kwnames
[] = { "self", NULL
};
9840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
9843 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9844 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9851 _result
= (int )wxDC_GetDepth(_arg0
);
9853 wxPyEndAllowThreads(__tstate
);
9854 if (PyErr_Occurred()) return NULL
;
9855 } _resultobj
= Py_BuildValue("i",_result
);
9859 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9860 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9861 PyObject
* _resultobj
;
9864 PyObject
* _argo0
= 0;
9865 char *_kwnames
[] = { "self", NULL
};
9869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
9872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9880 _result
= new wxSize (wxDC_GetPPI(_arg0
));
9882 wxPyEndAllowThreads(__tstate
);
9883 if (PyErr_Occurred()) return NULL
;
9884 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
9885 _resultobj
= Py_BuildValue("s",_ptemp
);
9889 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9890 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9891 PyObject
* _resultobj
;
9897 PyObject
* _argo0
= 0;
9898 char *_kwnames
[] = { "self", NULL
};
9907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
9910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9917 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9918 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9920 wxPyEndAllowThreads(__tstate
);
9921 if (PyErr_Occurred()) return NULL
;
9922 } Py_INCREF(Py_None
);
9923 _resultobj
= Py_None
;
9926 o
= PyInt_FromLong((long) (*_arg1
));
9927 _resultobj
= t_output_helper(_resultobj
, o
);
9931 o
= PyInt_FromLong((long) (*_arg2
));
9932 _resultobj
= t_output_helper(_resultobj
, o
);
9937 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9938 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9939 PyObject
* _resultobj
;
9943 PyObject
* _argo0
= 0;
9944 char *_kwnames
[] = { "self","x","y", NULL
};
9947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9957 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9958 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9960 wxPyEndAllowThreads(__tstate
);
9961 if (PyErr_Occurred()) return NULL
;
9962 } Py_INCREF(Py_None
);
9963 _resultobj
= Py_None
;
9967 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9968 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9969 PyObject
* _resultobj
;
9975 PyObject
* _argo0
= 0;
9976 char *_kwnames
[] = { "self", NULL
};
9985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
9988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9995 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9996 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
9998 wxPyEndAllowThreads(__tstate
);
9999 if (PyErr_Occurred()) return NULL
;
10000 } Py_INCREF(Py_None
);
10001 _resultobj
= Py_None
;
10004 o
= PyInt_FromLong((long) (*_arg1
));
10005 _resultobj
= t_output_helper(_resultobj
, o
);
10009 o
= PyInt_FromLong((long) (*_arg2
));
10010 _resultobj
= t_output_helper(_resultobj
, o
);
10015 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
10016 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10017 PyObject
* _resultobj
;
10021 PyObject
* _argo0
= 0;
10024 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
10027 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
10030 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10031 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10032 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
10036 _arg1
= (bool ) tempbool1
;
10037 _arg2
= (bool ) tempbool2
;
10039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10040 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
10042 wxPyEndAllowThreads(__tstate
);
10043 if (PyErr_Occurred()) return NULL
;
10044 } Py_INCREF(Py_None
);
10045 _resultobj
= Py_None
;
10049 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
10050 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10051 PyObject
* _resultobj
;
10055 PyObject
* _argo0
= 0;
10056 char *_kwnames
[] = { "self","x","y", NULL
};
10059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
10069 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10070 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
10072 wxPyEndAllowThreads(__tstate
);
10073 if (PyErr_Occurred()) return NULL
;
10074 } Py_INCREF(Py_None
);
10075 _resultobj
= Py_None
;
10079 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
10080 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10081 PyObject
* _resultobj
;
10083 PyObject
* _argo0
= 0;
10084 char *_kwnames
[] = { "self", NULL
};
10087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
10090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
10097 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10098 wxDC_ResetBoundingBox(_arg0
);
10100 wxPyEndAllowThreads(__tstate
);
10101 if (PyErr_Occurred()) return NULL
;
10102 } Py_INCREF(Py_None
);
10103 _resultobj
= Py_None
;
10107 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10108 PyObject
* _resultobj
;
10118 PyObject
* _argo0
= 0;
10119 char *_kwnames
[] = { "self", NULL
};
10134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
10137 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10138 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
10144 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10145 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10147 wxPyEndAllowThreads(__tstate
);
10148 if (PyErr_Occurred()) return NULL
;
10149 } Py_INCREF(Py_None
);
10150 _resultobj
= Py_None
;
10153 o
= PyInt_FromLong((long) (*_arg1
));
10154 _resultobj
= t_output_helper(_resultobj
, o
);
10158 o
= PyInt_FromLong((long) (*_arg2
));
10159 _resultobj
= t_output_helper(_resultobj
, o
);
10163 o
= PyInt_FromLong((long) (*_arg3
));
10164 _resultobj
= t_output_helper(_resultobj
, o
);
10168 o
= PyInt_FromLong((long) (*_arg4
));
10169 _resultobj
= t_output_helper(_resultobj
, o
);
10174 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
10175 static PyObject
*_wrap_wxDC_GetHDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10176 PyObject
* _resultobj
;
10179 PyObject
* _argo0
= 0;
10180 char *_kwnames
[] = { "self", NULL
};
10183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetHDC",_kwnames
,&_argo0
))
10186 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10187 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
10193 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10194 _result
= (long )wxDC_GetHDC(_arg0
);
10196 wxPyEndAllowThreads(__tstate
);
10197 if (PyErr_Occurred()) return NULL
;
10198 } _resultobj
= Py_BuildValue("l",_result
);
10202 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
10203 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
10204 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
10212 if (!PySequence_Check(pyPoints
)) {
10215 if (!PySequence_Check(pyPens
)) {
10218 numObjs
= PySequence_Length(pyPoints
);
10219 numPens
= PySequence_Length(pyPens
);
10221 for (i
= 0; i
< numObjs
; i
++) {
10225 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
10228 obj
= PySequence_GetItem(pyPens
, i
);
10230 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
10236 self
->SetPen(*pen
);
10241 // Get the point coordinants
10243 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
10246 obj
= PySequence_GetItem(pyPoints
, i
);
10248 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
10254 // Now draw the point
10255 self
->DrawPoint(x1
, y1
);
10261 Py_INCREF(Py_None
);
10265 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
10268 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
10271 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10272 PyObject
* _resultobj
;
10273 PyObject
* _result
;
10277 PyObject
* _argo0
= 0;
10278 PyObject
* _obj1
= 0;
10279 PyObject
* _obj2
= 0;
10280 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
10283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
10286 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10287 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10288 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
10299 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10300 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
10302 wxPyEndAllowThreads(__tstate
);
10303 if (PyErr_Occurred()) return NULL
;
10305 _resultobj
= _result
;
10310 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
10311 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
10312 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
10317 int x1
, y1
, x2
, y2
;
10320 if (!PySequence_Check(pyLines
)) {
10323 if (!PySequence_Check(pyPens
)) {
10326 numObjs
= PySequence_Length(pyLines
);
10327 numPens
= PySequence_Length(pyPens
);
10329 for (i
= 0; i
< numObjs
; i
++) {
10333 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
10336 obj
= PySequence_GetItem(pyPens
, i
);
10338 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
10344 self
->SetPen(*pen
);
10349 // Get the line coordinants
10351 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
10354 obj
= PySequence_GetItem(pyLines
, i
);
10356 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
10362 // Now draw the line
10363 self
->DrawLine(x1
, y1
, x2
, y2
);
10369 Py_INCREF(Py_None
);
10373 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
10376 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
10379 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10380 PyObject
* _resultobj
;
10381 PyObject
* _result
;
10385 PyObject
* _argo0
= 0;
10386 PyObject
* _obj1
= 0;
10387 PyObject
* _obj2
= 0;
10388 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
10391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
10394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
10407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10408 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
10410 wxPyEndAllowThreads(__tstate
);
10411 if (PyErr_Occurred()) return NULL
;
10413 _resultobj
= _result
;
10418 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
10421 src
= (wxMemoryDC
*) ptr
;
10422 dest
= (wxDC
*) src
;
10423 return (void *) dest
;
10426 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
10429 src
= (wxMemoryDC
*) ptr
;
10430 dest
= (wxObject
*) src
;
10431 return (void *) dest
;
10434 #define new_wxMemoryDC() (new wxMemoryDC())
10435 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10436 PyObject
* _resultobj
;
10437 wxMemoryDC
* _result
;
10438 char *_kwnames
[] = { NULL
};
10442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
10445 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10446 _result
= (wxMemoryDC
*)new_wxMemoryDC();
10448 wxPyEndAllowThreads(__tstate
);
10449 if (PyErr_Occurred()) return NULL
;
10451 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
10452 _resultobj
= Py_BuildValue("s",_ptemp
);
10454 Py_INCREF(Py_None
);
10455 _resultobj
= Py_None
;
10460 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
10461 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10462 PyObject
* _resultobj
;
10463 wxMemoryDC
* _arg0
;
10465 PyObject
* _argo0
= 0;
10466 PyObject
* _argo1
= 0;
10467 char *_kwnames
[] = { "self","bitmap", NULL
};
10470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
10473 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10474 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
10475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
10480 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10481 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
10487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10488 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
10490 wxPyEndAllowThreads(__tstate
);
10491 if (PyErr_Occurred()) return NULL
;
10492 } Py_INCREF(Py_None
);
10493 _resultobj
= Py_None
;
10497 static void *SwigwxScreenDCTowxDC(void *ptr
) {
10500 src
= (wxScreenDC
*) ptr
;
10501 dest
= (wxDC
*) src
;
10502 return (void *) dest
;
10505 static void *SwigwxScreenDCTowxObject(void *ptr
) {
10508 src
= (wxScreenDC
*) ptr
;
10509 dest
= (wxObject
*) src
;
10510 return (void *) dest
;
10513 #define new_wxScreenDC() (new wxScreenDC())
10514 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10515 PyObject
* _resultobj
;
10516 wxScreenDC
* _result
;
10517 char *_kwnames
[] = { NULL
};
10521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
10524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10525 _result
= (wxScreenDC
*)new_wxScreenDC();
10527 wxPyEndAllowThreads(__tstate
);
10528 if (PyErr_Occurred()) return NULL
;
10530 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
10531 _resultobj
= Py_BuildValue("s",_ptemp
);
10533 Py_INCREF(Py_None
);
10534 _resultobj
= Py_None
;
10539 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10540 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10541 PyObject
* _resultobj
;
10543 wxScreenDC
* _arg0
;
10545 PyObject
* _argo0
= 0;
10546 PyObject
* _argo1
= 0;
10547 char *_kwnames
[] = { "self","window", NULL
};
10550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
10553 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10554 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
10555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
10560 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10561 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
10562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
10567 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10568 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
10570 wxPyEndAllowThreads(__tstate
);
10571 if (PyErr_Occurred()) return NULL
;
10572 } _resultobj
= Py_BuildValue("i",_result
);
10576 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10577 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10578 PyObject
* _resultobj
;
10580 wxScreenDC
* _arg0
;
10581 wxRect
* _arg1
= (wxRect
*) NULL
;
10582 PyObject
* _argo0
= 0;
10584 PyObject
* _obj1
= 0;
10585 char *_kwnames
[] = { "self","rect", NULL
};
10588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
10591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
10593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
10600 if (! wxRect_helper(_obj1
, &_arg1
))
10604 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10605 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
10607 wxPyEndAllowThreads(__tstate
);
10608 if (PyErr_Occurred()) return NULL
;
10609 } _resultobj
= Py_BuildValue("i",_result
);
10613 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
10614 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10615 PyObject
* _resultobj
;
10617 wxScreenDC
* _arg0
;
10618 PyObject
* _argo0
= 0;
10619 char *_kwnames
[] = { "self", NULL
};
10622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
10625 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10626 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
10627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
10632 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10633 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
10635 wxPyEndAllowThreads(__tstate
);
10636 if (PyErr_Occurred()) return NULL
;
10637 } _resultobj
= Py_BuildValue("i",_result
);
10641 static void *SwigwxClientDCTowxDC(void *ptr
) {
10644 src
= (wxClientDC
*) ptr
;
10645 dest
= (wxDC
*) src
;
10646 return (void *) dest
;
10649 static void *SwigwxClientDCTowxObject(void *ptr
) {
10652 src
= (wxClientDC
*) ptr
;
10653 dest
= (wxObject
*) src
;
10654 return (void *) dest
;
10657 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
10658 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10659 PyObject
* _resultobj
;
10660 wxClientDC
* _result
;
10662 PyObject
* _argo0
= 0;
10663 char *_kwnames
[] = { "win", NULL
};
10667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
10670 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10671 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
10677 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10678 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
10680 wxPyEndAllowThreads(__tstate
);
10681 if (PyErr_Occurred()) return NULL
;
10683 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
10684 _resultobj
= Py_BuildValue("s",_ptemp
);
10686 Py_INCREF(Py_None
);
10687 _resultobj
= Py_None
;
10692 static void *SwigwxPaintDCTowxDC(void *ptr
) {
10695 src
= (wxPaintDC
*) ptr
;
10696 dest
= (wxDC
*) src
;
10697 return (void *) dest
;
10700 static void *SwigwxPaintDCTowxObject(void *ptr
) {
10703 src
= (wxPaintDC
*) ptr
;
10704 dest
= (wxObject
*) src
;
10705 return (void *) dest
;
10708 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
10709 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10710 PyObject
* _resultobj
;
10711 wxPaintDC
* _result
;
10713 PyObject
* _argo0
= 0;
10714 char *_kwnames
[] = { "win", NULL
};
10718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
10721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
10728 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10729 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
10731 wxPyEndAllowThreads(__tstate
);
10732 if (PyErr_Occurred()) return NULL
;
10734 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
10735 _resultobj
= Py_BuildValue("s",_ptemp
);
10737 Py_INCREF(Py_None
);
10738 _resultobj
= Py_None
;
10743 static void *SwigwxWindowDCTowxDC(void *ptr
) {
10746 src
= (wxWindowDC
*) ptr
;
10747 dest
= (wxDC
*) src
;
10748 return (void *) dest
;
10751 static void *SwigwxWindowDCTowxObject(void *ptr
) {
10754 src
= (wxWindowDC
*) ptr
;
10755 dest
= (wxObject
*) src
;
10756 return (void *) dest
;
10759 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
10760 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10761 PyObject
* _resultobj
;
10762 wxWindowDC
* _result
;
10764 PyObject
* _argo0
= 0;
10765 char *_kwnames
[] = { "win", NULL
};
10769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
10772 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10773 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10779 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10780 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
10782 wxPyEndAllowThreads(__tstate
);
10783 if (PyErr_Occurred()) return NULL
;
10785 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
10786 _resultobj
= Py_BuildValue("s",_ptemp
);
10788 Py_INCREF(Py_None
);
10789 _resultobj
= Py_None
;
10794 static void *SwigwxMetaFileTowxObject(void *ptr
) {
10797 src
= (wxMetaFile
*) ptr
;
10798 dest
= (wxObject
*) src
;
10799 return (void *) dest
;
10802 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
10803 static PyObject
*_wrap_new_wxMetaFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10804 PyObject
* _resultobj
;
10805 wxMetaFile
* _result
;
10806 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
10807 PyObject
* _obj0
= 0;
10808 char *_kwnames
[] = { "filename", NULL
};
10812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFile",_kwnames
,&_obj0
))
10816 #if PYTHON_API_VERSION >= 1009
10817 char* tmpPtr
; int tmpSize
;
10818 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
10819 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10822 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
10824 _arg0
= new wxString(tmpPtr
, tmpSize
);
10826 if (!PyString_Check(_obj0
)) {
10827 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10830 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
10834 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10835 _result
= (wxMetaFile
*)new_wxMetaFile(*_arg0
);
10837 wxPyEndAllowThreads(__tstate
);
10838 if (PyErr_Occurred()) return NULL
;
10840 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
10841 _resultobj
= Py_BuildValue("s",_ptemp
);
10843 Py_INCREF(Py_None
);
10844 _resultobj
= Py_None
;
10853 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
10854 static PyObject
*_wrap_delete_wxMetaFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10855 PyObject
* _resultobj
;
10856 wxMetaFile
* _arg0
;
10857 PyObject
* _argo0
= 0;
10858 char *_kwnames
[] = { "self", NULL
};
10861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxMetaFile",_kwnames
,&_argo0
))
10864 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10865 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
10871 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10872 delete_wxMetaFile(_arg0
);
10874 wxPyEndAllowThreads(__tstate
);
10875 if (PyErr_Occurred()) return NULL
;
10876 } Py_INCREF(Py_None
);
10877 _resultobj
= Py_None
;
10881 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
10882 static PyObject
*_wrap_wxMetaFile_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10883 PyObject
* _resultobj
;
10885 wxMetaFile
* _arg0
;
10886 PyObject
* _argo0
= 0;
10887 char *_kwnames
[] = { "self", NULL
};
10890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_Ok",_kwnames
,&_argo0
))
10893 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10894 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
10900 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10901 _result
= (bool )wxMetaFile_Ok(_arg0
);
10903 wxPyEndAllowThreads(__tstate
);
10904 if (PyErr_Occurred()) return NULL
;
10905 } _resultobj
= Py_BuildValue("i",_result
);
10909 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
10910 static PyObject
*_wrap_wxMetaFile_SetClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10911 PyObject
* _resultobj
;
10913 wxMetaFile
* _arg0
;
10914 int _arg1
= (int ) 0;
10915 int _arg2
= (int ) 0;
10916 PyObject
* _argo0
= 0;
10917 char *_kwnames
[] = { "self","width","height", NULL
};
10920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:wxMetaFile_SetClipboard",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
10930 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10931 _result
= (bool )wxMetaFile_SetClipboard(_arg0
,_arg1
,_arg2
);
10933 wxPyEndAllowThreads(__tstate
);
10934 if (PyErr_Occurred()) return NULL
;
10935 } _resultobj
= Py_BuildValue("i",_result
);
10939 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
10940 static PyObject
*_wrap_wxMetaFile_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10941 PyObject
* _resultobj
;
10943 wxMetaFile
* _arg0
;
10944 PyObject
* _argo0
= 0;
10945 char *_kwnames
[] = { "self", NULL
};
10949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetSize",_kwnames
,&_argo0
))
10952 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10953 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
10959 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10960 _result
= new wxSize (wxMetaFile_GetSize(_arg0
));
10962 wxPyEndAllowThreads(__tstate
);
10963 if (PyErr_Occurred()) return NULL
;
10964 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
10965 _resultobj
= Py_BuildValue("s",_ptemp
);
10969 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
10970 static PyObject
*_wrap_wxMetaFile_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10971 PyObject
* _resultobj
;
10973 wxMetaFile
* _arg0
;
10974 PyObject
* _argo0
= 0;
10975 char *_kwnames
[] = { "self", NULL
};
10978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetWidth",_kwnames
,&_argo0
))
10981 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10982 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
10988 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10989 _result
= (int )wxMetaFile_GetWidth(_arg0
);
10991 wxPyEndAllowThreads(__tstate
);
10992 if (PyErr_Occurred()) return NULL
;
10993 } _resultobj
= Py_BuildValue("i",_result
);
10997 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
10998 static PyObject
*_wrap_wxMetaFile_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10999 PyObject
* _resultobj
;
11001 wxMetaFile
* _arg0
;
11002 PyObject
* _argo0
= 0;
11003 char *_kwnames
[] = { "self", NULL
};
11006 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetHeight",_kwnames
,&_argo0
))
11009 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11010 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11011 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
11016 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11017 _result
= (int )wxMetaFile_GetHeight(_arg0
);
11019 wxPyEndAllowThreads(__tstate
);
11020 if (PyErr_Occurred()) return NULL
;
11021 } _resultobj
= Py_BuildValue("i",_result
);
11025 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
11026 static PyObject
*_wrap_wxMetaFile_GetFileName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11027 PyObject
* _resultobj
;
11028 wxString
* _result
;
11029 wxMetaFile
* _arg0
;
11030 PyObject
* _argo0
= 0;
11031 char *_kwnames
[] = { "self", NULL
};
11034 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetFileName",_kwnames
,&_argo0
))
11037 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11038 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11039 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
11044 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11045 const wxString
& _result_ref
= wxMetaFile_GetFileName(_arg0
);
11046 _result
= (wxString
*) &_result_ref
;
11048 wxPyEndAllowThreads(__tstate
);
11049 if (PyErr_Occurred()) return NULL
;
11051 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
11056 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
11059 src
= (wxMetaFileDC
*) ptr
;
11060 dest
= (wxDC
*) src
;
11061 return (void *) dest
;
11064 static void *SwigwxMetaFileDCTowxObject(void *ptr
) {
11067 src
= (wxMetaFileDC
*) ptr
;
11068 dest
= (wxObject
*) src
;
11069 return (void *) dest
;
11072 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11073 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11074 PyObject
* _resultobj
;
11075 wxMetaFileDC
* _result
;
11076 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
11077 int _arg1
= (int ) 0;
11078 int _arg2
= (int ) 0;
11079 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
11080 PyObject
* _obj0
= 0;
11081 PyObject
* _obj3
= 0;
11082 char *_kwnames
[] = { "filename","width","height","description", NULL
};
11086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiiO:new_wxMetaFileDC",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_obj3
))
11090 #if PYTHON_API_VERSION >= 1009
11091 char* tmpPtr
; int tmpSize
;
11092 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
11093 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11096 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
11098 _arg0
= new wxString(tmpPtr
, tmpSize
);
11100 if (!PyString_Check(_obj0
)) {
11101 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11104 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
11109 #if PYTHON_API_VERSION >= 1009
11110 char* tmpPtr
; int tmpSize
;
11111 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
11112 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11115 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
11117 _arg3
= new wxString(tmpPtr
, tmpSize
);
11119 if (!PyString_Check(_obj3
)) {
11120 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11123 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
11127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11128 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
,_arg1
,_arg2
,*_arg3
);
11130 wxPyEndAllowThreads(__tstate
);
11131 if (PyErr_Occurred()) return NULL
;
11133 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
11134 _resultobj
= Py_BuildValue("s",_ptemp
);
11136 Py_INCREF(Py_None
);
11137 _resultobj
= Py_None
;
11150 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
11151 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11152 PyObject
* _resultobj
;
11153 wxMetaFile
* _result
;
11154 wxMetaFileDC
* _arg0
;
11155 PyObject
* _argo0
= 0;
11156 char *_kwnames
[] = { "self", NULL
};
11160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
11163 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11164 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
11165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
11170 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11171 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
11173 wxPyEndAllowThreads(__tstate
);
11174 if (PyErr_Occurred()) return NULL
;
11176 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
11177 _resultobj
= Py_BuildValue("s",_ptemp
);
11179 Py_INCREF(Py_None
);
11180 _resultobj
= Py_None
;
11185 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
11188 src
= (wxPalette
*) ptr
;
11189 dest
= (wxGDIObject
*) src
;
11190 return (void *) dest
;
11193 static void *SwigwxPaletteTowxObject(void *ptr
) {
11196 src
= (wxPalette
*) ptr
;
11197 dest
= (wxObject
*) src
;
11198 return (void *) dest
;
11201 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11202 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11203 PyObject
* _resultobj
;
11204 wxPalette
* _result
;
11209 PyObject
* _obj1
= 0;
11210 PyObject
* _obj2
= 0;
11211 PyObject
* _obj3
= 0;
11212 char *_kwnames
[] = { "choices","choices","choices", NULL
};
11216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
11219 _arg1
= byte_LIST_helper(_obj1
);
11220 if (_arg1
== NULL
) {
11225 _arg2
= byte_LIST_helper(_obj2
);
11226 if (_arg2
== NULL
) {
11232 _arg3
= byte_LIST_helper(_obj3
);
11233 if (_arg3
== NULL
) {
11239 _arg0
= PyList_Size(_obj1
);
11246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11247 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
11249 wxPyEndAllowThreads(__tstate
);
11250 if (PyErr_Occurred()) return NULL
;
11252 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
11253 _resultobj
= Py_BuildValue("s",_ptemp
);
11255 Py_INCREF(Py_None
);
11256 _resultobj
= Py_None
;
11270 #define delete_wxPalette(_swigobj) (delete _swigobj)
11271 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11272 PyObject
* _resultobj
;
11274 PyObject
* _argo0
= 0;
11275 char *_kwnames
[] = { "self", NULL
};
11278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
11281 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11282 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
11283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
11288 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11289 delete_wxPalette(_arg0
);
11291 wxPyEndAllowThreads(__tstate
);
11292 if (PyErr_Occurred()) return NULL
;
11293 } Py_INCREF(Py_None
);
11294 _resultobj
= Py_None
;
11298 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
11299 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11300 PyObject
* _resultobj
;
11306 PyObject
* _argo0
= 0;
11307 char *_kwnames
[] = { "self","red","green","blue", NULL
};
11310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
11313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
11315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
11320 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11321 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
11323 wxPyEndAllowThreads(__tstate
);
11324 if (PyErr_Occurred()) return NULL
;
11325 } _resultobj
= Py_BuildValue("i",_result
);
11329 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11330 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11331 PyObject
* _resultobj
;
11338 PyObject
* _argo0
= 0;
11339 PyObject
* _argo2
= 0;
11340 PyObject
* _argo3
= 0;
11341 PyObject
* _argo4
= 0;
11342 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
11345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
11348 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11349 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
11350 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
11355 if (_argo2
== Py_None
) { _arg2
= NULL
; }
11356 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
11357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
11362 if (_argo3
== Py_None
) { _arg3
= NULL
; }
11363 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
11364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
11369 if (_argo4
== Py_None
) { _arg4
= NULL
; }
11370 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
11371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
11376 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11377 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11379 wxPyEndAllowThreads(__tstate
);
11380 if (PyErr_Occurred()) return NULL
;
11381 } _resultobj
= Py_BuildValue("i",_result
);
11385 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
11386 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11387 PyObject
* _resultobj
;
11390 PyObject
* _argo0
= 0;
11391 char *_kwnames
[] = { "self", NULL
};
11394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
11397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
11399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
11404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11405 _result
= (bool )wxPalette_Ok(_arg0
);
11407 wxPyEndAllowThreads(__tstate
);
11408 if (PyErr_Occurred()) return NULL
;
11409 } _resultobj
= Py_BuildValue("i",_result
);
11413 static void *SwigwxImageListTowxObject(void *ptr
) {
11416 src
= (wxImageList
*) ptr
;
11417 dest
= (wxObject
*) src
;
11418 return (void *) dest
;
11421 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11422 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11423 PyObject
* _resultobj
;
11424 wxImageList
* _result
;
11427 int _arg2
= (int ) TRUE
;
11428 int _arg3
= (int ) 1;
11429 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
11433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
11436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11437 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
11439 wxPyEndAllowThreads(__tstate
);
11440 if (PyErr_Occurred()) return NULL
;
11442 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
11443 _resultobj
= Py_BuildValue("s",_ptemp
);
11445 Py_INCREF(Py_None
);
11446 _resultobj
= Py_None
;
11451 #define delete_wxImageList(_swigobj) (delete _swigobj)
11452 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11453 PyObject
* _resultobj
;
11454 wxImageList
* _arg0
;
11455 PyObject
* _argo0
= 0;
11456 char *_kwnames
[] = { "self", NULL
};
11459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
11462 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11463 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
11469 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11470 delete_wxImageList(_arg0
);
11472 wxPyEndAllowThreads(__tstate
);
11473 if (PyErr_Occurred()) return NULL
;
11474 } Py_INCREF(Py_None
);
11475 _resultobj
= Py_None
;
11479 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11480 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11481 PyObject
* _resultobj
;
11483 wxImageList
* _arg0
;
11485 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
11486 PyObject
* _argo0
= 0;
11487 PyObject
* _argo1
= 0;
11488 PyObject
* _argo2
= 0;
11489 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
11492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
11495 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11496 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
11502 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11503 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
11504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
11509 if (_argo2
== Py_None
) { _arg2
= NULL
; }
11510 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
11511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
11516 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11517 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
11519 wxPyEndAllowThreads(__tstate
);
11520 if (PyErr_Occurred()) return NULL
;
11521 } _resultobj
= Py_BuildValue("i",_result
);
11525 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11526 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11527 PyObject
* _resultobj
;
11529 wxImageList
* _arg0
;
11532 PyObject
* _argo0
= 0;
11533 PyObject
* _argo1
= 0;
11535 PyObject
* _obj2
= 0;
11536 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
11539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
11542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
11549 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11550 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
11551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
11557 if (! wxColour_helper(_obj2
, &_arg2
))
11561 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11562 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
11564 wxPyEndAllowThreads(__tstate
);
11565 if (PyErr_Occurred()) return NULL
;
11566 } _resultobj
= Py_BuildValue("i",_result
);
11570 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
11571 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11572 PyObject
* _resultobj
;
11574 wxImageList
* _arg0
;
11576 PyObject
* _argo0
= 0;
11577 PyObject
* _argo1
= 0;
11578 char *_kwnames
[] = { "self","icon", NULL
};
11581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
11584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
11591 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11592 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
11593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
11598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11599 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
11601 wxPyEndAllowThreads(__tstate
);
11602 if (PyErr_Occurred()) return NULL
;
11603 } _resultobj
= Py_BuildValue("i",_result
);
11607 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
11608 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11609 PyObject
* _resultobj
;
11611 wxImageList
* _arg0
;
11614 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
11615 PyObject
* _argo0
= 0;
11616 PyObject
* _argo2
= 0;
11617 PyObject
* _argo3
= 0;
11618 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
11621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
11624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
11631 if (_argo2
== Py_None
) { _arg2
= NULL
; }
11632 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
11633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
11638 if (_argo3
== Py_None
) { _arg3
= NULL
; }
11639 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
11640 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
11645 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11646 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
11648 wxPyEndAllowThreads(__tstate
);
11649 if (PyErr_Occurred()) return NULL
;
11650 } _resultobj
= Py_BuildValue("i",_result
);
11654 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
11655 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11656 PyObject
* _resultobj
;
11658 wxImageList
* _arg0
;
11663 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
11664 bool _arg6
= (bool ) FALSE
;
11665 PyObject
* _argo0
= 0;
11666 PyObject
* _argo2
= 0;
11667 int tempbool6
= (int) FALSE
;
11668 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
11671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
11674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
11681 if (_argo2
== Py_None
) { _arg2
= NULL
; }
11682 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
11683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
11687 _arg6
= (bool ) tempbool6
;
11689 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11690 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
11692 wxPyEndAllowThreads(__tstate
);
11693 if (PyErr_Occurred()) return NULL
;
11694 } _resultobj
= Py_BuildValue("i",_result
);
11698 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
11699 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11700 PyObject
* _resultobj
;
11702 wxImageList
* _arg0
;
11703 PyObject
* _argo0
= 0;
11704 char *_kwnames
[] = { "self", NULL
};
11707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
11710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
11717 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11718 _result
= (int )wxImageList_GetImageCount(_arg0
);
11720 wxPyEndAllowThreads(__tstate
);
11721 if (PyErr_Occurred()) return NULL
;
11722 } _resultobj
= Py_BuildValue("i",_result
);
11726 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
11727 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11728 PyObject
* _resultobj
;
11730 wxImageList
* _arg0
;
11732 PyObject
* _argo0
= 0;
11733 char *_kwnames
[] = { "self","index", NULL
};
11736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
11739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
11746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11747 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
11749 wxPyEndAllowThreads(__tstate
);
11750 if (PyErr_Occurred()) return NULL
;
11751 } _resultobj
= Py_BuildValue("i",_result
);
11755 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
11756 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11757 PyObject
* _resultobj
;
11759 wxImageList
* _arg0
;
11760 PyObject
* _argo0
= 0;
11761 char *_kwnames
[] = { "self", NULL
};
11764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
11767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
11774 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11775 _result
= (bool )wxImageList_RemoveAll(_arg0
);
11777 wxPyEndAllowThreads(__tstate
);
11778 if (PyErr_Occurred()) return NULL
;
11779 } _resultobj
= Py_BuildValue("i",_result
);
11783 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
11784 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11785 PyObject
* _resultobj
;
11786 wxImageList
* _arg0
;
11792 PyObject
* _argo0
= 0;
11793 char *_kwnames
[] = { "self","index", NULL
};
11802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
11805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
11812 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11813 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
11815 wxPyEndAllowThreads(__tstate
);
11816 if (PyErr_Occurred()) return NULL
;
11817 } Py_INCREF(Py_None
);
11818 _resultobj
= Py_None
;
11821 o
= PyInt_FromLong((long) (*_arg2
));
11822 _resultobj
= t_output_helper(_resultobj
, o
);
11826 o
= PyInt_FromLong((long) (*_arg3
));
11827 _resultobj
= t_output_helper(_resultobj
, o
);
11832 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
11835 src
= (wxRegion
*) ptr
;
11836 dest
= (wxGDIObject
*) src
;
11837 return (void *) dest
;
11840 static void *SwigwxRegionTowxObject(void *ptr
) {
11843 src
= (wxRegion
*) ptr
;
11844 dest
= (wxObject
*) src
;
11845 return (void *) dest
;
11848 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11849 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11850 PyObject
* _resultobj
;
11851 wxRegion
* _result
;
11852 long _arg0
= (long ) 0;
11853 long _arg1
= (long ) 0;
11854 long _arg2
= (long ) 0;
11855 long _arg3
= (long ) 0;
11856 char *_kwnames
[] = { "x","y","width","height", NULL
};
11860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
11863 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11864 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
11866 wxPyEndAllowThreads(__tstate
);
11867 if (PyErr_Occurred()) return NULL
;
11869 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
11870 _resultobj
= Py_BuildValue("s",_ptemp
);
11872 Py_INCREF(Py_None
);
11873 _resultobj
= Py_None
;
11878 #define delete_wxRegion(_swigobj) (delete _swigobj)
11879 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11880 PyObject
* _resultobj
;
11882 PyObject
* _argo0
= 0;
11883 char *_kwnames
[] = { "self", NULL
};
11886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
11889 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11890 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
11896 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11897 delete_wxRegion(_arg0
);
11899 wxPyEndAllowThreads(__tstate
);
11900 if (PyErr_Occurred()) return NULL
;
11901 } Py_INCREF(Py_None
);
11902 _resultobj
= Py_None
;
11906 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
11907 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11908 PyObject
* _resultobj
;
11910 PyObject
* _argo0
= 0;
11911 char *_kwnames
[] = { "self", NULL
};
11914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
11917 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11918 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11919 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
11924 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11925 wxRegion_Clear(_arg0
);
11927 wxPyEndAllowThreads(__tstate
);
11928 if (PyErr_Occurred()) return NULL
;
11929 } Py_INCREF(Py_None
);
11930 _resultobj
= Py_None
;
11934 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
11935 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11936 PyObject
* _resultobj
;
11937 wxRegionContain _result
;
11941 PyObject
* _argo0
= 0;
11942 char *_kwnames
[] = { "self","x","y", NULL
};
11945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
11948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
11955 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11956 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
11958 wxPyEndAllowThreads(__tstate
);
11959 if (PyErr_Occurred()) return NULL
;
11960 } _resultobj
= Py_BuildValue("i",_result
);
11964 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11965 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11966 PyObject
* _resultobj
;
11967 wxRegionContain _result
;
11970 PyObject
* _argo0
= 0;
11972 PyObject
* _obj1
= 0;
11973 char *_kwnames
[] = { "self","pt", NULL
};
11976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
11979 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11980 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
11987 if (! wxPoint_helper(_obj1
, &_arg1
))
11991 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11992 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
11994 wxPyEndAllowThreads(__tstate
);
11995 if (PyErr_Occurred()) return NULL
;
11996 } _resultobj
= Py_BuildValue("i",_result
);
12000 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
12001 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12002 PyObject
* _resultobj
;
12003 wxRegionContain _result
;
12006 PyObject
* _argo0
= 0;
12008 PyObject
* _obj1
= 0;
12009 char *_kwnames
[] = { "self","rect", NULL
};
12012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
12015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
12023 if (! wxRect_helper(_obj1
, &_arg1
))
12027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12028 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
12030 wxPyEndAllowThreads(__tstate
);
12031 if (PyErr_Occurred()) return NULL
;
12032 } _resultobj
= Py_BuildValue("i",_result
);
12036 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12037 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12038 PyObject
* _resultobj
;
12039 wxRegionContain _result
;
12045 PyObject
* _argo0
= 0;
12046 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
12049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
12059 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12060 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12062 wxPyEndAllowThreads(__tstate
);
12063 if (PyErr_Occurred()) return NULL
;
12064 } _resultobj
= Py_BuildValue("i",_result
);
12068 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
12069 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12070 PyObject
* _resultobj
;
12073 PyObject
* _argo0
= 0;
12074 char *_kwnames
[] = { "self", NULL
};
12078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
12081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
12088 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12089 _result
= new wxRect (wxRegion_GetBox(_arg0
));
12091 wxPyEndAllowThreads(__tstate
);
12092 if (PyErr_Occurred()) return NULL
;
12093 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
12094 _resultobj
= Py_BuildValue("s",_ptemp
);
12098 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12099 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12100 PyObject
* _resultobj
;
12107 PyObject
* _argo0
= 0;
12108 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
12111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12114 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12115 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12116 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
12121 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12122 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12124 wxPyEndAllowThreads(__tstate
);
12125 if (PyErr_Occurred()) return NULL
;
12126 } _resultobj
= Py_BuildValue("i",_result
);
12130 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12131 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12132 PyObject
* _resultobj
;
12136 PyObject
* _argo0
= 0;
12138 PyObject
* _obj1
= 0;
12139 char *_kwnames
[] = { "self","rect", NULL
};
12142 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
12145 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12146 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12147 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
12153 if (! wxRect_helper(_obj1
, &_arg1
))
12157 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12158 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
12160 wxPyEndAllowThreads(__tstate
);
12161 if (PyErr_Occurred()) return NULL
;
12162 } _resultobj
= Py_BuildValue("i",_result
);
12166 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12167 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12168 PyObject
* _resultobj
;
12172 PyObject
* _argo0
= 0;
12173 PyObject
* _argo1
= 0;
12174 char *_kwnames
[] = { "self","region", NULL
};
12177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
12180 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12181 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12187 if (_argo1
== Py_None
) { _arg1
= NULL
; }
12188 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
12189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12194 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12195 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
12197 wxPyEndAllowThreads(__tstate
);
12198 if (PyErr_Occurred()) return NULL
;
12199 } _resultobj
= Py_BuildValue("i",_result
);
12203 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
12204 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12205 PyObject
* _resultobj
;
12208 PyObject
* _argo0
= 0;
12209 char *_kwnames
[] = { "self", NULL
};
12212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
12215 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12216 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12217 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
12222 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12223 _result
= (bool )wxRegion_IsEmpty(_arg0
);
12225 wxPyEndAllowThreads(__tstate
);
12226 if (PyErr_Occurred()) return NULL
;
12227 } _resultobj
= Py_BuildValue("i",_result
);
12231 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12232 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12233 PyObject
* _resultobj
;
12240 PyObject
* _argo0
= 0;
12241 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
12244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
12254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12255 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12257 wxPyEndAllowThreads(__tstate
);
12258 if (PyErr_Occurred()) return NULL
;
12259 } _resultobj
= Py_BuildValue("i",_result
);
12263 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12264 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12265 PyObject
* _resultobj
;
12269 PyObject
* _argo0
= 0;
12271 PyObject
* _obj1
= 0;
12272 char *_kwnames
[] = { "self","rect", NULL
};
12275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
12278 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12279 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
12286 if (! wxRect_helper(_obj1
, &_arg1
))
12290 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12291 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
12293 wxPyEndAllowThreads(__tstate
);
12294 if (PyErr_Occurred()) return NULL
;
12295 } _resultobj
= Py_BuildValue("i",_result
);
12299 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12300 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12301 PyObject
* _resultobj
;
12305 PyObject
* _argo0
= 0;
12306 PyObject
* _argo1
= 0;
12307 char *_kwnames
[] = { "self","region", NULL
};
12310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
12313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12320 if (_argo1
== Py_None
) { _arg1
= NULL
; }
12321 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
12322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12328 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
12330 wxPyEndAllowThreads(__tstate
);
12331 if (PyErr_Occurred()) return NULL
;
12332 } _resultobj
= Py_BuildValue("i",_result
);
12336 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12337 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12338 PyObject
* _resultobj
;
12345 PyObject
* _argo0
= 0;
12346 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
12349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12352 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12353 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
12359 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12360 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12362 wxPyEndAllowThreads(__tstate
);
12363 if (PyErr_Occurred()) return NULL
;
12364 } _resultobj
= Py_BuildValue("i",_result
);
12368 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12369 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12370 PyObject
* _resultobj
;
12374 PyObject
* _argo0
= 0;
12376 PyObject
* _obj1
= 0;
12377 char *_kwnames
[] = { "self","rect", NULL
};
12380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
12383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
12391 if (! wxRect_helper(_obj1
, &_arg1
))
12395 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12396 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
12398 wxPyEndAllowThreads(__tstate
);
12399 if (PyErr_Occurred()) return NULL
;
12400 } _resultobj
= Py_BuildValue("i",_result
);
12404 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12405 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12406 PyObject
* _resultobj
;
12410 PyObject
* _argo0
= 0;
12411 PyObject
* _argo1
= 0;
12412 char *_kwnames
[] = { "self","region", NULL
};
12415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
12418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12425 if (_argo1
== Py_None
) { _arg1
= NULL
; }
12426 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
12427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12433 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
12435 wxPyEndAllowThreads(__tstate
);
12436 if (PyErr_Occurred()) return NULL
;
12437 } _resultobj
= Py_BuildValue("i",_result
);
12441 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12442 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12443 PyObject
* _resultobj
;
12450 PyObject
* _argo0
= 0;
12451 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
12454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
12464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12465 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12467 wxPyEndAllowThreads(__tstate
);
12468 if (PyErr_Occurred()) return NULL
;
12469 } _resultobj
= Py_BuildValue("i",_result
);
12473 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12474 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12475 PyObject
* _resultobj
;
12479 PyObject
* _argo0
= 0;
12481 PyObject
* _obj1
= 0;
12482 char *_kwnames
[] = { "self","rect", NULL
};
12485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
12488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
12496 if (! wxRect_helper(_obj1
, &_arg1
))
12500 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12501 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
12503 wxPyEndAllowThreads(__tstate
);
12504 if (PyErr_Occurred()) return NULL
;
12505 } _resultobj
= Py_BuildValue("i",_result
);
12509 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12510 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12511 PyObject
* _resultobj
;
12515 PyObject
* _argo0
= 0;
12516 PyObject
* _argo1
= 0;
12517 char *_kwnames
[] = { "self","region", NULL
};
12520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
12523 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12524 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
12530 if (_argo1
== Py_None
) { _arg1
= NULL
; }
12531 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
12532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
12537 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12538 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
12540 wxPyEndAllowThreads(__tstate
);
12541 if (PyErr_Occurred()) return NULL
;
12542 } _resultobj
= Py_BuildValue("i",_result
);
12546 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
12547 wxRegionIterator
*src
;
12549 src
= (wxRegionIterator
*) ptr
;
12550 dest
= (wxObject
*) src
;
12551 return (void *) dest
;
12554 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
12555 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12556 PyObject
* _resultobj
;
12557 wxRegionIterator
* _result
;
12559 PyObject
* _argo0
= 0;
12560 char *_kwnames
[] = { "region", NULL
};
12564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
12567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
12574 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12575 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
12577 wxPyEndAllowThreads(__tstate
);
12578 if (PyErr_Occurred()) return NULL
;
12580 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
12581 _resultobj
= Py_BuildValue("s",_ptemp
);
12583 Py_INCREF(Py_None
);
12584 _resultobj
= Py_None
;
12589 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
12590 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12591 PyObject
* _resultobj
;
12592 wxRegionIterator
* _arg0
;
12593 PyObject
* _argo0
= 0;
12594 char *_kwnames
[] = { "self", NULL
};
12597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
12600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
12607 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12608 delete_wxRegionIterator(_arg0
);
12610 wxPyEndAllowThreads(__tstate
);
12611 if (PyErr_Occurred()) return NULL
;
12612 } Py_INCREF(Py_None
);
12613 _resultobj
= Py_None
;
12617 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
12618 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12619 PyObject
* _resultobj
;
12621 wxRegionIterator
* _arg0
;
12622 PyObject
* _argo0
= 0;
12623 char *_kwnames
[] = { "self", NULL
};
12626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
12629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
12636 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12637 _result
= (long )wxRegionIterator_GetX(_arg0
);
12639 wxPyEndAllowThreads(__tstate
);
12640 if (PyErr_Occurred()) return NULL
;
12641 } _resultobj
= Py_BuildValue("l",_result
);
12645 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
12646 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12647 PyObject
* _resultobj
;
12649 wxRegionIterator
* _arg0
;
12650 PyObject
* _argo0
= 0;
12651 char *_kwnames
[] = { "self", NULL
};
12654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
12657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
12664 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12665 _result
= (long )wxRegionIterator_GetY(_arg0
);
12667 wxPyEndAllowThreads(__tstate
);
12668 if (PyErr_Occurred()) return NULL
;
12669 } _resultobj
= Py_BuildValue("l",_result
);
12673 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
12674 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12675 PyObject
* _resultobj
;
12677 wxRegionIterator
* _arg0
;
12678 PyObject
* _argo0
= 0;
12679 char *_kwnames
[] = { "self", NULL
};
12682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
12685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
12692 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12693 _result
= (long )wxRegionIterator_GetW(_arg0
);
12695 wxPyEndAllowThreads(__tstate
);
12696 if (PyErr_Occurred()) return NULL
;
12697 } _resultobj
= Py_BuildValue("l",_result
);
12701 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
12702 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12703 PyObject
* _resultobj
;
12705 wxRegionIterator
* _arg0
;
12706 PyObject
* _argo0
= 0;
12707 char *_kwnames
[] = { "self", NULL
};
12710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
12713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
12720 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12721 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
12723 wxPyEndAllowThreads(__tstate
);
12724 if (PyErr_Occurred()) return NULL
;
12725 } _resultobj
= Py_BuildValue("l",_result
);
12729 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
12730 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12731 PyObject
* _resultobj
;
12733 wxRegionIterator
* _arg0
;
12734 PyObject
* _argo0
= 0;
12735 char *_kwnames
[] = { "self", NULL
};
12738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
12741 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12742 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
12748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12749 _result
= (long )wxRegionIterator_GetH(_arg0
);
12751 wxPyEndAllowThreads(__tstate
);
12752 if (PyErr_Occurred()) return NULL
;
12753 } _resultobj
= Py_BuildValue("l",_result
);
12757 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
12758 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12759 PyObject
* _resultobj
;
12761 wxRegionIterator
* _arg0
;
12762 PyObject
* _argo0
= 0;
12763 char *_kwnames
[] = { "self", NULL
};
12766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
12769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
12776 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12777 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
12779 wxPyEndAllowThreads(__tstate
);
12780 if (PyErr_Occurred()) return NULL
;
12781 } _resultobj
= Py_BuildValue("l",_result
);
12785 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
12786 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12787 PyObject
* _resultobj
;
12789 wxRegionIterator
* _arg0
;
12790 PyObject
* _argo0
= 0;
12791 char *_kwnames
[] = { "self", NULL
};
12795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
12798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
12805 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12806 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
12808 wxPyEndAllowThreads(__tstate
);
12809 if (PyErr_Occurred()) return NULL
;
12810 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
12811 _resultobj
= Py_BuildValue("s",_ptemp
);
12815 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
12816 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12817 PyObject
* _resultobj
;
12819 wxRegionIterator
* _arg0
;
12820 PyObject
* _argo0
= 0;
12821 char *_kwnames
[] = { "self", NULL
};
12824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
12827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
12834 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12835 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
12837 wxPyEndAllowThreads(__tstate
);
12838 if (PyErr_Occurred()) return NULL
;
12839 } _resultobj
= Py_BuildValue("i",_result
);
12843 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
12844 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12845 PyObject
* _resultobj
;
12846 wxRegionIterator
* _arg0
;
12847 PyObject
* _argo0
= 0;
12848 char *_kwnames
[] = { "self", NULL
};
12851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
12854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
12861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12862 wxRegionIterator_Reset(_arg0
);
12864 wxPyEndAllowThreads(__tstate
);
12865 if (PyErr_Occurred()) return NULL
;
12866 } Py_INCREF(Py_None
);
12867 _resultobj
= Py_None
;
12871 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
12874 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12875 PyObject
* _resultobj
;
12876 wxRegionIterator
* _arg0
;
12877 PyObject
* _argo0
= 0;
12878 char *_kwnames
[] = { "self", NULL
};
12881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
12884 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12885 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
12891 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12892 wxRegionIterator_Next(_arg0
);
12894 wxPyEndAllowThreads(__tstate
);
12895 if (PyErr_Occurred()) return NULL
;
12896 } Py_INCREF(Py_None
);
12897 _resultobj
= Py_None
;
12901 static PyMethodDef gdicMethods
[] = {
12902 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
12903 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
12904 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
12905 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
12906 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12907 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
12908 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12909 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
12910 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
12911 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
12912 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
12913 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
12914 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
12915 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
12916 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
12917 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
12918 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
12919 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
12920 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
12921 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
12922 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
12923 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
12924 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
12925 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
12926 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
12927 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
12928 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
12929 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
12930 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
12931 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
12932 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
12933 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
12934 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
12935 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
12936 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
12937 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
12938 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
12939 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
12940 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
12941 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
12942 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
12943 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
12944 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
12945 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
12946 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12947 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
12948 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
12949 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
12950 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
12951 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
12952 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
12953 { "wxMetaFile_GetFileName", (PyCFunction
) _wrap_wxMetaFile_GetFileName
, METH_VARARGS
| METH_KEYWORDS
},
12954 { "wxMetaFile_GetHeight", (PyCFunction
) _wrap_wxMetaFile_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12955 { "wxMetaFile_GetWidth", (PyCFunction
) _wrap_wxMetaFile_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12956 { "wxMetaFile_GetSize", (PyCFunction
) _wrap_wxMetaFile_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
12957 { "wxMetaFile_SetClipboard", (PyCFunction
) _wrap_wxMetaFile_SetClipboard
, METH_VARARGS
| METH_KEYWORDS
},
12958 { "wxMetaFile_Ok", (PyCFunction
) _wrap_wxMetaFile_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12959 { "delete_wxMetaFile", (PyCFunction
) _wrap_delete_wxMetaFile
, METH_VARARGS
| METH_KEYWORDS
},
12960 { "new_wxMetaFile", (PyCFunction
) _wrap_new_wxMetaFile
, METH_VARARGS
| METH_KEYWORDS
},
12961 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
12962 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
12963 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
12964 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
12965 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
12966 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
12967 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
12968 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
12969 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
12970 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
12971 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
12972 { "wxDC_GetHDC", (PyCFunction
) _wrap_wxDC_GetHDC
, METH_VARARGS
| METH_KEYWORDS
},
12973 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
12974 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
12975 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
12976 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
12977 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12978 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12979 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12980 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
12981 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12982 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
12983 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12984 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12985 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
12986 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
12987 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
12988 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
12989 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
12990 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
12991 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
12992 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
12993 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
12994 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
12995 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
12996 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
12997 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
12998 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
12999 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
13000 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
13001 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
13002 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
13003 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13004 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
13005 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
13006 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
13007 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
13008 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
13009 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
13010 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
13011 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
13012 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
13013 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
13014 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
13015 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
13016 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
13017 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
13018 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
13019 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
13020 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
13021 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
13022 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
13023 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
13024 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
13025 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
13026 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
13027 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
13028 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
13029 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
13030 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
13031 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
13032 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
13033 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
13034 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
13035 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
13036 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
13037 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
13038 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
13039 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
13040 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
13041 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
13042 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
13043 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
13044 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
13045 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
13046 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
13047 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
13048 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
13049 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
13050 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
13051 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
13052 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
13053 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
13054 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
13055 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
13056 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
13057 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
13058 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
13059 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
13060 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
13061 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
13062 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
13063 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
13064 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13065 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
13066 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
13067 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13068 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13069 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
13070 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
13071 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
13072 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
13073 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
13074 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
13075 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
13076 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
13077 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
13078 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
13079 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
13080 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
13081 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
13082 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
13083 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13084 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13085 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
13086 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
13087 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
13088 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13089 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13090 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13091 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
13092 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
13093 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
13094 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
13095 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
13096 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
13097 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
13098 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
13099 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
13100 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
13101 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13102 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
13103 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
13104 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
13105 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
13106 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
13107 { "wxFontList_GetCount", (PyCFunction
) _wrap_wxFontList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
13108 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
13109 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
13110 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
13111 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13112 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13113 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
13114 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
13115 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
13116 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_SetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
13117 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
13118 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13119 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
13120 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
13121 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
13122 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13123 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
13124 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
13125 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
13126 { "wxFont_GetNativeFontInfoDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoDesc
, METH_VARARGS
| METH_KEYWORDS
},
13127 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
13128 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13129 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
13130 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
13131 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
13132 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13133 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
13134 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
13135 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13136 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
13137 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
13138 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
13139 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
13140 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
13141 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
13142 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
13143 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
13144 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
13145 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
13146 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13147 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
13148 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13149 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
13150 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
13151 { "wxNativeFontInfo_ToUserString", (PyCFunction
) _wrap_wxNativeFontInfo_ToUserString
, METH_VARARGS
| METH_KEYWORDS
},
13152 { "wxNativeFontInfo_FromUserString", (PyCFunction
) _wrap_wxNativeFontInfo_FromUserString
, METH_VARARGS
| METH_KEYWORDS
},
13153 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
13154 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
13155 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
13156 { "wxNativeFontInfo_SetEncoding", (PyCFunction
) _wrap_wxNativeFontInfo_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13157 { "wxNativeFontInfo_SetFamily", (PyCFunction
) _wrap_wxNativeFontInfo_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
13158 { "wxNativeFontInfo_SetFaceName", (PyCFunction
) _wrap_wxNativeFontInfo_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
13159 { "wxNativeFontInfo_SetUnderlined", (PyCFunction
) _wrap_wxNativeFontInfo_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
13160 { "wxNativeFontInfo_SetWeight", (PyCFunction
) _wrap_wxNativeFontInfo_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
13161 { "wxNativeFontInfo_SetStyle", (PyCFunction
) _wrap_wxNativeFontInfo_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13162 { "wxNativeFontInfo_SetPointSize", (PyCFunction
) _wrap_wxNativeFontInfo_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
13163 { "wxNativeFontInfo_GetEncoding", (PyCFunction
) _wrap_wxNativeFontInfo_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13164 { "wxNativeFontInfo_GetFamily", (PyCFunction
) _wrap_wxNativeFontInfo_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
13165 { "wxNativeFontInfo_GetFaceName", (PyCFunction
) _wrap_wxNativeFontInfo_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
13166 { "wxNativeFontInfo_GetUnderlined", (PyCFunction
) _wrap_wxNativeFontInfo_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
13167 { "wxNativeFontInfo_GetWeight", (PyCFunction
) _wrap_wxNativeFontInfo_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
13168 { "wxNativeFontInfo_GetStyle", (PyCFunction
) _wrap_wxNativeFontInfo_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13169 { "wxNativeFontInfo_GetPointSize", (PyCFunction
) _wrap_wxNativeFontInfo_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
13170 { "wxNativeFontInfo_Init", (PyCFunction
) _wrap_wxNativeFontInfo_Init
, METH_VARARGS
| METH_KEYWORDS
},
13171 { "new_wxNativeFontInfo", (PyCFunction
) _wrap_new_wxNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
13172 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
13173 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13174 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13175 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13176 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13177 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13178 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13179 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13180 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13181 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13182 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
13183 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
13184 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13185 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
13186 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13187 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13188 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13189 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13190 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13191 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13192 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13193 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13194 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13195 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
13196 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
13197 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
13198 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
13199 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
13200 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
13201 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
13202 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
13203 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
13204 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13205 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
13206 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13207 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13208 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13209 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13210 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13211 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13212 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13213 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13214 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13215 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
13216 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
13217 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
13218 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
13219 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
13220 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
13221 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13222 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13223 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
13224 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
13225 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
13226 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
13227 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
13228 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
13229 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
13230 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
13231 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
13232 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
13233 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
13234 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
13235 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
13236 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
13237 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13244 * This table is used by the pointer type-checker
13246 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
13247 { "_signed_long","_long",0},
13248 { "_wxPrintQuality","_wxCoord",0},
13249 { "_wxPrintQuality","_int",0},
13250 { "_wxPrintQuality","_signed_int",0},
13251 { "_wxPrintQuality","_unsigned_int",0},
13252 { "_wxPrintQuality","_wxWindowID",0},
13253 { "_wxPrintQuality","_uint",0},
13254 { "_wxPrintQuality","_EBool",0},
13255 { "_wxPrintQuality","_size_t",0},
13256 { "_wxPrintQuality","_time_t",0},
13257 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
13258 { "_byte","_unsigned_char",0},
13259 { "_long","_unsigned_long",0},
13260 { "_long","_signed_long",0},
13261 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
13262 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
13263 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
13264 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
13265 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
13266 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
13267 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
13268 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
13269 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
13270 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
13271 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
13272 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
13273 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
13274 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
13275 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
13276 { "_size_t","_wxCoord",0},
13277 { "_size_t","_wxPrintQuality",0},
13278 { "_size_t","_time_t",0},
13279 { "_size_t","_unsigned_int",0},
13280 { "_size_t","_int",0},
13281 { "_size_t","_wxWindowID",0},
13282 { "_size_t","_uint",0},
13283 { "_uint","_wxCoord",0},
13284 { "_uint","_wxPrintQuality",0},
13285 { "_uint","_time_t",0},
13286 { "_uint","_size_t",0},
13287 { "_uint","_unsigned_int",0},
13288 { "_uint","_int",0},
13289 { "_uint","_wxWindowID",0},
13290 { "_wxChar","_char",0},
13291 { "_char","_wxChar",0},
13292 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
13293 { "_EBool","_wxCoord",0},
13294 { "_EBool","_wxPrintQuality",0},
13295 { "_EBool","_signed_int",0},
13296 { "_EBool","_int",0},
13297 { "_EBool","_wxWindowID",0},
13298 { "_unsigned_long","_long",0},
13299 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
13300 { "_signed_int","_wxCoord",0},
13301 { "_signed_int","_wxPrintQuality",0},
13302 { "_signed_int","_EBool",0},
13303 { "_signed_int","_wxWindowID",0},
13304 { "_signed_int","_int",0},
13305 { "_WXTYPE","_short",0},
13306 { "_WXTYPE","_signed_short",0},
13307 { "_WXTYPE","_unsigned_short",0},
13308 { "_unsigned_short","_WXTYPE",0},
13309 { "_unsigned_short","_short",0},
13310 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
13311 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
13312 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
13313 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
13314 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject
},
13315 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject
},
13316 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
13317 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
13318 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
13319 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
13320 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
13321 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
13322 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
13323 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
13324 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
13325 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
13326 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
13327 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
13328 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
13329 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
13330 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
13331 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
13332 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
13333 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
13334 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
13335 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
13336 { "_signed_short","_WXTYPE",0},
13337 { "_signed_short","_short",0},
13338 { "_unsigned_char","_byte",0},
13339 { "_unsigned_int","_wxCoord",0},
13340 { "_unsigned_int","_wxPrintQuality",0},
13341 { "_unsigned_int","_time_t",0},
13342 { "_unsigned_int","_size_t",0},
13343 { "_unsigned_int","_uint",0},
13344 { "_unsigned_int","_wxWindowID",0},
13345 { "_unsigned_int","_int",0},
13346 { "_short","_WXTYPE",0},
13347 { "_short","_unsigned_short",0},
13348 { "_short","_signed_short",0},
13349 { "_wxWindowID","_wxCoord",0},
13350 { "_wxWindowID","_wxPrintQuality",0},
13351 { "_wxWindowID","_time_t",0},
13352 { "_wxWindowID","_size_t",0},
13353 { "_wxWindowID","_EBool",0},
13354 { "_wxWindowID","_uint",0},
13355 { "_wxWindowID","_int",0},
13356 { "_wxWindowID","_signed_int",0},
13357 { "_wxWindowID","_unsigned_int",0},
13358 { "_int","_wxCoord",0},
13359 { "_int","_wxPrintQuality",0},
13360 { "_int","_time_t",0},
13361 { "_int","_size_t",0},
13362 { "_int","_EBool",0},
13363 { "_int","_uint",0},
13364 { "_int","_wxWindowID",0},
13365 { "_int","_unsigned_int",0},
13366 { "_int","_signed_int",0},
13367 { "_time_t","_wxCoord",0},
13368 { "_time_t","_wxPrintQuality",0},
13369 { "_time_t","_unsigned_int",0},
13370 { "_time_t","_int",0},
13371 { "_time_t","_wxWindowID",0},
13372 { "_time_t","_uint",0},
13373 { "_time_t","_size_t",0},
13374 { "_wxCoord","_int",0},
13375 { "_wxCoord","_signed_int",0},
13376 { "_wxCoord","_unsigned_int",0},
13377 { "_wxCoord","_wxWindowID",0},
13378 { "_wxCoord","_uint",0},
13379 { "_wxCoord","_EBool",0},
13380 { "_wxCoord","_size_t",0},
13381 { "_wxCoord","_time_t",0},
13382 { "_wxCoord","_wxPrintQuality",0},
13385 static PyObject
*SWIG_globals
;
13389 SWIGEXPORT(void) initgdic() {
13391 SWIG_globals
= SWIG_newvarlink();
13392 m
= Py_InitModule("gdic", gdicMethods
);
13393 d
= PyModule_GetDict(m
);
13394 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
13395 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
13396 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
13397 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
13398 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
13399 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
13400 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
13401 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
13402 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
13403 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
13404 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
13405 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
13406 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
13407 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
13408 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
13409 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
13410 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
13411 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
13412 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
13413 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
13414 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
13415 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
13416 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
13417 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
13418 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
13419 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
13420 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
13421 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
13422 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
13423 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
13424 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
13425 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
13426 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
13427 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
13428 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
13429 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
13430 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
13431 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
13432 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
13433 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
13434 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
13435 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
13436 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
13437 PyDict_SetItemString(d
,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932
));
13438 PyDict_SetItemString(d
,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936
));
13439 PyDict_SetItemString(d
,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949
));
13440 PyDict_SetItemString(d
,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950
));
13441 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
13442 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
13443 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
13444 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
13445 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
13446 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
13447 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
13448 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
13449 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
13450 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
13451 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
13452 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
13453 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
13454 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
13455 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
13456 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
13457 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
13458 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
13459 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
13460 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
13461 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
13462 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
13463 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
13464 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
13465 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
13466 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
13467 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
13468 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
13469 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
13470 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
13471 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
13472 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
13473 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
13474 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
13475 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
13476 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
13477 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
13478 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
13479 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
13480 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
13481 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
13482 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
13483 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
13484 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
13485 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
13486 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
13487 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
13488 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
13489 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
13490 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
13491 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
13492 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
13493 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
13494 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
13495 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
13496 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
13497 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
13498 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
13499 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
13500 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
13501 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
13502 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
13503 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
13504 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
13505 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
13506 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
13507 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
13508 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
13509 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
13510 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
13513 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
13514 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);