2 * FILE : src/gtk/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/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
);
222 extern wxFont
* wxNORMAL_FONT
;
223 extern wxFont
* wxSMALL_FONT
;
224 extern wxFont
* wxITALIC_FONT
;
225 extern wxFont
* wxSWISS_FONT
;
226 extern wxPen
* wxRED_PEN
;
227 extern wxPen
* wxCYAN_PEN
;
228 extern wxPen
* wxGREEN_PEN
;
229 extern wxPen
* wxBLACK_PEN
;
230 extern wxPen
* wxWHITE_PEN
;
231 extern wxPen
* wxTRANSPARENT_PEN
;
232 extern wxPen
* wxBLACK_DASHED_PEN
;
233 extern wxPen
* wxGREY_PEN
;
234 extern wxPen
* wxMEDIUM_GREY_PEN
;
235 extern wxPen
* wxLIGHT_GREY_PEN
;
236 extern wxBrush
* wxBLUE_BRUSH
;
237 extern wxBrush
* wxGREEN_BRUSH
;
238 extern wxBrush
* wxWHITE_BRUSH
;
239 extern wxBrush
* wxBLACK_BRUSH
;
240 extern wxBrush
* wxTRANSPARENT_BRUSH
;
241 extern wxBrush
* wxCYAN_BRUSH
;
242 extern wxBrush
* wxRED_BRUSH
;
243 extern wxBrush
* wxGREY_BRUSH
;
244 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
245 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
246 extern wxColour
* wxBLACK
;
247 extern wxColour
* wxWHITE
;
248 extern wxColour
* wxRED
;
249 extern wxColour
* wxBLUE
;
250 extern wxColour
* wxGREEN
;
251 extern wxColour
* wxCYAN
;
252 extern wxColour
* wxLIGHT_GREY
;
253 extern wxCursor
* wxSTANDARD_CURSOR
;
254 extern wxCursor
* wxHOURGLASS_CURSOR
;
255 extern wxCursor
* wxCROSS_CURSOR
;
256 extern wxBitmap wxNullBitmap
;
257 extern wxIcon wxNullIcon
;
258 extern wxCursor wxNullCursor
;
259 extern wxPen wxNullPen
;
260 extern wxBrush wxNullBrush
;
261 extern wxPalette wxNullPalette
;
262 extern wxFont wxNullFont
;
263 extern wxColour wxNullColour
;
264 extern wxFontList
* wxTheFontList
;
265 extern wxPenList
* wxThePenList
;
266 extern wxBrushList
* wxTheBrushList
;
267 extern wxColourDatabase
* wxTheColourDatabase
;
273 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
274 PyObject
* _resultobj
;
278 int _arg2
= (int ) -1;
279 char *_kwnames
[] = { "width","height","depth", NULL
};
283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
286 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
287 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
289 wxPyEndAllowThreads(__tstate
);
290 if (PyErr_Occurred()) return NULL
;
292 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
293 _resultobj
= Py_BuildValue("s",_ptemp
);
296 _resultobj
= Py_None
;
301 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
302 PyObject
* _resultobj
;
305 PyObject
* _obj0
= 0;
306 char *_kwnames
[] = { "listOfStrings", NULL
};
310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
316 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
317 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
319 wxPyEndAllowThreads(__tstate
);
320 if (PyErr_Occurred()) return NULL
;
322 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
323 _resultobj
= Py_BuildValue("s",_ptemp
);
326 _resultobj
= Py_None
;
331 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
332 PyObject
* _resultobj
;
335 PyObject
* _argo0
= 0;
336 char *_kwnames
[] = { "icon", NULL
};
340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
350 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
351 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
353 wxPyEndAllowThreads(__tstate
);
354 if (PyErr_Occurred()) return NULL
;
356 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
357 _resultobj
= Py_BuildValue("s",_ptemp
);
360 _resultobj
= Py_None
;
365 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
366 PyObject
* _resultobj
;
371 int _arg3
= (int ) 1;
372 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"sii|i:wxBitmapFromBits",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
380 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
382 wxPyEndAllowThreads(__tstate
);
383 if (PyErr_Occurred()) return NULL
;
385 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
386 _resultobj
= Py_BuildValue("s",_ptemp
);
389 _resultobj
= Py_None
;
394 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
395 PyObject
* _resultobj
;
399 PyObject
* _argo0
= 0;
401 PyObject
* _obj1
= 0;
402 char *_kwnames
[] = { "bitmap","colour", NULL
};
406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
417 if (! wxColour_helper(_obj1
, &_arg1
))
421 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
422 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
424 wxPyEndAllowThreads(__tstate
);
425 if (PyErr_Occurred()) return NULL
;
427 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
428 _resultobj
= Py_BuildValue("s",_ptemp
);
431 _resultobj
= Py_None
;
436 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
437 PyObject
* _resultobj
;
439 char *_kwnames
[] = { NULL
};
443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
446 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
447 _result
= (wxIcon
*)wxEmptyIcon();
449 wxPyEndAllowThreads(__tstate
);
450 if (PyErr_Occurred()) return NULL
;
452 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
453 _resultobj
= Py_BuildValue("s",_ptemp
);
456 _resultobj
= Py_None
;
461 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
462 PyObject
* _resultobj
;
465 PyObject
* _obj0
= 0;
466 char *_kwnames
[] = { "listOfStrings", NULL
};
470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
477 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
479 wxPyEndAllowThreads(__tstate
);
480 if (PyErr_Occurred()) return NULL
;
482 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
483 _resultobj
= Py_BuildValue("s",_ptemp
);
486 _resultobj
= Py_None
;
491 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
492 PyObject
* _resultobj
;
495 char *_kwnames
[] = { "id", NULL
};
499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
502 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
503 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
505 wxPyEndAllowThreads(__tstate
);
506 if (PyErr_Occurred()) return NULL
;
508 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
509 _resultobj
= Py_BuildValue("s",_ptemp
);
512 _resultobj
= Py_None
;
517 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
518 PyObject
* _resultobj
;
521 PyObject
* _obj0
= 0;
522 char *_kwnames
[] = { "colorName", NULL
};
526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
529 #if PYTHON_API_VERSION >= 1009
530 char* tmpPtr
; int tmpSize
;
531 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
532 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
535 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
537 _arg0
= new wxString(tmpPtr
, tmpSize
);
539 if (!PyString_Check(_obj0
)) {
540 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
543 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
547 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
548 _result
= (wxColour
*)wxNamedColour(*_arg0
);
550 wxPyEndAllowThreads(__tstate
);
551 if (PyErr_Occurred()) return NULL
;
553 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
554 _resultobj
= Py_BuildValue("s",_ptemp
);
557 _resultobj
= Py_None
;
566 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
567 PyObject
* _resultobj
;
568 wxMemoryDC
* _result
;
570 PyObject
* _argo0
= 0;
571 char *_kwnames
[] = { "oldDC", NULL
};
575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
586 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
588 wxPyEndAllowThreads(__tstate
);
589 if (PyErr_Occurred()) return NULL
;
591 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
592 _resultobj
= Py_BuildValue("s",_ptemp
);
595 _resultobj
= Py_None
;
600 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
602 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
606 static PyObject
*_wrap_wxNORMAL_FONT_get() {
610 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
611 pyobj
= PyString_FromString(ptemp
);
615 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
617 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
621 static PyObject
*_wrap_wxSMALL_FONT_get() {
625 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
626 pyobj
= PyString_FromString(ptemp
);
630 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
632 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
636 static PyObject
*_wrap_wxITALIC_FONT_get() {
640 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
641 pyobj
= PyString_FromString(ptemp
);
645 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
647 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
651 static PyObject
*_wrap_wxSWISS_FONT_get() {
655 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
656 pyobj
= PyString_FromString(ptemp
);
660 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
662 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
666 static PyObject
*_wrap_wxRED_PEN_get() {
670 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
671 pyobj
= PyString_FromString(ptemp
);
675 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
677 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
681 static PyObject
*_wrap_wxCYAN_PEN_get() {
685 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
686 pyobj
= PyString_FromString(ptemp
);
690 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
692 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
696 static PyObject
*_wrap_wxGREEN_PEN_get() {
700 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
701 pyobj
= PyString_FromString(ptemp
);
705 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
707 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
711 static PyObject
*_wrap_wxBLACK_PEN_get() {
715 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
716 pyobj
= PyString_FromString(ptemp
);
720 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
722 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
726 static PyObject
*_wrap_wxWHITE_PEN_get() {
730 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
731 pyobj
= PyString_FromString(ptemp
);
735 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
737 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
741 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
745 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
746 pyobj
= PyString_FromString(ptemp
);
750 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
752 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
756 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
760 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
761 pyobj
= PyString_FromString(ptemp
);
765 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
767 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
771 static PyObject
*_wrap_wxGREY_PEN_get() {
775 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
776 pyobj
= PyString_FromString(ptemp
);
780 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
782 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
786 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
790 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
791 pyobj
= PyString_FromString(ptemp
);
795 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
797 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
801 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
805 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
806 pyobj
= PyString_FromString(ptemp
);
810 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
812 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
816 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
820 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
821 pyobj
= PyString_FromString(ptemp
);
825 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
827 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
831 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
835 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
836 pyobj
= PyString_FromString(ptemp
);
840 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
842 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
846 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
850 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
851 pyobj
= PyString_FromString(ptemp
);
855 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
857 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
861 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
865 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
866 pyobj
= PyString_FromString(ptemp
);
870 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
872 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
876 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
880 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
881 pyobj
= PyString_FromString(ptemp
);
885 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
887 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
891 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
895 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
896 pyobj
= PyString_FromString(ptemp
);
900 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
902 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
906 static PyObject
*_wrap_wxRED_BRUSH_get() {
910 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
911 pyobj
= PyString_FromString(ptemp
);
915 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
917 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
921 static PyObject
*_wrap_wxGREY_BRUSH_get() {
925 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
926 pyobj
= PyString_FromString(ptemp
);
930 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
932 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
936 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
940 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
941 pyobj
= PyString_FromString(ptemp
);
945 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
947 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
951 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
955 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
956 pyobj
= PyString_FromString(ptemp
);
960 static int _wrap_wxBLACK_set(PyObject
*val
) {
962 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
966 static PyObject
*_wrap_wxBLACK_get() {
970 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
971 pyobj
= PyString_FromString(ptemp
);
975 static int _wrap_wxWHITE_set(PyObject
*val
) {
977 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
981 static PyObject
*_wrap_wxWHITE_get() {
985 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
986 pyobj
= PyString_FromString(ptemp
);
990 static int _wrap_wxRED_set(PyObject
*val
) {
992 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
996 static PyObject
*_wrap_wxRED_get() {
1000 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1001 pyobj
= PyString_FromString(ptemp
);
1005 static int _wrap_wxBLUE_set(PyObject
*val
) {
1007 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1011 static PyObject
*_wrap_wxBLUE_get() {
1015 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1016 pyobj
= PyString_FromString(ptemp
);
1020 static int _wrap_wxGREEN_set(PyObject
*val
) {
1022 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1026 static PyObject
*_wrap_wxGREEN_get() {
1030 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1031 pyobj
= PyString_FromString(ptemp
);
1035 static int _wrap_wxCYAN_set(PyObject
*val
) {
1037 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1041 static PyObject
*_wrap_wxCYAN_get() {
1045 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1046 pyobj
= PyString_FromString(ptemp
);
1050 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1052 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1056 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1060 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1061 pyobj
= PyString_FromString(ptemp
);
1065 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1067 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1071 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1075 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1076 pyobj
= PyString_FromString(ptemp
);
1080 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1082 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1086 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1090 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1091 pyobj
= PyString_FromString(ptemp
);
1095 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1097 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1101 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1105 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1106 pyobj
= PyString_FromString(ptemp
);
1110 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1112 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1116 static PyObject
*_wrap_wxNullBitmap_get() {
1120 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1121 pyobj
= PyString_FromString(ptemp
);
1125 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1127 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1131 static PyObject
*_wrap_wxNullIcon_get() {
1135 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1136 pyobj
= PyString_FromString(ptemp
);
1140 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1142 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1146 static PyObject
*_wrap_wxNullCursor_get() {
1150 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1151 pyobj
= PyString_FromString(ptemp
);
1155 static int _wrap_wxNullPen_set(PyObject
*val
) {
1157 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1161 static PyObject
*_wrap_wxNullPen_get() {
1165 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1166 pyobj
= PyString_FromString(ptemp
);
1170 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1172 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1176 static PyObject
*_wrap_wxNullBrush_get() {
1180 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1181 pyobj
= PyString_FromString(ptemp
);
1185 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1187 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1191 static PyObject
*_wrap_wxNullPalette_get() {
1195 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1196 pyobj
= PyString_FromString(ptemp
);
1200 static int _wrap_wxNullFont_set(PyObject
*val
) {
1202 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1206 static PyObject
*_wrap_wxNullFont_get() {
1210 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1211 pyobj
= PyString_FromString(ptemp
);
1215 static int _wrap_wxNullColour_set(PyObject
*val
) {
1217 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1221 static PyObject
*_wrap_wxNullColour_get() {
1225 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1226 pyobj
= PyString_FromString(ptemp
);
1230 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1232 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1236 static PyObject
*_wrap_wxTheFontList_get() {
1240 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1241 pyobj
= PyString_FromString(ptemp
);
1245 static int _wrap_wxThePenList_set(PyObject
*val
) {
1247 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1251 static PyObject
*_wrap_wxThePenList_get() {
1255 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1256 pyobj
= PyString_FromString(ptemp
);
1260 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1262 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1266 static PyObject
*_wrap_wxTheBrushList_get() {
1270 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1271 pyobj
= PyString_FromString(ptemp
);
1275 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1277 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1281 static PyObject
*_wrap_wxTheColourDatabase_get() {
1285 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1286 pyobj
= PyString_FromString(ptemp
);
1290 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1293 src
= (wxGDIObject
*) ptr
;
1294 dest
= (wxObject
*) src
;
1295 return (void *) dest
;
1298 #define new_wxGDIObject() (new wxGDIObject())
1299 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1300 PyObject
* _resultobj
;
1301 wxGDIObject
* _result
;
1302 char *_kwnames
[] = { NULL
};
1306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1309 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1310 _result
= (wxGDIObject
*)new_wxGDIObject();
1312 wxPyEndAllowThreads(__tstate
);
1313 if (PyErr_Occurred()) return NULL
;
1315 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1316 _resultobj
= Py_BuildValue("s",_ptemp
);
1319 _resultobj
= Py_None
;
1324 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1325 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1326 PyObject
* _resultobj
;
1327 wxGDIObject
* _arg0
;
1328 PyObject
* _argo0
= 0;
1329 char *_kwnames
[] = { "self", NULL
};
1332 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1335 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1336 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1337 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1342 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1343 delete_wxGDIObject(_arg0
);
1345 wxPyEndAllowThreads(__tstate
);
1346 if (PyErr_Occurred()) return NULL
;
1347 } Py_INCREF(Py_None
);
1348 _resultobj
= Py_None
;
1352 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1353 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1354 PyObject
* _resultobj
;
1356 wxGDIObject
* _arg0
;
1357 PyObject
* _argo0
= 0;
1358 char *_kwnames
[] = { "self", NULL
};
1361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1371 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1372 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1374 wxPyEndAllowThreads(__tstate
);
1375 if (PyErr_Occurred()) return NULL
;
1376 } _resultobj
= Py_BuildValue("i",_result
);
1380 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1381 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1382 PyObject
* _resultobj
;
1383 wxGDIObject
* _arg0
;
1385 PyObject
* _argo0
= 0;
1387 char *_kwnames
[] = { "self","visible", NULL
};
1390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1399 _arg1
= (bool ) tempbool1
;
1401 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1402 wxGDIObject_SetVisible(_arg0
,_arg1
);
1404 wxPyEndAllowThreads(__tstate
);
1405 if (PyErr_Occurred()) return NULL
;
1406 } Py_INCREF(Py_None
);
1407 _resultobj
= Py_None
;
1411 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1412 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1413 PyObject
* _resultobj
;
1415 wxGDIObject
* _arg0
;
1416 PyObject
* _argo0
= 0;
1417 char *_kwnames
[] = { "self", NULL
};
1420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1430 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1431 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1433 wxPyEndAllowThreads(__tstate
);
1434 if (PyErr_Occurred()) return NULL
;
1435 } _resultobj
= Py_BuildValue("i",_result
);
1439 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1442 src
= (wxBitmap
*) ptr
;
1443 dest
= (wxGDIObject
*) src
;
1444 return (void *) dest
;
1447 static void *SwigwxBitmapTowxObject(void *ptr
) {
1450 src
= (wxBitmap
*) ptr
;
1451 dest
= (wxObject
*) src
;
1452 return (void *) dest
;
1455 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1456 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1457 PyObject
* _resultobj
;
1460 wxBitmapType _arg1
= (wxBitmapType
) wxBITMAP_TYPE_BMP
;
1461 PyObject
* _obj0
= 0;
1462 char *_kwnames
[] = { "name","type", NULL
};
1466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1469 #if PYTHON_API_VERSION >= 1009
1470 char* tmpPtr
; int tmpSize
;
1471 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1472 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1475 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1477 _arg0
= new wxString(tmpPtr
, tmpSize
);
1479 if (!PyString_Check(_obj0
)) {
1480 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1483 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1488 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1490 wxPyEndAllowThreads(__tstate
);
1491 if (PyErr_Occurred()) return NULL
;
1493 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1494 _resultobj
= Py_BuildValue("s",_ptemp
);
1497 _resultobj
= Py_None
;
1506 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1507 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1508 PyObject
* _resultobj
;
1510 PyObject
* _argo0
= 0;
1511 char *_kwnames
[] = { "self", NULL
};
1514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1525 delete_wxBitmap(_arg0
);
1527 wxPyEndAllowThreads(__tstate
);
1528 if (PyErr_Occurred()) return NULL
;
1529 } Py_INCREF(Py_None
);
1530 _resultobj
= Py_None
;
1534 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1535 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1536 PyObject
* _resultobj
;
1537 wxPalette
* _result
;
1539 PyObject
* _argo0
= 0;
1540 char *_kwnames
[] = { "self", NULL
};
1544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1554 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1555 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1557 wxPyEndAllowThreads(__tstate
);
1558 if (PyErr_Occurred()) return NULL
;
1560 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1561 _resultobj
= Py_BuildValue("s",_ptemp
);
1564 _resultobj
= Py_None
;
1569 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1570 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1571 PyObject
* _resultobj
;
1574 PyObject
* _argo0
= 0;
1575 char *_kwnames
[] = { "self", NULL
};
1579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1582 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1583 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1584 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1589 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1590 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1592 wxPyEndAllowThreads(__tstate
);
1593 if (PyErr_Occurred()) return NULL
;
1595 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1596 _resultobj
= Py_BuildValue("s",_ptemp
);
1599 _resultobj
= Py_None
;
1604 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1605 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1606 PyObject
* _resultobj
;
1610 wxBitmapType _arg2
= (wxBitmapType
) wxBITMAP_TYPE_BMP
;
1611 PyObject
* _argo0
= 0;
1612 PyObject
* _obj1
= 0;
1613 char *_kwnames
[] = { "self","name","type", NULL
};
1616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1626 #if PYTHON_API_VERSION >= 1009
1627 char* tmpPtr
; int tmpSize
;
1628 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1629 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1632 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1634 _arg1
= new wxString(tmpPtr
, tmpSize
);
1636 if (!PyString_Check(_obj1
)) {
1637 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1640 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1645 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1647 wxPyEndAllowThreads(__tstate
);
1648 if (PyErr_Occurred()) return NULL
;
1649 } _resultobj
= Py_BuildValue("i",_result
);
1657 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1658 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1659 PyObject
* _resultobj
;
1664 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1665 PyObject
* _argo0
= 0;
1666 PyObject
* _obj1
= 0;
1667 PyObject
* _argo3
= 0;
1668 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1681 #if PYTHON_API_VERSION >= 1009
1682 char* tmpPtr
; int tmpSize
;
1683 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1684 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1687 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1689 _arg1
= new wxString(tmpPtr
, tmpSize
);
1691 if (!PyString_Check(_obj1
)) {
1692 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1695 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1699 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1700 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1706 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1707 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1709 wxPyEndAllowThreads(__tstate
);
1710 if (PyErr_Occurred()) return NULL
;
1711 } _resultobj
= Py_BuildValue("i",_result
);
1719 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1720 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1721 PyObject
* _resultobj
;
1724 PyObject
* _argo0
= 0;
1725 PyObject
* _argo1
= 0;
1726 char *_kwnames
[] = { "self","mask", NULL
};
1729 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1732 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1733 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1734 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1739 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1740 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1747 wxBitmap_SetMask(_arg0
,_arg1
);
1749 wxPyEndAllowThreads(__tstate
);
1750 if (PyErr_Occurred()) return NULL
;
1751 } Py_INCREF(Py_None
);
1752 _resultobj
= Py_None
;
1756 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1757 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1758 PyObject
* _resultobj
;
1761 PyObject
* _argo0
= 0;
1762 char *_kwnames
[] = { "self", NULL
};
1765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1776 _result
= (bool )wxBitmap_Ok(_arg0
);
1778 wxPyEndAllowThreads(__tstate
);
1779 if (PyErr_Occurred()) return NULL
;
1780 } _resultobj
= Py_BuildValue("i",_result
);
1784 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1785 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1786 PyObject
* _resultobj
;
1789 PyObject
* _argo0
= 0;
1790 char *_kwnames
[] = { "self", NULL
};
1793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1803 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1804 _result
= (int )wxBitmap_GetWidth(_arg0
);
1806 wxPyEndAllowThreads(__tstate
);
1807 if (PyErr_Occurred()) return NULL
;
1808 } _resultobj
= Py_BuildValue("i",_result
);
1812 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1813 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1814 PyObject
* _resultobj
;
1817 PyObject
* _argo0
= 0;
1818 char *_kwnames
[] = { "self", NULL
};
1821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1831 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1832 _result
= (int )wxBitmap_GetHeight(_arg0
);
1834 wxPyEndAllowThreads(__tstate
);
1835 if (PyErr_Occurred()) return NULL
;
1836 } _resultobj
= Py_BuildValue("i",_result
);
1840 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1841 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1842 PyObject
* _resultobj
;
1845 PyObject
* _argo0
= 0;
1846 char *_kwnames
[] = { "self", NULL
};
1849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1859 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1860 _result
= (int )wxBitmap_GetDepth(_arg0
);
1862 wxPyEndAllowThreads(__tstate
);
1863 if (PyErr_Occurred()) return NULL
;
1864 } _resultobj
= Py_BuildValue("i",_result
);
1868 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1869 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1870 PyObject
* _resultobj
;
1873 PyObject
* _argo0
= 0;
1874 char *_kwnames
[] = { "self","w", NULL
};
1877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1880 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1881 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1887 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1888 wxBitmap_SetWidth(_arg0
,_arg1
);
1890 wxPyEndAllowThreads(__tstate
);
1891 if (PyErr_Occurred()) return NULL
;
1892 } Py_INCREF(Py_None
);
1893 _resultobj
= Py_None
;
1897 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1898 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1899 PyObject
* _resultobj
;
1902 PyObject
* _argo0
= 0;
1903 char *_kwnames
[] = { "self","h", NULL
};
1906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1916 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1917 wxBitmap_SetHeight(_arg0
,_arg1
);
1919 wxPyEndAllowThreads(__tstate
);
1920 if (PyErr_Occurred()) return NULL
;
1921 } Py_INCREF(Py_None
);
1922 _resultobj
= Py_None
;
1926 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1927 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1928 PyObject
* _resultobj
;
1931 PyObject
* _argo0
= 0;
1932 char *_kwnames
[] = { "self","d", NULL
};
1935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1945 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1946 wxBitmap_SetDepth(_arg0
,_arg1
);
1948 wxPyEndAllowThreads(__tstate
);
1949 if (PyErr_Occurred()) return NULL
;
1950 } Py_INCREF(Py_None
);
1951 _resultobj
= Py_None
;
1955 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1956 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1957 PyObject
* _resultobj
;
1961 PyObject
* _argo0
= 0;
1963 PyObject
* _obj1
= 0;
1964 char *_kwnames
[] = { "self","rect", NULL
};
1968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1979 if (! wxRect_helper(_obj1
, &_arg1
))
1983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1984 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
1986 wxPyEndAllowThreads(__tstate
);
1987 if (PyErr_Occurred()) return NULL
;
1988 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1989 _resultobj
= Py_BuildValue("s",_ptemp
);
1993 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
1994 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1995 PyObject
* _resultobj
;
1999 PyObject
* _argo0
= 0;
2000 PyObject
* _argo1
= 0;
2001 char *_kwnames
[] = { "self","icon", NULL
};
2004 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2007 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2008 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2009 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2014 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2015 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2021 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2022 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2024 wxPyEndAllowThreads(__tstate
);
2025 if (PyErr_Occurred()) return NULL
;
2026 } _resultobj
= Py_BuildValue("i",_result
);
2030 static void *SwigwxMaskTowxObject(void *ptr
) {
2033 src
= (wxMask
*) ptr
;
2034 dest
= (wxObject
*) src
;
2035 return (void *) dest
;
2038 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2039 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2040 PyObject
* _resultobj
;
2043 PyObject
* _argo0
= 0;
2044 char *_kwnames
[] = { "bitmap", NULL
};
2048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2058 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2059 _result
= (wxMask
*)new_wxMask(*_arg0
);
2061 wxPyEndAllowThreads(__tstate
);
2062 if (PyErr_Occurred()) return NULL
;
2064 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2065 _resultobj
= Py_BuildValue("s",_ptemp
);
2068 _resultobj
= Py_None
;
2073 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2074 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2075 PyObject
* _resultobj
;
2077 PyObject
* _argo0
= 0;
2078 char *_kwnames
[] = { "self", NULL
};
2081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2092 wxMask_Destroy(_arg0
);
2094 wxPyEndAllowThreads(__tstate
);
2095 if (PyErr_Occurred()) return NULL
;
2096 } Py_INCREF(Py_None
);
2097 _resultobj
= Py_None
;
2101 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2104 src
= (wxIcon
*) ptr
;
2105 dest
= (wxGDIObject
*) src
;
2106 return (void *) dest
;
2109 static void *SwigwxIconTowxObject(void *ptr
) {
2112 src
= (wxIcon
*) ptr
;
2113 dest
= (wxObject
*) src
;
2114 return (void *) dest
;
2117 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2118 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2119 PyObject
* _resultobj
;
2123 int _arg2
= (int ) -1;
2124 int _arg3
= (int ) -1;
2125 PyObject
* _obj0
= 0;
2126 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2130 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2133 #if PYTHON_API_VERSION >= 1009
2134 char* tmpPtr
; int tmpSize
;
2135 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2136 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2139 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2141 _arg0
= new wxString(tmpPtr
, tmpSize
);
2143 if (!PyString_Check(_obj0
)) {
2144 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2147 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2151 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2152 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2154 wxPyEndAllowThreads(__tstate
);
2155 if (PyErr_Occurred()) return NULL
;
2157 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2158 _resultobj
= Py_BuildValue("s",_ptemp
);
2161 _resultobj
= Py_None
;
2170 #define delete_wxIcon(_swigobj) (delete _swigobj)
2171 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2172 PyObject
* _resultobj
;
2174 PyObject
* _argo0
= 0;
2175 char *_kwnames
[] = { "self", NULL
};
2178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2189 delete_wxIcon(_arg0
);
2191 wxPyEndAllowThreads(__tstate
);
2192 if (PyErr_Occurred()) return NULL
;
2193 } Py_INCREF(Py_None
);
2194 _resultobj
= Py_None
;
2198 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2199 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2200 PyObject
* _resultobj
;
2205 PyObject
* _argo0
= 0;
2206 PyObject
* _obj1
= 0;
2207 char *_kwnames
[] = { "self","name","flags", NULL
};
2210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2220 #if PYTHON_API_VERSION >= 1009
2221 char* tmpPtr
; int tmpSize
;
2222 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2223 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2226 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2228 _arg1
= new wxString(tmpPtr
, tmpSize
);
2230 if (!PyString_Check(_obj1
)) {
2231 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2234 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2238 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2239 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2241 wxPyEndAllowThreads(__tstate
);
2242 if (PyErr_Occurred()) return NULL
;
2243 } _resultobj
= Py_BuildValue("i",_result
);
2251 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2252 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2253 PyObject
* _resultobj
;
2256 PyObject
* _argo0
= 0;
2257 char *_kwnames
[] = { "self", NULL
};
2260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2271 _result
= (bool )wxIcon_Ok(_arg0
);
2273 wxPyEndAllowThreads(__tstate
);
2274 if (PyErr_Occurred()) return NULL
;
2275 } _resultobj
= Py_BuildValue("i",_result
);
2279 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2280 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2281 PyObject
* _resultobj
;
2284 PyObject
* _argo0
= 0;
2285 char *_kwnames
[] = { "self", NULL
};
2288 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2291 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2292 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2298 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2299 _result
= (int )wxIcon_GetWidth(_arg0
);
2301 wxPyEndAllowThreads(__tstate
);
2302 if (PyErr_Occurred()) return NULL
;
2303 } _resultobj
= Py_BuildValue("i",_result
);
2307 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2308 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2309 PyObject
* _resultobj
;
2312 PyObject
* _argo0
= 0;
2313 char *_kwnames
[] = { "self", NULL
};
2316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2326 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2327 _result
= (int )wxIcon_GetHeight(_arg0
);
2329 wxPyEndAllowThreads(__tstate
);
2330 if (PyErr_Occurred()) return NULL
;
2331 } _resultobj
= Py_BuildValue("i",_result
);
2335 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2336 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2337 PyObject
* _resultobj
;
2340 PyObject
* _argo0
= 0;
2341 char *_kwnames
[] = { "self", NULL
};
2344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2355 _result
= (int )wxIcon_GetDepth(_arg0
);
2357 wxPyEndAllowThreads(__tstate
);
2358 if (PyErr_Occurred()) return NULL
;
2359 } _resultobj
= Py_BuildValue("i",_result
);
2363 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2364 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2365 PyObject
* _resultobj
;
2368 PyObject
* _argo0
= 0;
2369 char *_kwnames
[] = { "self","w", NULL
};
2372 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2375 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2376 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2377 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2382 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2383 wxIcon_SetWidth(_arg0
,_arg1
);
2385 wxPyEndAllowThreads(__tstate
);
2386 if (PyErr_Occurred()) return NULL
;
2387 } Py_INCREF(Py_None
);
2388 _resultobj
= Py_None
;
2392 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2393 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2394 PyObject
* _resultobj
;
2397 PyObject
* _argo0
= 0;
2398 char *_kwnames
[] = { "self","h", NULL
};
2401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2412 wxIcon_SetHeight(_arg0
,_arg1
);
2414 wxPyEndAllowThreads(__tstate
);
2415 if (PyErr_Occurred()) return NULL
;
2416 } Py_INCREF(Py_None
);
2417 _resultobj
= Py_None
;
2421 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2422 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2423 PyObject
* _resultobj
;
2426 PyObject
* _argo0
= 0;
2427 char *_kwnames
[] = { "self","d", NULL
};
2430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2440 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2441 wxIcon_SetDepth(_arg0
,_arg1
);
2443 wxPyEndAllowThreads(__tstate
);
2444 if (PyErr_Occurred()) return NULL
;
2445 } Py_INCREF(Py_None
);
2446 _resultobj
= Py_None
;
2450 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2451 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2452 PyObject
* _resultobj
;
2455 PyObject
* _argo0
= 0;
2456 PyObject
* _argo1
= 0;
2457 char *_kwnames
[] = { "self","bmp", NULL
};
2460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2470 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2471 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2478 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2480 wxPyEndAllowThreads(__tstate
);
2481 if (PyErr_Occurred()) return NULL
;
2482 } Py_INCREF(Py_None
);
2483 _resultobj
= Py_None
;
2487 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2490 src
= (wxCursor
*) ptr
;
2491 dest
= (wxGDIObject
*) src
;
2492 return (void *) dest
;
2495 static void *SwigwxCursorTowxObject(void *ptr
) {
2498 src
= (wxCursor
*) ptr
;
2499 dest
= (wxObject
*) src
;
2500 return (void *) dest
;
2503 #define delete_wxCursor(_swigobj) (delete _swigobj)
2504 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2505 PyObject
* _resultobj
;
2507 PyObject
* _argo0
= 0;
2508 char *_kwnames
[] = { "self", NULL
};
2511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2522 delete_wxCursor(_arg0
);
2524 wxPyEndAllowThreads(__tstate
);
2525 if (PyErr_Occurred()) return NULL
;
2526 } Py_INCREF(Py_None
);
2527 _resultobj
= Py_None
;
2531 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2532 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2533 PyObject
* _resultobj
;
2536 PyObject
* _argo0
= 0;
2537 char *_kwnames
[] = { "self", NULL
};
2540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2551 _result
= (bool )wxCursor_Ok(_arg0
);
2553 wxPyEndAllowThreads(__tstate
);
2554 if (PyErr_Occurred()) return NULL
;
2555 } _resultobj
= Py_BuildValue("i",_result
);
2559 #define wxNativeFontInfo_FromXFontName(_swigobj,_swigarg0) (_swigobj->FromXFontName(_swigarg0))
2560 static PyObject
*_wrap_wxNativeFontInfo_FromXFontName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2561 PyObject
* _resultobj
;
2563 wxNativeFontInfo
* _arg0
;
2565 PyObject
* _argo0
= 0;
2566 PyObject
* _obj1
= 0;
2567 char *_kwnames
[] = { "self","xFontName", NULL
};
2570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromXFontName",_kwnames
,&_argo0
,&_obj1
))
2573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromXFontName. Expected _wxNativeFontInfo_p.");
2580 #if PYTHON_API_VERSION >= 1009
2581 char* tmpPtr
; int tmpSize
;
2582 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2583 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2586 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2588 _arg1
= new wxString(tmpPtr
, tmpSize
);
2590 if (!PyString_Check(_obj1
)) {
2591 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2594 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2599 _result
= (bool )wxNativeFontInfo_FromXFontName(_arg0
,*_arg1
);
2601 wxPyEndAllowThreads(__tstate
);
2602 if (PyErr_Occurred()) return NULL
;
2603 } _resultobj
= Py_BuildValue("i",_result
);
2611 #define wxNativeFontInfo_GetXFontName(_swigobj) (_swigobj->GetXFontName())
2612 static PyObject
*_wrap_wxNativeFontInfo_GetXFontName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2613 PyObject
* _resultobj
;
2615 wxNativeFontInfo
* _arg0
;
2616 PyObject
* _argo0
= 0;
2617 char *_kwnames
[] = { "self", NULL
};
2620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetXFontName",_kwnames
,&_argo0
))
2623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetXFontName. Expected _wxNativeFontInfo_p.");
2630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2631 _result
= new wxString (wxNativeFontInfo_GetXFontName(_arg0
));
2633 wxPyEndAllowThreads(__tstate
);
2634 if (PyErr_Occurred()) return NULL
;
2636 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2644 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
2645 static PyObject
*_wrap_new_wxNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2646 PyObject
* _resultobj
;
2647 wxNativeFontInfo
* _result
;
2648 char *_kwnames
[] = { NULL
};
2652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxNativeFontInfo",_kwnames
))
2655 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2656 _result
= (wxNativeFontInfo
*)new_wxNativeFontInfo();
2658 wxPyEndAllowThreads(__tstate
);
2659 if (PyErr_Occurred()) return NULL
;
2661 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
2662 _resultobj
= Py_BuildValue("s",_ptemp
);
2665 _resultobj
= Py_None
;
2670 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
2671 static PyObject
*_wrap_wxNativeFontInfo_Init(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2672 PyObject
* _resultobj
;
2673 wxNativeFontInfo
* _arg0
;
2674 PyObject
* _argo0
= 0;
2675 char *_kwnames
[] = { "self", NULL
};
2678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_Init",_kwnames
,&_argo0
))
2681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
2688 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2689 wxNativeFontInfo_Init(_arg0
);
2691 wxPyEndAllowThreads(__tstate
);
2692 if (PyErr_Occurred()) return NULL
;
2693 } Py_INCREF(Py_None
);
2694 _resultobj
= Py_None
;
2698 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
2699 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2700 PyObject
* _resultobj
;
2702 wxNativeFontInfo
* _arg0
;
2704 PyObject
* _argo0
= 0;
2705 PyObject
* _obj1
= 0;
2706 char *_kwnames
[] = { "self","s", NULL
};
2709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
2712 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2713 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
2719 #if PYTHON_API_VERSION >= 1009
2720 char* tmpPtr
; int tmpSize
;
2721 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2722 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2725 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2727 _arg1
= new wxString(tmpPtr
, tmpSize
);
2729 if (!PyString_Check(_obj1
)) {
2730 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2733 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2737 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2738 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
2740 wxPyEndAllowThreads(__tstate
);
2741 if (PyErr_Occurred()) return NULL
;
2742 } _resultobj
= Py_BuildValue("i",_result
);
2750 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
2751 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2752 PyObject
* _resultobj
;
2754 wxNativeFontInfo
* _arg0
;
2755 PyObject
* _argo0
= 0;
2756 char *_kwnames
[] = { "self", NULL
};
2759 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
2762 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2763 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2764 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
2769 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2770 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
2772 wxPyEndAllowThreads(__tstate
);
2773 if (PyErr_Occurred()) return NULL
;
2775 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2783 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
2784 return self
->ToString();
2786 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2787 PyObject
* _resultobj
;
2789 wxNativeFontInfo
* _arg0
;
2790 PyObject
* _argo0
= 0;
2791 char *_kwnames
[] = { "self", NULL
};
2794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
2797 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2798 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
2804 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2805 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
2807 wxPyEndAllowThreads(__tstate
);
2808 if (PyErr_Occurred()) return NULL
;
2810 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2818 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
2819 static PyObject
*_wrap_wxNativeFontInfo_FromUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2820 PyObject
* _resultobj
;
2822 wxNativeFontInfo
* _arg0
;
2824 PyObject
* _argo0
= 0;
2825 PyObject
* _obj1
= 0;
2826 char *_kwnames
[] = { "self","s", NULL
};
2829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromUserString",_kwnames
,&_argo0
,&_obj1
))
2832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
2839 #if PYTHON_API_VERSION >= 1009
2840 char* tmpPtr
; int tmpSize
;
2841 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2842 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2845 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2847 _arg1
= new wxString(tmpPtr
, tmpSize
);
2849 if (!PyString_Check(_obj1
)) {
2850 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2853 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2857 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2858 _result
= (bool )wxNativeFontInfo_FromUserString(_arg0
,*_arg1
);
2860 wxPyEndAllowThreads(__tstate
);
2861 if (PyErr_Occurred()) return NULL
;
2862 } _resultobj
= Py_BuildValue("i",_result
);
2870 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
2871 static PyObject
*_wrap_wxNativeFontInfo_ToUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2872 PyObject
* _resultobj
;
2874 wxNativeFontInfo
* _arg0
;
2875 PyObject
* _argo0
= 0;
2876 char *_kwnames
[] = { "self", NULL
};
2879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToUserString",_kwnames
,&_argo0
))
2882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
2889 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2890 _result
= new wxString (wxNativeFontInfo_ToUserString(_arg0
));
2892 wxPyEndAllowThreads(__tstate
);
2893 if (PyErr_Occurred()) return NULL
;
2895 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2903 #define new_wxFontMapper() (new wxFontMapper())
2904 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2905 PyObject
* _resultobj
;
2906 wxFontMapper
* _result
;
2907 char *_kwnames
[] = { NULL
};
2911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
2914 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2915 _result
= (wxFontMapper
*)new_wxFontMapper();
2917 wxPyEndAllowThreads(__tstate
);
2918 if (PyErr_Occurred()) return NULL
;
2920 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
2921 _resultobj
= Py_BuildValue("s",_ptemp
);
2924 _resultobj
= Py_None
;
2929 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
2930 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2931 PyObject
* _resultobj
;
2932 wxFontMapper
* _arg0
;
2933 PyObject
* _argo0
= 0;
2934 char *_kwnames
[] = { "self", NULL
};
2937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
2940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
2947 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2948 delete_wxFontMapper(_arg0
);
2950 wxPyEndAllowThreads(__tstate
);
2951 if (PyErr_Occurred()) return NULL
;
2952 } Py_INCREF(Py_None
);
2953 _resultobj
= Py_None
;
2957 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
2958 wxFontEncoding alt_enc
;
2959 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
2960 return PyInt_FromLong(alt_enc
);
2966 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2967 PyObject
* _resultobj
;
2969 wxFontMapper
* _arg0
;
2970 wxFontEncoding _arg1
;
2971 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
2972 bool _arg3
= (bool ) TRUE
;
2973 PyObject
* _argo0
= 0;
2974 PyObject
* _obj2
= 0;
2975 int tempbool3
= (int) TRUE
;
2976 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
2979 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
2982 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2983 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
2990 #if PYTHON_API_VERSION >= 1009
2991 char* tmpPtr
; int tmpSize
;
2992 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2993 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2996 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2998 _arg2
= new wxString(tmpPtr
, tmpSize
);
3000 if (!PyString_Check(_obj2
)) {
3001 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3004 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3007 _arg3
= (bool ) tempbool3
;
3009 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3010 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
3012 wxPyEndAllowThreads(__tstate
);
3013 if (PyErr_Occurred()) return NULL
;
3015 _resultobj
= _result
;
3024 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3025 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3026 PyObject
* _resultobj
;
3028 wxFontMapper
* _arg0
;
3029 wxFontEncoding _arg1
;
3030 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3031 PyObject
* _argo0
= 0;
3032 PyObject
* _obj2
= 0;
3033 char *_kwnames
[] = { "self","encoding","facename", NULL
};
3036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
3039 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3040 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
3047 #if PYTHON_API_VERSION >= 1009
3048 char* tmpPtr
; int tmpSize
;
3049 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3050 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3053 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3055 _arg2
= new wxString(tmpPtr
, tmpSize
);
3057 if (!PyString_Check(_obj2
)) {
3058 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3061 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3065 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3066 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
3068 wxPyEndAllowThreads(__tstate
);
3069 if (PyErr_Occurred()) return NULL
;
3070 } _resultobj
= Py_BuildValue("i",_result
);
3078 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3079 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3080 PyObject
* _resultobj
;
3081 wxFontEncoding _result
;
3082 wxFontMapper
* _arg0
;
3084 bool _arg2
= (bool ) TRUE
;
3085 PyObject
* _argo0
= 0;
3086 PyObject
* _obj1
= 0;
3087 int tempbool2
= (int) TRUE
;
3088 char *_kwnames
[] = { "self","charset","interactive", NULL
};
3091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
3094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
3101 #if PYTHON_API_VERSION >= 1009
3102 char* tmpPtr
; int tmpSize
;
3103 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3104 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3107 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3109 _arg1
= new wxString(tmpPtr
, tmpSize
);
3111 if (!PyString_Check(_obj1
)) {
3112 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3115 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3118 _arg2
= (bool ) tempbool2
;
3120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3121 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
3123 wxPyEndAllowThreads(__tstate
);
3124 if (PyErr_Occurred()) return NULL
;
3125 } _resultobj
= Py_BuildValue("i",_result
);
3133 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3134 PyObject
* _resultobj
;
3136 wxFontEncoding _arg0
;
3137 char *_kwnames
[] = { "encoding", NULL
};
3140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
3143 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3144 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
3146 wxPyEndAllowThreads(__tstate
);
3147 if (PyErr_Occurred()) return NULL
;
3149 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3157 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3158 PyObject
* _resultobj
;
3160 wxFontEncoding _arg0
;
3161 char *_kwnames
[] = { "encoding", NULL
};
3164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
3167 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3168 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
3170 wxPyEndAllowThreads(__tstate
);
3171 if (PyErr_Occurred()) return NULL
;
3173 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3181 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3182 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3183 PyObject
* _resultobj
;
3184 wxFontMapper
* _arg0
;
3186 PyObject
* _argo0
= 0;
3187 PyObject
* _argo1
= 0;
3188 char *_kwnames
[] = { "self","parent", NULL
};
3191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
3194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3201 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3202 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3208 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3209 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
3211 wxPyEndAllowThreads(__tstate
);
3212 if (PyErr_Occurred()) return NULL
;
3213 } Py_INCREF(Py_None
);
3214 _resultobj
= Py_None
;
3218 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3219 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3220 PyObject
* _resultobj
;
3221 wxFontMapper
* _arg0
;
3223 PyObject
* _argo0
= 0;
3224 PyObject
* _obj1
= 0;
3225 char *_kwnames
[] = { "self","title", NULL
};
3228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
3231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3238 #if PYTHON_API_VERSION >= 1009
3239 char* tmpPtr
; int tmpSize
;
3240 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3241 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3244 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3246 _arg1
= new wxString(tmpPtr
, tmpSize
);
3248 if (!PyString_Check(_obj1
)) {
3249 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3252 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3256 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3257 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
3259 wxPyEndAllowThreads(__tstate
);
3260 if (PyErr_Occurred()) return NULL
;
3261 } Py_INCREF(Py_None
);
3262 _resultobj
= Py_None
;
3270 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3271 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3272 PyObject
* _resultobj
;
3273 wxFontMapper
* _arg0
;
3274 wxConfigBase
* _arg1
;
3275 PyObject
* _argo0
= 0;
3276 PyObject
* _argo1
= 0;
3277 char *_kwnames
[] = { "self","config", NULL
};
3280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
3283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3290 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3291 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
3292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3297 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3298 wxFontMapper_SetConfig(_arg0
,_arg1
);
3300 wxPyEndAllowThreads(__tstate
);
3301 if (PyErr_Occurred()) return NULL
;
3302 } Py_INCREF(Py_None
);
3303 _resultobj
= Py_None
;
3307 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3308 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3309 PyObject
* _resultobj
;
3310 wxFontMapper
* _arg0
;
3312 PyObject
* _argo0
= 0;
3313 PyObject
* _obj1
= 0;
3314 char *_kwnames
[] = { "self","prefix", NULL
};
3317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
3320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3327 #if PYTHON_API_VERSION >= 1009
3328 char* tmpPtr
; int tmpSize
;
3329 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3330 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3333 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3335 _arg1
= new wxString(tmpPtr
, tmpSize
);
3337 if (!PyString_Check(_obj1
)) {
3338 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3341 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3345 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3346 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
3348 wxPyEndAllowThreads(__tstate
);
3349 if (PyErr_Occurred()) return NULL
;
3350 } Py_INCREF(Py_None
);
3351 _resultobj
= Py_None
;
3359 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3360 PyObject
* _resultobj
;
3362 char *_kwnames
[] = { NULL
};
3365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
3368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3369 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
3371 wxPyEndAllowThreads(__tstate
);
3372 if (PyErr_Occurred()) return NULL
;
3373 } _resultobj
= Py_BuildValue("s", _result
);
3377 static void *SwigwxFontTowxGDIObject(void *ptr
) {
3380 src
= (wxFont
*) ptr
;
3381 dest
= (wxGDIObject
*) src
;
3382 return (void *) dest
;
3385 static void *SwigwxFontTowxObject(void *ptr
) {
3388 src
= (wxFont
*) ptr
;
3389 dest
= (wxObject
*) src
;
3390 return (void *) dest
;
3393 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3394 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3395 PyObject
* _resultobj
;
3401 int _arg4
= (int ) FALSE
;
3402 char * _arg5
= (char *) "";
3403 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3404 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
3408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3412 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3414 wxPyEndAllowThreads(__tstate
);
3415 if (PyErr_Occurred()) return NULL
;
3417 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3418 _resultobj
= Py_BuildValue("s",_ptemp
);
3421 _resultobj
= Py_None
;
3426 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3427 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3428 PyObject
* _resultobj
;
3430 wxNativeFontInfo
* _arg0
;
3431 PyObject
* _argo0
= 0;
3432 char *_kwnames
[] = { "info", NULL
};
3436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
3439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3446 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3447 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
3449 wxPyEndAllowThreads(__tstate
);
3450 if (PyErr_Occurred()) return NULL
;
3452 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3453 _resultobj
= Py_BuildValue("s",_ptemp
);
3456 _resultobj
= Py_None
;
3461 #define delete_wxFont(_swigobj) (delete _swigobj)
3462 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3463 PyObject
* _resultobj
;
3465 PyObject
* _argo0
= 0;
3466 char *_kwnames
[] = { "self", NULL
};
3469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3479 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3480 delete_wxFont(_arg0
);
3482 wxPyEndAllowThreads(__tstate
);
3483 if (PyErr_Occurred()) return NULL
;
3484 } Py_INCREF(Py_None
);
3485 _resultobj
= Py_None
;
3489 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3490 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3491 PyObject
* _resultobj
;
3494 PyObject
* _argo0
= 0;
3495 char *_kwnames
[] = { "self", NULL
};
3498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3508 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3509 _result
= (bool )wxFont_Ok(_arg0
);
3511 wxPyEndAllowThreads(__tstate
);
3512 if (PyErr_Occurred()) return NULL
;
3513 } _resultobj
= Py_BuildValue("i",_result
);
3517 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3518 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3519 PyObject
* _resultobj
;
3522 PyObject
* _argo0
= 0;
3523 char *_kwnames
[] = { "self", NULL
};
3526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3536 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3537 _result
= (int )wxFont_GetPointSize(_arg0
);
3539 wxPyEndAllowThreads(__tstate
);
3540 if (PyErr_Occurred()) return NULL
;
3541 } _resultobj
= Py_BuildValue("i",_result
);
3545 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3546 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3547 PyObject
* _resultobj
;
3550 PyObject
* _argo0
= 0;
3551 char *_kwnames
[] = { "self", NULL
};
3554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3557 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3558 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3564 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3565 _result
= (int )wxFont_GetFamily(_arg0
);
3567 wxPyEndAllowThreads(__tstate
);
3568 if (PyErr_Occurred()) return NULL
;
3569 } _resultobj
= Py_BuildValue("i",_result
);
3573 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3574 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3575 PyObject
* _resultobj
;
3578 PyObject
* _argo0
= 0;
3579 char *_kwnames
[] = { "self", NULL
};
3582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3592 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3593 _result
= (int )wxFont_GetStyle(_arg0
);
3595 wxPyEndAllowThreads(__tstate
);
3596 if (PyErr_Occurred()) return NULL
;
3597 } _resultobj
= Py_BuildValue("i",_result
);
3601 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3602 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3603 PyObject
* _resultobj
;
3606 PyObject
* _argo0
= 0;
3607 char *_kwnames
[] = { "self", NULL
};
3610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
3613 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3614 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3620 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3621 _result
= (int )wxFont_GetWeight(_arg0
);
3623 wxPyEndAllowThreads(__tstate
);
3624 if (PyErr_Occurred()) return NULL
;
3625 } _resultobj
= Py_BuildValue("i",_result
);
3629 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3630 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3631 PyObject
* _resultobj
;
3634 PyObject
* _argo0
= 0;
3635 char *_kwnames
[] = { "self", NULL
};
3638 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
3641 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3642 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3643 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3648 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3649 _result
= (bool )wxFont_GetUnderlined(_arg0
);
3651 wxPyEndAllowThreads(__tstate
);
3652 if (PyErr_Occurred()) return NULL
;
3653 } _resultobj
= Py_BuildValue("i",_result
);
3657 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3658 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3659 PyObject
* _resultobj
;
3662 PyObject
* _argo0
= 0;
3663 char *_kwnames
[] = { "self", NULL
};
3666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
3669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3676 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3677 _result
= new wxString (wxFont_GetFaceName(_arg0
));
3679 wxPyEndAllowThreads(__tstate
);
3680 if (PyErr_Occurred()) return NULL
;
3682 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3690 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3691 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3692 PyObject
* _resultobj
;
3693 wxFontEncoding _result
;
3695 PyObject
* _argo0
= 0;
3696 char *_kwnames
[] = { "self", NULL
};
3699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
3702 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3703 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3704 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3709 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3710 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
3712 wxPyEndAllowThreads(__tstate
);
3713 if (PyErr_Occurred()) return NULL
;
3714 } _resultobj
= Py_BuildValue("i",_result
);
3718 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
3719 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3720 PyObject
* _resultobj
;
3721 wxNativeFontInfo
* _result
;
3723 PyObject
* _argo0
= 0;
3724 char *_kwnames
[] = { "self", NULL
};
3728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
3731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
3738 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3739 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
3741 wxPyEndAllowThreads(__tstate
);
3742 if (PyErr_Occurred()) return NULL
;
3744 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
3745 _resultobj
= Py_BuildValue("s",_ptemp
);
3748 _resultobj
= Py_None
;
3753 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
3754 static PyObject
*_wrap_wxFont_GetNativeFontInfoDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3755 PyObject
* _resultobj
;
3758 PyObject
* _argo0
= 0;
3759 char *_kwnames
[] = { "self", NULL
};
3762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoDesc",_kwnames
,&_argo0
))
3765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
3772 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3773 _result
= new wxString (wxFont_GetNativeFontInfoDesc(_arg0
));
3775 wxPyEndAllowThreads(__tstate
);
3776 if (PyErr_Occurred()) return NULL
;
3778 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3786 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
3787 static PyObject
*_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3788 PyObject
* _resultobj
;
3791 PyObject
* _argo0
= 0;
3792 char *_kwnames
[] = { "self", NULL
};
3795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames
,&_argo0
))
3798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
3805 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3806 _result
= new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0
));
3808 wxPyEndAllowThreads(__tstate
);
3809 if (PyErr_Occurred()) return NULL
;
3811 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3819 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3820 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3821 PyObject
* _resultobj
;
3824 PyObject
* _argo0
= 0;
3825 char *_kwnames
[] = { "self","pointSize", NULL
};
3828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
3831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
3838 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3839 wxFont_SetPointSize(_arg0
,_arg1
);
3841 wxPyEndAllowThreads(__tstate
);
3842 if (PyErr_Occurred()) return NULL
;
3843 } Py_INCREF(Py_None
);
3844 _resultobj
= Py_None
;
3848 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3849 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3850 PyObject
* _resultobj
;
3853 PyObject
* _argo0
= 0;
3854 char *_kwnames
[] = { "self","family", NULL
};
3857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
3860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
3867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3868 wxFont_SetFamily(_arg0
,_arg1
);
3870 wxPyEndAllowThreads(__tstate
);
3871 if (PyErr_Occurred()) return NULL
;
3872 } Py_INCREF(Py_None
);
3873 _resultobj
= Py_None
;
3877 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3878 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3879 PyObject
* _resultobj
;
3882 PyObject
* _argo0
= 0;
3883 char *_kwnames
[] = { "self","style", NULL
};
3886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3889 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3890 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
3896 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3897 wxFont_SetStyle(_arg0
,_arg1
);
3899 wxPyEndAllowThreads(__tstate
);
3900 if (PyErr_Occurred()) return NULL
;
3901 } Py_INCREF(Py_None
);
3902 _resultobj
= Py_None
;
3906 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3907 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3908 PyObject
* _resultobj
;
3911 PyObject
* _argo0
= 0;
3912 char *_kwnames
[] = { "self","weight", NULL
};
3915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
3918 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3919 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
3925 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3926 wxFont_SetWeight(_arg0
,_arg1
);
3928 wxPyEndAllowThreads(__tstate
);
3929 if (PyErr_Occurred()) return NULL
;
3930 } Py_INCREF(Py_None
);
3931 _resultobj
= Py_None
;
3935 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3936 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3937 PyObject
* _resultobj
;
3940 PyObject
* _argo0
= 0;
3941 PyObject
* _obj1
= 0;
3942 char *_kwnames
[] = { "self","faceName", NULL
};
3945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
3948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
3955 #if PYTHON_API_VERSION >= 1009
3956 char* tmpPtr
; int tmpSize
;
3957 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3958 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3961 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3963 _arg1
= new wxString(tmpPtr
, tmpSize
);
3965 if (!PyString_Check(_obj1
)) {
3966 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3969 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3973 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3974 wxFont_SetFaceName(_arg0
,*_arg1
);
3976 wxPyEndAllowThreads(__tstate
);
3977 if (PyErr_Occurred()) return NULL
;
3978 } Py_INCREF(Py_None
);
3979 _resultobj
= Py_None
;
3987 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3988 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3989 PyObject
* _resultobj
;
3992 PyObject
* _argo0
= 0;
3994 char *_kwnames
[] = { "self","underlined", NULL
};
3997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
4000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4006 _arg1
= (bool ) tempbool1
;
4008 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4009 wxFont_SetUnderlined(_arg0
,_arg1
);
4011 wxPyEndAllowThreads(__tstate
);
4012 if (PyErr_Occurred()) return NULL
;
4013 } Py_INCREF(Py_None
);
4014 _resultobj
= Py_None
;
4018 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4019 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4020 PyObject
* _resultobj
;
4022 wxFontEncoding _arg1
;
4023 PyObject
* _argo0
= 0;
4024 char *_kwnames
[] = { "self","encoding", NULL
};
4027 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
4030 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4031 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4032 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
4037 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4038 wxFont_SetEncoding(_arg0
,_arg1
);
4040 wxPyEndAllowThreads(__tstate
);
4041 if (PyErr_Occurred()) return NULL
;
4042 } Py_INCREF(Py_None
);
4043 _resultobj
= Py_None
;
4047 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4048 static PyObject
*_wrap_wxFont_SetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4049 PyObject
* _resultobj
;
4051 wxNativeFontInfo
* _arg1
;
4052 PyObject
* _argo0
= 0;
4053 PyObject
* _argo1
= 0;
4054 char *_kwnames
[] = { "self","info", NULL
};
4057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfo",_kwnames
,&_argo0
,&_argo1
))
4060 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4061 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4067 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4068 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxNativeFontInfo_p")) {
4069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
4074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4075 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
4077 wxPyEndAllowThreads(__tstate
);
4078 if (PyErr_Occurred()) return NULL
;
4079 } Py_INCREF(Py_None
);
4080 _resultobj
= Py_None
;
4084 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
4085 static PyObject
*_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4086 PyObject
* _resultobj
;
4089 PyObject
* _argo0
= 0;
4090 PyObject
* _obj1
= 0;
4091 char *_kwnames
[] = { "self","info", NULL
};
4094 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames
,&_argo0
,&_obj1
))
4097 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4098 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4099 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
4104 #if PYTHON_API_VERSION >= 1009
4105 char* tmpPtr
; int tmpSize
;
4106 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4107 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4110 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4112 _arg1
= new wxString(tmpPtr
, tmpSize
);
4114 if (!PyString_Check(_obj1
)) {
4115 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4118 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4122 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4123 wxFont_SetNativeFontInfoUserDesc(_arg0
,*_arg1
);
4125 wxPyEndAllowThreads(__tstate
);
4126 if (PyErr_Occurred()) return NULL
;
4127 } Py_INCREF(Py_None
);
4128 _resultobj
= Py_None
;
4136 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4137 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4138 PyObject
* _resultobj
;
4141 PyObject
* _argo0
= 0;
4142 char *_kwnames
[] = { "self", NULL
};
4145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
4148 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4149 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4150 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4155 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4156 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
4158 wxPyEndAllowThreads(__tstate
);
4159 if (PyErr_Occurred()) return NULL
;
4161 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4169 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4170 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4171 PyObject
* _resultobj
;
4174 PyObject
* _argo0
= 0;
4175 char *_kwnames
[] = { "self", NULL
};
4178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
4181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4189 _result
= new wxString (wxFont_GetStyleString(_arg0
));
4191 wxPyEndAllowThreads(__tstate
);
4192 if (PyErr_Occurred()) return NULL
;
4194 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4202 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4203 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4204 PyObject
* _resultobj
;
4207 PyObject
* _argo0
= 0;
4208 char *_kwnames
[] = { "self", NULL
};
4211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
4214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4221 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4222 _result
= new wxString (wxFont_GetWeightString(_arg0
));
4224 wxPyEndAllowThreads(__tstate
);
4225 if (PyErr_Occurred()) return NULL
;
4227 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4235 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4236 PyObject
* _resultobj
;
4237 wxFontEncoding _result
;
4238 char *_kwnames
[] = { NULL
};
4241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
4244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4245 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
4247 wxPyEndAllowThreads(__tstate
);
4248 if (PyErr_Occurred()) return NULL
;
4249 } _resultobj
= Py_BuildValue("i",_result
);
4253 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4254 PyObject
* _resultobj
;
4255 wxFontEncoding _arg0
;
4256 char *_kwnames
[] = { "encoding", NULL
};
4259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
4262 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4263 wxFont::SetDefaultEncoding(_arg0
);
4265 wxPyEndAllowThreads(__tstate
);
4266 if (PyErr_Occurred()) return NULL
;
4267 } Py_INCREF(Py_None
);
4268 _resultobj
= Py_None
;
4272 static void *SwigwxFontListTowxObject(void *ptr
) {
4275 src
= (wxFontList
*) ptr
;
4276 dest
= (wxObject
*) src
;
4277 return (void *) dest
;
4280 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4281 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4282 PyObject
* _resultobj
;
4285 PyObject
* _argo0
= 0;
4286 PyObject
* _argo1
= 0;
4287 char *_kwnames
[] = { "self","font", NULL
};
4290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
4293 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4294 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4300 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4301 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4302 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4307 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4308 wxFontList_AddFont(_arg0
,_arg1
);
4310 wxPyEndAllowThreads(__tstate
);
4311 if (PyErr_Occurred()) return NULL
;
4312 } Py_INCREF(Py_None
);
4313 _resultobj
= Py_None
;
4317 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4318 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4319 PyObject
* _resultobj
;
4326 bool _arg5
= (bool ) FALSE
;
4327 char * _arg6
= (char *) NULL
;
4328 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
4329 PyObject
* _argo0
= 0;
4330 int tempbool5
= (int) FALSE
;
4331 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
4335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
4338 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4339 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4344 _arg5
= (bool ) tempbool5
;
4346 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4347 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
4349 wxPyEndAllowThreads(__tstate
);
4350 if (PyErr_Occurred()) return NULL
;
4352 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4353 _resultobj
= Py_BuildValue("s",_ptemp
);
4356 _resultobj
= Py_None
;
4361 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4362 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4363 PyObject
* _resultobj
;
4366 PyObject
* _argo0
= 0;
4367 PyObject
* _argo1
= 0;
4368 char *_kwnames
[] = { "self","font", NULL
};
4371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
4374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4381 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4382 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4388 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4389 wxFontList_RemoveFont(_arg0
,_arg1
);
4391 wxPyEndAllowThreads(__tstate
);
4392 if (PyErr_Occurred()) return NULL
;
4393 } Py_INCREF(Py_None
);
4394 _resultobj
= Py_None
;
4398 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
4399 static PyObject
*_wrap_wxFontList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4400 PyObject
* _resultobj
;
4403 PyObject
* _argo0
= 0;
4404 char *_kwnames
[] = { "self", NULL
};
4407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFontList_GetCount",_kwnames
,&_argo0
))
4410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
4417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4418 _result
= (int )wxFontList_GetCount(_arg0
);
4420 wxPyEndAllowThreads(__tstate
);
4421 if (PyErr_Occurred()) return NULL
;
4422 } _resultobj
= Py_BuildValue("i",_result
);
4426 static void *SwigwxColourTowxObject(void *ptr
) {
4429 src
= (wxColour
*) ptr
;
4430 dest
= (wxObject
*) src
;
4431 return (void *) dest
;
4434 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4435 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4436 PyObject
* _resultobj
;
4438 unsigned char _arg0
= (unsigned char ) 0;
4439 unsigned char _arg1
= (unsigned char ) 0;
4440 unsigned char _arg2
= (unsigned char ) 0;
4441 char *_kwnames
[] = { "red","green","blue", NULL
};
4445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
4448 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4449 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
4451 wxPyEndAllowThreads(__tstate
);
4452 if (PyErr_Occurred()) return NULL
;
4454 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4455 _resultobj
= Py_BuildValue("s",_ptemp
);
4458 _resultobj
= Py_None
;
4463 #define delete_wxColour(_swigobj) (delete _swigobj)
4464 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4465 PyObject
* _resultobj
;
4468 PyObject
* _obj0
= 0;
4469 char *_kwnames
[] = { "self", NULL
};
4472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
4476 if (! wxColour_helper(_obj0
, &_arg0
))
4480 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4481 delete_wxColour(_arg0
);
4483 wxPyEndAllowThreads(__tstate
);
4484 if (PyErr_Occurred()) return NULL
;
4485 } Py_INCREF(Py_None
);
4486 _resultobj
= Py_None
;
4490 #define wxColour_Red(_swigobj) (_swigobj->Red())
4491 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4492 PyObject
* _resultobj
;
4493 unsigned char _result
;
4496 PyObject
* _obj0
= 0;
4497 char *_kwnames
[] = { "self", NULL
};
4500 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
4504 if (! wxColour_helper(_obj0
, &_arg0
))
4508 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4509 _result
= (unsigned char )wxColour_Red(_arg0
);
4511 wxPyEndAllowThreads(__tstate
);
4512 if (PyErr_Occurred()) return NULL
;
4513 } _resultobj
= Py_BuildValue("b",_result
);
4517 #define wxColour_Green(_swigobj) (_swigobj->Green())
4518 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4519 PyObject
* _resultobj
;
4520 unsigned char _result
;
4523 PyObject
* _obj0
= 0;
4524 char *_kwnames
[] = { "self", NULL
};
4527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
4531 if (! wxColour_helper(_obj0
, &_arg0
))
4535 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4536 _result
= (unsigned char )wxColour_Green(_arg0
);
4538 wxPyEndAllowThreads(__tstate
);
4539 if (PyErr_Occurred()) return NULL
;
4540 } _resultobj
= Py_BuildValue("b",_result
);
4544 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4545 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4546 PyObject
* _resultobj
;
4547 unsigned char _result
;
4550 PyObject
* _obj0
= 0;
4551 char *_kwnames
[] = { "self", NULL
};
4554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
4558 if (! wxColour_helper(_obj0
, &_arg0
))
4562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4563 _result
= (unsigned char )wxColour_Blue(_arg0
);
4565 wxPyEndAllowThreads(__tstate
);
4566 if (PyErr_Occurred()) return NULL
;
4567 } _resultobj
= Py_BuildValue("b",_result
);
4571 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4572 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4573 PyObject
* _resultobj
;
4577 PyObject
* _obj0
= 0;
4578 char *_kwnames
[] = { "self", NULL
};
4581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
4585 if (! wxColour_helper(_obj0
, &_arg0
))
4589 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4590 _result
= (bool )wxColour_Ok(_arg0
);
4592 wxPyEndAllowThreads(__tstate
);
4593 if (PyErr_Occurred()) return NULL
;
4594 } _resultobj
= Py_BuildValue("i",_result
);
4598 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4599 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4600 PyObject
* _resultobj
;
4602 unsigned char _arg1
;
4603 unsigned char _arg2
;
4604 unsigned char _arg3
;
4606 PyObject
* _obj0
= 0;
4607 char *_kwnames
[] = { "self","red","green","blue", NULL
};
4610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
4614 if (! wxColour_helper(_obj0
, &_arg0
))
4618 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4619 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
4621 wxPyEndAllowThreads(__tstate
);
4622 if (PyErr_Occurred()) return NULL
;
4623 } Py_INCREF(Py_None
);
4624 _resultobj
= Py_None
;
4628 static PyObject
* wxColour_Get(wxColour
*self
) {
4629 PyObject
* rv
= PyTuple_New(3);
4630 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
4631 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
4632 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
4635 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4636 PyObject
* _resultobj
;
4640 PyObject
* _obj0
= 0;
4641 char *_kwnames
[] = { "self", NULL
};
4644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
4648 if (! wxColour_helper(_obj0
, &_arg0
))
4652 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4653 _result
= (PyObject
*)wxColour_Get(_arg0
);
4655 wxPyEndAllowThreads(__tstate
);
4656 if (PyErr_Occurred()) return NULL
;
4658 _resultobj
= _result
;
4663 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4664 wxColourDatabase
*src
;
4666 src
= (wxColourDatabase
*) ptr
;
4667 dest
= (wxObject
*) src
;
4668 return (void *) dest
;
4671 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4672 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4673 PyObject
* _resultobj
;
4675 wxColourDatabase
* _arg0
;
4677 PyObject
* _argo0
= 0;
4678 PyObject
* _obj1
= 0;
4679 char *_kwnames
[] = { "self","colour", NULL
};
4683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
4686 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4687 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4688 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4693 #if PYTHON_API_VERSION >= 1009
4694 char* tmpPtr
; int tmpSize
;
4695 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4696 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4699 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4701 _arg1
= new wxString(tmpPtr
, tmpSize
);
4703 if (!PyString_Check(_obj1
)) {
4704 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4707 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4711 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4712 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
4714 wxPyEndAllowThreads(__tstate
);
4715 if (PyErr_Occurred()) return NULL
;
4717 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4718 _resultobj
= Py_BuildValue("s",_ptemp
);
4721 _resultobj
= Py_None
;
4730 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4731 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4732 PyObject
* _resultobj
;
4734 wxColourDatabase
* _arg0
;
4736 PyObject
* _argo0
= 0;
4738 PyObject
* _obj1
= 0;
4739 char *_kwnames
[] = { "self","colour", NULL
};
4742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
4745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
4753 if (! wxColour_helper(_obj1
, &_arg1
))
4757 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4758 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
4760 wxPyEndAllowThreads(__tstate
);
4761 if (PyErr_Occurred()) return NULL
;
4763 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4771 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
4772 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
4774 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4775 PyObject
* _resultobj
;
4776 wxColourDatabase
* _arg0
;
4781 PyObject
* _argo0
= 0;
4782 PyObject
* _obj1
= 0;
4783 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
4786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4796 #if PYTHON_API_VERSION >= 1009
4797 char* tmpPtr
; int tmpSize
;
4798 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4799 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4802 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4804 _arg1
= new wxString(tmpPtr
, tmpSize
);
4806 if (!PyString_Check(_obj1
)) {
4807 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4810 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4814 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4815 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
4817 wxPyEndAllowThreads(__tstate
);
4818 if (PyErr_Occurred()) return NULL
;
4819 } Py_INCREF(Py_None
);
4820 _resultobj
= Py_None
;
4828 static void *SwigwxPenTowxGDIObject(void *ptr
) {
4831 src
= (wxPen
*) ptr
;
4832 dest
= (wxGDIObject
*) src
;
4833 return (void *) dest
;
4836 static void *SwigwxPenTowxObject(void *ptr
) {
4839 src
= (wxPen
*) ptr
;
4840 dest
= (wxObject
*) src
;
4841 return (void *) dest
;
4844 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4845 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4846 PyObject
* _resultobj
;
4849 int _arg1
= (int ) 1;
4850 int _arg2
= (int ) wxSOLID
;
4852 PyObject
* _obj0
= 0;
4853 char *_kwnames
[] = { "colour","width","style", NULL
};
4857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4861 if (! wxColour_helper(_obj0
, &_arg0
))
4865 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4866 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
4868 wxPyEndAllowThreads(__tstate
);
4869 if (PyErr_Occurred()) return NULL
;
4871 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4872 _resultobj
= Py_BuildValue("s",_ptemp
);
4875 _resultobj
= Py_None
;
4880 #define delete_wxPen(_swigobj) (delete _swigobj)
4881 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4882 PyObject
* _resultobj
;
4884 PyObject
* _argo0
= 0;
4885 char *_kwnames
[] = { "self", NULL
};
4888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
4891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4898 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4899 delete_wxPen(_arg0
);
4901 wxPyEndAllowThreads(__tstate
);
4902 if (PyErr_Occurred()) return NULL
;
4903 } Py_INCREF(Py_None
);
4904 _resultobj
= Py_None
;
4908 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4909 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4910 PyObject
* _resultobj
;
4913 PyObject
* _argo0
= 0;
4914 char *_kwnames
[] = { "self", NULL
};
4917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
4920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4927 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4928 _result
= (int )wxPen_GetCap(_arg0
);
4930 wxPyEndAllowThreads(__tstate
);
4931 if (PyErr_Occurred()) return NULL
;
4932 } _resultobj
= Py_BuildValue("i",_result
);
4936 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4937 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4938 PyObject
* _resultobj
;
4941 PyObject
* _argo0
= 0;
4942 char *_kwnames
[] = { "self", NULL
};
4946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
4949 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4950 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4956 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4957 _result
= new wxColour (wxPen_GetColour(_arg0
));
4959 wxPyEndAllowThreads(__tstate
);
4960 if (PyErr_Occurred()) return NULL
;
4961 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4962 _resultobj
= Py_BuildValue("s",_ptemp
);
4966 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
4967 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4968 PyObject
* _resultobj
;
4971 PyObject
* _argo0
= 0;
4972 char *_kwnames
[] = { "self", NULL
};
4975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
4978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4985 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4986 _result
= (int )wxPen_GetJoin(_arg0
);
4988 wxPyEndAllowThreads(__tstate
);
4989 if (PyErr_Occurred()) return NULL
;
4990 } _resultobj
= Py_BuildValue("i",_result
);
4994 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
4995 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4996 PyObject
* _resultobj
;
4999 PyObject
* _argo0
= 0;
5000 char *_kwnames
[] = { "self", NULL
};
5003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
5006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5013 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5014 _result
= (int )wxPen_GetStyle(_arg0
);
5016 wxPyEndAllowThreads(__tstate
);
5017 if (PyErr_Occurred()) return NULL
;
5018 } _resultobj
= Py_BuildValue("i",_result
);
5022 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5023 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5024 PyObject
* _resultobj
;
5027 PyObject
* _argo0
= 0;
5028 char *_kwnames
[] = { "self", NULL
};
5031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
5034 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5035 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5041 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5042 _result
= (int )wxPen_GetWidth(_arg0
);
5044 wxPyEndAllowThreads(__tstate
);
5045 if (PyErr_Occurred()) return NULL
;
5046 } _resultobj
= Py_BuildValue("i",_result
);
5050 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5051 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5052 PyObject
* _resultobj
;
5055 PyObject
* _argo0
= 0;
5056 char *_kwnames
[] = { "self", NULL
};
5059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
5062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5069 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5070 _result
= (bool )wxPen_Ok(_arg0
);
5072 wxPyEndAllowThreads(__tstate
);
5073 if (PyErr_Occurred()) return NULL
;
5074 } _resultobj
= Py_BuildValue("i",_result
);
5078 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5079 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5080 PyObject
* _resultobj
;
5083 PyObject
* _argo0
= 0;
5084 char *_kwnames
[] = { "self","cap_style", NULL
};
5087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
5090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5097 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5098 wxPen_SetCap(_arg0
,_arg1
);
5100 wxPyEndAllowThreads(__tstate
);
5101 if (PyErr_Occurred()) return NULL
;
5102 } Py_INCREF(Py_None
);
5103 _resultobj
= Py_None
;
5107 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5108 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5109 PyObject
* _resultobj
;
5112 PyObject
* _argo0
= 0;
5114 PyObject
* _obj1
= 0;
5115 char *_kwnames
[] = { "self","colour", NULL
};
5118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
5121 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5122 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5123 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5129 if (! wxColour_helper(_obj1
, &_arg1
))
5133 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5134 wxPen_SetColour(_arg0
,*_arg1
);
5136 wxPyEndAllowThreads(__tstate
);
5137 if (PyErr_Occurred()) return NULL
;
5138 } Py_INCREF(Py_None
);
5139 _resultobj
= Py_None
;
5143 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5144 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5145 PyObject
* _resultobj
;
5148 PyObject
* _argo0
= 0;
5149 char *_kwnames
[] = { "self","join_style", NULL
};
5152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
5155 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5156 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5157 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5162 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5163 wxPen_SetJoin(_arg0
,_arg1
);
5165 wxPyEndAllowThreads(__tstate
);
5166 if (PyErr_Occurred()) return NULL
;
5167 } Py_INCREF(Py_None
);
5168 _resultobj
= Py_None
;
5172 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5173 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5174 PyObject
* _resultobj
;
5177 PyObject
* _argo0
= 0;
5178 char *_kwnames
[] = { "self","style", NULL
};
5181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5184 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5185 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5192 wxPen_SetStyle(_arg0
,_arg1
);
5194 wxPyEndAllowThreads(__tstate
);
5195 if (PyErr_Occurred()) return NULL
;
5196 } Py_INCREF(Py_None
);
5197 _resultobj
= Py_None
;
5201 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5202 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5203 PyObject
* _resultobj
;
5206 PyObject
* _argo0
= 0;
5207 char *_kwnames
[] = { "self","width", NULL
};
5210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
5213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5220 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5221 wxPen_SetWidth(_arg0
,_arg1
);
5223 wxPyEndAllowThreads(__tstate
);
5224 if (PyErr_Occurred()) return NULL
;
5225 } Py_INCREF(Py_None
);
5226 _resultobj
= Py_None
;
5230 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5231 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5232 PyObject
* _resultobj
;
5236 PyObject
* _argo0
= 0;
5237 PyObject
* _obj2
= 0;
5238 char *_kwnames
[] = { "self","choices", NULL
};
5241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5252 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5253 if (_arg2
== NULL
) {
5259 _arg1
= PyList_Size(_obj2
);
5266 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5267 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
5269 wxPyEndAllowThreads(__tstate
);
5270 if (PyErr_Occurred()) return NULL
;
5271 } Py_INCREF(Py_None
);
5272 _resultobj
= Py_None
;
5279 static void *SwigwxPyPenTowxPen(void *ptr
) {
5282 src
= (wxPyPen
*) ptr
;
5283 dest
= (wxPen
*) src
;
5284 return (void *) dest
;
5287 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
5290 src
= (wxPyPen
*) ptr
;
5291 dest
= (wxGDIObject
*) src
;
5292 return (void *) dest
;
5295 static void *SwigwxPyPenTowxObject(void *ptr
) {
5298 src
= (wxPyPen
*) ptr
;
5299 dest
= (wxObject
*) src
;
5300 return (void *) dest
;
5303 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5304 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5305 PyObject
* _resultobj
;
5308 int _arg1
= (int ) 1;
5309 int _arg2
= (int ) wxSOLID
;
5311 PyObject
* _obj0
= 0;
5312 char *_kwnames
[] = { "colour","width","style", NULL
};
5316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5320 if (! wxColour_helper(_obj0
, &_arg0
))
5324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5325 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
5327 wxPyEndAllowThreads(__tstate
);
5328 if (PyErr_Occurred()) return NULL
;
5330 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
5331 _resultobj
= Py_BuildValue("s",_ptemp
);
5334 _resultobj
= Py_None
;
5339 #define delete_wxPyPen(_swigobj) (delete _swigobj)
5340 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5341 PyObject
* _resultobj
;
5343 PyObject
* _argo0
= 0;
5344 char *_kwnames
[] = { "self", NULL
};
5347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
5350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
5357 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5358 delete_wxPyPen(_arg0
);
5360 wxPyEndAllowThreads(__tstate
);
5361 if (PyErr_Occurred()) return NULL
;
5362 } Py_INCREF(Py_None
);
5363 _resultobj
= Py_None
;
5367 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5368 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5369 PyObject
* _resultobj
;
5373 PyObject
* _argo0
= 0;
5374 PyObject
* _obj2
= 0;
5375 char *_kwnames
[] = { "self","choices", NULL
};
5378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5389 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5390 if (_arg2
== NULL
) {
5396 _arg1
= PyList_Size(_obj2
);
5403 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5404 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
5406 wxPyEndAllowThreads(__tstate
);
5407 if (PyErr_Occurred()) return NULL
;
5408 } Py_INCREF(Py_None
);
5409 _resultobj
= Py_None
;
5416 static void *SwigwxPenListTowxObject(void *ptr
) {
5419 src
= (wxPenList
*) ptr
;
5420 dest
= (wxObject
*) src
;
5421 return (void *) dest
;
5424 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5425 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5426 PyObject
* _resultobj
;
5429 PyObject
* _argo0
= 0;
5430 PyObject
* _argo1
= 0;
5431 char *_kwnames
[] = { "self","pen", NULL
};
5434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
5437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5444 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5445 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5451 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5452 wxPenList_AddPen(_arg0
,_arg1
);
5454 wxPyEndAllowThreads(__tstate
);
5455 if (PyErr_Occurred()) return NULL
;
5456 } Py_INCREF(Py_None
);
5457 _resultobj
= Py_None
;
5461 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5462 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5463 PyObject
* _resultobj
;
5469 PyObject
* _argo0
= 0;
5471 PyObject
* _obj1
= 0;
5472 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5487 if (! wxColour_helper(_obj1
, &_arg1
))
5491 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5492 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5494 wxPyEndAllowThreads(__tstate
);
5495 if (PyErr_Occurred()) return NULL
;
5497 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5498 _resultobj
= Py_BuildValue("s",_ptemp
);
5501 _resultobj
= Py_None
;
5506 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5507 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5508 PyObject
* _resultobj
;
5511 PyObject
* _argo0
= 0;
5512 PyObject
* _argo1
= 0;
5513 char *_kwnames
[] = { "self","pen", NULL
};
5516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5519 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5520 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5526 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5527 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5533 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5534 wxPenList_RemovePen(_arg0
,_arg1
);
5536 wxPyEndAllowThreads(__tstate
);
5537 if (PyErr_Occurred()) return NULL
;
5538 } Py_INCREF(Py_None
);
5539 _resultobj
= Py_None
;
5543 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5544 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5545 PyObject
* _resultobj
;
5548 PyObject
* _argo0
= 0;
5549 char *_kwnames
[] = { "self", NULL
};
5552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
5555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5563 _result
= (int )wxPenList_GetCount(_arg0
);
5565 wxPyEndAllowThreads(__tstate
);
5566 if (PyErr_Occurred()) return NULL
;
5567 } _resultobj
= Py_BuildValue("i",_result
);
5571 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5574 src
= (wxBrush
*) ptr
;
5575 dest
= (wxGDIObject
*) src
;
5576 return (void *) dest
;
5579 static void *SwigwxBrushTowxObject(void *ptr
) {
5582 src
= (wxBrush
*) ptr
;
5583 dest
= (wxObject
*) src
;
5584 return (void *) dest
;
5587 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5588 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5589 PyObject
* _resultobj
;
5592 int _arg1
= (int ) wxSOLID
;
5594 PyObject
* _obj0
= 0;
5595 char *_kwnames
[] = { "colour","style", NULL
};
5599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5603 if (! wxColour_helper(_obj0
, &_arg0
))
5607 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5608 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5610 wxPyEndAllowThreads(__tstate
);
5611 if (PyErr_Occurred()) return NULL
;
5613 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5614 _resultobj
= Py_BuildValue("s",_ptemp
);
5617 _resultobj
= Py_None
;
5622 #define delete_wxBrush(_swigobj) (delete _swigobj)
5623 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5624 PyObject
* _resultobj
;
5626 PyObject
* _argo0
= 0;
5627 char *_kwnames
[] = { "self", NULL
};
5630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5640 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5641 delete_wxBrush(_arg0
);
5643 wxPyEndAllowThreads(__tstate
);
5644 if (PyErr_Occurred()) return NULL
;
5645 } Py_INCREF(Py_None
);
5646 _resultobj
= Py_None
;
5650 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5651 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5652 PyObject
* _resultobj
;
5655 PyObject
* _argo0
= 0;
5656 char *_kwnames
[] = { "self", NULL
};
5660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5671 _result
= new wxColour (wxBrush_GetColour(_arg0
));
5673 wxPyEndAllowThreads(__tstate
);
5674 if (PyErr_Occurred()) return NULL
;
5675 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5676 _resultobj
= Py_BuildValue("s",_ptemp
);
5680 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5681 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5682 PyObject
* _resultobj
;
5685 PyObject
* _argo0
= 0;
5686 char *_kwnames
[] = { "self", NULL
};
5690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
5693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5700 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5701 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
5703 wxPyEndAllowThreads(__tstate
);
5704 if (PyErr_Occurred()) return NULL
;
5706 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5707 _resultobj
= Py_BuildValue("s",_ptemp
);
5710 _resultobj
= Py_None
;
5715 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5716 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5717 PyObject
* _resultobj
;
5720 PyObject
* _argo0
= 0;
5721 char *_kwnames
[] = { "self", NULL
};
5724 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
5727 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5728 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5729 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5734 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5735 _result
= (int )wxBrush_GetStyle(_arg0
);
5737 wxPyEndAllowThreads(__tstate
);
5738 if (PyErr_Occurred()) return NULL
;
5739 } _resultobj
= Py_BuildValue("i",_result
);
5743 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5744 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5745 PyObject
* _resultobj
;
5748 PyObject
* _argo0
= 0;
5749 char *_kwnames
[] = { "self", NULL
};
5752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
5755 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5756 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5757 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5762 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5763 _result
= (bool )wxBrush_Ok(_arg0
);
5765 wxPyEndAllowThreads(__tstate
);
5766 if (PyErr_Occurred()) return NULL
;
5767 } _resultobj
= Py_BuildValue("i",_result
);
5771 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5772 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5773 PyObject
* _resultobj
;
5776 PyObject
* _argo0
= 0;
5778 PyObject
* _obj1
= 0;
5779 char *_kwnames
[] = { "self","colour", NULL
};
5782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
5785 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5786 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5793 if (! wxColour_helper(_obj1
, &_arg1
))
5797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5798 wxBrush_SetColour(_arg0
,*_arg1
);
5800 wxPyEndAllowThreads(__tstate
);
5801 if (PyErr_Occurred()) return NULL
;
5802 } Py_INCREF(Py_None
);
5803 _resultobj
= Py_None
;
5807 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5808 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5809 PyObject
* _resultobj
;
5812 PyObject
* _argo0
= 0;
5813 PyObject
* _argo1
= 0;
5814 char *_kwnames
[] = { "self","bitmap", NULL
};
5817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5827 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5828 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5834 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5835 wxBrush_SetStipple(_arg0
,*_arg1
);
5837 wxPyEndAllowThreads(__tstate
);
5838 if (PyErr_Occurred()) return NULL
;
5839 } Py_INCREF(Py_None
);
5840 _resultobj
= Py_None
;
5844 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5845 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5846 PyObject
* _resultobj
;
5849 PyObject
* _argo0
= 0;
5850 char *_kwnames
[] = { "self","style", NULL
};
5853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5856 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5857 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5863 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5864 wxBrush_SetStyle(_arg0
,_arg1
);
5866 wxPyEndAllowThreads(__tstate
);
5867 if (PyErr_Occurred()) return NULL
;
5868 } Py_INCREF(Py_None
);
5869 _resultobj
= Py_None
;
5873 static void *SwigwxBrushListTowxObject(void *ptr
) {
5876 src
= (wxBrushList
*) ptr
;
5877 dest
= (wxObject
*) src
;
5878 return (void *) dest
;
5881 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5882 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5883 PyObject
* _resultobj
;
5884 wxBrushList
* _arg0
;
5886 PyObject
* _argo0
= 0;
5887 PyObject
* _argo1
= 0;
5888 char *_kwnames
[] = { "self","brush", NULL
};
5891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
5894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5901 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5902 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5903 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5908 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5909 wxBrushList_AddBrush(_arg0
,_arg1
);
5911 wxPyEndAllowThreads(__tstate
);
5912 if (PyErr_Occurred()) return NULL
;
5913 } Py_INCREF(Py_None
);
5914 _resultobj
= Py_None
;
5918 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5919 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5920 PyObject
* _resultobj
;
5922 wxBrushList
* _arg0
;
5925 PyObject
* _argo0
= 0;
5927 PyObject
* _obj1
= 0;
5928 char *_kwnames
[] = { "self","colour","style", NULL
};
5932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
5935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5943 if (! wxColour_helper(_obj1
, &_arg1
))
5947 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5948 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
5950 wxPyEndAllowThreads(__tstate
);
5951 if (PyErr_Occurred()) return NULL
;
5953 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5954 _resultobj
= Py_BuildValue("s",_ptemp
);
5957 _resultobj
= Py_None
;
5962 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5963 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5964 PyObject
* _resultobj
;
5965 wxBrushList
* _arg0
;
5967 PyObject
* _argo0
= 0;
5968 PyObject
* _argo1
= 0;
5969 char *_kwnames
[] = { "self","brush", NULL
};
5972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
5975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5982 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5983 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5989 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5990 wxBrushList_RemoveBrush(_arg0
,_arg1
);
5992 wxPyEndAllowThreads(__tstate
);
5993 if (PyErr_Occurred()) return NULL
;
5994 } Py_INCREF(Py_None
);
5995 _resultobj
= Py_None
;
5999 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
6000 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6001 PyObject
* _resultobj
;
6003 wxBrushList
* _arg0
;
6004 PyObject
* _argo0
= 0;
6005 char *_kwnames
[] = { "self", NULL
};
6008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
6011 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6012 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
6018 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6019 _result
= (int )wxBrushList_GetCount(_arg0
);
6021 wxPyEndAllowThreads(__tstate
);
6022 if (PyErr_Occurred()) return NULL
;
6023 } _resultobj
= Py_BuildValue("i",_result
);
6027 static void *SwigwxDCTowxObject(void *ptr
) {
6031 dest
= (wxObject
*) src
;
6032 return (void *) dest
;
6035 #define delete_wxDC(_swigobj) (delete _swigobj)
6036 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6037 PyObject
* _resultobj
;
6039 PyObject
* _argo0
= 0;
6040 char *_kwnames
[] = { "self", NULL
};
6043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
6046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6053 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6056 wxPyEndAllowThreads(__tstate
);
6057 if (PyErr_Occurred()) return NULL
;
6058 } Py_INCREF(Py_None
);
6059 _resultobj
= Py_None
;
6063 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6064 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6065 PyObject
* _resultobj
;
6067 PyObject
* _argo0
= 0;
6068 char *_kwnames
[] = { "self", NULL
};
6071 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
6074 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6075 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6076 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6081 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6082 wxDC_BeginDrawing(_arg0
);
6084 wxPyEndAllowThreads(__tstate
);
6085 if (PyErr_Occurred()) return NULL
;
6086 } Py_INCREF(Py_None
);
6087 _resultobj
= Py_None
;
6091 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6092 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6093 PyObject
* _resultobj
;
6103 int _arg8
= (int ) wxCOPY
;
6104 int _arg9
= (int ) FALSE
;
6105 PyObject
* _argo0
= 0;
6106 PyObject
* _argo5
= 0;
6107 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
6110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
6113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6120 if (_argo5
== Py_None
) { _arg5
= NULL
; }
6121 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
6122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6128 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
6130 wxPyEndAllowThreads(__tstate
);
6131 if (PyErr_Occurred()) return NULL
;
6132 } _resultobj
= Py_BuildValue("i",_result
);
6136 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6137 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6138 PyObject
* _resultobj
;
6140 PyObject
* _argo0
= 0;
6141 char *_kwnames
[] = { "self", NULL
};
6144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
6147 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6148 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6157 wxPyEndAllowThreads(__tstate
);
6158 if (PyErr_Occurred()) return NULL
;
6159 } Py_INCREF(Py_None
);
6160 _resultobj
= Py_None
;
6164 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6165 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6166 PyObject
* _resultobj
;
6170 PyObject
* _argo0
= 0;
6171 char *_kwnames
[] = { "self","x","y", NULL
};
6174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6185 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
6187 wxPyEndAllowThreads(__tstate
);
6188 if (PyErr_Occurred()) return NULL
;
6189 } Py_INCREF(Py_None
);
6190 _resultobj
= Py_None
;
6194 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6195 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6196 PyObject
* _resultobj
;
6198 PyObject
* _argo0
= 0;
6199 char *_kwnames
[] = { "self", NULL
};
6202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
6205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6213 wxDC_DestroyClippingRegion(_arg0
);
6215 wxPyEndAllowThreads(__tstate
);
6216 if (PyErr_Occurred()) return NULL
;
6217 } Py_INCREF(Py_None
);
6218 _resultobj
= Py_None
;
6222 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6223 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6224 PyObject
* _resultobj
;
6228 PyObject
* _argo0
= 0;
6229 char *_kwnames
[] = { "self","x", NULL
};
6232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
6235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6242 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6243 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
6245 wxPyEndAllowThreads(__tstate
);
6246 if (PyErr_Occurred()) return NULL
;
6247 } _resultobj
= Py_BuildValue("l",_result
);
6251 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6252 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6253 PyObject
* _resultobj
;
6257 PyObject
* _argo0
= 0;
6258 char *_kwnames
[] = { "self","x", NULL
};
6261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
6264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6271 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6272 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
6274 wxPyEndAllowThreads(__tstate
);
6275 if (PyErr_Occurred()) return NULL
;
6276 } _resultobj
= Py_BuildValue("l",_result
);
6280 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6281 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6282 PyObject
* _resultobj
;
6286 PyObject
* _argo0
= 0;
6287 char *_kwnames
[] = { "self","y", NULL
};
6290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
6293 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6294 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6300 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6301 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
6303 wxPyEndAllowThreads(__tstate
);
6304 if (PyErr_Occurred()) return NULL
;
6305 } _resultobj
= Py_BuildValue("l",_result
);
6309 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6310 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6311 PyObject
* _resultobj
;
6315 PyObject
* _argo0
= 0;
6316 char *_kwnames
[] = { "self","y", NULL
};
6319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
6322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6329 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6330 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
6332 wxPyEndAllowThreads(__tstate
);
6333 if (PyErr_Occurred()) return NULL
;
6334 } _resultobj
= Py_BuildValue("l",_result
);
6338 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6339 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6340 PyObject
* _resultobj
;
6348 PyObject
* _argo0
= 0;
6349 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
6352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6362 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6363 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6365 wxPyEndAllowThreads(__tstate
);
6366 if (PyErr_Occurred()) return NULL
;
6367 } Py_INCREF(Py_None
);
6368 _resultobj
= Py_None
;
6372 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6373 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6374 PyObject
* _resultobj
;
6379 PyObject
* _argo0
= 0;
6380 char *_kwnames
[] = { "self","x","y","radius", NULL
};
6383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
6386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6393 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6394 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
6396 wxPyEndAllowThreads(__tstate
);
6397 if (PyErr_Occurred()) return NULL
;
6398 } Py_INCREF(Py_None
);
6399 _resultobj
= Py_None
;
6403 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6404 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6405 PyObject
* _resultobj
;
6411 PyObject
* _argo0
= 0;
6412 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6425 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6426 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6428 wxPyEndAllowThreads(__tstate
);
6429 if (PyErr_Occurred()) return NULL
;
6430 } Py_INCREF(Py_None
);
6431 _resultobj
= Py_None
;
6435 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6436 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6437 PyObject
* _resultobj
;
6445 PyObject
* _argo0
= 0;
6446 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
6449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6459 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6460 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6462 wxPyEndAllowThreads(__tstate
);
6463 if (PyErr_Occurred()) return NULL
;
6464 } Py_INCREF(Py_None
);
6465 _resultobj
= Py_None
;
6469 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6470 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6471 PyObject
* _resultobj
;
6476 PyObject
* _argo0
= 0;
6477 PyObject
* _argo1
= 0;
6478 char *_kwnames
[] = { "self","icon","x","y", NULL
};
6481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
6484 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6485 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6491 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6492 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
6493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6498 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6499 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
6501 wxPyEndAllowThreads(__tstate
);
6502 if (PyErr_Occurred()) return NULL
;
6503 } Py_INCREF(Py_None
);
6504 _resultobj
= Py_None
;
6508 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6509 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6510 PyObject
* _resultobj
;
6516 PyObject
* _argo0
= 0;
6517 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
6520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6523 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6524 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6530 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6531 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6533 wxPyEndAllowThreads(__tstate
);
6534 if (PyErr_Occurred()) return NULL
;
6535 } Py_INCREF(Py_None
);
6536 _resultobj
= Py_None
;
6540 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6541 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6542 PyObject
* _resultobj
;
6546 long _arg3
= (long ) 0;
6547 long _arg4
= (long ) 0;
6548 PyObject
* _argo0
= 0;
6550 PyObject
* _obj2
= 0;
6551 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
6554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
6557 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6558 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6565 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6566 if (_arg2
== NULL
) {
6574 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6575 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6577 wxPyEndAllowThreads(__tstate
);
6578 if (PyErr_Occurred()) return NULL
;
6579 } Py_INCREF(Py_None
);
6580 _resultobj
= Py_None
;
6587 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6588 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6589 PyObject
* _resultobj
;
6593 long _arg3
= (long ) 0;
6594 long _arg4
= (long ) 0;
6595 int _arg5
= (int ) wxODDEVEN_RULE
;
6596 PyObject
* _argo0
= 0;
6598 PyObject
* _obj2
= 0;
6599 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6605 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6606 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6613 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6614 if (_arg2
== NULL
) {
6622 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6623 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6625 wxPyEndAllowThreads(__tstate
);
6626 if (PyErr_Occurred()) return NULL
;
6627 } Py_INCREF(Py_None
);
6628 _resultobj
= Py_None
;
6635 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6636 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6637 PyObject
* _resultobj
;
6641 PyObject
* _argo0
= 0;
6642 char *_kwnames
[] = { "self","x","y", NULL
};
6645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6648 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6649 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6650 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6655 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6656 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6658 wxPyEndAllowThreads(__tstate
);
6659 if (PyErr_Occurred()) return NULL
;
6660 } Py_INCREF(Py_None
);
6661 _resultobj
= Py_None
;
6665 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6666 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6667 PyObject
* _resultobj
;
6673 PyObject
* _argo0
= 0;
6674 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6687 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6688 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6690 wxPyEndAllowThreads(__tstate
);
6691 if (PyErr_Occurred()) return NULL
;
6692 } Py_INCREF(Py_None
);
6693 _resultobj
= Py_None
;
6697 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6698 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6699 PyObject
* _resultobj
;
6705 PyObject
* _argo0
= 0;
6706 PyObject
* _obj1
= 0;
6707 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6720 #if PYTHON_API_VERSION >= 1009
6721 char* tmpPtr
; int tmpSize
;
6722 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6723 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6726 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6728 _arg1
= new wxString(tmpPtr
, tmpSize
);
6730 if (!PyString_Check(_obj1
)) {
6731 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6734 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6738 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6739 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
6741 wxPyEndAllowThreads(__tstate
);
6742 if (PyErr_Occurred()) return NULL
;
6743 } Py_INCREF(Py_None
);
6744 _resultobj
= Py_None
;
6752 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6753 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6754 PyObject
* _resultobj
;
6760 long _arg5
= (long ) 20;
6761 PyObject
* _argo0
= 0;
6762 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
6765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
6768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6776 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6778 wxPyEndAllowThreads(__tstate
);
6779 if (PyErr_Occurred()) return NULL
;
6780 } Py_INCREF(Py_None
);
6781 _resultobj
= Py_None
;
6785 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
6786 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6787 PyObject
* _resultobj
;
6791 PyObject
* _argo0
= 0;
6793 PyObject
* _obj2
= 0;
6794 char *_kwnames
[] = { "self","points", NULL
};
6797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
6800 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6801 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6808 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6809 if (_arg2
== NULL
) {
6817 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6818 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
6820 wxPyEndAllowThreads(__tstate
);
6821 if (PyErr_Occurred()) return NULL
;
6822 } Py_INCREF(Py_None
);
6823 _resultobj
= Py_None
;
6830 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
6831 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6832 PyObject
* _resultobj
;
6837 PyObject
* _argo0
= 0;
6838 PyObject
* _obj1
= 0;
6839 char *_kwnames
[] = { "self","text","x","y", NULL
};
6842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
6845 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6846 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6852 #if PYTHON_API_VERSION >= 1009
6853 char* tmpPtr
; int tmpSize
;
6854 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6855 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6858 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6860 _arg1
= new wxString(tmpPtr
, tmpSize
);
6862 if (!PyString_Check(_obj1
)) {
6863 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6866 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6870 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6871 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
6873 wxPyEndAllowThreads(__tstate
);
6874 if (PyErr_Occurred()) return NULL
;
6875 } Py_INCREF(Py_None
);
6876 _resultobj
= Py_None
;
6884 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
6885 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6886 PyObject
* _resultobj
;
6888 PyObject
* _argo0
= 0;
6889 char *_kwnames
[] = { "self", NULL
};
6892 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
6895 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6896 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6902 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6905 wxPyEndAllowThreads(__tstate
);
6906 if (PyErr_Occurred()) return NULL
;
6907 } Py_INCREF(Py_None
);
6908 _resultobj
= Py_None
;
6912 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
6913 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6914 PyObject
* _resultobj
;
6916 PyObject
* _argo0
= 0;
6917 char *_kwnames
[] = { "self", NULL
};
6920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
6923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6930 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6931 wxDC_EndDrawing(_arg0
);
6933 wxPyEndAllowThreads(__tstate
);
6934 if (PyErr_Occurred()) return NULL
;
6935 } Py_INCREF(Py_None
);
6936 _resultobj
= Py_None
;
6940 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
6941 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6942 PyObject
* _resultobj
;
6944 PyObject
* _argo0
= 0;
6945 char *_kwnames
[] = { "self", NULL
};
6948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
6951 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6952 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6959 wxDC_EndPage(_arg0
);
6961 wxPyEndAllowThreads(__tstate
);
6962 if (PyErr_Occurred()) return NULL
;
6963 } Py_INCREF(Py_None
);
6964 _resultobj
= Py_None
;
6968 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6969 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6970 PyObject
* _resultobj
;
6975 int _arg4
= (int ) wxFLOOD_SURFACE
;
6976 PyObject
* _argo0
= 0;
6978 PyObject
* _obj3
= 0;
6979 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
6982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
6985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6993 if (! wxColour_helper(_obj3
, &_arg3
))
6997 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6998 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
7000 wxPyEndAllowThreads(__tstate
);
7001 if (PyErr_Occurred()) return NULL
;
7002 } Py_INCREF(Py_None
);
7003 _resultobj
= Py_None
;
7007 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7008 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7009 PyObject
* _resultobj
;
7012 PyObject
* _argo0
= 0;
7013 char *_kwnames
[] = { "self", NULL
};
7017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
7020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7028 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
7030 wxPyEndAllowThreads(__tstate
);
7031 if (PyErr_Occurred()) return NULL
;
7032 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
7033 _resultobj
= Py_BuildValue("s",_ptemp
);
7037 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7038 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7039 PyObject
* _resultobj
;
7042 PyObject
* _argo0
= 0;
7043 char *_kwnames
[] = { "self", NULL
};
7047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
7050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7057 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7058 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
7060 wxPyEndAllowThreads(__tstate
);
7061 if (PyErr_Occurred()) return NULL
;
7062 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
7063 _resultobj
= Py_BuildValue("s",_ptemp
);
7067 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7068 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7069 PyObject
* _resultobj
;
7072 PyObject
* _argo0
= 0;
7073 char *_kwnames
[] = { "self", NULL
};
7076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
7079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7086 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7087 _result
= (long )wxDC_GetCharHeight(_arg0
);
7089 wxPyEndAllowThreads(__tstate
);
7090 if (PyErr_Occurred()) return NULL
;
7091 } _resultobj
= Py_BuildValue("l",_result
);
7095 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7096 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7097 PyObject
* _resultobj
;
7100 PyObject
* _argo0
= 0;
7101 char *_kwnames
[] = { "self", NULL
};
7104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
7107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7115 _result
= (long )wxDC_GetCharWidth(_arg0
);
7117 wxPyEndAllowThreads(__tstate
);
7118 if (PyErr_Occurred()) return NULL
;
7119 } _resultobj
= Py_BuildValue("l",_result
);
7123 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7124 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7125 PyObject
* _resultobj
;
7135 PyObject
* _argo0
= 0;
7136 char *_kwnames
[] = { "self", NULL
};
7151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
7154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7161 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7162 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7164 wxPyEndAllowThreads(__tstate
);
7165 if (PyErr_Occurred()) return NULL
;
7166 } Py_INCREF(Py_None
);
7167 _resultobj
= Py_None
;
7170 o
= PyInt_FromLong((long) (*_arg1
));
7171 _resultobj
= t_output_helper(_resultobj
, o
);
7175 o
= PyInt_FromLong((long) (*_arg2
));
7176 _resultobj
= t_output_helper(_resultobj
, o
);
7180 o
= PyInt_FromLong((long) (*_arg3
));
7181 _resultobj
= t_output_helper(_resultobj
, o
);
7185 o
= PyInt_FromLong((long) (*_arg4
));
7186 _resultobj
= t_output_helper(_resultobj
, o
);
7191 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7192 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7193 PyObject
* _resultobj
;
7196 PyObject
* _argo0
= 0;
7197 char *_kwnames
[] = { "self", NULL
};
7201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
7204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7211 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7212 _result
= new wxFont (wxDC_GetFont(_arg0
));
7214 wxPyEndAllowThreads(__tstate
);
7215 if (PyErr_Occurred()) return NULL
;
7216 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
7217 _resultobj
= Py_BuildValue("s",_ptemp
);
7221 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7222 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7223 PyObject
* _resultobj
;
7226 PyObject
* _argo0
= 0;
7227 char *_kwnames
[] = { "self", NULL
};
7230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
7233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7241 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
7243 wxPyEndAllowThreads(__tstate
);
7244 if (PyErr_Occurred()) return NULL
;
7245 } _resultobj
= Py_BuildValue("i",_result
);
7249 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7250 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7251 PyObject
* _resultobj
;
7257 PyObject
* _argo0
= 0;
7258 char *_kwnames
[] = { "self", NULL
};
7267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
7270 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7271 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7277 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7278 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
7280 wxPyEndAllowThreads(__tstate
);
7281 if (PyErr_Occurred()) return NULL
;
7282 } Py_INCREF(Py_None
);
7283 _resultobj
= Py_None
;
7286 o
= PyFloat_FromDouble((double) (*_arg1
));
7287 _resultobj
= t_output_helper(_resultobj
, o
);
7291 o
= PyFloat_FromDouble((double) (*_arg2
));
7292 _resultobj
= t_output_helper(_resultobj
, o
);
7297 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7298 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7299 PyObject
* _resultobj
;
7302 PyObject
* _argo0
= 0;
7303 char *_kwnames
[] = { "self", NULL
};
7306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
7309 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7310 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7316 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7317 _result
= (int )wxDC_GetMapMode(_arg0
);
7319 wxPyEndAllowThreads(__tstate
);
7320 if (PyErr_Occurred()) return NULL
;
7321 } _resultobj
= Py_BuildValue("i",_result
);
7325 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7326 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7327 PyObject
* _resultobj
;
7330 PyObject
* _argo0
= 0;
7331 char *_kwnames
[] = { "self", NULL
};
7334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
7337 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7338 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7339 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7344 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7345 _result
= (bool )wxDC_GetOptimization(_arg0
);
7347 wxPyEndAllowThreads(__tstate
);
7348 if (PyErr_Occurred()) return NULL
;
7349 } _resultobj
= Py_BuildValue("i",_result
);
7353 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7354 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7355 PyObject
* _resultobj
;
7358 PyObject
* _argo0
= 0;
7359 char *_kwnames
[] = { "self", NULL
};
7363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
7366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7373 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7374 _result
= new wxPen (wxDC_GetPen(_arg0
));
7376 wxPyEndAllowThreads(__tstate
);
7377 if (PyErr_Occurred()) return NULL
;
7378 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
7379 _resultobj
= Py_BuildValue("s",_ptemp
);
7383 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
7384 wxColour
* wc
= new wxColour();
7385 self
->GetPixel(x
, y
, wc
);
7388 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7389 PyObject
* _resultobj
;
7394 PyObject
* _argo0
= 0;
7395 char *_kwnames
[] = { "self","x","y", NULL
};
7399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7409 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7410 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
7412 wxPyEndAllowThreads(__tstate
);
7413 if (PyErr_Occurred()) return NULL
;
7415 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7416 _resultobj
= Py_BuildValue("s",_ptemp
);
7419 _resultobj
= Py_None
;
7424 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7425 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7426 PyObject
* _resultobj
;
7432 PyObject
* _argo0
= 0;
7433 char *_kwnames
[] = { "self", NULL
};
7442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
7445 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7446 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7447 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7453 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
7455 wxPyEndAllowThreads(__tstate
);
7456 if (PyErr_Occurred()) return NULL
;
7457 } Py_INCREF(Py_None
);
7458 _resultobj
= Py_None
;
7461 o
= PyInt_FromLong((long) (*_arg1
));
7462 _resultobj
= t_output_helper(_resultobj
, o
);
7466 o
= PyInt_FromLong((long) (*_arg2
));
7467 _resultobj
= t_output_helper(_resultobj
, o
);
7472 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7473 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7474 PyObject
* _resultobj
;
7477 PyObject
* _argo0
= 0;
7478 char *_kwnames
[] = { "self", NULL
};
7482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
7485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7492 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7493 _result
= new wxSize (wxDC_GetSize(_arg0
));
7495 wxPyEndAllowThreads(__tstate
);
7496 if (PyErr_Occurred()) return NULL
;
7497 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7498 _resultobj
= Py_BuildValue("s",_ptemp
);
7502 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7503 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7504 PyObject
* _resultobj
;
7507 PyObject
* _argo0
= 0;
7508 char *_kwnames
[] = { "self", NULL
};
7512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7523 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
7525 wxPyEndAllowThreads(__tstate
);
7526 if (PyErr_Occurred()) return NULL
;
7527 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7528 _resultobj
= Py_BuildValue("s",_ptemp
);
7532 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7533 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7534 PyObject
* _resultobj
;
7537 PyObject
* _argo0
= 0;
7538 char *_kwnames
[] = { "self", NULL
};
7542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
7545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7552 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7553 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
7555 wxPyEndAllowThreads(__tstate
);
7556 if (PyErr_Occurred()) return NULL
;
7557 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7558 _resultobj
= Py_BuildValue("s",_ptemp
);
7562 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7563 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7564 PyObject
* _resultobj
;
7571 PyObject
* _argo0
= 0;
7572 PyObject
* _obj1
= 0;
7573 char *_kwnames
[] = { "self","string", NULL
};
7582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7592 #if PYTHON_API_VERSION >= 1009
7593 char* tmpPtr
; int tmpSize
;
7594 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7595 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7598 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7600 _arg1
= new wxString(tmpPtr
, tmpSize
);
7602 if (!PyString_Check(_obj1
)) {
7603 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7606 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7611 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7613 wxPyEndAllowThreads(__tstate
);
7614 if (PyErr_Occurred()) return NULL
;
7615 } Py_INCREF(Py_None
);
7616 _resultobj
= Py_None
;
7619 o
= PyInt_FromLong((long) (*_arg2
));
7620 _resultobj
= t_output_helper(_resultobj
, o
);
7624 o
= PyInt_FromLong((long) (*_arg3
));
7625 _resultobj
= t_output_helper(_resultobj
, o
);
7634 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7635 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7636 PyObject
* _resultobj
;
7647 wxFont
* _arg6
= (wxFont
*) NULL
;
7648 PyObject
* _argo0
= 0;
7649 PyObject
* _obj1
= 0;
7650 PyObject
* _argo6
= 0;
7651 char *_kwnames
[] = { "self","string","font", NULL
};
7666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7676 #if PYTHON_API_VERSION >= 1009
7677 char* tmpPtr
; int tmpSize
;
7678 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7679 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7682 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7684 _arg1
= new wxString(tmpPtr
, tmpSize
);
7686 if (!PyString_Check(_obj1
)) {
7687 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7690 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7694 if (_argo6
== Py_None
) { _arg6
= NULL
; }
7695 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
7696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7701 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7702 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7704 wxPyEndAllowThreads(__tstate
);
7705 if (PyErr_Occurred()) return NULL
;
7706 } Py_INCREF(Py_None
);
7707 _resultobj
= Py_None
;
7710 o
= PyInt_FromLong((long) (*_arg2
));
7711 _resultobj
= t_output_helper(_resultobj
, o
);
7715 o
= PyInt_FromLong((long) (*_arg3
));
7716 _resultobj
= t_output_helper(_resultobj
, o
);
7720 o
= PyInt_FromLong((long) (*_arg4
));
7721 _resultobj
= t_output_helper(_resultobj
, o
);
7725 o
= PyInt_FromLong((long) (*_arg5
));
7726 _resultobj
= t_output_helper(_resultobj
, o
);
7735 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
7736 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7737 PyObject
* _resultobj
;
7740 PyObject
* _argo0
= 0;
7741 char *_kwnames
[] = { "self", NULL
};
7745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
7748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7756 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
7758 wxPyEndAllowThreads(__tstate
);
7759 if (PyErr_Occurred()) return NULL
;
7760 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7761 _resultobj
= Py_BuildValue("s",_ptemp
);
7765 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7766 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7767 PyObject
* _resultobj
;
7773 PyObject
* _argo0
= 0;
7774 char *_kwnames
[] = { "self", NULL
};
7783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
7786 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7787 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7793 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7794 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
7796 wxPyEndAllowThreads(__tstate
);
7797 if (PyErr_Occurred()) return NULL
;
7798 } Py_INCREF(Py_None
);
7799 _resultobj
= Py_None
;
7802 o
= PyFloat_FromDouble((double) (*_arg1
));
7803 _resultobj
= t_output_helper(_resultobj
, o
);
7807 o
= PyFloat_FromDouble((double) (*_arg2
));
7808 _resultobj
= t_output_helper(_resultobj
, o
);
7813 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
7814 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7815 PyObject
* _resultobj
;
7819 PyObject
* _argo0
= 0;
7820 char *_kwnames
[] = { "self","x", NULL
};
7823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
7826 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7827 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7833 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7834 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
7836 wxPyEndAllowThreads(__tstate
);
7837 if (PyErr_Occurred()) return NULL
;
7838 } _resultobj
= Py_BuildValue("l",_result
);
7842 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
7843 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7844 PyObject
* _resultobj
;
7848 PyObject
* _argo0
= 0;
7849 char *_kwnames
[] = { "self","x", NULL
};
7852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
7855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7862 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7863 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
7865 wxPyEndAllowThreads(__tstate
);
7866 if (PyErr_Occurred()) return NULL
;
7867 } _resultobj
= Py_BuildValue("l",_result
);
7871 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
7872 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7873 PyObject
* _resultobj
;
7877 PyObject
* _argo0
= 0;
7878 char *_kwnames
[] = { "self","y", NULL
};
7881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
7884 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7885 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7891 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7892 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
7894 wxPyEndAllowThreads(__tstate
);
7895 if (PyErr_Occurred()) return NULL
;
7896 } _resultobj
= Py_BuildValue("l",_result
);
7900 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
7901 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7902 PyObject
* _resultobj
;
7906 PyObject
* _argo0
= 0;
7907 char *_kwnames
[] = { "self","y", NULL
};
7910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
7913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7920 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7921 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
7923 wxPyEndAllowThreads(__tstate
);
7924 if (PyErr_Occurred()) return NULL
;
7925 } _resultobj
= Py_BuildValue("l",_result
);
7929 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
7930 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7931 PyObject
* _resultobj
;
7934 PyObject
* _argo0
= 0;
7935 char *_kwnames
[] = { "self", NULL
};
7938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
7941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7948 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7949 _result
= (long )wxDC_MaxX(_arg0
);
7951 wxPyEndAllowThreads(__tstate
);
7952 if (PyErr_Occurred()) return NULL
;
7953 } _resultobj
= Py_BuildValue("l",_result
);
7957 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7958 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7959 PyObject
* _resultobj
;
7962 PyObject
* _argo0
= 0;
7963 char *_kwnames
[] = { "self", NULL
};
7966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
7969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7976 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7977 _result
= (long )wxDC_MaxY(_arg0
);
7979 wxPyEndAllowThreads(__tstate
);
7980 if (PyErr_Occurred()) return NULL
;
7981 } _resultobj
= Py_BuildValue("l",_result
);
7985 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
7986 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7987 PyObject
* _resultobj
;
7990 PyObject
* _argo0
= 0;
7991 char *_kwnames
[] = { "self", NULL
};
7994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
7997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8004 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8005 _result
= (long )wxDC_MinX(_arg0
);
8007 wxPyEndAllowThreads(__tstate
);
8008 if (PyErr_Occurred()) return NULL
;
8009 } _resultobj
= Py_BuildValue("l",_result
);
8013 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8014 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8015 PyObject
* _resultobj
;
8018 PyObject
* _argo0
= 0;
8019 char *_kwnames
[] = { "self", NULL
};
8022 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
8025 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8026 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8027 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8032 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8033 _result
= (long )wxDC_MinY(_arg0
);
8035 wxPyEndAllowThreads(__tstate
);
8036 if (PyErr_Occurred()) return NULL
;
8037 } _resultobj
= Py_BuildValue("l",_result
);
8041 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8042 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8043 PyObject
* _resultobj
;
8046 PyObject
* _argo0
= 0;
8047 char *_kwnames
[] = { "self", NULL
};
8050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
8053 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8054 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8060 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8061 _result
= (bool )wxDC_Ok(_arg0
);
8063 wxPyEndAllowThreads(__tstate
);
8064 if (PyErr_Occurred()) return NULL
;
8065 } _resultobj
= Py_BuildValue("i",_result
);
8069 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8070 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8071 PyObject
* _resultobj
;
8075 PyObject
* _argo0
= 0;
8076 char *_kwnames
[] = { "self","x","y", NULL
};
8079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8089 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8090 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8092 wxPyEndAllowThreads(__tstate
);
8093 if (PyErr_Occurred()) return NULL
;
8094 } Py_INCREF(Py_None
);
8095 _resultobj
= Py_None
;
8099 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8100 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8101 PyObject
* _resultobj
;
8104 PyObject
* _argo0
= 0;
8105 PyObject
* _argo1
= 0;
8106 char *_kwnames
[] = { "self","brush", NULL
};
8109 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
8112 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8113 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8119 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8120 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8126 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8127 wxDC_SetBackground(_arg0
,*_arg1
);
8129 wxPyEndAllowThreads(__tstate
);
8130 if (PyErr_Occurred()) return NULL
;
8131 } Py_INCREF(Py_None
);
8132 _resultobj
= Py_None
;
8136 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8137 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8138 PyObject
* _resultobj
;
8141 PyObject
* _argo0
= 0;
8142 char *_kwnames
[] = { "self","mode", NULL
};
8145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
8148 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8149 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8150 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8155 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8156 wxDC_SetBackgroundMode(_arg0
,_arg1
);
8158 wxPyEndAllowThreads(__tstate
);
8159 if (PyErr_Occurred()) return NULL
;
8160 } Py_INCREF(Py_None
);
8161 _resultobj
= Py_None
;
8165 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8166 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8167 PyObject
* _resultobj
;
8173 PyObject
* _argo0
= 0;
8174 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
8177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
8180 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8181 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8187 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8188 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8190 wxPyEndAllowThreads(__tstate
);
8191 if (PyErr_Occurred()) return NULL
;
8192 } Py_INCREF(Py_None
);
8193 _resultobj
= Py_None
;
8197 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8198 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8199 PyObject
* _resultobj
;
8202 PyObject
* _argo0
= 0;
8203 PyObject
* _argo1
= 0;
8204 char *_kwnames
[] = { "self","region", NULL
};
8207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
8210 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8211 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8217 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8218 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
8219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8225 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
8227 wxPyEndAllowThreads(__tstate
);
8228 if (PyErr_Occurred()) return NULL
;
8229 } Py_INCREF(Py_None
);
8230 _resultobj
= Py_None
;
8234 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8235 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8236 PyObject
* _resultobj
;
8239 PyObject
* _argo0
= 0;
8240 PyObject
* _argo1
= 0;
8241 char *_kwnames
[] = { "self","colourMap", NULL
};
8244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
8247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8254 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8255 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
8256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8262 wxDC_SetPalette(_arg0
,*_arg1
);
8264 wxPyEndAllowThreads(__tstate
);
8265 if (PyErr_Occurred()) return NULL
;
8266 } Py_INCREF(Py_None
);
8267 _resultobj
= Py_None
;
8271 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8272 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8273 PyObject
* _resultobj
;
8276 PyObject
* _argo0
= 0;
8277 PyObject
* _argo1
= 0;
8278 char *_kwnames
[] = { "self","brush", NULL
};
8281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
8284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8291 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8292 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8298 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8299 wxDC_SetBrush(_arg0
,*_arg1
);
8301 wxPyEndAllowThreads(__tstate
);
8302 if (PyErr_Occurred()) return NULL
;
8303 } Py_INCREF(Py_None
);
8304 _resultobj
= Py_None
;
8308 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8309 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8310 PyObject
* _resultobj
;
8313 PyObject
* _argo0
= 0;
8314 PyObject
* _argo1
= 0;
8315 char *_kwnames
[] = { "self","font", NULL
};
8318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
8321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8328 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8329 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
8330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8335 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8336 wxDC_SetFont(_arg0
,*_arg1
);
8338 wxPyEndAllowThreads(__tstate
);
8339 if (PyErr_Occurred()) return NULL
;
8340 } Py_INCREF(Py_None
);
8341 _resultobj
= Py_None
;
8345 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8346 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8347 PyObject
* _resultobj
;
8350 PyObject
* _argo0
= 0;
8351 char *_kwnames
[] = { "self","function", NULL
};
8354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
8357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8364 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8365 wxDC_SetLogicalFunction(_arg0
,_arg1
);
8367 wxPyEndAllowThreads(__tstate
);
8368 if (PyErr_Occurred()) return NULL
;
8369 } Py_INCREF(Py_None
);
8370 _resultobj
= Py_None
;
8374 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8375 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8376 PyObject
* _resultobj
;
8380 PyObject
* _argo0
= 0;
8381 char *_kwnames
[] = { "self","x","y", NULL
};
8384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8394 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8395 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
8397 wxPyEndAllowThreads(__tstate
);
8398 if (PyErr_Occurred()) return NULL
;
8399 } Py_INCREF(Py_None
);
8400 _resultobj
= Py_None
;
8404 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8405 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8406 PyObject
* _resultobj
;
8409 PyObject
* _argo0
= 0;
8410 char *_kwnames
[] = { "self","mode", NULL
};
8413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
8416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8424 wxDC_SetMapMode(_arg0
,_arg1
);
8426 wxPyEndAllowThreads(__tstate
);
8427 if (PyErr_Occurred()) return NULL
;
8428 } Py_INCREF(Py_None
);
8429 _resultobj
= Py_None
;
8433 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8434 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8435 PyObject
* _resultobj
;
8438 PyObject
* _argo0
= 0;
8440 char *_kwnames
[] = { "self","optimize", NULL
};
8443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
8446 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8447 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8452 _arg1
= (bool ) tempbool1
;
8454 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8455 wxDC_SetOptimization(_arg0
,_arg1
);
8457 wxPyEndAllowThreads(__tstate
);
8458 if (PyErr_Occurred()) return NULL
;
8459 } Py_INCREF(Py_None
);
8460 _resultobj
= Py_None
;
8464 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8465 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8466 PyObject
* _resultobj
;
8469 PyObject
* _argo0
= 0;
8470 PyObject
* _argo1
= 0;
8471 char *_kwnames
[] = { "self","pen", NULL
};
8474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
8477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8484 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8485 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
8486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8491 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8492 wxDC_SetPen(_arg0
,*_arg1
);
8494 wxPyEndAllowThreads(__tstate
);
8495 if (PyErr_Occurred()) return NULL
;
8496 } Py_INCREF(Py_None
);
8497 _resultobj
= Py_None
;
8501 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8502 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8503 PyObject
* _resultobj
;
8506 PyObject
* _argo0
= 0;
8508 PyObject
* _obj1
= 0;
8509 char *_kwnames
[] = { "self","colour", NULL
};
8512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
8515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8523 if (! wxColour_helper(_obj1
, &_arg1
))
8527 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8528 wxDC_SetTextBackground(_arg0
,*_arg1
);
8530 wxPyEndAllowThreads(__tstate
);
8531 if (PyErr_Occurred()) return NULL
;
8532 } Py_INCREF(Py_None
);
8533 _resultobj
= Py_None
;
8537 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8538 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8539 PyObject
* _resultobj
;
8542 PyObject
* _argo0
= 0;
8544 PyObject
* _obj1
= 0;
8545 char *_kwnames
[] = { "self","colour", NULL
};
8548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
8551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8559 if (! wxColour_helper(_obj1
, &_arg1
))
8563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8564 wxDC_SetTextForeground(_arg0
,*_arg1
);
8566 wxPyEndAllowThreads(__tstate
);
8567 if (PyErr_Occurred()) return NULL
;
8568 } Py_INCREF(Py_None
);
8569 _resultobj
= Py_None
;
8573 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8574 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8575 PyObject
* _resultobj
;
8579 PyObject
* _argo0
= 0;
8580 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8593 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8594 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8596 wxPyEndAllowThreads(__tstate
);
8597 if (PyErr_Occurred()) return NULL
;
8598 } Py_INCREF(Py_None
);
8599 _resultobj
= Py_None
;
8603 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8604 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8605 PyObject
* _resultobj
;
8609 PyObject
* _argo0
= 0;
8610 PyObject
* _obj1
= 0;
8611 char *_kwnames
[] = { "self","message", NULL
};
8614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8624 #if PYTHON_API_VERSION >= 1009
8625 char* tmpPtr
; int tmpSize
;
8626 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8627 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8630 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8632 _arg1
= new wxString(tmpPtr
, tmpSize
);
8634 if (!PyString_Check(_obj1
)) {
8635 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8638 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8642 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8643 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8645 wxPyEndAllowThreads(__tstate
);
8646 if (PyErr_Occurred()) return NULL
;
8647 } _resultobj
= Py_BuildValue("i",_result
);
8655 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8656 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8657 PyObject
* _resultobj
;
8659 PyObject
* _argo0
= 0;
8660 char *_kwnames
[] = { "self", NULL
};
8663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8673 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8674 wxDC_StartPage(_arg0
);
8676 wxPyEndAllowThreads(__tstate
);
8677 if (PyErr_Occurred()) return NULL
;
8678 } Py_INCREF(Py_None
);
8679 _resultobj
= Py_None
;
8683 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8684 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8685 PyObject
* _resultobj
;
8690 int _arg4
= (int ) FALSE
;
8691 PyObject
* _argo0
= 0;
8692 PyObject
* _argo1
= 0;
8693 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
8696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
8699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8706 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8707 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8708 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8713 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8714 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
8716 wxPyEndAllowThreads(__tstate
);
8717 if (PyErr_Occurred()) return NULL
;
8718 } Py_INCREF(Py_None
);
8719 _resultobj
= Py_None
;
8723 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8724 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8725 PyObject
* _resultobj
;
8728 PyObject
* _argo0
= 0;
8729 char *_kwnames
[] = { "self", NULL
};
8732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
8735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8743 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
8745 wxPyEndAllowThreads(__tstate
);
8746 if (PyErr_Occurred()) return NULL
;
8747 } _resultobj
= Py_BuildValue("i",_result
);
8751 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8752 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8753 PyObject
* _resultobj
;
8756 PyObject
* _argo0
= 0;
8757 char *_kwnames
[] = { "self", NULL
};
8760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
8763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8770 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8771 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
8773 wxPyEndAllowThreads(__tstate
);
8774 if (PyErr_Occurred()) return NULL
;
8775 } _resultobj
= Py_BuildValue("i",_result
);
8779 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8780 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8781 PyObject
* _resultobj
;
8784 PyObject
* _argo0
= 0;
8785 char *_kwnames
[] = { "self", NULL
};
8788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
8791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8798 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8799 _result
= (int )wxDC_GetDepth(_arg0
);
8801 wxPyEndAllowThreads(__tstate
);
8802 if (PyErr_Occurred()) return NULL
;
8803 } _resultobj
= Py_BuildValue("i",_result
);
8807 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8808 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8809 PyObject
* _resultobj
;
8812 PyObject
* _argo0
= 0;
8813 char *_kwnames
[] = { "self", NULL
};
8817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
8820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8828 _result
= new wxSize (wxDC_GetPPI(_arg0
));
8830 wxPyEndAllowThreads(__tstate
);
8831 if (PyErr_Occurred()) return NULL
;
8832 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8833 _resultobj
= Py_BuildValue("s",_ptemp
);
8837 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8838 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8839 PyObject
* _resultobj
;
8845 PyObject
* _argo0
= 0;
8846 char *_kwnames
[] = { "self", NULL
};
8855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
8858 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8859 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8865 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8866 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8868 wxPyEndAllowThreads(__tstate
);
8869 if (PyErr_Occurred()) return NULL
;
8870 } Py_INCREF(Py_None
);
8871 _resultobj
= Py_None
;
8874 o
= PyInt_FromLong((long) (*_arg1
));
8875 _resultobj
= t_output_helper(_resultobj
, o
);
8879 o
= PyInt_FromLong((long) (*_arg2
));
8880 _resultobj
= t_output_helper(_resultobj
, o
);
8885 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8886 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8887 PyObject
* _resultobj
;
8891 PyObject
* _argo0
= 0;
8892 char *_kwnames
[] = { "self","x","y", NULL
};
8895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8905 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8906 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8908 wxPyEndAllowThreads(__tstate
);
8909 if (PyErr_Occurred()) return NULL
;
8910 } Py_INCREF(Py_None
);
8911 _resultobj
= Py_None
;
8915 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8916 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8917 PyObject
* _resultobj
;
8923 PyObject
* _argo0
= 0;
8924 char *_kwnames
[] = { "self", NULL
};
8933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
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_GetDeviceOrigin. Expected _wxDC_p.");
8943 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8944 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8946 wxPyEndAllowThreads(__tstate
);
8947 if (PyErr_Occurred()) return NULL
;
8948 } Py_INCREF(Py_None
);
8949 _resultobj
= Py_None
;
8952 o
= PyInt_FromLong((long) (*_arg1
));
8953 _resultobj
= t_output_helper(_resultobj
, o
);
8957 o
= PyInt_FromLong((long) (*_arg2
));
8958 _resultobj
= t_output_helper(_resultobj
, o
);
8963 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8964 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8965 PyObject
* _resultobj
;
8969 PyObject
* _argo0
= 0;
8972 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
8975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
8978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8984 _arg1
= (bool ) tempbool1
;
8985 _arg2
= (bool ) tempbool2
;
8987 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8988 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
8990 wxPyEndAllowThreads(__tstate
);
8991 if (PyErr_Occurred()) return NULL
;
8992 } Py_INCREF(Py_None
);
8993 _resultobj
= Py_None
;
8997 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
8998 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8999 PyObject
* _resultobj
;
9003 PyObject
* _argo0
= 0;
9004 char *_kwnames
[] = { "self","x","y", NULL
};
9007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9017 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9018 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
9020 wxPyEndAllowThreads(__tstate
);
9021 if (PyErr_Occurred()) return NULL
;
9022 } Py_INCREF(Py_None
);
9023 _resultobj
= Py_None
;
9027 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9028 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9029 PyObject
* _resultobj
;
9031 PyObject
* _argo0
= 0;
9032 char *_kwnames
[] = { "self", NULL
};
9035 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
9038 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9039 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9045 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9046 wxDC_ResetBoundingBox(_arg0
);
9048 wxPyEndAllowThreads(__tstate
);
9049 if (PyErr_Occurred()) return NULL
;
9050 } Py_INCREF(Py_None
);
9051 _resultobj
= Py_None
;
9055 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9056 PyObject
* _resultobj
;
9066 PyObject
* _argo0
= 0;
9067 char *_kwnames
[] = { "self", NULL
};
9082 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
9085 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9086 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9087 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9092 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9093 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9095 wxPyEndAllowThreads(__tstate
);
9096 if (PyErr_Occurred()) return NULL
;
9097 } Py_INCREF(Py_None
);
9098 _resultobj
= Py_None
;
9101 o
= PyInt_FromLong((long) (*_arg1
));
9102 _resultobj
= t_output_helper(_resultobj
, o
);
9106 o
= PyInt_FromLong((long) (*_arg2
));
9107 _resultobj
= t_output_helper(_resultobj
, o
);
9111 o
= PyInt_FromLong((long) (*_arg3
));
9112 _resultobj
= t_output_helper(_resultobj
, o
);
9116 o
= PyInt_FromLong((long) (*_arg4
));
9117 _resultobj
= t_output_helper(_resultobj
, o
);
9122 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
9123 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
9124 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9132 if (!PySequence_Check(pyPoints
)) {
9135 if (!PySequence_Check(pyPens
)) {
9138 numObjs
= PySequence_Length(pyPoints
);
9139 numPens
= PySequence_Length(pyPens
);
9141 for (i
= 0; i
< numObjs
; i
++) {
9145 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9148 obj
= PySequence_GetItem(pyPens
, i
);
9150 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9161 // Get the point coordinants
9163 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
9166 obj
= PySequence_GetItem(pyPoints
, i
);
9168 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
9174 // Now draw the point
9175 self
->DrawPoint(x1
, y1
);
9185 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9188 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
9191 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9192 PyObject
* _resultobj
;
9197 PyObject
* _argo0
= 0;
9198 PyObject
* _obj1
= 0;
9199 PyObject
* _obj2
= 0;
9200 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
9203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9206 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9207 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9208 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9220 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
9222 wxPyEndAllowThreads(__tstate
);
9223 if (PyErr_Occurred()) return NULL
;
9225 _resultobj
= _result
;
9230 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
9231 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
9232 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9240 if (!PySequence_Check(pyLines
)) {
9243 if (!PySequence_Check(pyPens
)) {
9246 numObjs
= PySequence_Length(pyLines
);
9247 numPens
= PySequence_Length(pyPens
);
9249 for (i
= 0; i
< numObjs
; i
++) {
9253 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9256 obj
= PySequence_GetItem(pyPens
, i
);
9258 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9269 // Get the line coordinants
9271 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
9274 obj
= PySequence_GetItem(pyLines
, i
);
9276 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
9282 // Now draw the line
9283 self
->DrawLine(x1
, y1
, x2
, y2
);
9293 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9296 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9299 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9300 PyObject
* _resultobj
;
9305 PyObject
* _argo0
= 0;
9306 PyObject
* _obj1
= 0;
9307 PyObject
* _obj2
= 0;
9308 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
9311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9328 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
9330 wxPyEndAllowThreads(__tstate
);
9331 if (PyErr_Occurred()) return NULL
;
9333 _resultobj
= _result
;
9338 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
9341 src
= (wxMemoryDC
*) ptr
;
9342 dest
= (wxDC
*) src
;
9343 return (void *) dest
;
9346 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
9349 src
= (wxMemoryDC
*) ptr
;
9350 dest
= (wxObject
*) src
;
9351 return (void *) dest
;
9354 #define new_wxMemoryDC() (new wxMemoryDC())
9355 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9356 PyObject
* _resultobj
;
9357 wxMemoryDC
* _result
;
9358 char *_kwnames
[] = { NULL
};
9362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
9365 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9366 _result
= (wxMemoryDC
*)new_wxMemoryDC();
9368 wxPyEndAllowThreads(__tstate
);
9369 if (PyErr_Occurred()) return NULL
;
9371 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
9372 _resultobj
= Py_BuildValue("s",_ptemp
);
9375 _resultobj
= Py_None
;
9380 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9381 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9382 PyObject
* _resultobj
;
9385 PyObject
* _argo0
= 0;
9386 PyObject
* _argo1
= 0;
9387 char *_kwnames
[] = { "self","bitmap", NULL
};
9390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
9393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
9395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9400 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9401 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9408 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
9410 wxPyEndAllowThreads(__tstate
);
9411 if (PyErr_Occurred()) return NULL
;
9412 } Py_INCREF(Py_None
);
9413 _resultobj
= Py_None
;
9417 static void *SwigwxScreenDCTowxDC(void *ptr
) {
9420 src
= (wxScreenDC
*) ptr
;
9421 dest
= (wxDC
*) src
;
9422 return (void *) dest
;
9425 static void *SwigwxScreenDCTowxObject(void *ptr
) {
9428 src
= (wxScreenDC
*) ptr
;
9429 dest
= (wxObject
*) src
;
9430 return (void *) dest
;
9433 #define new_wxScreenDC() (new wxScreenDC())
9434 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9435 PyObject
* _resultobj
;
9436 wxScreenDC
* _result
;
9437 char *_kwnames
[] = { NULL
};
9441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
9444 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9445 _result
= (wxScreenDC
*)new_wxScreenDC();
9447 wxPyEndAllowThreads(__tstate
);
9448 if (PyErr_Occurred()) return NULL
;
9450 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
9451 _resultobj
= Py_BuildValue("s",_ptemp
);
9454 _resultobj
= Py_None
;
9459 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9460 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9461 PyObject
* _resultobj
;
9465 PyObject
* _argo0
= 0;
9466 PyObject
* _argo1
= 0;
9467 char *_kwnames
[] = { "self","window", NULL
};
9470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
9473 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9474 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9480 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9481 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
9482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9488 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
9490 wxPyEndAllowThreads(__tstate
);
9491 if (PyErr_Occurred()) return NULL
;
9492 } _resultobj
= Py_BuildValue("i",_result
);
9496 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9497 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9498 PyObject
* _resultobj
;
9501 wxRect
* _arg1
= (wxRect
*) NULL
;
9502 PyObject
* _argo0
= 0;
9504 PyObject
* _obj1
= 0;
9505 char *_kwnames
[] = { "self","rect", NULL
};
9508 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
9511 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9512 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9513 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9520 if (! wxRect_helper(_obj1
, &_arg1
))
9524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9525 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
9527 wxPyEndAllowThreads(__tstate
);
9528 if (PyErr_Occurred()) return NULL
;
9529 } _resultobj
= Py_BuildValue("i",_result
);
9533 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9534 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9535 PyObject
* _resultobj
;
9538 PyObject
* _argo0
= 0;
9539 char *_kwnames
[] = { "self", NULL
};
9542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
9545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9552 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9553 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
9555 wxPyEndAllowThreads(__tstate
);
9556 if (PyErr_Occurred()) return NULL
;
9557 } _resultobj
= Py_BuildValue("i",_result
);
9561 static void *SwigwxClientDCTowxDC(void *ptr
) {
9564 src
= (wxClientDC
*) ptr
;
9565 dest
= (wxDC
*) src
;
9566 return (void *) dest
;
9569 static void *SwigwxClientDCTowxObject(void *ptr
) {
9572 src
= (wxClientDC
*) ptr
;
9573 dest
= (wxObject
*) src
;
9574 return (void *) dest
;
9577 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9578 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9579 PyObject
* _resultobj
;
9580 wxClientDC
* _result
;
9582 PyObject
* _argo0
= 0;
9583 char *_kwnames
[] = { "win", NULL
};
9587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
9590 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9591 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9597 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9598 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
9600 wxPyEndAllowThreads(__tstate
);
9601 if (PyErr_Occurred()) return NULL
;
9603 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
9604 _resultobj
= Py_BuildValue("s",_ptemp
);
9607 _resultobj
= Py_None
;
9612 static void *SwigwxPaintDCTowxDC(void *ptr
) {
9615 src
= (wxPaintDC
*) ptr
;
9616 dest
= (wxDC
*) src
;
9617 return (void *) dest
;
9620 static void *SwigwxPaintDCTowxObject(void *ptr
) {
9623 src
= (wxPaintDC
*) ptr
;
9624 dest
= (wxObject
*) src
;
9625 return (void *) dest
;
9628 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9629 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9630 PyObject
* _resultobj
;
9631 wxPaintDC
* _result
;
9633 PyObject
* _argo0
= 0;
9634 char *_kwnames
[] = { "win", NULL
};
9638 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
9641 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9642 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9643 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9648 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9649 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
9651 wxPyEndAllowThreads(__tstate
);
9652 if (PyErr_Occurred()) return NULL
;
9654 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
9655 _resultobj
= Py_BuildValue("s",_ptemp
);
9658 _resultobj
= Py_None
;
9663 static void *SwigwxWindowDCTowxDC(void *ptr
) {
9666 src
= (wxWindowDC
*) ptr
;
9667 dest
= (wxDC
*) src
;
9668 return (void *) dest
;
9671 static void *SwigwxWindowDCTowxObject(void *ptr
) {
9674 src
= (wxWindowDC
*) ptr
;
9675 dest
= (wxObject
*) src
;
9676 return (void *) dest
;
9679 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
9680 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9681 PyObject
* _resultobj
;
9682 wxWindowDC
* _result
;
9684 PyObject
* _argo0
= 0;
9685 char *_kwnames
[] = { "win", NULL
};
9689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
9692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9699 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9700 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
9702 wxPyEndAllowThreads(__tstate
);
9703 if (PyErr_Occurred()) return NULL
;
9705 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
9706 _resultobj
= Py_BuildValue("s",_ptemp
);
9709 _resultobj
= Py_None
;
9714 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
9717 src
= (wxPalette
*) ptr
;
9718 dest
= (wxGDIObject
*) src
;
9719 return (void *) dest
;
9722 static void *SwigwxPaletteTowxObject(void *ptr
) {
9725 src
= (wxPalette
*) ptr
;
9726 dest
= (wxObject
*) src
;
9727 return (void *) dest
;
9730 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9731 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9732 PyObject
* _resultobj
;
9733 wxPalette
* _result
;
9738 PyObject
* _obj1
= 0;
9739 PyObject
* _obj2
= 0;
9740 PyObject
* _obj3
= 0;
9741 char *_kwnames
[] = { "choices","choices","choices", NULL
};
9745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
9748 _arg1
= byte_LIST_helper(_obj1
);
9749 if (_arg1
== NULL
) {
9754 _arg2
= byte_LIST_helper(_obj2
);
9755 if (_arg2
== NULL
) {
9761 _arg3
= byte_LIST_helper(_obj3
);
9762 if (_arg3
== NULL
) {
9768 _arg0
= PyList_Size(_obj1
);
9775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9776 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
9778 wxPyEndAllowThreads(__tstate
);
9779 if (PyErr_Occurred()) return NULL
;
9781 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
9782 _resultobj
= Py_BuildValue("s",_ptemp
);
9785 _resultobj
= Py_None
;
9799 #define delete_wxPalette(_swigobj) (delete _swigobj)
9800 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9801 PyObject
* _resultobj
;
9803 PyObject
* _argo0
= 0;
9804 char *_kwnames
[] = { "self", NULL
};
9807 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
9810 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9811 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9812 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
9817 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9818 delete_wxPalette(_arg0
);
9820 wxPyEndAllowThreads(__tstate
);
9821 if (PyErr_Occurred()) return NULL
;
9822 } Py_INCREF(Py_None
);
9823 _resultobj
= Py_None
;
9827 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
9828 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9829 PyObject
* _resultobj
;
9835 PyObject
* _argo0
= 0;
9836 char *_kwnames
[] = { "self","red","green","blue", NULL
};
9839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
9842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
9849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9850 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
9852 wxPyEndAllowThreads(__tstate
);
9853 if (PyErr_Occurred()) return NULL
;
9854 } _resultobj
= Py_BuildValue("i",_result
);
9858 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9859 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9860 PyObject
* _resultobj
;
9867 PyObject
* _argo0
= 0;
9868 PyObject
* _argo2
= 0;
9869 PyObject
* _argo3
= 0;
9870 PyObject
* _argo4
= 0;
9871 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
9874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
9877 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9878 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
9884 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9885 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
9886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
9891 if (_argo3
== Py_None
) { _arg3
= NULL
; }
9892 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
9893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
9898 if (_argo4
== Py_None
) { _arg4
= NULL
; }
9899 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
9900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
9905 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9906 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9908 wxPyEndAllowThreads(__tstate
);
9909 if (PyErr_Occurred()) return NULL
;
9910 } _resultobj
= Py_BuildValue("i",_result
);
9914 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
9915 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9916 PyObject
* _resultobj
;
9919 PyObject
* _argo0
= 0;
9920 char *_kwnames
[] = { "self", NULL
};
9923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
9926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
9933 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9934 _result
= (bool )wxPalette_Ok(_arg0
);
9936 wxPyEndAllowThreads(__tstate
);
9937 if (PyErr_Occurred()) return NULL
;
9938 } _resultobj
= Py_BuildValue("i",_result
);
9942 static void *SwigwxImageListTowxObject(void *ptr
) {
9945 src
= (wxImageList
*) ptr
;
9946 dest
= (wxObject
*) src
;
9947 return (void *) dest
;
9950 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9951 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9952 PyObject
* _resultobj
;
9953 wxImageList
* _result
;
9956 int _arg2
= (int ) TRUE
;
9957 int _arg3
= (int ) 1;
9958 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
9962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9965 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9966 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
9968 wxPyEndAllowThreads(__tstate
);
9969 if (PyErr_Occurred()) return NULL
;
9971 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
9972 _resultobj
= Py_BuildValue("s",_ptemp
);
9975 _resultobj
= Py_None
;
9980 #define delete_wxImageList(_swigobj) (delete _swigobj)
9981 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9982 PyObject
* _resultobj
;
9983 wxImageList
* _arg0
;
9984 PyObject
* _argo0
= 0;
9985 char *_kwnames
[] = { "self", NULL
};
9988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
9991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
9998 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9999 delete_wxImageList(_arg0
);
10001 wxPyEndAllowThreads(__tstate
);
10002 if (PyErr_Occurred()) return NULL
;
10003 } Py_INCREF(Py_None
);
10004 _resultobj
= Py_None
;
10008 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10009 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10010 PyObject
* _resultobj
;
10012 wxImageList
* _arg0
;
10014 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10015 PyObject
* _argo0
= 0;
10016 PyObject
* _argo1
= 0;
10017 PyObject
* _argo2
= 0;
10018 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
10021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10031 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10032 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10033 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10038 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10039 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10045 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10046 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
10048 wxPyEndAllowThreads(__tstate
);
10049 if (PyErr_Occurred()) return NULL
;
10050 } _resultobj
= Py_BuildValue("i",_result
);
10054 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10055 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10056 PyObject
* _resultobj
;
10058 wxImageList
* _arg0
;
10061 PyObject
* _argo0
= 0;
10062 PyObject
* _argo1
= 0;
10064 PyObject
* _obj2
= 0;
10065 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
10068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
10071 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10072 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10073 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10078 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10079 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10086 if (! wxColour_helper(_obj2
, &_arg2
))
10090 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10091 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
10093 wxPyEndAllowThreads(__tstate
);
10094 if (PyErr_Occurred()) return NULL
;
10095 } _resultobj
= Py_BuildValue("i",_result
);
10099 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10100 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10101 PyObject
* _resultobj
;
10103 wxImageList
* _arg0
;
10105 PyObject
* _argo0
= 0;
10106 PyObject
* _argo1
= 0;
10107 char *_kwnames
[] = { "self","icon", NULL
};
10110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
10113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10120 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10121 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
10122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10128 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
10130 wxPyEndAllowThreads(__tstate
);
10131 if (PyErr_Occurred()) return NULL
;
10132 } _resultobj
= Py_BuildValue("i",_result
);
10136 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
10137 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10138 PyObject
* _resultobj
;
10140 wxImageList
* _arg0
;
10143 PyObject
* _argo0
= 0;
10144 PyObject
* _argo2
= 0;
10145 char *_kwnames
[] = { "self","index","bitmap", NULL
};
10148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
10151 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10152 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10153 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10158 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10159 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10165 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10166 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
10168 wxPyEndAllowThreads(__tstate
);
10169 if (PyErr_Occurred()) return NULL
;
10170 } _resultobj
= Py_BuildValue("i",_result
);
10174 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10175 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10176 PyObject
* _resultobj
;
10178 wxImageList
* _arg0
;
10183 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
10184 bool _arg6
= (bool ) FALSE
;
10185 PyObject
* _argo0
= 0;
10186 PyObject
* _argo2
= 0;
10187 int tempbool6
= (int) FALSE
;
10188 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
10191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
10194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10201 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10202 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
10203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10207 _arg6
= (bool ) tempbool6
;
10209 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10210 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
10212 wxPyEndAllowThreads(__tstate
);
10213 if (PyErr_Occurred()) return NULL
;
10214 } _resultobj
= Py_BuildValue("i",_result
);
10218 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10219 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10220 PyObject
* _resultobj
;
10222 wxImageList
* _arg0
;
10223 PyObject
* _argo0
= 0;
10224 char *_kwnames
[] = { "self", NULL
};
10227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
10230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10237 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10238 _result
= (int )wxImageList_GetImageCount(_arg0
);
10240 wxPyEndAllowThreads(__tstate
);
10241 if (PyErr_Occurred()) return NULL
;
10242 } _resultobj
= Py_BuildValue("i",_result
);
10246 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10247 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10248 PyObject
* _resultobj
;
10250 wxImageList
* _arg0
;
10252 PyObject
* _argo0
= 0;
10253 char *_kwnames
[] = { "self","index", NULL
};
10256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
10259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10266 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10267 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
10269 wxPyEndAllowThreads(__tstate
);
10270 if (PyErr_Occurred()) return NULL
;
10271 } _resultobj
= Py_BuildValue("i",_result
);
10275 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
10276 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10277 PyObject
* _resultobj
;
10279 wxImageList
* _arg0
;
10280 PyObject
* _argo0
= 0;
10281 char *_kwnames
[] = { "self", NULL
};
10284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
10287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10295 _result
= (bool )wxImageList_RemoveAll(_arg0
);
10297 wxPyEndAllowThreads(__tstate
);
10298 if (PyErr_Occurred()) return NULL
;
10299 } _resultobj
= Py_BuildValue("i",_result
);
10303 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10304 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10305 PyObject
* _resultobj
;
10306 wxImageList
* _arg0
;
10312 PyObject
* _argo0
= 0;
10313 char *_kwnames
[] = { "self","index", NULL
};
10322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
10325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10332 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10333 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
10335 wxPyEndAllowThreads(__tstate
);
10336 if (PyErr_Occurred()) return NULL
;
10337 } Py_INCREF(Py_None
);
10338 _resultobj
= Py_None
;
10341 o
= PyInt_FromLong((long) (*_arg2
));
10342 _resultobj
= t_output_helper(_resultobj
, o
);
10346 o
= PyInt_FromLong((long) (*_arg3
));
10347 _resultobj
= t_output_helper(_resultobj
, o
);
10352 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
10355 src
= (wxRegion
*) ptr
;
10356 dest
= (wxGDIObject
*) src
;
10357 return (void *) dest
;
10360 static void *SwigwxRegionTowxObject(void *ptr
) {
10363 src
= (wxRegion
*) ptr
;
10364 dest
= (wxObject
*) src
;
10365 return (void *) dest
;
10368 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10369 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10370 PyObject
* _resultobj
;
10371 wxRegion
* _result
;
10372 long _arg0
= (long ) 0;
10373 long _arg1
= (long ) 0;
10374 long _arg2
= (long ) 0;
10375 long _arg3
= (long ) 0;
10376 char *_kwnames
[] = { "x","y","width","height", NULL
};
10380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10383 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10384 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
10386 wxPyEndAllowThreads(__tstate
);
10387 if (PyErr_Occurred()) return NULL
;
10389 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
10390 _resultobj
= Py_BuildValue("s",_ptemp
);
10392 Py_INCREF(Py_None
);
10393 _resultobj
= Py_None
;
10398 #define delete_wxRegion(_swigobj) (delete _swigobj)
10399 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10400 PyObject
* _resultobj
;
10402 PyObject
* _argo0
= 0;
10403 char *_kwnames
[] = { "self", NULL
};
10406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
10409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10416 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10417 delete_wxRegion(_arg0
);
10419 wxPyEndAllowThreads(__tstate
);
10420 if (PyErr_Occurred()) return NULL
;
10421 } Py_INCREF(Py_None
);
10422 _resultobj
= Py_None
;
10426 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10427 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10428 PyObject
* _resultobj
;
10430 PyObject
* _argo0
= 0;
10431 char *_kwnames
[] = { "self", NULL
};
10434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
10437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10444 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10445 wxRegion_Clear(_arg0
);
10447 wxPyEndAllowThreads(__tstate
);
10448 if (PyErr_Occurred()) return NULL
;
10449 } Py_INCREF(Py_None
);
10450 _resultobj
= Py_None
;
10454 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10455 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10456 PyObject
* _resultobj
;
10457 wxRegionContain _result
;
10461 PyObject
* _argo0
= 0;
10462 char *_kwnames
[] = { "self","x","y", NULL
};
10465 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10468 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10469 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10475 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10476 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
10478 wxPyEndAllowThreads(__tstate
);
10479 if (PyErr_Occurred()) return NULL
;
10480 } _resultobj
= Py_BuildValue("i",_result
);
10484 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10485 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10486 PyObject
* _resultobj
;
10487 wxRegionContain _result
;
10490 PyObject
* _argo0
= 0;
10492 PyObject
* _obj1
= 0;
10493 char *_kwnames
[] = { "self","pt", NULL
};
10496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
10499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10507 if (! wxPoint_helper(_obj1
, &_arg1
))
10511 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10512 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
10514 wxPyEndAllowThreads(__tstate
);
10515 if (PyErr_Occurred()) return NULL
;
10516 } _resultobj
= Py_BuildValue("i",_result
);
10520 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10521 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10522 PyObject
* _resultobj
;
10523 wxRegionContain _result
;
10526 PyObject
* _argo0
= 0;
10528 PyObject
* _obj1
= 0;
10529 char *_kwnames
[] = { "self","rect", NULL
};
10532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
10535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10543 if (! wxRect_helper(_obj1
, &_arg1
))
10547 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10548 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
10550 wxPyEndAllowThreads(__tstate
);
10551 if (PyErr_Occurred()) return NULL
;
10552 } _resultobj
= Py_BuildValue("i",_result
);
10556 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10557 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10558 PyObject
* _resultobj
;
10559 wxRegionContain _result
;
10565 PyObject
* _argo0
= 0;
10566 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
10569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10580 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10582 wxPyEndAllowThreads(__tstate
);
10583 if (PyErr_Occurred()) return NULL
;
10584 } _resultobj
= Py_BuildValue("i",_result
);
10588 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10589 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10590 PyObject
* _resultobj
;
10593 PyObject
* _argo0
= 0;
10594 char *_kwnames
[] = { "self", NULL
};
10598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
10601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10608 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10609 _result
= new wxRect (wxRegion_GetBox(_arg0
));
10611 wxPyEndAllowThreads(__tstate
);
10612 if (PyErr_Occurred()) return NULL
;
10613 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10614 _resultobj
= Py_BuildValue("s",_ptemp
);
10618 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10619 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10620 PyObject
* _resultobj
;
10627 PyObject
* _argo0
= 0;
10628 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10641 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10642 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10644 wxPyEndAllowThreads(__tstate
);
10645 if (PyErr_Occurred()) return NULL
;
10646 } _resultobj
= Py_BuildValue("i",_result
);
10650 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10651 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10652 PyObject
* _resultobj
;
10656 PyObject
* _argo0
= 0;
10658 PyObject
* _obj1
= 0;
10659 char *_kwnames
[] = { "self","rect", NULL
};
10662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
10665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
10673 if (! wxRect_helper(_obj1
, &_arg1
))
10677 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10678 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
10680 wxPyEndAllowThreads(__tstate
);
10681 if (PyErr_Occurred()) return NULL
;
10682 } _resultobj
= Py_BuildValue("i",_result
);
10686 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10687 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10688 PyObject
* _resultobj
;
10692 PyObject
* _argo0
= 0;
10693 PyObject
* _argo1
= 0;
10694 char *_kwnames
[] = { "self","region", NULL
};
10697 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
10700 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10701 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10702 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10707 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10708 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10709 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10714 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10715 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
10717 wxPyEndAllowThreads(__tstate
);
10718 if (PyErr_Occurred()) return NULL
;
10719 } _resultobj
= Py_BuildValue("i",_result
);
10723 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10724 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10725 PyObject
* _resultobj
;
10728 PyObject
* _argo0
= 0;
10729 char *_kwnames
[] = { "self", NULL
};
10732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
10735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
10742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10743 _result
= (bool )wxRegion_IsEmpty(_arg0
);
10745 wxPyEndAllowThreads(__tstate
);
10746 if (PyErr_Occurred()) return NULL
;
10747 } _resultobj
= Py_BuildValue("i",_result
);
10751 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10752 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10753 PyObject
* _resultobj
;
10760 PyObject
* _argo0
= 0;
10761 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
10774 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10775 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10777 wxPyEndAllowThreads(__tstate
);
10778 if (PyErr_Occurred()) return NULL
;
10779 } _resultobj
= Py_BuildValue("i",_result
);
10783 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10784 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10785 PyObject
* _resultobj
;
10789 PyObject
* _argo0
= 0;
10791 PyObject
* _obj1
= 0;
10792 char *_kwnames
[] = { "self","rect", NULL
};
10795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
10798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
10806 if (! wxRect_helper(_obj1
, &_arg1
))
10810 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10811 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
10813 wxPyEndAllowThreads(__tstate
);
10814 if (PyErr_Occurred()) return NULL
;
10815 } _resultobj
= Py_BuildValue("i",_result
);
10819 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10820 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10821 PyObject
* _resultobj
;
10825 PyObject
* _argo0
= 0;
10826 PyObject
* _argo1
= 0;
10827 char *_kwnames
[] = { "self","region", NULL
};
10830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
10833 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10834 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10840 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10841 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10842 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10847 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10848 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
10850 wxPyEndAllowThreads(__tstate
);
10851 if (PyErr_Occurred()) return NULL
;
10852 } _resultobj
= Py_BuildValue("i",_result
);
10856 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10857 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10858 PyObject
* _resultobj
;
10865 PyObject
* _argo0
= 0;
10866 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
10879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10880 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10882 wxPyEndAllowThreads(__tstate
);
10883 if (PyErr_Occurred()) return NULL
;
10884 } _resultobj
= Py_BuildValue("i",_result
);
10888 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10889 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10890 PyObject
* _resultobj
;
10894 PyObject
* _argo0
= 0;
10896 PyObject
* _obj1
= 0;
10897 char *_kwnames
[] = { "self","rect", NULL
};
10900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
10903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
10911 if (! wxRect_helper(_obj1
, &_arg1
))
10915 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10916 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
10918 wxPyEndAllowThreads(__tstate
);
10919 if (PyErr_Occurred()) return NULL
;
10920 } _resultobj
= Py_BuildValue("i",_result
);
10924 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10925 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10926 PyObject
* _resultobj
;
10930 PyObject
* _argo0
= 0;
10931 PyObject
* _argo1
= 0;
10932 char *_kwnames
[] = { "self","region", NULL
};
10935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
10938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10945 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10946 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10952 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10953 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
10955 wxPyEndAllowThreads(__tstate
);
10956 if (PyErr_Occurred()) return NULL
;
10957 } _resultobj
= Py_BuildValue("i",_result
);
10961 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10962 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10963 PyObject
* _resultobj
;
10970 PyObject
* _argo0
= 0;
10971 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
10984 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10985 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10987 wxPyEndAllowThreads(__tstate
);
10988 if (PyErr_Occurred()) return NULL
;
10989 } _resultobj
= Py_BuildValue("i",_result
);
10993 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10994 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10995 PyObject
* _resultobj
;
10999 PyObject
* _argo0
= 0;
11001 PyObject
* _obj1
= 0;
11002 char *_kwnames
[] = { "self","rect", NULL
};
11005 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
11008 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11009 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11010 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11016 if (! wxRect_helper(_obj1
, &_arg1
))
11020 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11021 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
11023 wxPyEndAllowThreads(__tstate
);
11024 if (PyErr_Occurred()) return NULL
;
11025 } _resultobj
= Py_BuildValue("i",_result
);
11029 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11030 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11031 PyObject
* _resultobj
;
11035 PyObject
* _argo0
= 0;
11036 PyObject
* _argo1
= 0;
11037 char *_kwnames
[] = { "self","region", NULL
};
11040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
11043 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11044 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11050 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11051 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11057 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11058 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
11060 wxPyEndAllowThreads(__tstate
);
11061 if (PyErr_Occurred()) return NULL
;
11062 } _resultobj
= Py_BuildValue("i",_result
);
11066 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
11067 wxRegionIterator
*src
;
11069 src
= (wxRegionIterator
*) ptr
;
11070 dest
= (wxObject
*) src
;
11071 return (void *) dest
;
11074 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11075 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11076 PyObject
* _resultobj
;
11077 wxRegionIterator
* _result
;
11079 PyObject
* _argo0
= 0;
11080 char *_kwnames
[] = { "region", NULL
};
11084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
11087 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11088 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11094 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11095 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
11097 wxPyEndAllowThreads(__tstate
);
11098 if (PyErr_Occurred()) return NULL
;
11100 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
11101 _resultobj
= Py_BuildValue("s",_ptemp
);
11103 Py_INCREF(Py_None
);
11104 _resultobj
= Py_None
;
11109 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11110 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11111 PyObject
* _resultobj
;
11112 wxRegionIterator
* _arg0
;
11113 PyObject
* _argo0
= 0;
11114 char *_kwnames
[] = { "self", NULL
};
11117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
11120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11128 delete_wxRegionIterator(_arg0
);
11130 wxPyEndAllowThreads(__tstate
);
11131 if (PyErr_Occurred()) return NULL
;
11132 } Py_INCREF(Py_None
);
11133 _resultobj
= Py_None
;
11137 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11138 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11139 PyObject
* _resultobj
;
11141 wxRegionIterator
* _arg0
;
11142 PyObject
* _argo0
= 0;
11143 char *_kwnames
[] = { "self", NULL
};
11146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
11149 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11150 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11156 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11157 _result
= (long )wxRegionIterator_GetX(_arg0
);
11159 wxPyEndAllowThreads(__tstate
);
11160 if (PyErr_Occurred()) return NULL
;
11161 } _resultobj
= Py_BuildValue("l",_result
);
11165 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11166 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11167 PyObject
* _resultobj
;
11169 wxRegionIterator
* _arg0
;
11170 PyObject
* _argo0
= 0;
11171 char *_kwnames
[] = { "self", NULL
};
11174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
11177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11185 _result
= (long )wxRegionIterator_GetY(_arg0
);
11187 wxPyEndAllowThreads(__tstate
);
11188 if (PyErr_Occurred()) return NULL
;
11189 } _resultobj
= Py_BuildValue("l",_result
);
11193 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11194 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11195 PyObject
* _resultobj
;
11197 wxRegionIterator
* _arg0
;
11198 PyObject
* _argo0
= 0;
11199 char *_kwnames
[] = { "self", NULL
};
11202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
11205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11213 _result
= (long )wxRegionIterator_GetW(_arg0
);
11215 wxPyEndAllowThreads(__tstate
);
11216 if (PyErr_Occurred()) return NULL
;
11217 } _resultobj
= Py_BuildValue("l",_result
);
11221 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11222 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11223 PyObject
* _resultobj
;
11225 wxRegionIterator
* _arg0
;
11226 PyObject
* _argo0
= 0;
11227 char *_kwnames
[] = { "self", NULL
};
11230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
11233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11241 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
11243 wxPyEndAllowThreads(__tstate
);
11244 if (PyErr_Occurred()) return NULL
;
11245 } _resultobj
= Py_BuildValue("l",_result
);
11249 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11250 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11251 PyObject
* _resultobj
;
11253 wxRegionIterator
* _arg0
;
11254 PyObject
* _argo0
= 0;
11255 char *_kwnames
[] = { "self", NULL
};
11258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
11261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11269 _result
= (long )wxRegionIterator_GetH(_arg0
);
11271 wxPyEndAllowThreads(__tstate
);
11272 if (PyErr_Occurred()) return NULL
;
11273 } _resultobj
= Py_BuildValue("l",_result
);
11277 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11278 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11279 PyObject
* _resultobj
;
11281 wxRegionIterator
* _arg0
;
11282 PyObject
* _argo0
= 0;
11283 char *_kwnames
[] = { "self", NULL
};
11286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
11289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
11296 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11297 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
11299 wxPyEndAllowThreads(__tstate
);
11300 if (PyErr_Occurred()) return NULL
;
11301 } _resultobj
= Py_BuildValue("l",_result
);
11305 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
11306 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11307 PyObject
* _resultobj
;
11309 wxRegionIterator
* _arg0
;
11310 PyObject
* _argo0
= 0;
11311 char *_kwnames
[] = { "self", NULL
};
11315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
11318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
11325 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11326 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
11328 wxPyEndAllowThreads(__tstate
);
11329 if (PyErr_Occurred()) return NULL
;
11330 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
11331 _resultobj
= Py_BuildValue("s",_ptemp
);
11335 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11336 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11337 PyObject
* _resultobj
;
11339 wxRegionIterator
* _arg0
;
11340 PyObject
* _argo0
= 0;
11341 char *_kwnames
[] = { "self", NULL
};
11344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
11347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11355 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
11357 wxPyEndAllowThreads(__tstate
);
11358 if (PyErr_Occurred()) return NULL
;
11359 } _resultobj
= Py_BuildValue("i",_result
);
11363 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11364 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11365 PyObject
* _resultobj
;
11366 wxRegionIterator
* _arg0
;
11367 PyObject
* _argo0
= 0;
11368 char *_kwnames
[] = { "self", NULL
};
11371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
11374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11381 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11382 wxRegionIterator_Reset(_arg0
);
11384 wxPyEndAllowThreads(__tstate
);
11385 if (PyErr_Occurred()) return NULL
;
11386 } Py_INCREF(Py_None
);
11387 _resultobj
= Py_None
;
11391 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
11394 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11395 PyObject
* _resultobj
;
11396 wxRegionIterator
* _arg0
;
11397 PyObject
* _argo0
= 0;
11398 char *_kwnames
[] = { "self", NULL
};
11401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
11404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11412 wxRegionIterator_Next(_arg0
);
11414 wxPyEndAllowThreads(__tstate
);
11415 if (PyErr_Occurred()) return NULL
;
11416 } Py_INCREF(Py_None
);
11417 _resultobj
= Py_None
;
11421 static PyMethodDef gdicMethods
[] = {
11422 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
11423 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
11424 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
11425 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
11426 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11427 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
11428 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11429 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
11430 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
11431 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
11432 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11433 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11434 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
11435 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
11436 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
11437 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
11438 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
11439 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
11440 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
11441 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
11442 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
11443 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
11444 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
11445 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
11446 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
11447 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
11448 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
11449 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
11450 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
11451 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
11452 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11453 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11454 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11455 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11456 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
11457 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
11458 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
11459 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
11460 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
11461 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
11462 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
11463 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
11464 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11465 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11466 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11467 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
11468 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11469 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11470 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11471 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
11472 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
11473 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
11474 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11475 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11476 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
11477 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
11478 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
11479 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
11480 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
11481 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
11482 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11483 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11484 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11485 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
11486 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11487 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11488 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11489 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
11490 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11491 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11492 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11493 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11494 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
11495 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
11496 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11497 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11498 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11499 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
11500 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11501 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11502 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11503 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11504 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
11505 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11506 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11507 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
11508 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11509 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
11510 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11511 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11512 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11513 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
11514 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
11515 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
11516 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
11517 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
11518 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
11519 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
11520 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
11521 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11522 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11523 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11524 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11525 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11526 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
11527 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11528 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
11529 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11530 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
11531 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11532 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11533 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11534 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11535 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
11536 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
11537 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
11538 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
11539 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11540 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11541 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
11542 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
11543 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11544 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
11545 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
11546 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
11547 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11548 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
11549 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11550 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
11551 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
11552 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
11553 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
11554 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
11555 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
11556 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
11557 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
11558 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
11559 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
11560 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
11561 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
11562 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
11563 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11564 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
11565 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11566 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
11567 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11568 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
11569 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11570 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
11571 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
11572 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
11573 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11574 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11575 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11576 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11577 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11578 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11579 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11580 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11581 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11582 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11583 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
11584 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
11585 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
11586 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11587 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11588 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11589 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11590 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11591 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11592 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11593 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11594 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
11595 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11596 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11597 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11598 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11599 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11600 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
11601 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11602 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11603 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
11604 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
11605 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
11606 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
11607 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
11608 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11609 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
11610 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
11611 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
11612 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11613 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11614 { "wxFontList_GetCount", (PyCFunction
) _wrap_wxFontList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11615 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
11616 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
11617 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
11618 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11619 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11620 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
11621 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
11622 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
11623 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_SetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
11624 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11625 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11626 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11627 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11628 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11629 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11630 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11631 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11632 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
11633 { "wxFont_GetNativeFontInfoDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoDesc
, METH_VARARGS
| METH_KEYWORDS
},
11634 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11635 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11636 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11637 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11638 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11639 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11640 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11641 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11642 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11643 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11644 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
11645 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11646 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11647 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11648 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
11649 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
11650 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
11651 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
11652 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
11653 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11654 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
11655 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11656 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11657 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11658 { "wxNativeFontInfo_ToUserString", (PyCFunction
) _wrap_wxNativeFontInfo_ToUserString
, METH_VARARGS
| METH_KEYWORDS
},
11659 { "wxNativeFontInfo_FromUserString", (PyCFunction
) _wrap_wxNativeFontInfo_FromUserString
, METH_VARARGS
| METH_KEYWORDS
},
11660 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
11661 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
11662 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
11663 { "wxNativeFontInfo_Init", (PyCFunction
) _wrap_wxNativeFontInfo_Init
, METH_VARARGS
| METH_KEYWORDS
},
11664 { "new_wxNativeFontInfo", (PyCFunction
) _wrap_new_wxNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11665 { "wxNativeFontInfo_GetXFontName", (PyCFunction
) _wrap_wxNativeFontInfo_GetXFontName
, METH_VARARGS
| METH_KEYWORDS
},
11666 { "wxNativeFontInfo_FromXFontName", (PyCFunction
) _wrap_wxNativeFontInfo_FromXFontName
, METH_VARARGS
| METH_KEYWORDS
},
11667 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11668 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
11669 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11670 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11671 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11672 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11673 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11674 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11675 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11676 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11677 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11678 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11679 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11680 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
11681 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
11682 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11683 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11684 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11685 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11686 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11687 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11688 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11689 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11690 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11691 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
11692 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
11693 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11694 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
11695 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11696 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11697 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11698 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
11699 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11700 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11701 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11702 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11703 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
11704 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
11705 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
11706 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11707 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
11708 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
11709 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
11710 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11711 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11712 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11719 * This table is used by the pointer type-checker
11721 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
11722 { "_signed_long","_long",0},
11723 { "_wxPrintQuality","_wxCoord",0},
11724 { "_wxPrintQuality","_int",0},
11725 { "_wxPrintQuality","_signed_int",0},
11726 { "_wxPrintQuality","_unsigned_int",0},
11727 { "_wxPrintQuality","_wxWindowID",0},
11728 { "_wxPrintQuality","_uint",0},
11729 { "_wxPrintQuality","_EBool",0},
11730 { "_wxPrintQuality","_size_t",0},
11731 { "_wxPrintQuality","_time_t",0},
11732 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
11733 { "_byte","_unsigned_char",0},
11734 { "_long","_unsigned_long",0},
11735 { "_long","_signed_long",0},
11736 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
11737 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
11738 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
11739 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
11740 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
11741 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
11742 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
11743 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
11744 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
11745 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
11746 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
11747 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
11748 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
11749 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11750 { "_size_t","_wxCoord",0},
11751 { "_size_t","_wxPrintQuality",0},
11752 { "_size_t","_time_t",0},
11753 { "_size_t","_unsigned_int",0},
11754 { "_size_t","_int",0},
11755 { "_size_t","_wxWindowID",0},
11756 { "_size_t","_uint",0},
11757 { "_uint","_wxCoord",0},
11758 { "_uint","_wxPrintQuality",0},
11759 { "_uint","_time_t",0},
11760 { "_uint","_size_t",0},
11761 { "_uint","_unsigned_int",0},
11762 { "_uint","_int",0},
11763 { "_uint","_wxWindowID",0},
11764 { "_wxChar","_char",0},
11765 { "_char","_wxChar",0},
11766 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
11767 { "_EBool","_wxCoord",0},
11768 { "_EBool","_wxPrintQuality",0},
11769 { "_EBool","_signed_int",0},
11770 { "_EBool","_int",0},
11771 { "_EBool","_wxWindowID",0},
11772 { "_unsigned_long","_long",0},
11773 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
11774 { "_signed_int","_wxCoord",0},
11775 { "_signed_int","_wxPrintQuality",0},
11776 { "_signed_int","_EBool",0},
11777 { "_signed_int","_wxWindowID",0},
11778 { "_signed_int","_int",0},
11779 { "_WXTYPE","_short",0},
11780 { "_WXTYPE","_signed_short",0},
11781 { "_WXTYPE","_unsigned_short",0},
11782 { "_unsigned_short","_WXTYPE",0},
11783 { "_unsigned_short","_short",0},
11784 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11785 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
11786 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
11787 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
11788 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
11789 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
11790 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
11791 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
11792 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11793 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
11794 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
11795 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
11796 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
11797 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
11798 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
11799 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11800 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
11801 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
11802 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
11803 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
11804 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
11805 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
11806 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
11807 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
11808 { "_signed_short","_WXTYPE",0},
11809 { "_signed_short","_short",0},
11810 { "_unsigned_char","_byte",0},
11811 { "_unsigned_int","_wxCoord",0},
11812 { "_unsigned_int","_wxPrintQuality",0},
11813 { "_unsigned_int","_time_t",0},
11814 { "_unsigned_int","_size_t",0},
11815 { "_unsigned_int","_uint",0},
11816 { "_unsigned_int","_wxWindowID",0},
11817 { "_unsigned_int","_int",0},
11818 { "_short","_WXTYPE",0},
11819 { "_short","_unsigned_short",0},
11820 { "_short","_signed_short",0},
11821 { "_wxWindowID","_wxCoord",0},
11822 { "_wxWindowID","_wxPrintQuality",0},
11823 { "_wxWindowID","_time_t",0},
11824 { "_wxWindowID","_size_t",0},
11825 { "_wxWindowID","_EBool",0},
11826 { "_wxWindowID","_uint",0},
11827 { "_wxWindowID","_int",0},
11828 { "_wxWindowID","_signed_int",0},
11829 { "_wxWindowID","_unsigned_int",0},
11830 { "_int","_wxCoord",0},
11831 { "_int","_wxPrintQuality",0},
11832 { "_int","_time_t",0},
11833 { "_int","_size_t",0},
11834 { "_int","_EBool",0},
11835 { "_int","_uint",0},
11836 { "_int","_wxWindowID",0},
11837 { "_int","_unsigned_int",0},
11838 { "_int","_signed_int",0},
11839 { "_time_t","_wxCoord",0},
11840 { "_time_t","_wxPrintQuality",0},
11841 { "_time_t","_unsigned_int",0},
11842 { "_time_t","_int",0},
11843 { "_time_t","_wxWindowID",0},
11844 { "_time_t","_uint",0},
11845 { "_time_t","_size_t",0},
11846 { "_wxCoord","_int",0},
11847 { "_wxCoord","_signed_int",0},
11848 { "_wxCoord","_unsigned_int",0},
11849 { "_wxCoord","_wxWindowID",0},
11850 { "_wxCoord","_uint",0},
11851 { "_wxCoord","_EBool",0},
11852 { "_wxCoord","_size_t",0},
11853 { "_wxCoord","_time_t",0},
11854 { "_wxCoord","_wxPrintQuality",0},
11857 static PyObject
*SWIG_globals
;
11861 SWIGEXPORT(void) initgdic() {
11863 SWIG_globals
= SWIG_newvarlink();
11864 m
= Py_InitModule("gdic", gdicMethods
);
11865 d
= PyModule_GetDict(m
);
11866 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
11867 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
11868 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
11869 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
11870 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
11871 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
11872 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
11873 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
11874 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
11875 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
11876 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
11877 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
11878 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
11879 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
11880 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
11881 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
11882 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
11883 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
11884 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
11885 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
11886 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
11887 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
11888 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
11889 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
11890 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
11891 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
11892 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
11893 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
11894 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
11895 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
11896 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
11897 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
11898 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
11899 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
11900 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
11901 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
11902 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
11903 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
11904 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
11905 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
11906 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
11907 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
11908 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
11909 PyDict_SetItemString(d
,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932
));
11910 PyDict_SetItemString(d
,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936
));
11911 PyDict_SetItemString(d
,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949
));
11912 PyDict_SetItemString(d
,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950
));
11913 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
11914 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
11915 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
11916 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
11917 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
11918 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
11919 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
11920 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
11921 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
11922 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
11923 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
11924 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
11925 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
11926 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
11927 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
11928 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
11929 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
11930 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
11931 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
11932 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
11933 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
11934 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
11935 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
11936 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
11937 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
11938 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
11939 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
11940 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
11941 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
11942 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
11943 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
11944 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
11945 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
11946 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
11947 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
11948 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
11949 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
11950 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
11951 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
11952 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
11953 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
11954 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
11955 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
11956 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
11957 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
11958 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
11959 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
11960 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
11961 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
11962 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
11963 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
11964 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
11965 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
11966 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
11967 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
11968 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
11969 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
11970 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
11971 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
11972 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
11973 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
11974 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
11975 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
11976 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
11977 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
11978 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
11979 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
11980 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
11981 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
11982 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
11985 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
11986 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);