2 * FILE : src/msw/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/imaglist.h>
60 #include <wx/fontmap.h>
61 #include <wx/fontenc.h>
62 #include <wx/fontmap.h>
63 #include <wx/fontutil.h>
66 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
72 } else if (target
== Py_None
) {
76 if (!PyTuple_Check(target
)) {
78 target
= PyTuple_New(1);
79 PyTuple_SetItem(target
, 0, o2
);
82 PyTuple_SetItem(o3
, 0, o
);
85 target
= PySequence_Concat(o2
, o3
);
92 #if PYTHON_API_VERSION >= 1009
93 static char* wxStringErrorMsg
= "String or Unicode type required";
95 static char* wxStringErrorMsg
= "String type required";
97 // Implementations of some alternate "constructors"
99 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
100 return new wxBitmap(width
, height
, depth
);
103 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
104 char** cArray
= NULL
;
107 if (!PyList_Check(listOfStrings
)) {
108 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
111 count
= PyList_Size(listOfStrings
);
112 cArray
= new char*[count
];
114 for(int x
=0; x
<count
; x
++) {
115 // TODO: Need some validation and error checking here
116 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
122 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
123 char** cArray
= NULL
;
126 cArray
= ConvertListOfStrings(listOfStrings
);
129 bmp
= new wxBitmap(cArray
);
135 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
136 return new wxBitmap(icon
);
140 wxBitmap
* wxBitmapFromBits(char* bits
, int width
, int height
, int depth
= 1 ) {
141 return new wxBitmap(bits
, width
, height
, depth
);
146 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
147 // int width, int height, int depth = 1) {
148 // if (! PyString_Check(data)) {
149 // PyErr_SetString(PyExc_TypeError, "Expected string object");
152 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
156 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
157 return new wxMask(bitmap
, colour
);
159 // Implementations of some alternate "constructors"
160 wxIcon
* wxEmptyIcon() {
164 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
165 char** cArray
= NULL
;
168 cArray
= ConvertListOfStrings(listOfStrings
);
171 icon
= new wxIcon(cArray
);
175 // Alternate 'constructor'
176 wxCursor
* wxPyStockCursor(int id
) {
177 return new wxCursor(id
);
179 // Alternate 'constructor'
180 wxColour
* wxNamedColour(const wxString
& colorName
) {
181 return new wxColour(colorName
);
184 class wxPyPen
: public wxPen
{
186 wxPyPen(wxColour
& colour
, int width
=1, int style
=wxSOLID
)
187 : wxPen(colour
, width
, style
)
194 void SetDashes(int nb_dashes
, const wxDash
*dash
) {
197 m_dash
= new wxDash
[nb_dashes
];
198 for (int i
=0; i
<nb_dashes
; i
++) {
201 wxPen::SetDashes(nb_dashes
, m_dash
);
208 static void wxDC_GetBoundingBox(wxDC
* dc
, int* x1
, int* y1
, int* x2
, int* y2
) {
214 // Alternate 'constructor'
215 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
216 return new wxMemoryDC(oldDC
);
219 #include <wx/metafile.h>
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_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1757 static PyObject
*_wrap_wxBitmap_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1758 PyObject
* _resultobj
;
1761 PyObject
* _argo0
= 0;
1762 PyObject
* _argo1
= 0;
1763 char *_kwnames
[] = { "self","palette", NULL
};
1766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetPalette",_kwnames
,&_argo0
,&_argo1
))
1769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1776 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1777 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
1778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1783 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1784 wxBitmap_SetPalette(_arg0
,*_arg1
);
1786 wxPyEndAllowThreads(__tstate
);
1787 if (PyErr_Occurred()) return NULL
;
1788 } Py_INCREF(Py_None
);
1789 _resultobj
= Py_None
;
1793 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1794 static PyObject
*_wrap_wxBitmap_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1795 PyObject
* _resultobj
;
1798 PyObject
* _argo0
= 0;
1799 char *_kwnames
[] = { "self", NULL
};
1802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHandle",_kwnames
,&_argo0
))
1805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1812 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1813 _result
= (long )wxBitmap_GetHandle(_arg0
);
1815 wxPyEndAllowThreads(__tstate
);
1816 if (PyErr_Occurred()) return NULL
;
1817 } _resultobj
= Py_BuildValue("l",_result
);
1821 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1822 static PyObject
*_wrap_wxBitmap_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1823 PyObject
* _resultobj
;
1826 PyObject
* _argo0
= 0;
1827 char *_kwnames
[] = { "self","handle", NULL
};
1830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxBitmap_SetHandle",_kwnames
,&_argo0
,&_arg1
))
1833 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1834 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1840 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1841 wxBitmap_SetHandle(_arg0
,_arg1
);
1843 wxPyEndAllowThreads(__tstate
);
1844 if (PyErr_Occurred()) return NULL
;
1845 } Py_INCREF(Py_None
);
1846 _resultobj
= Py_None
;
1850 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1851 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1852 PyObject
* _resultobj
;
1855 PyObject
* _argo0
= 0;
1856 char *_kwnames
[] = { "self", NULL
};
1859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1870 _result
= (bool )wxBitmap_Ok(_arg0
);
1872 wxPyEndAllowThreads(__tstate
);
1873 if (PyErr_Occurred()) return NULL
;
1874 } _resultobj
= Py_BuildValue("i",_result
);
1878 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1879 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1880 PyObject
* _resultobj
;
1883 PyObject
* _argo0
= 0;
1884 char *_kwnames
[] = { "self", NULL
};
1887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1897 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1898 _result
= (int )wxBitmap_GetWidth(_arg0
);
1900 wxPyEndAllowThreads(__tstate
);
1901 if (PyErr_Occurred()) return NULL
;
1902 } _resultobj
= Py_BuildValue("i",_result
);
1906 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1907 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1908 PyObject
* _resultobj
;
1911 PyObject
* _argo0
= 0;
1912 char *_kwnames
[] = { "self", NULL
};
1915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1918 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1919 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1925 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1926 _result
= (int )wxBitmap_GetHeight(_arg0
);
1928 wxPyEndAllowThreads(__tstate
);
1929 if (PyErr_Occurred()) return NULL
;
1930 } _resultobj
= Py_BuildValue("i",_result
);
1934 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1935 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1936 PyObject
* _resultobj
;
1939 PyObject
* _argo0
= 0;
1940 char *_kwnames
[] = { "self", NULL
};
1943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1946 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1947 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1953 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1954 _result
= (int )wxBitmap_GetDepth(_arg0
);
1956 wxPyEndAllowThreads(__tstate
);
1957 if (PyErr_Occurred()) return NULL
;
1958 } _resultobj
= Py_BuildValue("i",_result
);
1962 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1963 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1964 PyObject
* _resultobj
;
1967 PyObject
* _argo0
= 0;
1968 char *_kwnames
[] = { "self","w", NULL
};
1971 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1974 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1975 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1976 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1981 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1982 wxBitmap_SetWidth(_arg0
,_arg1
);
1984 wxPyEndAllowThreads(__tstate
);
1985 if (PyErr_Occurred()) return NULL
;
1986 } Py_INCREF(Py_None
);
1987 _resultobj
= Py_None
;
1991 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1992 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1993 PyObject
* _resultobj
;
1996 PyObject
* _argo0
= 0;
1997 char *_kwnames
[] = { "self","h", NULL
};
2000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2010 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2011 wxBitmap_SetHeight(_arg0
,_arg1
);
2013 wxPyEndAllowThreads(__tstate
);
2014 if (PyErr_Occurred()) return NULL
;
2015 } Py_INCREF(Py_None
);
2016 _resultobj
= Py_None
;
2020 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2021 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2022 PyObject
* _resultobj
;
2025 PyObject
* _argo0
= 0;
2026 char *_kwnames
[] = { "self","d", NULL
};
2029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2040 wxBitmap_SetDepth(_arg0
,_arg1
);
2042 wxPyEndAllowThreads(__tstate
);
2043 if (PyErr_Occurred()) return NULL
;
2044 } Py_INCREF(Py_None
);
2045 _resultobj
= Py_None
;
2049 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2050 static PyObject
*_wrap_wxBitmap_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2051 PyObject
* _resultobj
;
2054 PyObject
* _argo0
= 0;
2056 PyObject
* _obj1
= 0;
2057 char *_kwnames
[] = { "self","size", NULL
};
2060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetSize",_kwnames
,&_argo0
,&_obj1
))
2063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2071 if (! wxSize_helper(_obj1
, &_arg1
))
2075 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2076 wxBitmap_SetSize(_arg0
,*_arg1
);
2078 wxPyEndAllowThreads(__tstate
);
2079 if (PyErr_Occurred()) return NULL
;
2080 } Py_INCREF(Py_None
);
2081 _resultobj
= Py_None
;
2085 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2086 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2087 PyObject
* _resultobj
;
2091 PyObject
* _argo0
= 0;
2093 PyObject
* _obj1
= 0;
2094 char *_kwnames
[] = { "self","rect", NULL
};
2098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
2101 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2102 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2109 if (! wxRect_helper(_obj1
, &_arg1
))
2113 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2114 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2116 wxPyEndAllowThreads(__tstate
);
2117 if (PyErr_Occurred()) return NULL
;
2118 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2119 _resultobj
= Py_BuildValue("s",_ptemp
);
2123 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2124 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2125 PyObject
* _resultobj
;
2129 PyObject
* _argo0
= 0;
2130 PyObject
* _argo1
= 0;
2131 char *_kwnames
[] = { "self","icon", NULL
};
2134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2137 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2138 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2144 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2145 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2151 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2152 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2154 wxPyEndAllowThreads(__tstate
);
2155 if (PyErr_Occurred()) return NULL
;
2156 } _resultobj
= Py_BuildValue("i",_result
);
2160 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2161 static PyObject
*_wrap_wxBitmap_CopyFromCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2162 PyObject
* _resultobj
;
2166 PyObject
* _argo0
= 0;
2167 PyObject
* _argo1
= 0;
2168 char *_kwnames
[] = { "self","cursor", NULL
};
2171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromCursor",_kwnames
,&_argo0
,&_argo1
))
2174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2181 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2182 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2189 _result
= (bool )wxBitmap_CopyFromCursor(_arg0
,*_arg1
);
2191 wxPyEndAllowThreads(__tstate
);
2192 if (PyErr_Occurred()) return NULL
;
2193 } _resultobj
= Py_BuildValue("i",_result
);
2197 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2198 static PyObject
*_wrap_wxBitmap_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2199 PyObject
* _resultobj
;
2202 PyObject
* _argo0
= 0;
2203 char *_kwnames
[] = { "self", NULL
};
2206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetQuality",_kwnames
,&_argo0
))
2209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2217 _result
= (int )wxBitmap_GetQuality(_arg0
);
2219 wxPyEndAllowThreads(__tstate
);
2220 if (PyErr_Occurred()) return NULL
;
2221 } _resultobj
= Py_BuildValue("i",_result
);
2225 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2226 static PyObject
*_wrap_wxBitmap_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2227 PyObject
* _resultobj
;
2230 PyObject
* _argo0
= 0;
2231 char *_kwnames
[] = { "self","q", NULL
};
2234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetQuality",_kwnames
,&_argo0
,&_arg1
))
2237 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2238 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2245 wxBitmap_SetQuality(_arg0
,_arg1
);
2247 wxPyEndAllowThreads(__tstate
);
2248 if (PyErr_Occurred()) return NULL
;
2249 } Py_INCREF(Py_None
);
2250 _resultobj
= Py_None
;
2254 static void *SwigwxMaskTowxObject(void *ptr
) {
2257 src
= (wxMask
*) ptr
;
2258 dest
= (wxObject
*) src
;
2259 return (void *) dest
;
2262 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2263 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2264 PyObject
* _resultobj
;
2267 PyObject
* _argo0
= 0;
2268 char *_kwnames
[] = { "bitmap", NULL
};
2272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2275 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2276 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2282 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2283 _result
= (wxMask
*)new_wxMask(*_arg0
);
2285 wxPyEndAllowThreads(__tstate
);
2286 if (PyErr_Occurred()) return NULL
;
2288 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2289 _resultobj
= Py_BuildValue("s",_ptemp
);
2292 _resultobj
= Py_None
;
2297 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2298 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2299 PyObject
* _resultobj
;
2301 PyObject
* _argo0
= 0;
2302 char *_kwnames
[] = { "self", NULL
};
2305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2315 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2316 wxMask_Destroy(_arg0
);
2318 wxPyEndAllowThreads(__tstate
);
2319 if (PyErr_Occurred()) return NULL
;
2320 } Py_INCREF(Py_None
);
2321 _resultobj
= Py_None
;
2325 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2328 src
= (wxIcon
*) ptr
;
2329 dest
= (wxGDIObject
*) src
;
2330 return (void *) dest
;
2333 static void *SwigwxIconTowxObject(void *ptr
) {
2336 src
= (wxIcon
*) ptr
;
2337 dest
= (wxObject
*) src
;
2338 return (void *) dest
;
2341 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2342 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2343 PyObject
* _resultobj
;
2347 int _arg2
= (int ) -1;
2348 int _arg3
= (int ) -1;
2349 PyObject
* _obj0
= 0;
2350 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2357 #if PYTHON_API_VERSION >= 1009
2358 char* tmpPtr
; int tmpSize
;
2359 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2360 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2363 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2365 _arg0
= new wxString(tmpPtr
, tmpSize
);
2367 if (!PyString_Check(_obj0
)) {
2368 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2371 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2375 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2376 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2378 wxPyEndAllowThreads(__tstate
);
2379 if (PyErr_Occurred()) return NULL
;
2381 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2382 _resultobj
= Py_BuildValue("s",_ptemp
);
2385 _resultobj
= Py_None
;
2394 #define delete_wxIcon(_swigobj) (delete _swigobj)
2395 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2396 PyObject
* _resultobj
;
2398 PyObject
* _argo0
= 0;
2399 char *_kwnames
[] = { "self", NULL
};
2402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2412 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2413 delete_wxIcon(_arg0
);
2415 wxPyEndAllowThreads(__tstate
);
2416 if (PyErr_Occurred()) return NULL
;
2417 } Py_INCREF(Py_None
);
2418 _resultobj
= Py_None
;
2422 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2423 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2424 PyObject
* _resultobj
;
2429 PyObject
* _argo0
= 0;
2430 PyObject
* _obj1
= 0;
2431 char *_kwnames
[] = { "self","name","flags", NULL
};
2434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2444 #if PYTHON_API_VERSION >= 1009
2445 char* tmpPtr
; int tmpSize
;
2446 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2447 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2450 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2452 _arg1
= new wxString(tmpPtr
, tmpSize
);
2454 if (!PyString_Check(_obj1
)) {
2455 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2458 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2463 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2465 wxPyEndAllowThreads(__tstate
);
2466 if (PyErr_Occurred()) return NULL
;
2467 } _resultobj
= Py_BuildValue("i",_result
);
2475 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2476 static PyObject
*_wrap_wxIcon_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2477 PyObject
* _resultobj
;
2480 PyObject
* _argo0
= 0;
2481 char *_kwnames
[] = { "self", NULL
};
2484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHandle",_kwnames
,&_argo0
))
2487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2495 _result
= (long )wxIcon_GetHandle(_arg0
);
2497 wxPyEndAllowThreads(__tstate
);
2498 if (PyErr_Occurred()) return NULL
;
2499 } _resultobj
= Py_BuildValue("l",_result
);
2503 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2504 static PyObject
*_wrap_wxIcon_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2505 PyObject
* _resultobj
;
2508 PyObject
* _argo0
= 0;
2509 char *_kwnames
[] = { "self","handle", NULL
};
2512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxIcon_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2523 wxIcon_SetHandle(_arg0
,_arg1
);
2525 wxPyEndAllowThreads(__tstate
);
2526 if (PyErr_Occurred()) return NULL
;
2527 } Py_INCREF(Py_None
);
2528 _resultobj
= Py_None
;
2532 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2533 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2534 PyObject
* _resultobj
;
2537 PyObject
* _argo0
= 0;
2538 char *_kwnames
[] = { "self", NULL
};
2541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2551 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2552 _result
= (bool )wxIcon_Ok(_arg0
);
2554 wxPyEndAllowThreads(__tstate
);
2555 if (PyErr_Occurred()) return NULL
;
2556 } _resultobj
= Py_BuildValue("i",_result
);
2560 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2561 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2562 PyObject
* _resultobj
;
2565 PyObject
* _argo0
= 0;
2566 char *_kwnames
[] = { "self", NULL
};
2569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2580 _result
= (int )wxIcon_GetWidth(_arg0
);
2582 wxPyEndAllowThreads(__tstate
);
2583 if (PyErr_Occurred()) return NULL
;
2584 } _resultobj
= Py_BuildValue("i",_result
);
2588 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2589 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2590 PyObject
* _resultobj
;
2593 PyObject
* _argo0
= 0;
2594 char *_kwnames
[] = { "self", NULL
};
2597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2607 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2608 _result
= (int )wxIcon_GetHeight(_arg0
);
2610 wxPyEndAllowThreads(__tstate
);
2611 if (PyErr_Occurred()) return NULL
;
2612 } _resultobj
= Py_BuildValue("i",_result
);
2616 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2617 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2618 PyObject
* _resultobj
;
2621 PyObject
* _argo0
= 0;
2622 char *_kwnames
[] = { "self", NULL
};
2625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2635 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2636 _result
= (int )wxIcon_GetDepth(_arg0
);
2638 wxPyEndAllowThreads(__tstate
);
2639 if (PyErr_Occurred()) return NULL
;
2640 } _resultobj
= Py_BuildValue("i",_result
);
2644 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2645 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2646 PyObject
* _resultobj
;
2649 PyObject
* _argo0
= 0;
2650 char *_kwnames
[] = { "self","w", NULL
};
2653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2656 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2657 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2663 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2664 wxIcon_SetWidth(_arg0
,_arg1
);
2666 wxPyEndAllowThreads(__tstate
);
2667 if (PyErr_Occurred()) return NULL
;
2668 } Py_INCREF(Py_None
);
2669 _resultobj
= Py_None
;
2673 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2674 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2675 PyObject
* _resultobj
;
2678 PyObject
* _argo0
= 0;
2679 char *_kwnames
[] = { "self","h", NULL
};
2682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2692 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2693 wxIcon_SetHeight(_arg0
,_arg1
);
2695 wxPyEndAllowThreads(__tstate
);
2696 if (PyErr_Occurred()) return NULL
;
2697 } Py_INCREF(Py_None
);
2698 _resultobj
= Py_None
;
2702 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2703 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2704 PyObject
* _resultobj
;
2707 PyObject
* _argo0
= 0;
2708 char *_kwnames
[] = { "self","d", NULL
};
2711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2714 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2715 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2721 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2722 wxIcon_SetDepth(_arg0
,_arg1
);
2724 wxPyEndAllowThreads(__tstate
);
2725 if (PyErr_Occurred()) return NULL
;
2726 } Py_INCREF(Py_None
);
2727 _resultobj
= Py_None
;
2731 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2732 static PyObject
*_wrap_wxIcon_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2733 PyObject
* _resultobj
;
2736 PyObject
* _argo0
= 0;
2738 PyObject
* _obj1
= 0;
2739 char *_kwnames
[] = { "self","size", NULL
};
2742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_SetSize",_kwnames
,&_argo0
,&_obj1
))
2745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2753 if (! wxSize_helper(_obj1
, &_arg1
))
2757 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2758 wxIcon_SetSize(_arg0
,*_arg1
);
2760 wxPyEndAllowThreads(__tstate
);
2761 if (PyErr_Occurred()) return NULL
;
2762 } Py_INCREF(Py_None
);
2763 _resultobj
= Py_None
;
2767 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2768 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2769 PyObject
* _resultobj
;
2772 PyObject
* _argo0
= 0;
2773 PyObject
* _argo1
= 0;
2774 char *_kwnames
[] = { "self","bmp", NULL
};
2777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2780 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2781 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2787 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2788 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2795 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2797 wxPyEndAllowThreads(__tstate
);
2798 if (PyErr_Occurred()) return NULL
;
2799 } Py_INCREF(Py_None
);
2800 _resultobj
= Py_None
;
2804 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2807 src
= (wxCursor
*) ptr
;
2808 dest
= (wxGDIObject
*) src
;
2809 return (void *) dest
;
2812 static void *SwigwxCursorTowxObject(void *ptr
) {
2815 src
= (wxCursor
*) ptr
;
2816 dest
= (wxObject
*) src
;
2817 return (void *) dest
;
2820 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2821 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2822 PyObject
* _resultobj
;
2826 int _arg2
= (int ) 0;
2827 int _arg3
= (int ) 0;
2828 PyObject
* _obj0
= 0;
2829 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
2833 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2836 #if PYTHON_API_VERSION >= 1009
2837 char* tmpPtr
; int tmpSize
;
2838 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2839 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2842 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2844 _arg0
= new wxString(tmpPtr
, tmpSize
);
2846 if (!PyString_Check(_obj0
)) {
2847 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2850 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2854 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2855 _result
= (wxCursor
*)new_wxCursor(*_arg0
,_arg1
,_arg2
,_arg3
);
2857 wxPyEndAllowThreads(__tstate
);
2858 if (PyErr_Occurred()) return NULL
;
2860 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
2861 _resultobj
= Py_BuildValue("s",_ptemp
);
2864 _resultobj
= Py_None
;
2873 #define delete_wxCursor(_swigobj) (delete _swigobj)
2874 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2875 PyObject
* _resultobj
;
2877 PyObject
* _argo0
= 0;
2878 char *_kwnames
[] = { "self", NULL
};
2881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2884 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2885 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2891 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2892 delete_wxCursor(_arg0
);
2894 wxPyEndAllowThreads(__tstate
);
2895 if (PyErr_Occurred()) return NULL
;
2896 } Py_INCREF(Py_None
);
2897 _resultobj
= Py_None
;
2901 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2902 static PyObject
*_wrap_wxCursor_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2903 PyObject
* _resultobj
;
2906 PyObject
* _argo0
= 0;
2907 char *_kwnames
[] = { "self", NULL
};
2910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHandle",_kwnames
,&_argo0
))
2913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2920 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2921 _result
= (long )wxCursor_GetHandle(_arg0
);
2923 wxPyEndAllowThreads(__tstate
);
2924 if (PyErr_Occurred()) return NULL
;
2925 } _resultobj
= Py_BuildValue("l",_result
);
2929 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2930 static PyObject
*_wrap_wxCursor_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2931 PyObject
* _resultobj
;
2934 PyObject
* _argo0
= 0;
2935 char *_kwnames
[] = { "self","handle", NULL
};
2938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxCursor_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2948 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2949 wxCursor_SetHandle(_arg0
,_arg1
);
2951 wxPyEndAllowThreads(__tstate
);
2952 if (PyErr_Occurred()) return NULL
;
2953 } Py_INCREF(Py_None
);
2954 _resultobj
= Py_None
;
2958 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2959 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2960 PyObject
* _resultobj
;
2963 PyObject
* _argo0
= 0;
2964 char *_kwnames
[] = { "self", NULL
};
2967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2977 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2978 _result
= (bool )wxCursor_Ok(_arg0
);
2980 wxPyEndAllowThreads(__tstate
);
2981 if (PyErr_Occurred()) return NULL
;
2982 } _resultobj
= Py_BuildValue("i",_result
);
2986 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2987 static PyObject
*_wrap_wxCursor_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2988 PyObject
* _resultobj
;
2991 PyObject
* _argo0
= 0;
2992 char *_kwnames
[] = { "self", NULL
};
2995 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetWidth",_kwnames
,&_argo0
))
2998 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2999 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3000 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3005 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3006 _result
= (int )wxCursor_GetWidth(_arg0
);
3008 wxPyEndAllowThreads(__tstate
);
3009 if (PyErr_Occurred()) return NULL
;
3010 } _resultobj
= Py_BuildValue("i",_result
);
3014 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3015 static PyObject
*_wrap_wxCursor_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3016 PyObject
* _resultobj
;
3019 PyObject
* _argo0
= 0;
3020 char *_kwnames
[] = { "self", NULL
};
3023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHeight",_kwnames
,&_argo0
))
3026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3033 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3034 _result
= (int )wxCursor_GetHeight(_arg0
);
3036 wxPyEndAllowThreads(__tstate
);
3037 if (PyErr_Occurred()) return NULL
;
3038 } _resultobj
= Py_BuildValue("i",_result
);
3042 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3043 static PyObject
*_wrap_wxCursor_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3044 PyObject
* _resultobj
;
3047 PyObject
* _argo0
= 0;
3048 char *_kwnames
[] = { "self", NULL
};
3051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetDepth",_kwnames
,&_argo0
))
3054 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3055 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3061 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3062 _result
= (int )wxCursor_GetDepth(_arg0
);
3064 wxPyEndAllowThreads(__tstate
);
3065 if (PyErr_Occurred()) return NULL
;
3066 } _resultobj
= Py_BuildValue("i",_result
);
3070 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3071 static PyObject
*_wrap_wxCursor_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3072 PyObject
* _resultobj
;
3075 PyObject
* _argo0
= 0;
3076 char *_kwnames
[] = { "self","w", NULL
};
3079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3089 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3090 wxCursor_SetWidth(_arg0
,_arg1
);
3092 wxPyEndAllowThreads(__tstate
);
3093 if (PyErr_Occurred()) return NULL
;
3094 } Py_INCREF(Py_None
);
3095 _resultobj
= Py_None
;
3099 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3100 static PyObject
*_wrap_wxCursor_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3101 PyObject
* _resultobj
;
3104 PyObject
* _argo0
= 0;
3105 char *_kwnames
[] = { "self","h", NULL
};
3108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetHeight",_kwnames
,&_argo0
,&_arg1
))
3111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3118 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3119 wxCursor_SetHeight(_arg0
,_arg1
);
3121 wxPyEndAllowThreads(__tstate
);
3122 if (PyErr_Occurred()) return NULL
;
3123 } Py_INCREF(Py_None
);
3124 _resultobj
= Py_None
;
3128 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3129 static PyObject
*_wrap_wxCursor_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3130 PyObject
* _resultobj
;
3133 PyObject
* _argo0
= 0;
3134 char *_kwnames
[] = { "self","d", NULL
};
3137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetDepth",_kwnames
,&_argo0
,&_arg1
))
3140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3147 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3148 wxCursor_SetDepth(_arg0
,_arg1
);
3150 wxPyEndAllowThreads(__tstate
);
3151 if (PyErr_Occurred()) return NULL
;
3152 } Py_INCREF(Py_None
);
3153 _resultobj
= Py_None
;
3157 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3158 static PyObject
*_wrap_wxCursor_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3159 PyObject
* _resultobj
;
3162 PyObject
* _argo0
= 0;
3164 PyObject
* _obj1
= 0;
3165 char *_kwnames
[] = { "self","size", NULL
};
3168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCursor_SetSize",_kwnames
,&_argo0
,&_obj1
))
3171 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3172 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3179 if (! wxSize_helper(_obj1
, &_arg1
))
3183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3184 wxCursor_SetSize(_arg0
,*_arg1
);
3186 wxPyEndAllowThreads(__tstate
);
3187 if (PyErr_Occurred()) return NULL
;
3188 } Py_INCREF(Py_None
);
3189 _resultobj
= Py_None
;
3193 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
3194 static PyObject
*_wrap_new_wxNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3195 PyObject
* _resultobj
;
3196 wxNativeFontInfo
* _result
;
3197 char *_kwnames
[] = { NULL
};
3201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxNativeFontInfo",_kwnames
))
3204 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3205 _result
= (wxNativeFontInfo
*)new_wxNativeFontInfo();
3207 wxPyEndAllowThreads(__tstate
);
3208 if (PyErr_Occurred()) return NULL
;
3210 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
3211 _resultobj
= Py_BuildValue("s",_ptemp
);
3214 _resultobj
= Py_None
;
3219 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
3220 static PyObject
*_wrap_wxNativeFontInfo_Init(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3221 PyObject
* _resultobj
;
3222 wxNativeFontInfo
* _arg0
;
3223 PyObject
* _argo0
= 0;
3224 char *_kwnames
[] = { "self", NULL
};
3227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_Init",_kwnames
,&_argo0
))
3230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
3237 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3238 wxNativeFontInfo_Init(_arg0
);
3240 wxPyEndAllowThreads(__tstate
);
3241 if (PyErr_Occurred()) return NULL
;
3242 } Py_INCREF(Py_None
);
3243 _resultobj
= Py_None
;
3247 #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3248 static PyObject
*_wrap_wxNativeFontInfo_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3249 PyObject
* _resultobj
;
3251 wxNativeFontInfo
* _arg0
;
3252 PyObject
* _argo0
= 0;
3253 char *_kwnames
[] = { "self", NULL
};
3256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetPointSize",_kwnames
,&_argo0
))
3259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p.");
3266 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3267 _result
= (int )wxNativeFontInfo_GetPointSize(_arg0
);
3269 wxPyEndAllowThreads(__tstate
);
3270 if (PyErr_Occurred()) return NULL
;
3271 } _resultobj
= Py_BuildValue("i",_result
);
3275 #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle())
3276 static PyObject
*_wrap_wxNativeFontInfo_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3277 PyObject
* _resultobj
;
3278 wxFontStyle _result
;
3279 wxNativeFontInfo
* _arg0
;
3280 PyObject
* _argo0
= 0;
3281 char *_kwnames
[] = { "self", NULL
};
3284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetStyle",_kwnames
,&_argo0
))
3287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p.");
3294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3295 _result
= (wxFontStyle
)wxNativeFontInfo_GetStyle(_arg0
);
3297 wxPyEndAllowThreads(__tstate
);
3298 if (PyErr_Occurred()) return NULL
;
3299 } _resultobj
= Py_BuildValue("i",_result
);
3303 #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight())
3304 static PyObject
*_wrap_wxNativeFontInfo_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3305 PyObject
* _resultobj
;
3306 wxFontWeight _result
;
3307 wxNativeFontInfo
* _arg0
;
3308 PyObject
* _argo0
= 0;
3309 char *_kwnames
[] = { "self", NULL
};
3312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetWeight",_kwnames
,&_argo0
))
3315 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3316 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p.");
3322 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3323 _result
= (wxFontWeight
)wxNativeFontInfo_GetWeight(_arg0
);
3325 wxPyEndAllowThreads(__tstate
);
3326 if (PyErr_Occurred()) return NULL
;
3327 } _resultobj
= Py_BuildValue("i",_result
);
3331 #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3332 static PyObject
*_wrap_wxNativeFontInfo_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3333 PyObject
* _resultobj
;
3335 wxNativeFontInfo
* _arg0
;
3336 PyObject
* _argo0
= 0;
3337 char *_kwnames
[] = { "self", NULL
};
3340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetUnderlined",_kwnames
,&_argo0
))
3343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p.");
3350 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3351 _result
= (bool )wxNativeFontInfo_GetUnderlined(_arg0
);
3353 wxPyEndAllowThreads(__tstate
);
3354 if (PyErr_Occurred()) return NULL
;
3355 } _resultobj
= Py_BuildValue("i",_result
);
3359 #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3360 static PyObject
*_wrap_wxNativeFontInfo_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3361 PyObject
* _resultobj
;
3363 wxNativeFontInfo
* _arg0
;
3364 PyObject
* _argo0
= 0;
3365 char *_kwnames
[] = { "self", NULL
};
3368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetFaceName",_kwnames
,&_argo0
))
3371 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3372 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p.");
3378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3379 _result
= new wxString (wxNativeFontInfo_GetFaceName(_arg0
));
3381 wxPyEndAllowThreads(__tstate
);
3382 if (PyErr_Occurred()) return NULL
;
3384 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3392 #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily())
3393 static PyObject
*_wrap_wxNativeFontInfo_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3394 PyObject
* _resultobj
;
3395 wxFontFamily _result
;
3396 wxNativeFontInfo
* _arg0
;
3397 PyObject
* _argo0
= 0;
3398 char *_kwnames
[] = { "self", NULL
};
3401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetFamily",_kwnames
,&_argo0
))
3404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p.");
3411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3412 _result
= (wxFontFamily
)wxNativeFontInfo_GetFamily(_arg0
);
3414 wxPyEndAllowThreads(__tstate
);
3415 if (PyErr_Occurred()) return NULL
;
3416 } _resultobj
= Py_BuildValue("i",_result
);
3420 #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3421 static PyObject
*_wrap_wxNativeFontInfo_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3422 PyObject
* _resultobj
;
3423 wxFontEncoding _result
;
3424 wxNativeFontInfo
* _arg0
;
3425 PyObject
* _argo0
= 0;
3426 char *_kwnames
[] = { "self", NULL
};
3429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetEncoding",_kwnames
,&_argo0
))
3432 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3433 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3434 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p.");
3439 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3440 _result
= (wxFontEncoding
)wxNativeFontInfo_GetEncoding(_arg0
);
3442 wxPyEndAllowThreads(__tstate
);
3443 if (PyErr_Occurred()) return NULL
;
3444 } _resultobj
= Py_BuildValue("i",_result
);
3448 #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3449 static PyObject
*_wrap_wxNativeFontInfo_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3450 PyObject
* _resultobj
;
3451 wxNativeFontInfo
* _arg0
;
3453 PyObject
* _argo0
= 0;
3454 char *_kwnames
[] = { "self","pointsize", NULL
};
3457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
3460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p.");
3467 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3468 wxNativeFontInfo_SetPointSize(_arg0
,_arg1
);
3470 wxPyEndAllowThreads(__tstate
);
3471 if (PyErr_Occurred()) return NULL
;
3472 } Py_INCREF(Py_None
);
3473 _resultobj
= Py_None
;
3477 #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3478 static PyObject
*_wrap_wxNativeFontInfo_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3479 PyObject
* _resultobj
;
3480 wxNativeFontInfo
* _arg0
;
3482 PyObject
* _argo0
= 0;
3483 char *_kwnames
[] = { "self","style", NULL
};
3486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3489 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3490 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p.");
3496 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3497 wxNativeFontInfo_SetStyle(_arg0
,_arg1
);
3499 wxPyEndAllowThreads(__tstate
);
3500 if (PyErr_Occurred()) return NULL
;
3501 } Py_INCREF(Py_None
);
3502 _resultobj
= Py_None
;
3506 #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3507 static PyObject
*_wrap_wxNativeFontInfo_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3508 PyObject
* _resultobj
;
3509 wxNativeFontInfo
* _arg0
;
3511 PyObject
* _argo0
= 0;
3512 char *_kwnames
[] = { "self","weight", NULL
};
3515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetWeight",_kwnames
,&_argo0
,&_arg1
))
3518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p.");
3525 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3526 wxNativeFontInfo_SetWeight(_arg0
,_arg1
);
3528 wxPyEndAllowThreads(__tstate
);
3529 if (PyErr_Occurred()) return NULL
;
3530 } Py_INCREF(Py_None
);
3531 _resultobj
= Py_None
;
3535 #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3536 static PyObject
*_wrap_wxNativeFontInfo_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3537 PyObject
* _resultobj
;
3538 wxNativeFontInfo
* _arg0
;
3540 PyObject
* _argo0
= 0;
3542 char *_kwnames
[] = { "self","underlined", NULL
};
3545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
3548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p.");
3554 _arg1
= (bool ) tempbool1
;
3556 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3557 wxNativeFontInfo_SetUnderlined(_arg0
,_arg1
);
3559 wxPyEndAllowThreads(__tstate
);
3560 if (PyErr_Occurred()) return NULL
;
3561 } Py_INCREF(Py_None
);
3562 _resultobj
= Py_None
;
3566 #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3567 static PyObject
*_wrap_wxNativeFontInfo_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3568 PyObject
* _resultobj
;
3569 wxNativeFontInfo
* _arg0
;
3571 PyObject
* _argo0
= 0;
3572 PyObject
* _obj1
= 0;
3573 char *_kwnames
[] = { "self","facename", NULL
};
3576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
3579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p.");
3586 #if PYTHON_API_VERSION >= 1009
3587 char* tmpPtr
; int tmpSize
;
3588 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3589 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3592 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3594 _arg1
= new wxString(tmpPtr
, tmpSize
);
3596 if (!PyString_Check(_obj1
)) {
3597 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3600 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3604 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3605 wxNativeFontInfo_SetFaceName(_arg0
,*_arg1
);
3607 wxPyEndAllowThreads(__tstate
);
3608 if (PyErr_Occurred()) return NULL
;
3609 } Py_INCREF(Py_None
);
3610 _resultobj
= Py_None
;
3618 #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3619 static PyObject
*_wrap_wxNativeFontInfo_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3620 PyObject
* _resultobj
;
3621 wxNativeFontInfo
* _arg0
;
3623 PyObject
* _argo0
= 0;
3624 char *_kwnames
[] = { "self","family", NULL
};
3627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetFamily",_kwnames
,&_argo0
,&_arg1
))
3630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p.");
3637 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3638 wxNativeFontInfo_SetFamily(_arg0
,_arg1
);
3640 wxPyEndAllowThreads(__tstate
);
3641 if (PyErr_Occurred()) return NULL
;
3642 } Py_INCREF(Py_None
);
3643 _resultobj
= Py_None
;
3647 #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3648 static PyObject
*_wrap_wxNativeFontInfo_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3649 PyObject
* _resultobj
;
3650 wxNativeFontInfo
* _arg0
;
3651 wxFontEncoding _arg1
;
3652 PyObject
* _argo0
= 0;
3653 char *_kwnames
[] = { "self","encoding", NULL
};
3656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
3659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p.");
3666 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3667 wxNativeFontInfo_SetEncoding(_arg0
,_arg1
);
3669 wxPyEndAllowThreads(__tstate
);
3670 if (PyErr_Occurred()) return NULL
;
3671 } Py_INCREF(Py_None
);
3672 _resultobj
= Py_None
;
3676 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
3677 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3678 PyObject
* _resultobj
;
3680 wxNativeFontInfo
* _arg0
;
3682 PyObject
* _argo0
= 0;
3683 PyObject
* _obj1
= 0;
3684 char *_kwnames
[] = { "self","s", NULL
};
3687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
3690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3697 #if PYTHON_API_VERSION >= 1009
3698 char* tmpPtr
; int tmpSize
;
3699 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3700 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3703 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3705 _arg1
= new wxString(tmpPtr
, tmpSize
);
3707 if (!PyString_Check(_obj1
)) {
3708 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3711 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3715 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3716 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
3718 wxPyEndAllowThreads(__tstate
);
3719 if (PyErr_Occurred()) return NULL
;
3720 } _resultobj
= Py_BuildValue("i",_result
);
3728 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3729 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3730 PyObject
* _resultobj
;
3732 wxNativeFontInfo
* _arg0
;
3733 PyObject
* _argo0
= 0;
3734 char *_kwnames
[] = { "self", NULL
};
3737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
3740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3747 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3748 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
3750 wxPyEndAllowThreads(__tstate
);
3751 if (PyErr_Occurred()) return NULL
;
3753 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3761 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
3762 return self
->ToString();
3764 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3765 PyObject
* _resultobj
;
3767 wxNativeFontInfo
* _arg0
;
3768 PyObject
* _argo0
= 0;
3769 char *_kwnames
[] = { "self", NULL
};
3772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
3775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3782 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3783 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
3785 wxPyEndAllowThreads(__tstate
);
3786 if (PyErr_Occurred()) return NULL
;
3788 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3796 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
3797 static PyObject
*_wrap_wxNativeFontInfo_FromUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3798 PyObject
* _resultobj
;
3800 wxNativeFontInfo
* _arg0
;
3802 PyObject
* _argo0
= 0;
3803 PyObject
* _obj1
= 0;
3804 char *_kwnames
[] = { "self","s", NULL
};
3807 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromUserString",_kwnames
,&_argo0
,&_obj1
))
3810 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3811 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3812 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
3817 #if PYTHON_API_VERSION >= 1009
3818 char* tmpPtr
; int tmpSize
;
3819 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3820 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3823 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3825 _arg1
= new wxString(tmpPtr
, tmpSize
);
3827 if (!PyString_Check(_obj1
)) {
3828 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3831 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3835 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3836 _result
= (bool )wxNativeFontInfo_FromUserString(_arg0
,*_arg1
);
3838 wxPyEndAllowThreads(__tstate
);
3839 if (PyErr_Occurred()) return NULL
;
3840 } _resultobj
= Py_BuildValue("i",_result
);
3848 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
3849 static PyObject
*_wrap_wxNativeFontInfo_ToUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3850 PyObject
* _resultobj
;
3852 wxNativeFontInfo
* _arg0
;
3853 PyObject
* _argo0
= 0;
3854 char *_kwnames
[] = { "self", NULL
};
3857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToUserString",_kwnames
,&_argo0
))
3860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
3867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3868 _result
= new wxString (wxNativeFontInfo_ToUserString(_arg0
));
3870 wxPyEndAllowThreads(__tstate
);
3871 if (PyErr_Occurred()) return NULL
;
3873 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3881 #define new_wxFontMapper() (new wxFontMapper())
3882 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3883 PyObject
* _resultobj
;
3884 wxFontMapper
* _result
;
3885 char *_kwnames
[] = { NULL
};
3889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
3892 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3893 _result
= (wxFontMapper
*)new_wxFontMapper();
3895 wxPyEndAllowThreads(__tstate
);
3896 if (PyErr_Occurred()) return NULL
;
3898 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
3899 _resultobj
= Py_BuildValue("s",_ptemp
);
3902 _resultobj
= Py_None
;
3907 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3908 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3909 PyObject
* _resultobj
;
3910 wxFontMapper
* _arg0
;
3911 PyObject
* _argo0
= 0;
3912 char *_kwnames
[] = { "self", NULL
};
3915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
3918 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3919 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3925 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3926 delete_wxFontMapper(_arg0
);
3928 wxPyEndAllowThreads(__tstate
);
3929 if (PyErr_Occurred()) return NULL
;
3930 } Py_INCREF(Py_None
);
3931 _resultobj
= Py_None
;
3935 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
3936 wxFontEncoding alt_enc
;
3937 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
3938 return PyInt_FromLong(alt_enc
);
3944 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3945 PyObject
* _resultobj
;
3947 wxFontMapper
* _arg0
;
3948 wxFontEncoding _arg1
;
3949 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3950 bool _arg3
= (bool ) TRUE
;
3951 PyObject
* _argo0
= 0;
3952 PyObject
* _obj2
= 0;
3953 int tempbool3
= (int) TRUE
;
3954 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
3957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
3960 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3961 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3968 #if PYTHON_API_VERSION >= 1009
3969 char* tmpPtr
; int tmpSize
;
3970 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3971 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3974 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3976 _arg2
= new wxString(tmpPtr
, tmpSize
);
3978 if (!PyString_Check(_obj2
)) {
3979 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3982 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3985 _arg3
= (bool ) tempbool3
;
3987 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3988 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
3990 wxPyEndAllowThreads(__tstate
);
3991 if (PyErr_Occurred()) return NULL
;
3993 _resultobj
= _result
;
4002 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
4003 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4004 PyObject
* _resultobj
;
4006 wxFontMapper
* _arg0
;
4007 wxFontEncoding _arg1
;
4008 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
4009 PyObject
* _argo0
= 0;
4010 PyObject
* _obj2
= 0;
4011 char *_kwnames
[] = { "self","encoding","facename", NULL
};
4014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
4017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
4025 #if PYTHON_API_VERSION >= 1009
4026 char* tmpPtr
; int tmpSize
;
4027 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
4028 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4031 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
4033 _arg2
= new wxString(tmpPtr
, tmpSize
);
4035 if (!PyString_Check(_obj2
)) {
4036 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4039 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
4043 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4044 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
4046 wxPyEndAllowThreads(__tstate
);
4047 if (PyErr_Occurred()) return NULL
;
4048 } _resultobj
= Py_BuildValue("i",_result
);
4056 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
4057 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4058 PyObject
* _resultobj
;
4059 wxFontEncoding _result
;
4060 wxFontMapper
* _arg0
;
4062 bool _arg2
= (bool ) TRUE
;
4063 PyObject
* _argo0
= 0;
4064 PyObject
* _obj1
= 0;
4065 int tempbool2
= (int) TRUE
;
4066 char *_kwnames
[] = { "self","charset","interactive", NULL
};
4069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
4072 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4073 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4074 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
4079 #if PYTHON_API_VERSION >= 1009
4080 char* tmpPtr
; int tmpSize
;
4081 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4082 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4085 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4087 _arg1
= new wxString(tmpPtr
, tmpSize
);
4089 if (!PyString_Check(_obj1
)) {
4090 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4093 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4096 _arg2
= (bool ) tempbool2
;
4098 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4099 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
4101 wxPyEndAllowThreads(__tstate
);
4102 if (PyErr_Occurred()) return NULL
;
4103 } _resultobj
= Py_BuildValue("i",_result
);
4111 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4112 PyObject
* _resultobj
;
4114 wxFontEncoding _arg0
;
4115 char *_kwnames
[] = { "encoding", NULL
};
4118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
4121 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4122 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
4124 wxPyEndAllowThreads(__tstate
);
4125 if (PyErr_Occurred()) return NULL
;
4127 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4135 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4136 PyObject
* _resultobj
;
4138 wxFontEncoding _arg0
;
4139 char *_kwnames
[] = { "encoding", NULL
};
4142 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
4145 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4146 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
4148 wxPyEndAllowThreads(__tstate
);
4149 if (PyErr_Occurred()) return NULL
;
4151 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4159 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
4160 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4161 PyObject
* _resultobj
;
4162 wxFontMapper
* _arg0
;
4164 PyObject
* _argo0
= 0;
4165 PyObject
* _argo1
= 0;
4166 char *_kwnames
[] = { "self","parent", NULL
};
4169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
4172 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4173 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
4179 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4180 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
4181 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
4186 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4187 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
4189 wxPyEndAllowThreads(__tstate
);
4190 if (PyErr_Occurred()) return NULL
;
4191 } Py_INCREF(Py_None
);
4192 _resultobj
= Py_None
;
4196 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
4197 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4198 PyObject
* _resultobj
;
4199 wxFontMapper
* _arg0
;
4201 PyObject
* _argo0
= 0;
4202 PyObject
* _obj1
= 0;
4203 char *_kwnames
[] = { "self","title", NULL
};
4206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
4209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
4216 #if PYTHON_API_VERSION >= 1009
4217 char* tmpPtr
; int tmpSize
;
4218 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4219 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4222 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4224 _arg1
= new wxString(tmpPtr
, tmpSize
);
4226 if (!PyString_Check(_obj1
)) {
4227 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4230 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4235 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
4237 wxPyEndAllowThreads(__tstate
);
4238 if (PyErr_Occurred()) return NULL
;
4239 } Py_INCREF(Py_None
);
4240 _resultobj
= Py_None
;
4248 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
4249 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4250 PyObject
* _resultobj
;
4251 wxFontMapper
* _arg0
;
4252 wxConfigBase
* _arg1
;
4253 PyObject
* _argo0
= 0;
4254 PyObject
* _argo1
= 0;
4255 char *_kwnames
[] = { "self","config", NULL
};
4258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
4261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
4268 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4269 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
4270 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
4275 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4276 wxFontMapper_SetConfig(_arg0
,_arg1
);
4278 wxPyEndAllowThreads(__tstate
);
4279 if (PyErr_Occurred()) return NULL
;
4280 } Py_INCREF(Py_None
);
4281 _resultobj
= Py_None
;
4285 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
4286 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4287 PyObject
* _resultobj
;
4288 wxFontMapper
* _arg0
;
4290 PyObject
* _argo0
= 0;
4291 PyObject
* _obj1
= 0;
4292 char *_kwnames
[] = { "self","prefix", NULL
};
4295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
4298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
4305 #if PYTHON_API_VERSION >= 1009
4306 char* tmpPtr
; int tmpSize
;
4307 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4308 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4311 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4313 _arg1
= new wxString(tmpPtr
, tmpSize
);
4315 if (!PyString_Check(_obj1
)) {
4316 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4319 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4324 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
4326 wxPyEndAllowThreads(__tstate
);
4327 if (PyErr_Occurred()) return NULL
;
4328 } Py_INCREF(Py_None
);
4329 _resultobj
= Py_None
;
4337 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4338 PyObject
* _resultobj
;
4340 char *_kwnames
[] = { NULL
};
4343 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
4346 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4347 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
4349 wxPyEndAllowThreads(__tstate
);
4350 if (PyErr_Occurred()) return NULL
;
4351 } _resultobj
= Py_BuildValue("s", _result
);
4355 static void *SwigwxFontTowxGDIObject(void *ptr
) {
4358 src
= (wxFont
*) ptr
;
4359 dest
= (wxGDIObject
*) src
;
4360 return (void *) dest
;
4363 static void *SwigwxFontTowxObject(void *ptr
) {
4366 src
= (wxFont
*) ptr
;
4367 dest
= (wxObject
*) src
;
4368 return (void *) dest
;
4371 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4372 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4373 PyObject
* _resultobj
;
4379 int _arg4
= (int ) FALSE
;
4380 char * _arg5
= (char *) "";
4381 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
4382 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
4386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4389 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4390 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4392 wxPyEndAllowThreads(__tstate
);
4393 if (PyErr_Occurred()) return NULL
;
4395 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4396 _resultobj
= Py_BuildValue("s",_ptemp
);
4399 _resultobj
= Py_None
;
4404 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
4405 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4406 PyObject
* _resultobj
;
4408 wxNativeFontInfo
* _arg0
;
4409 PyObject
* _argo0
= 0;
4410 char *_kwnames
[] = { "info", NULL
};
4414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
4417 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4418 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
4419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
4424 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4425 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
4427 wxPyEndAllowThreads(__tstate
);
4428 if (PyErr_Occurred()) return NULL
;
4430 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4431 _resultobj
= Py_BuildValue("s",_ptemp
);
4434 _resultobj
= Py_None
;
4439 #define delete_wxFont(_swigobj) (delete _swigobj)
4440 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4441 PyObject
* _resultobj
;
4443 PyObject
* _argo0
= 0;
4444 char *_kwnames
[] = { "self", NULL
};
4447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
4450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
4457 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4458 delete_wxFont(_arg0
);
4460 wxPyEndAllowThreads(__tstate
);
4461 if (PyErr_Occurred()) return NULL
;
4462 } Py_INCREF(Py_None
);
4463 _resultobj
= Py_None
;
4467 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
4468 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4469 PyObject
* _resultobj
;
4472 PyObject
* _argo0
= 0;
4473 char *_kwnames
[] = { "self", NULL
};
4476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
4479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
4486 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4487 _result
= (bool )wxFont_Ok(_arg0
);
4489 wxPyEndAllowThreads(__tstate
);
4490 if (PyErr_Occurred()) return NULL
;
4491 } _resultobj
= Py_BuildValue("i",_result
);
4495 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
4496 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4497 PyObject
* _resultobj
;
4500 PyObject
* _argo0
= 0;
4501 char *_kwnames
[] = { "self", NULL
};
4504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
4507 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4508 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
4514 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4515 _result
= (int )wxFont_GetPointSize(_arg0
);
4517 wxPyEndAllowThreads(__tstate
);
4518 if (PyErr_Occurred()) return NULL
;
4519 } _resultobj
= Py_BuildValue("i",_result
);
4523 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
4524 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4525 PyObject
* _resultobj
;
4528 PyObject
* _argo0
= 0;
4529 char *_kwnames
[] = { "self", NULL
};
4532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
4535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
4542 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4543 _result
= (int )wxFont_GetFamily(_arg0
);
4545 wxPyEndAllowThreads(__tstate
);
4546 if (PyErr_Occurred()) return NULL
;
4547 } _resultobj
= Py_BuildValue("i",_result
);
4551 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
4552 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4553 PyObject
* _resultobj
;
4556 PyObject
* _argo0
= 0;
4557 char *_kwnames
[] = { "self", NULL
};
4560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
4563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
4570 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4571 _result
= (int )wxFont_GetStyle(_arg0
);
4573 wxPyEndAllowThreads(__tstate
);
4574 if (PyErr_Occurred()) return NULL
;
4575 } _resultobj
= Py_BuildValue("i",_result
);
4579 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
4580 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4581 PyObject
* _resultobj
;
4584 PyObject
* _argo0
= 0;
4585 char *_kwnames
[] = { "self", NULL
};
4588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
4591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
4598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4599 _result
= (int )wxFont_GetWeight(_arg0
);
4601 wxPyEndAllowThreads(__tstate
);
4602 if (PyErr_Occurred()) return NULL
;
4603 } _resultobj
= Py_BuildValue("i",_result
);
4607 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
4608 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4609 PyObject
* _resultobj
;
4612 PyObject
* _argo0
= 0;
4613 char *_kwnames
[] = { "self", NULL
};
4616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
4619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
4626 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4627 _result
= (bool )wxFont_GetUnderlined(_arg0
);
4629 wxPyEndAllowThreads(__tstate
);
4630 if (PyErr_Occurred()) return NULL
;
4631 } _resultobj
= Py_BuildValue("i",_result
);
4635 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
4636 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4637 PyObject
* _resultobj
;
4640 PyObject
* _argo0
= 0;
4641 char *_kwnames
[] = { "self", NULL
};
4644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
4647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
4654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4655 _result
= new wxString (wxFont_GetFaceName(_arg0
));
4657 wxPyEndAllowThreads(__tstate
);
4658 if (PyErr_Occurred()) return NULL
;
4660 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4668 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
4669 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4670 PyObject
* _resultobj
;
4671 wxFontEncoding _result
;
4673 PyObject
* _argo0
= 0;
4674 char *_kwnames
[] = { "self", NULL
};
4677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
4680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4687 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4688 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
4690 wxPyEndAllowThreads(__tstate
);
4691 if (PyErr_Occurred()) return NULL
;
4692 } _resultobj
= Py_BuildValue("i",_result
);
4696 #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
4697 static PyObject
*_wrap_wxFont_IsFixedWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4698 PyObject
* _resultobj
;
4701 PyObject
* _argo0
= 0;
4702 char *_kwnames
[] = { "self", NULL
};
4705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_IsFixedWidth",_kwnames
,&_argo0
))
4708 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4709 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4710 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
4715 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4716 _result
= (bool )wxFont_IsFixedWidth(_arg0
);
4718 wxPyEndAllowThreads(__tstate
);
4719 if (PyErr_Occurred()) return NULL
;
4720 } _resultobj
= Py_BuildValue("i",_result
);
4724 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4725 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4726 PyObject
* _resultobj
;
4727 wxNativeFontInfo
* _result
;
4729 PyObject
* _argo0
= 0;
4730 char *_kwnames
[] = { "self", NULL
};
4734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
4737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4744 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4745 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
4747 wxPyEndAllowThreads(__tstate
);
4748 if (PyErr_Occurred()) return NULL
;
4750 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
4751 _resultobj
= Py_BuildValue("s",_ptemp
);
4754 _resultobj
= Py_None
;
4759 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
4760 static PyObject
*_wrap_wxFont_GetNativeFontInfoDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4761 PyObject
* _resultobj
;
4764 PyObject
* _argo0
= 0;
4765 char *_kwnames
[] = { "self", NULL
};
4768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoDesc",_kwnames
,&_argo0
))
4771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
4778 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4779 _result
= new wxString (wxFont_GetNativeFontInfoDesc(_arg0
));
4781 wxPyEndAllowThreads(__tstate
);
4782 if (PyErr_Occurred()) return NULL
;
4784 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4792 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
4793 static PyObject
*_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4794 PyObject
* _resultobj
;
4797 PyObject
* _argo0
= 0;
4798 char *_kwnames
[] = { "self", NULL
};
4801 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames
,&_argo0
))
4804 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4805 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4806 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
4811 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4812 _result
= new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0
));
4814 wxPyEndAllowThreads(__tstate
);
4815 if (PyErr_Occurred()) return NULL
;
4817 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4825 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4826 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4827 PyObject
* _resultobj
;
4830 PyObject
* _argo0
= 0;
4831 char *_kwnames
[] = { "self","pointSize", NULL
};
4834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
4837 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4838 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4839 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4844 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4845 wxFont_SetPointSize(_arg0
,_arg1
);
4847 wxPyEndAllowThreads(__tstate
);
4848 if (PyErr_Occurred()) return NULL
;
4849 } Py_INCREF(Py_None
);
4850 _resultobj
= Py_None
;
4854 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4855 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4856 PyObject
* _resultobj
;
4859 PyObject
* _argo0
= 0;
4860 char *_kwnames
[] = { "self","family", NULL
};
4863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
4866 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4867 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4868 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4873 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4874 wxFont_SetFamily(_arg0
,_arg1
);
4876 wxPyEndAllowThreads(__tstate
);
4877 if (PyErr_Occurred()) return NULL
;
4878 } Py_INCREF(Py_None
);
4879 _resultobj
= Py_None
;
4883 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4884 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4885 PyObject
* _resultobj
;
4888 PyObject
* _argo0
= 0;
4889 char *_kwnames
[] = { "self","style", NULL
};
4892 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4895 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4896 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4902 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4903 wxFont_SetStyle(_arg0
,_arg1
);
4905 wxPyEndAllowThreads(__tstate
);
4906 if (PyErr_Occurred()) return NULL
;
4907 } Py_INCREF(Py_None
);
4908 _resultobj
= Py_None
;
4912 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4913 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4914 PyObject
* _resultobj
;
4917 PyObject
* _argo0
= 0;
4918 char *_kwnames
[] = { "self","weight", NULL
};
4921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
4924 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4925 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4931 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4932 wxFont_SetWeight(_arg0
,_arg1
);
4934 wxPyEndAllowThreads(__tstate
);
4935 if (PyErr_Occurred()) return NULL
;
4936 } Py_INCREF(Py_None
);
4937 _resultobj
= Py_None
;
4941 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4942 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4943 PyObject
* _resultobj
;
4946 PyObject
* _argo0
= 0;
4947 PyObject
* _obj1
= 0;
4948 char *_kwnames
[] = { "self","faceName", NULL
};
4951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
4954 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4955 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4961 #if PYTHON_API_VERSION >= 1009
4962 char* tmpPtr
; int tmpSize
;
4963 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4964 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4967 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4969 _arg1
= new wxString(tmpPtr
, tmpSize
);
4971 if (!PyString_Check(_obj1
)) {
4972 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4975 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4979 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4980 wxFont_SetFaceName(_arg0
,*_arg1
);
4982 wxPyEndAllowThreads(__tstate
);
4983 if (PyErr_Occurred()) return NULL
;
4984 } Py_INCREF(Py_None
);
4985 _resultobj
= Py_None
;
4993 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4994 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4995 PyObject
* _resultobj
;
4998 PyObject
* _argo0
= 0;
5000 char *_kwnames
[] = { "self","underlined", NULL
};
5003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
5006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
5012 _arg1
= (bool ) tempbool1
;
5014 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5015 wxFont_SetUnderlined(_arg0
,_arg1
);
5017 wxPyEndAllowThreads(__tstate
);
5018 if (PyErr_Occurred()) return NULL
;
5019 } Py_INCREF(Py_None
);
5020 _resultobj
= Py_None
;
5024 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
5025 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5026 PyObject
* _resultobj
;
5028 wxFontEncoding _arg1
;
5029 PyObject
* _argo0
= 0;
5030 char *_kwnames
[] = { "self","encoding", NULL
};
5033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
5036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
5043 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5044 wxFont_SetEncoding(_arg0
,_arg1
);
5046 wxPyEndAllowThreads(__tstate
);
5047 if (PyErr_Occurred()) return NULL
;
5048 } Py_INCREF(Py_None
);
5049 _resultobj
= Py_None
;
5053 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
5054 static PyObject
*_wrap_wxFont_SetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5055 PyObject
* _resultobj
;
5057 wxNativeFontInfo
* _arg1
;
5058 PyObject
* _argo0
= 0;
5059 PyObject
* _argo1
= 0;
5060 char *_kwnames
[] = { "self","info", NULL
};
5063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfo",_kwnames
,&_argo0
,&_argo1
))
5066 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5067 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5068 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
5073 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5074 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxNativeFontInfo_p")) {
5075 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
5080 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5081 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
5083 wxPyEndAllowThreads(__tstate
);
5084 if (PyErr_Occurred()) return NULL
;
5085 } Py_INCREF(Py_None
);
5086 _resultobj
= Py_None
;
5090 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
5091 static PyObject
*_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5092 PyObject
* _resultobj
;
5095 PyObject
* _argo0
= 0;
5096 PyObject
* _obj1
= 0;
5097 char *_kwnames
[] = { "self","info", NULL
};
5100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames
,&_argo0
,&_obj1
))
5103 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5104 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5105 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
5110 #if PYTHON_API_VERSION >= 1009
5111 char* tmpPtr
; int tmpSize
;
5112 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5113 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5116 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5118 _arg1
= new wxString(tmpPtr
, tmpSize
);
5120 if (!PyString_Check(_obj1
)) {
5121 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5124 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5128 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5129 wxFont_SetNativeFontInfoUserDesc(_arg0
,*_arg1
);
5131 wxPyEndAllowThreads(__tstate
);
5132 if (PyErr_Occurred()) return NULL
;
5133 } Py_INCREF(Py_None
);
5134 _resultobj
= Py_None
;
5142 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
5143 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5144 PyObject
* _resultobj
;
5147 PyObject
* _argo0
= 0;
5148 char *_kwnames
[] = { "self", NULL
};
5151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
5154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
5161 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5162 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
5164 wxPyEndAllowThreads(__tstate
);
5165 if (PyErr_Occurred()) return NULL
;
5167 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5175 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
5176 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5177 PyObject
* _resultobj
;
5180 PyObject
* _argo0
= 0;
5181 char *_kwnames
[] = { "self", NULL
};
5184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
5187 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5188 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
5194 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5195 _result
= new wxString (wxFont_GetStyleString(_arg0
));
5197 wxPyEndAllowThreads(__tstate
);
5198 if (PyErr_Occurred()) return NULL
;
5200 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5208 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
5209 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5210 PyObject
* _resultobj
;
5213 PyObject
* _argo0
= 0;
5214 char *_kwnames
[] = { "self", NULL
};
5217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
5220 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5221 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
5227 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5228 _result
= new wxString (wxFont_GetWeightString(_arg0
));
5230 wxPyEndAllowThreads(__tstate
);
5231 if (PyErr_Occurred()) return NULL
;
5233 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5241 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5242 PyObject
* _resultobj
;
5243 wxFontEncoding _result
;
5244 char *_kwnames
[] = { NULL
};
5247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
5250 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5251 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
5253 wxPyEndAllowThreads(__tstate
);
5254 if (PyErr_Occurred()) return NULL
;
5255 } _resultobj
= Py_BuildValue("i",_result
);
5259 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5260 PyObject
* _resultobj
;
5261 wxFontEncoding _arg0
;
5262 char *_kwnames
[] = { "encoding", NULL
};
5265 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
5268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5269 wxFont::SetDefaultEncoding(_arg0
);
5271 wxPyEndAllowThreads(__tstate
);
5272 if (PyErr_Occurred()) return NULL
;
5273 } Py_INCREF(Py_None
);
5274 _resultobj
= Py_None
;
5278 static void *SwigwxFontListTowxObject(void *ptr
) {
5281 src
= (wxFontList
*) ptr
;
5282 dest
= (wxObject
*) src
;
5283 return (void *) dest
;
5286 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
5287 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5288 PyObject
* _resultobj
;
5291 PyObject
* _argo0
= 0;
5292 PyObject
* _argo1
= 0;
5293 char *_kwnames
[] = { "self","font", NULL
};
5296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
5299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
5301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
5306 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5307 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
5308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
5313 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5314 wxFontList_AddFont(_arg0
,_arg1
);
5316 wxPyEndAllowThreads(__tstate
);
5317 if (PyErr_Occurred()) return NULL
;
5318 } Py_INCREF(Py_None
);
5319 _resultobj
= Py_None
;
5323 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5324 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5325 PyObject
* _resultobj
;
5332 bool _arg5
= (bool ) FALSE
;
5333 char * _arg6
= (char *) NULL
;
5334 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
5335 PyObject
* _argo0
= 0;
5336 int tempbool5
= (int) FALSE
;
5337 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
5341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
5344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
5346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
5350 _arg5
= (bool ) tempbool5
;
5352 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5353 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
5355 wxPyEndAllowThreads(__tstate
);
5356 if (PyErr_Occurred()) return NULL
;
5358 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
5359 _resultobj
= Py_BuildValue("s",_ptemp
);
5362 _resultobj
= Py_None
;
5367 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
5368 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5369 PyObject
* _resultobj
;
5372 PyObject
* _argo0
= 0;
5373 PyObject
* _argo1
= 0;
5374 char *_kwnames
[] = { "self","font", NULL
};
5377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
5380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
5382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
5387 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5388 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
5389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
5394 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5395 wxFontList_RemoveFont(_arg0
,_arg1
);
5397 wxPyEndAllowThreads(__tstate
);
5398 if (PyErr_Occurred()) return NULL
;
5399 } Py_INCREF(Py_None
);
5400 _resultobj
= Py_None
;
5404 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
5405 static PyObject
*_wrap_wxFontList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5406 PyObject
* _resultobj
;
5409 PyObject
* _argo0
= 0;
5410 char *_kwnames
[] = { "self", NULL
};
5413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFontList_GetCount",_kwnames
,&_argo0
))
5416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
5418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
5423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5424 _result
= (int )wxFontList_GetCount(_arg0
);
5426 wxPyEndAllowThreads(__tstate
);
5427 if (PyErr_Occurred()) return NULL
;
5428 } _resultobj
= Py_BuildValue("i",_result
);
5432 static void *SwigwxColourTowxObject(void *ptr
) {
5435 src
= (wxColour
*) ptr
;
5436 dest
= (wxObject
*) src
;
5437 return (void *) dest
;
5440 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
5441 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5442 PyObject
* _resultobj
;
5444 unsigned char _arg0
= (unsigned char ) 0;
5445 unsigned char _arg1
= (unsigned char ) 0;
5446 unsigned char _arg2
= (unsigned char ) 0;
5447 char *_kwnames
[] = { "red","green","blue", NULL
};
5451 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
5454 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5455 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
5457 wxPyEndAllowThreads(__tstate
);
5458 if (PyErr_Occurred()) return NULL
;
5460 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5461 _resultobj
= Py_BuildValue("s",_ptemp
);
5464 _resultobj
= Py_None
;
5469 #define delete_wxColour(_swigobj) (delete _swigobj)
5470 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5471 PyObject
* _resultobj
;
5474 PyObject
* _obj0
= 0;
5475 char *_kwnames
[] = { "self", NULL
};
5478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
5482 if (! wxColour_helper(_obj0
, &_arg0
))
5486 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5487 delete_wxColour(_arg0
);
5489 wxPyEndAllowThreads(__tstate
);
5490 if (PyErr_Occurred()) return NULL
;
5491 } Py_INCREF(Py_None
);
5492 _resultobj
= Py_None
;
5496 #define wxColour_Red(_swigobj) (_swigobj->Red())
5497 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5498 PyObject
* _resultobj
;
5499 unsigned char _result
;
5502 PyObject
* _obj0
= 0;
5503 char *_kwnames
[] = { "self", NULL
};
5506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
5510 if (! wxColour_helper(_obj0
, &_arg0
))
5514 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5515 _result
= (unsigned char )wxColour_Red(_arg0
);
5517 wxPyEndAllowThreads(__tstate
);
5518 if (PyErr_Occurred()) return NULL
;
5519 } _resultobj
= Py_BuildValue("b",_result
);
5523 #define wxColour_Green(_swigobj) (_swigobj->Green())
5524 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5525 PyObject
* _resultobj
;
5526 unsigned char _result
;
5529 PyObject
* _obj0
= 0;
5530 char *_kwnames
[] = { "self", NULL
};
5533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
5537 if (! wxColour_helper(_obj0
, &_arg0
))
5541 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5542 _result
= (unsigned char )wxColour_Green(_arg0
);
5544 wxPyEndAllowThreads(__tstate
);
5545 if (PyErr_Occurred()) return NULL
;
5546 } _resultobj
= Py_BuildValue("b",_result
);
5550 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
5551 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5552 PyObject
* _resultobj
;
5553 unsigned char _result
;
5556 PyObject
* _obj0
= 0;
5557 char *_kwnames
[] = { "self", NULL
};
5560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
5564 if (! wxColour_helper(_obj0
, &_arg0
))
5568 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5569 _result
= (unsigned char )wxColour_Blue(_arg0
);
5571 wxPyEndAllowThreads(__tstate
);
5572 if (PyErr_Occurred()) return NULL
;
5573 } _resultobj
= Py_BuildValue("b",_result
);
5577 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
5578 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5579 PyObject
* _resultobj
;
5583 PyObject
* _obj0
= 0;
5584 char *_kwnames
[] = { "self", NULL
};
5587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
5591 if (! wxColour_helper(_obj0
, &_arg0
))
5595 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5596 _result
= (bool )wxColour_Ok(_arg0
);
5598 wxPyEndAllowThreads(__tstate
);
5599 if (PyErr_Occurred()) return NULL
;
5600 } _resultobj
= Py_BuildValue("i",_result
);
5604 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
5605 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5606 PyObject
* _resultobj
;
5608 unsigned char _arg1
;
5609 unsigned char _arg2
;
5610 unsigned char _arg3
;
5612 PyObject
* _obj0
= 0;
5613 char *_kwnames
[] = { "self","red","green","blue", NULL
};
5616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
5620 if (! wxColour_helper(_obj0
, &_arg0
))
5624 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5625 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
5627 wxPyEndAllowThreads(__tstate
);
5628 if (PyErr_Occurred()) return NULL
;
5629 } Py_INCREF(Py_None
);
5630 _resultobj
= Py_None
;
5634 static PyObject
* wxColour_Get(wxColour
*self
) {
5635 PyObject
* rv
= PyTuple_New(3);
5636 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
5637 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
5638 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
5641 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5642 PyObject
* _resultobj
;
5646 PyObject
* _obj0
= 0;
5647 char *_kwnames
[] = { "self", NULL
};
5650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
5654 if (! wxColour_helper(_obj0
, &_arg0
))
5658 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5659 _result
= (PyObject
*)wxColour_Get(_arg0
);
5661 wxPyEndAllowThreads(__tstate
);
5662 if (PyErr_Occurred()) return NULL
;
5664 _resultobj
= _result
;
5669 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
5670 wxColourDatabase
*src
;
5672 src
= (wxColourDatabase
*) ptr
;
5673 dest
= (wxObject
*) src
;
5674 return (void *) dest
;
5677 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
5678 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5679 PyObject
* _resultobj
;
5681 wxColourDatabase
* _arg0
;
5683 PyObject
* _argo0
= 0;
5684 PyObject
* _obj1
= 0;
5685 char *_kwnames
[] = { "self","colour", NULL
};
5689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
5692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
5699 #if PYTHON_API_VERSION >= 1009
5700 char* tmpPtr
; int tmpSize
;
5701 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5702 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5705 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5707 _arg1
= new wxString(tmpPtr
, tmpSize
);
5709 if (!PyString_Check(_obj1
)) {
5710 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5713 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5717 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5718 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
5720 wxPyEndAllowThreads(__tstate
);
5721 if (PyErr_Occurred()) return NULL
;
5723 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5724 _resultobj
= Py_BuildValue("s",_ptemp
);
5727 _resultobj
= Py_None
;
5736 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
5737 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5738 PyObject
* _resultobj
;
5740 wxColourDatabase
* _arg0
;
5742 PyObject
* _argo0
= 0;
5744 PyObject
* _obj1
= 0;
5745 char *_kwnames
[] = { "self","colour", NULL
};
5748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
5751 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5752 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5759 if (! wxColour_helper(_obj1
, &_arg1
))
5763 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5764 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
5766 wxPyEndAllowThreads(__tstate
);
5767 if (PyErr_Occurred()) return NULL
;
5769 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5777 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
5778 // first see if the name is already there
5779 wxString cName
= name
;
5781 wxString cName2
= cName
;
5782 if ( !cName2
.Replace("GRAY", "GREY") )
5785 wxNode
*node
= self
->First();
5787 const wxChar
*key
= node
->GetKeyString();
5788 if ( cName
== key
|| cName2
== key
) {
5789 wxColour
* c
= (wxColour
*)node
->Data();
5790 c
->Set(red
, green
, blue
);
5793 node
= node
->Next();
5796 // otherwise append the new colour
5797 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
5799 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5800 PyObject
* _resultobj
;
5801 wxColourDatabase
* _arg0
;
5806 PyObject
* _argo0
= 0;
5807 PyObject
* _obj1
= 0;
5808 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
5811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5821 #if PYTHON_API_VERSION >= 1009
5822 char* tmpPtr
; int tmpSize
;
5823 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5824 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5827 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5829 _arg1
= new wxString(tmpPtr
, tmpSize
);
5831 if (!PyString_Check(_obj1
)) {
5832 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5835 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5839 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5840 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5842 wxPyEndAllowThreads(__tstate
);
5843 if (PyErr_Occurred()) return NULL
;
5844 } Py_INCREF(Py_None
);
5845 _resultobj
= Py_None
;
5853 static void *SwigwxPenTowxGDIObject(void *ptr
) {
5856 src
= (wxPen
*) ptr
;
5857 dest
= (wxGDIObject
*) src
;
5858 return (void *) dest
;
5861 static void *SwigwxPenTowxObject(void *ptr
) {
5864 src
= (wxPen
*) ptr
;
5865 dest
= (wxObject
*) src
;
5866 return (void *) dest
;
5869 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5870 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5871 PyObject
* _resultobj
;
5874 int _arg1
= (int ) 1;
5875 int _arg2
= (int ) wxSOLID
;
5877 PyObject
* _obj0
= 0;
5878 char *_kwnames
[] = { "colour","width","style", NULL
};
5882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5886 if (! wxColour_helper(_obj0
, &_arg0
))
5890 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5891 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
5893 wxPyEndAllowThreads(__tstate
);
5894 if (PyErr_Occurred()) return NULL
;
5896 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5897 _resultobj
= Py_BuildValue("s",_ptemp
);
5900 _resultobj
= Py_None
;
5905 #define delete_wxPen(_swigobj) (delete _swigobj)
5906 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5907 PyObject
* _resultobj
;
5909 PyObject
* _argo0
= 0;
5910 char *_kwnames
[] = { "self", NULL
};
5913 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
5916 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5917 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5918 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5923 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5924 delete_wxPen(_arg0
);
5926 wxPyEndAllowThreads(__tstate
);
5927 if (PyErr_Occurred()) return NULL
;
5928 } Py_INCREF(Py_None
);
5929 _resultobj
= Py_None
;
5933 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5934 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5935 PyObject
* _resultobj
;
5938 PyObject
* _argo0
= 0;
5939 char *_kwnames
[] = { "self", NULL
};
5942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
5945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5952 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5953 _result
= (int )wxPen_GetCap(_arg0
);
5955 wxPyEndAllowThreads(__tstate
);
5956 if (PyErr_Occurred()) return NULL
;
5957 } _resultobj
= Py_BuildValue("i",_result
);
5961 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5962 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5963 PyObject
* _resultobj
;
5966 PyObject
* _argo0
= 0;
5967 char *_kwnames
[] = { "self", NULL
};
5971 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
5974 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5975 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5976 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5981 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5982 _result
= new wxColour (wxPen_GetColour(_arg0
));
5984 wxPyEndAllowThreads(__tstate
);
5985 if (PyErr_Occurred()) return NULL
;
5986 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5987 _resultobj
= Py_BuildValue("s",_ptemp
);
5991 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5992 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5993 PyObject
* _resultobj
;
5996 PyObject
* _argo0
= 0;
5997 char *_kwnames
[] = { "self", NULL
};
6000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
6003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
6010 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6011 _result
= (int )wxPen_GetJoin(_arg0
);
6013 wxPyEndAllowThreads(__tstate
);
6014 if (PyErr_Occurred()) return NULL
;
6015 } _resultobj
= Py_BuildValue("i",_result
);
6019 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
6020 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6021 PyObject
* _resultobj
;
6024 PyObject
* _argo0
= 0;
6025 char *_kwnames
[] = { "self", NULL
};
6028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
6031 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6032 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6033 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
6038 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6039 _result
= (int )wxPen_GetStyle(_arg0
);
6041 wxPyEndAllowThreads(__tstate
);
6042 if (PyErr_Occurred()) return NULL
;
6043 } _resultobj
= Py_BuildValue("i",_result
);
6047 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
6048 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6049 PyObject
* _resultobj
;
6052 PyObject
* _argo0
= 0;
6053 char *_kwnames
[] = { "self", NULL
};
6056 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
6059 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6060 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
6066 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6067 _result
= (int )wxPen_GetWidth(_arg0
);
6069 wxPyEndAllowThreads(__tstate
);
6070 if (PyErr_Occurred()) return NULL
;
6071 } _resultobj
= Py_BuildValue("i",_result
);
6075 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
6076 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6077 PyObject
* _resultobj
;
6080 PyObject
* _argo0
= 0;
6081 char *_kwnames
[] = { "self", NULL
};
6084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
6087 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6088 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
6094 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6095 _result
= (bool )wxPen_Ok(_arg0
);
6097 wxPyEndAllowThreads(__tstate
);
6098 if (PyErr_Occurred()) return NULL
;
6099 } _resultobj
= Py_BuildValue("i",_result
);
6103 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
6104 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6105 PyObject
* _resultobj
;
6108 PyObject
* _argo0
= 0;
6109 char *_kwnames
[] = { "self","cap_style", NULL
};
6112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
6115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
6122 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6123 wxPen_SetCap(_arg0
,_arg1
);
6125 wxPyEndAllowThreads(__tstate
);
6126 if (PyErr_Occurred()) return NULL
;
6127 } Py_INCREF(Py_None
);
6128 _resultobj
= Py_None
;
6132 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6133 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6134 PyObject
* _resultobj
;
6137 PyObject
* _argo0
= 0;
6139 PyObject
* _obj1
= 0;
6140 char *_kwnames
[] = { "self","colour", NULL
};
6143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
6146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
6154 if (! wxColour_helper(_obj1
, &_arg1
))
6158 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6159 wxPen_SetColour(_arg0
,*_arg1
);
6161 wxPyEndAllowThreads(__tstate
);
6162 if (PyErr_Occurred()) return NULL
;
6163 } Py_INCREF(Py_None
);
6164 _resultobj
= Py_None
;
6168 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
6169 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6170 PyObject
* _resultobj
;
6173 PyObject
* _argo0
= 0;
6174 char *_kwnames
[] = { "self","join_style", NULL
};
6177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
6180 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6181 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
6187 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6188 wxPen_SetJoin(_arg0
,_arg1
);
6190 wxPyEndAllowThreads(__tstate
);
6191 if (PyErr_Occurred()) return NULL
;
6192 } Py_INCREF(Py_None
);
6193 _resultobj
= Py_None
;
6197 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6198 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6199 PyObject
* _resultobj
;
6202 PyObject
* _argo0
= 0;
6203 char *_kwnames
[] = { "self","style", NULL
};
6206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
6209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
6216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6217 wxPen_SetStyle(_arg0
,_arg1
);
6219 wxPyEndAllowThreads(__tstate
);
6220 if (PyErr_Occurred()) return NULL
;
6221 } Py_INCREF(Py_None
);
6222 _resultobj
= Py_None
;
6226 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
6227 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6228 PyObject
* _resultobj
;
6231 PyObject
* _argo0
= 0;
6232 char *_kwnames
[] = { "self","width", NULL
};
6235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
6238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
6245 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6246 wxPen_SetWidth(_arg0
,_arg1
);
6248 wxPyEndAllowThreads(__tstate
);
6249 if (PyErr_Occurred()) return NULL
;
6250 } Py_INCREF(Py_None
);
6251 _resultobj
= Py_None
;
6255 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6256 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6257 PyObject
* _resultobj
;
6261 PyObject
* _argo0
= 0;
6262 PyObject
* _obj2
= 0;
6263 char *_kwnames
[] = { "self","choices", NULL
};
6266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
6269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
6277 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
6278 if (_arg2
== NULL
) {
6284 _arg1
= PyList_Size(_obj2
);
6291 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6292 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
6294 wxPyEndAllowThreads(__tstate
);
6295 if (PyErr_Occurred()) return NULL
;
6296 } Py_INCREF(Py_None
);
6297 _resultobj
= Py_None
;
6304 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
6305 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6306 PyObject
* _resultobj
;
6309 PyObject
* _argo0
= 0;
6310 char *_kwnames
[] = { "self", NULL
};
6314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
6317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
6324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6325 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
6327 wxPyEndAllowThreads(__tstate
);
6328 if (PyErr_Occurred()) return NULL
;
6330 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
6331 _resultobj
= Py_BuildValue("s",_ptemp
);
6334 _resultobj
= Py_None
;
6339 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6340 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6341 PyObject
* _resultobj
;
6344 PyObject
* _argo0
= 0;
6345 PyObject
* _argo1
= 0;
6346 char *_kwnames
[] = { "self","stipple", NULL
};
6349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
6352 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6353 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
6359 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6360 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
6366 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6367 wxPen_SetStipple(_arg0
,*_arg1
);
6369 wxPyEndAllowThreads(__tstate
);
6370 if (PyErr_Occurred()) return NULL
;
6371 } Py_INCREF(Py_None
);
6372 _resultobj
= Py_None
;
6376 static void *SwigwxPyPenTowxPen(void *ptr
) {
6379 src
= (wxPyPen
*) ptr
;
6380 dest
= (wxPen
*) src
;
6381 return (void *) dest
;
6384 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
6387 src
= (wxPyPen
*) ptr
;
6388 dest
= (wxGDIObject
*) src
;
6389 return (void *) dest
;
6392 static void *SwigwxPyPenTowxObject(void *ptr
) {
6395 src
= (wxPyPen
*) ptr
;
6396 dest
= (wxObject
*) src
;
6397 return (void *) dest
;
6400 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
6401 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6402 PyObject
* _resultobj
;
6405 int _arg1
= (int ) 1;
6406 int _arg2
= (int ) wxSOLID
;
6408 PyObject
* _obj0
= 0;
6409 char *_kwnames
[] = { "colour","width","style", NULL
};
6413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
6417 if (! wxColour_helper(_obj0
, &_arg0
))
6421 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6422 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
6424 wxPyEndAllowThreads(__tstate
);
6425 if (PyErr_Occurred()) return NULL
;
6427 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
6428 _resultobj
= Py_BuildValue("s",_ptemp
);
6431 _resultobj
= Py_None
;
6436 #define delete_wxPyPen(_swigobj) (delete _swigobj)
6437 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6438 PyObject
* _resultobj
;
6440 PyObject
* _argo0
= 0;
6441 char *_kwnames
[] = { "self", NULL
};
6444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
6447 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6448 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
6449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
6454 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6455 delete_wxPyPen(_arg0
);
6457 wxPyEndAllowThreads(__tstate
);
6458 if (PyErr_Occurred()) return NULL
;
6459 } Py_INCREF(Py_None
);
6460 _resultobj
= Py_None
;
6464 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6465 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6466 PyObject
* _resultobj
;
6470 PyObject
* _argo0
= 0;
6471 PyObject
* _obj2
= 0;
6472 char *_kwnames
[] = { "self","choices", NULL
};
6475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
6478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
6480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
6486 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
6487 if (_arg2
== NULL
) {
6493 _arg1
= PyList_Size(_obj2
);
6500 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6501 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
6503 wxPyEndAllowThreads(__tstate
);
6504 if (PyErr_Occurred()) return NULL
;
6505 } Py_INCREF(Py_None
);
6506 _resultobj
= Py_None
;
6513 static void *SwigwxPenListTowxObject(void *ptr
) {
6516 src
= (wxPenList
*) ptr
;
6517 dest
= (wxObject
*) src
;
6518 return (void *) dest
;
6521 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
6522 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6523 PyObject
* _resultobj
;
6526 PyObject
* _argo0
= 0;
6527 PyObject
* _argo1
= 0;
6528 char *_kwnames
[] = { "self","pen", NULL
};
6531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
6534 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6535 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
6536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
6541 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6542 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
6543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
6548 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6549 wxPenList_AddPen(_arg0
,_arg1
);
6551 wxPyEndAllowThreads(__tstate
);
6552 if (PyErr_Occurred()) return NULL
;
6553 } Py_INCREF(Py_None
);
6554 _resultobj
= Py_None
;
6558 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
6559 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6560 PyObject
* _resultobj
;
6566 PyObject
* _argo0
= 0;
6568 PyObject
* _obj1
= 0;
6569 char *_kwnames
[] = { "self","colour","width","style", NULL
};
6573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
6576 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6577 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
6578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
6584 if (! wxColour_helper(_obj1
, &_arg1
))
6588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6589 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
6591 wxPyEndAllowThreads(__tstate
);
6592 if (PyErr_Occurred()) return NULL
;
6594 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6595 _resultobj
= Py_BuildValue("s",_ptemp
);
6598 _resultobj
= Py_None
;
6603 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
6604 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6605 PyObject
* _resultobj
;
6608 PyObject
* _argo0
= 0;
6609 PyObject
* _argo1
= 0;
6610 char *_kwnames
[] = { "self","pen", NULL
};
6613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
6616 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6617 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
6618 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
6623 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6624 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
6625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
6630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6631 wxPenList_RemovePen(_arg0
,_arg1
);
6633 wxPyEndAllowThreads(__tstate
);
6634 if (PyErr_Occurred()) return NULL
;
6635 } Py_INCREF(Py_None
);
6636 _resultobj
= Py_None
;
6640 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
6641 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6642 PyObject
* _resultobj
;
6645 PyObject
* _argo0
= 0;
6646 char *_kwnames
[] = { "self", NULL
};
6649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
6652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
6654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
6659 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6660 _result
= (int )wxPenList_GetCount(_arg0
);
6662 wxPyEndAllowThreads(__tstate
);
6663 if (PyErr_Occurred()) return NULL
;
6664 } _resultobj
= Py_BuildValue("i",_result
);
6668 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
6671 src
= (wxBrush
*) ptr
;
6672 dest
= (wxGDIObject
*) src
;
6673 return (void *) dest
;
6676 static void *SwigwxBrushTowxObject(void *ptr
) {
6679 src
= (wxBrush
*) ptr
;
6680 dest
= (wxObject
*) src
;
6681 return (void *) dest
;
6684 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
6685 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6686 PyObject
* _resultobj
;
6689 int _arg1
= (int ) wxSOLID
;
6691 PyObject
* _obj0
= 0;
6692 char *_kwnames
[] = { "colour","style", NULL
};
6696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
6700 if (! wxColour_helper(_obj0
, &_arg0
))
6704 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6705 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
6707 wxPyEndAllowThreads(__tstate
);
6708 if (PyErr_Occurred()) return NULL
;
6710 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6711 _resultobj
= Py_BuildValue("s",_ptemp
);
6714 _resultobj
= Py_None
;
6719 #define delete_wxBrush(_swigobj) (delete _swigobj)
6720 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6721 PyObject
* _resultobj
;
6723 PyObject
* _argo0
= 0;
6724 char *_kwnames
[] = { "self", NULL
};
6727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
6730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
6737 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6738 delete_wxBrush(_arg0
);
6740 wxPyEndAllowThreads(__tstate
);
6741 if (PyErr_Occurred()) return NULL
;
6742 } Py_INCREF(Py_None
);
6743 _resultobj
= Py_None
;
6747 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
6748 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6749 PyObject
* _resultobj
;
6752 PyObject
* _argo0
= 0;
6753 char *_kwnames
[] = { "self", NULL
};
6757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
6760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
6767 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6768 _result
= new wxColour (wxBrush_GetColour(_arg0
));
6770 wxPyEndAllowThreads(__tstate
);
6771 if (PyErr_Occurred()) return NULL
;
6772 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6773 _resultobj
= Py_BuildValue("s",_ptemp
);
6777 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
6778 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6779 PyObject
* _resultobj
;
6782 PyObject
* _argo0
= 0;
6783 char *_kwnames
[] = { "self", NULL
};
6787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
6790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6798 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
6800 wxPyEndAllowThreads(__tstate
);
6801 if (PyErr_Occurred()) return NULL
;
6803 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
6804 _resultobj
= Py_BuildValue("s",_ptemp
);
6807 _resultobj
= Py_None
;
6812 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6813 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6814 PyObject
* _resultobj
;
6817 PyObject
* _argo0
= 0;
6818 char *_kwnames
[] = { "self", NULL
};
6821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
6824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6831 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6832 _result
= (int )wxBrush_GetStyle(_arg0
);
6834 wxPyEndAllowThreads(__tstate
);
6835 if (PyErr_Occurred()) return NULL
;
6836 } _resultobj
= Py_BuildValue("i",_result
);
6840 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6841 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6842 PyObject
* _resultobj
;
6845 PyObject
* _argo0
= 0;
6846 char *_kwnames
[] = { "self", NULL
};
6849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
6852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6859 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6860 _result
= (bool )wxBrush_Ok(_arg0
);
6862 wxPyEndAllowThreads(__tstate
);
6863 if (PyErr_Occurred()) return NULL
;
6864 } _resultobj
= Py_BuildValue("i",_result
);
6868 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6869 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6870 PyObject
* _resultobj
;
6873 PyObject
* _argo0
= 0;
6875 PyObject
* _obj1
= 0;
6876 char *_kwnames
[] = { "self","colour", NULL
};
6879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
6882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6890 if (! wxColour_helper(_obj1
, &_arg1
))
6894 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6895 wxBrush_SetColour(_arg0
,*_arg1
);
6897 wxPyEndAllowThreads(__tstate
);
6898 if (PyErr_Occurred()) return NULL
;
6899 } Py_INCREF(Py_None
);
6900 _resultobj
= Py_None
;
6904 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6905 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6906 PyObject
* _resultobj
;
6909 PyObject
* _argo0
= 0;
6910 PyObject
* _argo1
= 0;
6911 char *_kwnames
[] = { "self","bitmap", NULL
};
6914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
6917 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6918 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6919 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6924 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6925 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6931 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6932 wxBrush_SetStipple(_arg0
,*_arg1
);
6934 wxPyEndAllowThreads(__tstate
);
6935 if (PyErr_Occurred()) return NULL
;
6936 } Py_INCREF(Py_None
);
6937 _resultobj
= Py_None
;
6941 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6942 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6943 PyObject
* _resultobj
;
6946 PyObject
* _argo0
= 0;
6947 char *_kwnames
[] = { "self","style", NULL
};
6950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
6953 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6954 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6960 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6961 wxBrush_SetStyle(_arg0
,_arg1
);
6963 wxPyEndAllowThreads(__tstate
);
6964 if (PyErr_Occurred()) return NULL
;
6965 } Py_INCREF(Py_None
);
6966 _resultobj
= Py_None
;
6970 static void *SwigwxBrushListTowxObject(void *ptr
) {
6973 src
= (wxBrushList
*) ptr
;
6974 dest
= (wxObject
*) src
;
6975 return (void *) dest
;
6978 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6979 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6980 PyObject
* _resultobj
;
6981 wxBrushList
* _arg0
;
6983 PyObject
* _argo0
= 0;
6984 PyObject
* _argo1
= 0;
6985 char *_kwnames
[] = { "self","brush", NULL
};
6988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
6991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6998 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6999 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7000 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
7005 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7006 wxBrushList_AddBrush(_arg0
,_arg1
);
7008 wxPyEndAllowThreads(__tstate
);
7009 if (PyErr_Occurred()) return NULL
;
7010 } Py_INCREF(Py_None
);
7011 _resultobj
= Py_None
;
7015 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
7016 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7017 PyObject
* _resultobj
;
7019 wxBrushList
* _arg0
;
7022 PyObject
* _argo0
= 0;
7024 PyObject
* _obj1
= 0;
7025 char *_kwnames
[] = { "self","colour","style", NULL
};
7029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
7032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
7034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
7040 if (! wxColour_helper(_obj1
, &_arg1
))
7044 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7045 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
7047 wxPyEndAllowThreads(__tstate
);
7048 if (PyErr_Occurred()) return NULL
;
7050 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
7051 _resultobj
= Py_BuildValue("s",_ptemp
);
7054 _resultobj
= Py_None
;
7059 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
7060 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7061 PyObject
* _resultobj
;
7062 wxBrushList
* _arg0
;
7064 PyObject
* _argo0
= 0;
7065 PyObject
* _argo1
= 0;
7066 char *_kwnames
[] = { "self","brush", NULL
};
7069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
7072 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7073 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
7074 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
7079 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7080 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
7086 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7087 wxBrushList_RemoveBrush(_arg0
,_arg1
);
7089 wxPyEndAllowThreads(__tstate
);
7090 if (PyErr_Occurred()) return NULL
;
7091 } Py_INCREF(Py_None
);
7092 _resultobj
= Py_None
;
7096 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
7097 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7098 PyObject
* _resultobj
;
7100 wxBrushList
* _arg0
;
7101 PyObject
* _argo0
= 0;
7102 char *_kwnames
[] = { "self", NULL
};
7105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
7108 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7109 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
7110 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
7115 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7116 _result
= (int )wxBrushList_GetCount(_arg0
);
7118 wxPyEndAllowThreads(__tstate
);
7119 if (PyErr_Occurred()) return NULL
;
7120 } _resultobj
= Py_BuildValue("i",_result
);
7124 static void *SwigwxDCTowxObject(void *ptr
) {
7128 dest
= (wxObject
*) src
;
7129 return (void *) dest
;
7132 #define delete_wxDC(_swigobj) (delete _swigobj)
7133 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7134 PyObject
* _resultobj
;
7136 PyObject
* _argo0
= 0;
7137 char *_kwnames
[] = { "self", NULL
};
7140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
7143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
7150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7153 wxPyEndAllowThreads(__tstate
);
7154 if (PyErr_Occurred()) return NULL
;
7155 } Py_INCREF(Py_None
);
7156 _resultobj
= Py_None
;
7160 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
7161 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7162 PyObject
* _resultobj
;
7164 PyObject
* _argo0
= 0;
7165 char *_kwnames
[] = { "self", NULL
};
7168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
7171 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7172 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
7178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7179 wxDC_BeginDrawing(_arg0
);
7181 wxPyEndAllowThreads(__tstate
);
7182 if (PyErr_Occurred()) return NULL
;
7183 } Py_INCREF(Py_None
);
7184 _resultobj
= Py_None
;
7188 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
7189 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7190 PyObject
* _resultobj
;
7200 int _arg8
= (int ) wxCOPY
;
7201 int _arg9
= (int ) FALSE
;
7202 PyObject
* _argo0
= 0;
7203 PyObject
* _argo5
= 0;
7204 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
7207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
7210 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7211 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
7217 if (_argo5
== Py_None
) { _arg5
= NULL
; }
7218 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
7219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
7224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7225 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
7227 wxPyEndAllowThreads(__tstate
);
7228 if (PyErr_Occurred()) return NULL
;
7229 } _resultobj
= Py_BuildValue("i",_result
);
7233 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
7234 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7235 PyObject
* _resultobj
;
7237 PyObject
* _argo0
= 0;
7238 char *_kwnames
[] = { "self", NULL
};
7241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
7244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
7251 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7254 wxPyEndAllowThreads(__tstate
);
7255 if (PyErr_Occurred()) return NULL
;
7256 } Py_INCREF(Py_None
);
7257 _resultobj
= Py_None
;
7261 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
7262 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7263 PyObject
* _resultobj
;
7267 PyObject
* _argo0
= 0;
7268 char *_kwnames
[] = { "self","x","y", NULL
};
7271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
7281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7282 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
7284 wxPyEndAllowThreads(__tstate
);
7285 if (PyErr_Occurred()) return NULL
;
7286 } Py_INCREF(Py_None
);
7287 _resultobj
= Py_None
;
7291 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
7292 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7293 PyObject
* _resultobj
;
7295 PyObject
* _argo0
= 0;
7296 char *_kwnames
[] = { "self", NULL
};
7299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
7302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
7309 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7310 wxDC_DestroyClippingRegion(_arg0
);
7312 wxPyEndAllowThreads(__tstate
);
7313 if (PyErr_Occurred()) return NULL
;
7314 } Py_INCREF(Py_None
);
7315 _resultobj
= Py_None
;
7319 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
7320 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7321 PyObject
* _resultobj
;
7325 PyObject
* _argo0
= 0;
7326 char *_kwnames
[] = { "self","x", NULL
};
7329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
7332 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7333 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
7339 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7340 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
7342 wxPyEndAllowThreads(__tstate
);
7343 if (PyErr_Occurred()) return NULL
;
7344 } _resultobj
= Py_BuildValue("l",_result
);
7348 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
7349 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7350 PyObject
* _resultobj
;
7354 PyObject
* _argo0
= 0;
7355 char *_kwnames
[] = { "self","x", NULL
};
7358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
7361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
7368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7369 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
7371 wxPyEndAllowThreads(__tstate
);
7372 if (PyErr_Occurred()) return NULL
;
7373 } _resultobj
= Py_BuildValue("l",_result
);
7377 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
7378 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7379 PyObject
* _resultobj
;
7383 PyObject
* _argo0
= 0;
7384 char *_kwnames
[] = { "self","y", NULL
};
7387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
7390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
7397 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7398 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
7400 wxPyEndAllowThreads(__tstate
);
7401 if (PyErr_Occurred()) return NULL
;
7402 } _resultobj
= Py_BuildValue("l",_result
);
7406 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
7407 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7408 PyObject
* _resultobj
;
7412 PyObject
* _argo0
= 0;
7413 char *_kwnames
[] = { "self","y", NULL
};
7416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
7419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
7426 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7427 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
7429 wxPyEndAllowThreads(__tstate
);
7430 if (PyErr_Occurred()) return NULL
;
7431 } _resultobj
= Py_BuildValue("l",_result
);
7435 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7436 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7437 PyObject
* _resultobj
;
7445 PyObject
* _argo0
= 0;
7446 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
7449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
7452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
7459 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7460 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7462 wxPyEndAllowThreads(__tstate
);
7463 if (PyErr_Occurred()) return NULL
;
7464 } Py_INCREF(Py_None
);
7465 _resultobj
= Py_None
;
7469 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
7470 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7471 PyObject
* _resultobj
;
7476 PyObject
* _argo0
= 0;
7477 char *_kwnames
[] = { "self","x","y","radius", NULL
};
7480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
7483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
7490 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7491 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
7493 wxPyEndAllowThreads(__tstate
);
7494 if (PyErr_Occurred()) return NULL
;
7495 } Py_INCREF(Py_None
);
7496 _resultobj
= Py_None
;
7500 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7501 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7502 PyObject
* _resultobj
;
7508 PyObject
* _argo0
= 0;
7509 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
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_DrawEllipse. Expected _wxDC_p.");
7522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7523 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7525 wxPyEndAllowThreads(__tstate
);
7526 if (PyErr_Occurred()) return NULL
;
7527 } Py_INCREF(Py_None
);
7528 _resultobj
= Py_None
;
7532 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7533 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7534 PyObject
* _resultobj
;
7542 PyObject
* _argo0
= 0;
7543 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
7546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
7549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
7556 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7557 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7559 wxPyEndAllowThreads(__tstate
);
7560 if (PyErr_Occurred()) return NULL
;
7561 } Py_INCREF(Py_None
);
7562 _resultobj
= Py_None
;
7566 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
7567 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7568 PyObject
* _resultobj
;
7573 PyObject
* _argo0
= 0;
7574 PyObject
* _argo1
= 0;
7575 char *_kwnames
[] = { "self","icon","x","y", NULL
};
7578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
7581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
7588 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7589 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
7590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
7595 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7596 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
7598 wxPyEndAllowThreads(__tstate
);
7599 if (PyErr_Occurred()) return NULL
;
7600 } Py_INCREF(Py_None
);
7601 _resultobj
= Py_None
;
7605 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7606 static PyObject
*_wrap_wxDC_DrawLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7607 PyObject
* _resultobj
;
7611 int _arg3
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
7612 int _arg4
= (int ) -1;
7613 PyObject
* _argo0
= 0;
7614 PyObject
* _obj1
= 0;
7616 PyObject
* _obj2
= 0;
7617 char *_kwnames
[] = { "self","text","rect","alignment","indexAccel", NULL
};
7620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|ii:wxDC_DrawLabel",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
,&_arg4
))
7623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
7630 #if PYTHON_API_VERSION >= 1009
7631 char* tmpPtr
; int tmpSize
;
7632 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7633 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7636 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7638 _arg1
= new wxString(tmpPtr
, tmpSize
);
7640 if (!PyString_Check(_obj1
)) {
7641 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7644 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7649 if (! wxRect_helper(_obj2
, &_arg2
))
7653 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7654 wxDC_DrawLabel(_arg0
,*_arg1
,*_arg2
,_arg3
,_arg4
);
7656 wxPyEndAllowThreads(__tstate
);
7657 if (PyErr_Occurred()) return NULL
;
7658 } Py_INCREF(Py_None
);
7659 _resultobj
= Py_None
;
7667 static wxRect
wxDC_DrawImageLabel(wxDC
*self
,const wxString
& text
,const wxBitmap
& image
,const wxRect
& rect
,int alignment
,int indexAccel
) {
7669 self
->DrawLabel(text
, image
, rect
, alignment
, indexAccel
, &rv
);
7672 static PyObject
*_wrap_wxDC_DrawImageLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7673 PyObject
* _resultobj
;
7679 int _arg4
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
7680 int _arg5
= (int ) -1;
7681 PyObject
* _argo0
= 0;
7682 PyObject
* _obj1
= 0;
7683 PyObject
* _argo2
= 0;
7685 PyObject
* _obj3
= 0;
7686 char *_kwnames
[] = { "self","text","image","rect","alignment","indexAccel", NULL
};
7690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO|ii:wxDC_DrawImageLabel",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
,&_arg4
,&_arg5
))
7693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
7700 #if PYTHON_API_VERSION >= 1009
7701 char* tmpPtr
; int tmpSize
;
7702 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7703 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7706 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7708 _arg1
= new wxString(tmpPtr
, tmpSize
);
7710 if (!PyString_Check(_obj1
)) {
7711 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7714 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7718 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7719 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
7720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
7726 if (! wxRect_helper(_obj3
, &_arg3
))
7730 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7731 _result
= new wxRect (wxDC_DrawImageLabel(_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
));
7733 wxPyEndAllowThreads(__tstate
);
7734 if (PyErr_Occurred()) return NULL
;
7735 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
7736 _resultobj
= Py_BuildValue("s",_ptemp
);
7744 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7745 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7746 PyObject
* _resultobj
;
7752 PyObject
* _argo0
= 0;
7753 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
7756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
7766 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7767 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7769 wxPyEndAllowThreads(__tstate
);
7770 if (PyErr_Occurred()) return NULL
;
7771 } Py_INCREF(Py_None
);
7772 _resultobj
= Py_None
;
7776 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7777 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7778 PyObject
* _resultobj
;
7782 long _arg3
= (long ) 0;
7783 long _arg4
= (long ) 0;
7784 PyObject
* _argo0
= 0;
7786 PyObject
* _obj2
= 0;
7787 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
7790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
7793 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7794 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
7801 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7802 if (_arg2
== NULL
) {
7810 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7811 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7813 wxPyEndAllowThreads(__tstate
);
7814 if (PyErr_Occurred()) return NULL
;
7815 } Py_INCREF(Py_None
);
7816 _resultobj
= Py_None
;
7823 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7824 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7825 PyObject
* _resultobj
;
7829 long _arg3
= (long ) 0;
7830 long _arg4
= (long ) 0;
7831 int _arg5
= (int ) wxODDEVEN_RULE
;
7832 PyObject
* _argo0
= 0;
7834 PyObject
* _obj2
= 0;
7835 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
7838 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
7841 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7842 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7843 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
7849 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7850 if (_arg2
== NULL
) {
7858 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7859 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7861 wxPyEndAllowThreads(__tstate
);
7862 if (PyErr_Occurred()) return NULL
;
7863 } Py_INCREF(Py_None
);
7864 _resultobj
= Py_None
;
7871 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
7872 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7873 PyObject
* _resultobj
;
7877 PyObject
* _argo0
= 0;
7878 char *_kwnames
[] = { "self","x","y", NULL
};
7881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
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_DrawPoint. Expected _wxDC_p.");
7891 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7892 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
7894 wxPyEndAllowThreads(__tstate
);
7895 if (PyErr_Occurred()) return NULL
;
7896 } Py_INCREF(Py_None
);
7897 _resultobj
= Py_None
;
7901 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7902 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7903 PyObject
* _resultobj
;
7909 PyObject
* _argo0
= 0;
7910 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7913 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7916 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7917 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7918 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
7923 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7924 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7926 wxPyEndAllowThreads(__tstate
);
7927 if (PyErr_Occurred()) return NULL
;
7928 } Py_INCREF(Py_None
);
7929 _resultobj
= Py_None
;
7933 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7934 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7935 PyObject
* _resultobj
;
7941 PyObject
* _argo0
= 0;
7942 PyObject
* _obj1
= 0;
7943 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
7946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
7949 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7950 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
7956 #if PYTHON_API_VERSION >= 1009
7957 char* tmpPtr
; int tmpSize
;
7958 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7959 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7962 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7964 _arg1
= new wxString(tmpPtr
, tmpSize
);
7966 if (!PyString_Check(_obj1
)) {
7967 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7970 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7974 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7975 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7977 wxPyEndAllowThreads(__tstate
);
7978 if (PyErr_Occurred()) return NULL
;
7979 } Py_INCREF(Py_None
);
7980 _resultobj
= Py_None
;
7988 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7989 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7990 PyObject
* _resultobj
;
7996 long _arg5
= (long ) 20;
7997 PyObject
* _argo0
= 0;
7998 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
8001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
8004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
8011 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8012 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
8014 wxPyEndAllowThreads(__tstate
);
8015 if (PyErr_Occurred()) return NULL
;
8016 } Py_INCREF(Py_None
);
8017 _resultobj
= Py_None
;
8021 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
8022 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8023 PyObject
* _resultobj
;
8027 PyObject
* _argo0
= 0;
8029 PyObject
* _obj2
= 0;
8030 char *_kwnames
[] = { "self","points", NULL
};
8033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
8036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
8044 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
8045 if (_arg2
== NULL
) {
8053 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8054 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
8056 wxPyEndAllowThreads(__tstate
);
8057 if (PyErr_Occurred()) return NULL
;
8058 } Py_INCREF(Py_None
);
8059 _resultobj
= Py_None
;
8066 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
8067 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8068 PyObject
* _resultobj
;
8073 PyObject
* _argo0
= 0;
8074 PyObject
* _obj1
= 0;
8075 char *_kwnames
[] = { "self","text","x","y", NULL
};
8078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
8081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
8088 #if PYTHON_API_VERSION >= 1009
8089 char* tmpPtr
; int tmpSize
;
8090 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8091 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8094 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8096 _arg1
= new wxString(tmpPtr
, tmpSize
);
8098 if (!PyString_Check(_obj1
)) {
8099 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8102 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8106 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8107 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
8109 wxPyEndAllowThreads(__tstate
);
8110 if (PyErr_Occurred()) return NULL
;
8111 } Py_INCREF(Py_None
);
8112 _resultobj
= Py_None
;
8120 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
8121 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8122 PyObject
* _resultobj
;
8124 PyObject
* _argo0
= 0;
8125 char *_kwnames
[] = { "self", NULL
};
8128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
8131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
8138 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8141 wxPyEndAllowThreads(__tstate
);
8142 if (PyErr_Occurred()) return NULL
;
8143 } Py_INCREF(Py_None
);
8144 _resultobj
= Py_None
;
8148 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
8149 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8150 PyObject
* _resultobj
;
8152 PyObject
* _argo0
= 0;
8153 char *_kwnames
[] = { "self", NULL
};
8156 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
8159 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8160 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8161 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
8166 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8167 wxDC_EndDrawing(_arg0
);
8169 wxPyEndAllowThreads(__tstate
);
8170 if (PyErr_Occurred()) return NULL
;
8171 } Py_INCREF(Py_None
);
8172 _resultobj
= Py_None
;
8176 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
8177 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8178 PyObject
* _resultobj
;
8180 PyObject
* _argo0
= 0;
8181 char *_kwnames
[] = { "self", NULL
};
8184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
8187 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8188 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
8194 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8195 wxDC_EndPage(_arg0
);
8197 wxPyEndAllowThreads(__tstate
);
8198 if (PyErr_Occurred()) return NULL
;
8199 } Py_INCREF(Py_None
);
8200 _resultobj
= Py_None
;
8204 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8205 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8206 PyObject
* _resultobj
;
8211 int _arg4
= (int ) wxFLOOD_SURFACE
;
8212 PyObject
* _argo0
= 0;
8214 PyObject
* _obj3
= 0;
8215 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
8218 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
8221 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8222 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
8229 if (! wxColour_helper(_obj3
, &_arg3
))
8233 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8234 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
8236 wxPyEndAllowThreads(__tstate
);
8237 if (PyErr_Occurred()) return NULL
;
8238 } Py_INCREF(Py_None
);
8239 _resultobj
= Py_None
;
8243 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
8244 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8245 PyObject
* _resultobj
;
8248 PyObject
* _argo0
= 0;
8249 char *_kwnames
[] = { "self", NULL
};
8253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
8256 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8257 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
8263 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8264 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
8266 wxPyEndAllowThreads(__tstate
);
8267 if (PyErr_Occurred()) return NULL
;
8268 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
8269 _resultobj
= Py_BuildValue("s",_ptemp
);
8273 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
8274 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8275 PyObject
* _resultobj
;
8278 PyObject
* _argo0
= 0;
8279 char *_kwnames
[] = { "self", NULL
};
8283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
8286 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8287 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8288 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
8293 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8294 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
8296 wxPyEndAllowThreads(__tstate
);
8297 if (PyErr_Occurred()) return NULL
;
8298 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
8299 _resultobj
= Py_BuildValue("s",_ptemp
);
8303 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
8304 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8305 PyObject
* _resultobj
;
8308 PyObject
* _argo0
= 0;
8309 char *_kwnames
[] = { "self", NULL
};
8312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
8315 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8316 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
8322 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8323 _result
= (long )wxDC_GetCharHeight(_arg0
);
8325 wxPyEndAllowThreads(__tstate
);
8326 if (PyErr_Occurred()) return NULL
;
8327 } _resultobj
= Py_BuildValue("l",_result
);
8331 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
8332 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8333 PyObject
* _resultobj
;
8336 PyObject
* _argo0
= 0;
8337 char *_kwnames
[] = { "self", NULL
};
8340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
8343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
8350 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8351 _result
= (long )wxDC_GetCharWidth(_arg0
);
8353 wxPyEndAllowThreads(__tstate
);
8354 if (PyErr_Occurred()) return NULL
;
8355 } _resultobj
= Py_BuildValue("l",_result
);
8359 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8360 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8361 PyObject
* _resultobj
;
8371 PyObject
* _argo0
= 0;
8372 char *_kwnames
[] = { "self", NULL
};
8387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
8390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
8397 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8398 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8400 wxPyEndAllowThreads(__tstate
);
8401 if (PyErr_Occurred()) return NULL
;
8402 } Py_INCREF(Py_None
);
8403 _resultobj
= Py_None
;
8406 o
= PyInt_FromLong((long) (*_arg1
));
8407 _resultobj
= t_output_helper(_resultobj
, o
);
8411 o
= PyInt_FromLong((long) (*_arg2
));
8412 _resultobj
= t_output_helper(_resultobj
, o
);
8416 o
= PyInt_FromLong((long) (*_arg3
));
8417 _resultobj
= t_output_helper(_resultobj
, o
);
8421 o
= PyInt_FromLong((long) (*_arg4
));
8422 _resultobj
= t_output_helper(_resultobj
, o
);
8427 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
8428 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8429 PyObject
* _resultobj
;
8432 PyObject
* _argo0
= 0;
8433 char *_kwnames
[] = { "self", NULL
};
8437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
8440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
8447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8448 _result
= new wxFont (wxDC_GetFont(_arg0
));
8450 wxPyEndAllowThreads(__tstate
);
8451 if (PyErr_Occurred()) return NULL
;
8452 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
8453 _resultobj
= Py_BuildValue("s",_ptemp
);
8457 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
8458 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8459 PyObject
* _resultobj
;
8462 PyObject
* _argo0
= 0;
8463 char *_kwnames
[] = { "self", NULL
};
8466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
8469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
8476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8477 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
8479 wxPyEndAllowThreads(__tstate
);
8480 if (PyErr_Occurred()) return NULL
;
8481 } _resultobj
= Py_BuildValue("i",_result
);
8485 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
8486 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8487 PyObject
* _resultobj
;
8493 PyObject
* _argo0
= 0;
8494 char *_kwnames
[] = { "self", NULL
};
8503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
8506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
8513 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8514 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
8516 wxPyEndAllowThreads(__tstate
);
8517 if (PyErr_Occurred()) return NULL
;
8518 } Py_INCREF(Py_None
);
8519 _resultobj
= Py_None
;
8522 o
= PyFloat_FromDouble((double) (*_arg1
));
8523 _resultobj
= t_output_helper(_resultobj
, o
);
8527 o
= PyFloat_FromDouble((double) (*_arg2
));
8528 _resultobj
= t_output_helper(_resultobj
, o
);
8533 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
8534 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8535 PyObject
* _resultobj
;
8538 PyObject
* _argo0
= 0;
8539 char *_kwnames
[] = { "self", NULL
};
8542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
8545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
8552 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8553 _result
= (int )wxDC_GetMapMode(_arg0
);
8555 wxPyEndAllowThreads(__tstate
);
8556 if (PyErr_Occurred()) return NULL
;
8557 } _resultobj
= Py_BuildValue("i",_result
);
8561 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
8562 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8563 PyObject
* _resultobj
;
8566 PyObject
* _argo0
= 0;
8567 char *_kwnames
[] = { "self", NULL
};
8570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
8573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
8580 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8581 _result
= (bool )wxDC_GetOptimization(_arg0
);
8583 wxPyEndAllowThreads(__tstate
);
8584 if (PyErr_Occurred()) return NULL
;
8585 } _resultobj
= Py_BuildValue("i",_result
);
8589 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
8590 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8591 PyObject
* _resultobj
;
8594 PyObject
* _argo0
= 0;
8595 char *_kwnames
[] = { "self", NULL
};
8599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
8602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
8609 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8610 _result
= new wxPen (wxDC_GetPen(_arg0
));
8612 wxPyEndAllowThreads(__tstate
);
8613 if (PyErr_Occurred()) return NULL
;
8614 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
8615 _resultobj
= Py_BuildValue("s",_ptemp
);
8619 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
8620 wxColour
* wc
= new wxColour();
8621 self
->GetPixel(x
, y
, wc
);
8624 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8625 PyObject
* _resultobj
;
8630 PyObject
* _argo0
= 0;
8631 char *_kwnames
[] = { "self","x","y", NULL
};
8635 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8638 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8639 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8640 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
8645 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8646 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
8648 wxPyEndAllowThreads(__tstate
);
8649 if (PyErr_Occurred()) return NULL
;
8651 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
8652 _resultobj
= Py_BuildValue("s",_ptemp
);
8655 _resultobj
= Py_None
;
8660 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
8661 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8662 PyObject
* _resultobj
;
8668 PyObject
* _argo0
= 0;
8669 char *_kwnames
[] = { "self", NULL
};
8678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
8681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
8688 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8689 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
8691 wxPyEndAllowThreads(__tstate
);
8692 if (PyErr_Occurred()) return NULL
;
8693 } Py_INCREF(Py_None
);
8694 _resultobj
= Py_None
;
8697 o
= PyInt_FromLong((long) (*_arg1
));
8698 _resultobj
= t_output_helper(_resultobj
, o
);
8702 o
= PyInt_FromLong((long) (*_arg2
));
8703 _resultobj
= t_output_helper(_resultobj
, o
);
8708 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
8709 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8710 PyObject
* _resultobj
;
8713 PyObject
* _argo0
= 0;
8714 char *_kwnames
[] = { "self", NULL
};
8718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
8721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
8728 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8729 _result
= new wxSize (wxDC_GetSize(_arg0
));
8731 wxPyEndAllowThreads(__tstate
);
8732 if (PyErr_Occurred()) return NULL
;
8733 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8734 _resultobj
= Py_BuildValue("s",_ptemp
);
8738 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
8739 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8740 PyObject
* _resultobj
;
8743 PyObject
* _argo0
= 0;
8744 char *_kwnames
[] = { "self", NULL
};
8748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
8751 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8752 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
8758 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8759 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
8761 wxPyEndAllowThreads(__tstate
);
8762 if (PyErr_Occurred()) return NULL
;
8763 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8764 _resultobj
= Py_BuildValue("s",_ptemp
);
8768 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
8769 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8770 PyObject
* _resultobj
;
8773 PyObject
* _argo0
= 0;
8774 char *_kwnames
[] = { "self", NULL
};
8778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
8781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
8788 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8789 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
8791 wxPyEndAllowThreads(__tstate
);
8792 if (PyErr_Occurred()) return NULL
;
8793 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8794 _resultobj
= Py_BuildValue("s",_ptemp
);
8798 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
8799 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8800 PyObject
* _resultobj
;
8807 PyObject
* _argo0
= 0;
8808 PyObject
* _obj1
= 0;
8809 char *_kwnames
[] = { "self","string", NULL
};
8818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
8821 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8822 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
8828 #if PYTHON_API_VERSION >= 1009
8829 char* tmpPtr
; int tmpSize
;
8830 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8831 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8834 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8836 _arg1
= new wxString(tmpPtr
, tmpSize
);
8838 if (!PyString_Check(_obj1
)) {
8839 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8842 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8846 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8847 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
8849 wxPyEndAllowThreads(__tstate
);
8850 if (PyErr_Occurred()) return NULL
;
8851 } Py_INCREF(Py_None
);
8852 _resultobj
= Py_None
;
8855 o
= PyInt_FromLong((long) (*_arg2
));
8856 _resultobj
= t_output_helper(_resultobj
, o
);
8860 o
= PyInt_FromLong((long) (*_arg3
));
8861 _resultobj
= t_output_helper(_resultobj
, o
);
8870 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8871 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8872 PyObject
* _resultobj
;
8883 wxFont
* _arg6
= (wxFont
*) NULL
;
8884 PyObject
* _argo0
= 0;
8885 PyObject
* _obj1
= 0;
8886 PyObject
* _argo6
= 0;
8887 char *_kwnames
[] = { "self","string","font", NULL
};
8902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
8905 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8906 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
8912 #if PYTHON_API_VERSION >= 1009
8913 char* tmpPtr
; int tmpSize
;
8914 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8915 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8918 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8920 _arg1
= new wxString(tmpPtr
, tmpSize
);
8922 if (!PyString_Check(_obj1
)) {
8923 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8926 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8930 if (_argo6
== Py_None
) { _arg6
= NULL
; }
8931 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
8932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8937 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8938 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8940 wxPyEndAllowThreads(__tstate
);
8941 if (PyErr_Occurred()) return NULL
;
8942 } Py_INCREF(Py_None
);
8943 _resultobj
= Py_None
;
8946 o
= PyInt_FromLong((long) (*_arg2
));
8947 _resultobj
= t_output_helper(_resultobj
, o
);
8951 o
= PyInt_FromLong((long) (*_arg3
));
8952 _resultobj
= t_output_helper(_resultobj
, o
);
8956 o
= PyInt_FromLong((long) (*_arg4
));
8957 _resultobj
= t_output_helper(_resultobj
, o
);
8961 o
= PyInt_FromLong((long) (*_arg5
));
8962 _resultobj
= t_output_helper(_resultobj
, o
);
8971 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8972 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8973 PyObject
* _resultobj
;
8976 PyObject
* _argo0
= 0;
8977 char *_kwnames
[] = { "self", NULL
};
8981 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
8984 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8985 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8991 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8992 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
8994 wxPyEndAllowThreads(__tstate
);
8995 if (PyErr_Occurred()) return NULL
;
8996 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8997 _resultobj
= Py_BuildValue("s",_ptemp
);
9001 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
9002 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9003 PyObject
* _resultobj
;
9009 PyObject
* _argo0
= 0;
9010 char *_kwnames
[] = { "self", NULL
};
9019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
9022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
9029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9030 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
9032 wxPyEndAllowThreads(__tstate
);
9033 if (PyErr_Occurred()) return NULL
;
9034 } Py_INCREF(Py_None
);
9035 _resultobj
= Py_None
;
9038 o
= PyFloat_FromDouble((double) (*_arg1
));
9039 _resultobj
= t_output_helper(_resultobj
, o
);
9043 o
= PyFloat_FromDouble((double) (*_arg2
));
9044 _resultobj
= t_output_helper(_resultobj
, o
);
9049 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
9050 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9051 PyObject
* _resultobj
;
9055 PyObject
* _argo0
= 0;
9056 char *_kwnames
[] = { "self","x", NULL
};
9059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
9062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
9069 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9070 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
9072 wxPyEndAllowThreads(__tstate
);
9073 if (PyErr_Occurred()) return NULL
;
9074 } _resultobj
= Py_BuildValue("l",_result
);
9078 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
9079 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9080 PyObject
* _resultobj
;
9084 PyObject
* _argo0
= 0;
9085 char *_kwnames
[] = { "self","x", NULL
};
9088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
9091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
9098 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9099 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
9101 wxPyEndAllowThreads(__tstate
);
9102 if (PyErr_Occurred()) return NULL
;
9103 } _resultobj
= Py_BuildValue("l",_result
);
9107 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
9108 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9109 PyObject
* _resultobj
;
9113 PyObject
* _argo0
= 0;
9114 char *_kwnames
[] = { "self","y", NULL
};
9117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
9120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
9127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9128 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
9130 wxPyEndAllowThreads(__tstate
);
9131 if (PyErr_Occurred()) return NULL
;
9132 } _resultobj
= Py_BuildValue("l",_result
);
9136 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
9137 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9138 PyObject
* _resultobj
;
9142 PyObject
* _argo0
= 0;
9143 char *_kwnames
[] = { "self","y", NULL
};
9146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
9149 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9150 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
9156 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9157 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
9159 wxPyEndAllowThreads(__tstate
);
9160 if (PyErr_Occurred()) return NULL
;
9161 } _resultobj
= Py_BuildValue("l",_result
);
9165 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
9166 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9167 PyObject
* _resultobj
;
9170 PyObject
* _argo0
= 0;
9171 char *_kwnames
[] = { "self", NULL
};
9174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
9177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
9184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9185 _result
= (long )wxDC_MaxX(_arg0
);
9187 wxPyEndAllowThreads(__tstate
);
9188 if (PyErr_Occurred()) return NULL
;
9189 } _resultobj
= Py_BuildValue("l",_result
);
9193 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
9194 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9195 PyObject
* _resultobj
;
9198 PyObject
* _argo0
= 0;
9199 char *_kwnames
[] = { "self", NULL
};
9202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
9205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
9212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9213 _result
= (long )wxDC_MaxY(_arg0
);
9215 wxPyEndAllowThreads(__tstate
);
9216 if (PyErr_Occurred()) return NULL
;
9217 } _resultobj
= Py_BuildValue("l",_result
);
9221 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
9222 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9223 PyObject
* _resultobj
;
9226 PyObject
* _argo0
= 0;
9227 char *_kwnames
[] = { "self", NULL
};
9230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
9233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
9240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9241 _result
= (long )wxDC_MinX(_arg0
);
9243 wxPyEndAllowThreads(__tstate
);
9244 if (PyErr_Occurred()) return NULL
;
9245 } _resultobj
= Py_BuildValue("l",_result
);
9249 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
9250 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9251 PyObject
* _resultobj
;
9254 PyObject
* _argo0
= 0;
9255 char *_kwnames
[] = { "self", NULL
};
9258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
9261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
9268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9269 _result
= (long )wxDC_MinY(_arg0
);
9271 wxPyEndAllowThreads(__tstate
);
9272 if (PyErr_Occurred()) return NULL
;
9273 } _resultobj
= Py_BuildValue("l",_result
);
9277 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
9278 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9279 PyObject
* _resultobj
;
9282 PyObject
* _argo0
= 0;
9283 char *_kwnames
[] = { "self", NULL
};
9286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
9289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
9296 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9297 _result
= (bool )wxDC_Ok(_arg0
);
9299 wxPyEndAllowThreads(__tstate
);
9300 if (PyErr_Occurred()) return NULL
;
9301 } _resultobj
= Py_BuildValue("i",_result
);
9305 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
9306 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9307 PyObject
* _resultobj
;
9311 PyObject
* _argo0
= 0;
9312 char *_kwnames
[] = { "self","x","y", NULL
};
9315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
9325 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9326 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
9328 wxPyEndAllowThreads(__tstate
);
9329 if (PyErr_Occurred()) return NULL
;
9330 } Py_INCREF(Py_None
);
9331 _resultobj
= Py_None
;
9335 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
9336 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9337 PyObject
* _resultobj
;
9340 PyObject
* _argo0
= 0;
9341 PyObject
* _argo1
= 0;
9342 char *_kwnames
[] = { "self","brush", NULL
};
9345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
9348 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9349 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9350 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
9355 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9356 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
9357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
9362 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9363 wxDC_SetBackground(_arg0
,*_arg1
);
9365 wxPyEndAllowThreads(__tstate
);
9366 if (PyErr_Occurred()) return NULL
;
9367 } Py_INCREF(Py_None
);
9368 _resultobj
= Py_None
;
9372 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
9373 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9374 PyObject
* _resultobj
;
9377 PyObject
* _argo0
= 0;
9378 char *_kwnames
[] = { "self","mode", NULL
};
9381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
9384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
9391 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9392 wxDC_SetBackgroundMode(_arg0
,_arg1
);
9394 wxPyEndAllowThreads(__tstate
);
9395 if (PyErr_Occurred()) return NULL
;
9396 } Py_INCREF(Py_None
);
9397 _resultobj
= Py_None
;
9401 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9402 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9403 PyObject
* _resultobj
;
9409 PyObject
* _argo0
= 0;
9410 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
9423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9424 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9426 wxPyEndAllowThreads(__tstate
);
9427 if (PyErr_Occurred()) return NULL
;
9428 } Py_INCREF(Py_None
);
9429 _resultobj
= Py_None
;
9433 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
9434 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9435 PyObject
* _resultobj
;
9438 PyObject
* _argo0
= 0;
9439 PyObject
* _argo1
= 0;
9440 char *_kwnames
[] = { "self","region", NULL
};
9443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
9446 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9447 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
9453 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9454 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9455 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
9460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9461 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
9463 wxPyEndAllowThreads(__tstate
);
9464 if (PyErr_Occurred()) return NULL
;
9465 } Py_INCREF(Py_None
);
9466 _resultobj
= Py_None
;
9470 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
9471 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9472 PyObject
* _resultobj
;
9475 PyObject
* _argo0
= 0;
9476 PyObject
* _argo1
= 0;
9477 char *_kwnames
[] = { "self","colourMap", NULL
};
9480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
9483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
9490 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9491 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
9492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
9497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9498 wxDC_SetPalette(_arg0
,*_arg1
);
9500 wxPyEndAllowThreads(__tstate
);
9501 if (PyErr_Occurred()) return NULL
;
9502 } Py_INCREF(Py_None
);
9503 _resultobj
= Py_None
;
9507 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
9508 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9509 PyObject
* _resultobj
;
9512 PyObject
* _argo0
= 0;
9513 PyObject
* _argo1
= 0;
9514 char *_kwnames
[] = { "self","brush", NULL
};
9517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
9520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
9527 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9528 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
9529 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
9534 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9535 wxDC_SetBrush(_arg0
,*_arg1
);
9537 wxPyEndAllowThreads(__tstate
);
9538 if (PyErr_Occurred()) return NULL
;
9539 } Py_INCREF(Py_None
);
9540 _resultobj
= Py_None
;
9544 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
9545 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9546 PyObject
* _resultobj
;
9549 PyObject
* _argo0
= 0;
9550 PyObject
* _argo1
= 0;
9551 char *_kwnames
[] = { "self","font", NULL
};
9554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
9557 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9558 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
9564 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9565 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
9566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
9571 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9572 wxDC_SetFont(_arg0
,*_arg1
);
9574 wxPyEndAllowThreads(__tstate
);
9575 if (PyErr_Occurred()) return NULL
;
9576 } Py_INCREF(Py_None
);
9577 _resultobj
= Py_None
;
9581 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
9582 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9583 PyObject
* _resultobj
;
9586 PyObject
* _argo0
= 0;
9587 char *_kwnames
[] = { "self","function", NULL
};
9590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
9593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
9600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9601 wxDC_SetLogicalFunction(_arg0
,_arg1
);
9603 wxPyEndAllowThreads(__tstate
);
9604 if (PyErr_Occurred()) return NULL
;
9605 } Py_INCREF(Py_None
);
9606 _resultobj
= Py_None
;
9610 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
9611 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9612 PyObject
* _resultobj
;
9616 PyObject
* _argo0
= 0;
9617 char *_kwnames
[] = { "self","x","y", NULL
};
9620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
9630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9631 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
9633 wxPyEndAllowThreads(__tstate
);
9634 if (PyErr_Occurred()) return NULL
;
9635 } Py_INCREF(Py_None
);
9636 _resultobj
= Py_None
;
9640 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
9641 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9642 PyObject
* _resultobj
;
9645 PyObject
* _argo0
= 0;
9646 char *_kwnames
[] = { "self","mode", NULL
};
9649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
9652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
9659 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9660 wxDC_SetMapMode(_arg0
,_arg1
);
9662 wxPyEndAllowThreads(__tstate
);
9663 if (PyErr_Occurred()) return NULL
;
9664 } Py_INCREF(Py_None
);
9665 _resultobj
= Py_None
;
9669 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
9670 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9671 PyObject
* _resultobj
;
9674 PyObject
* _argo0
= 0;
9676 char *_kwnames
[] = { "self","optimize", NULL
};
9679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
9682 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9683 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
9688 _arg1
= (bool ) tempbool1
;
9690 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9691 wxDC_SetOptimization(_arg0
,_arg1
);
9693 wxPyEndAllowThreads(__tstate
);
9694 if (PyErr_Occurred()) return NULL
;
9695 } Py_INCREF(Py_None
);
9696 _resultobj
= Py_None
;
9700 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
9701 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9702 PyObject
* _resultobj
;
9705 PyObject
* _argo0
= 0;
9706 PyObject
* _argo1
= 0;
9707 char *_kwnames
[] = { "self","pen", NULL
};
9710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
9713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
9720 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9721 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
9722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
9727 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9728 wxDC_SetPen(_arg0
,*_arg1
);
9730 wxPyEndAllowThreads(__tstate
);
9731 if (PyErr_Occurred()) return NULL
;
9732 } Py_INCREF(Py_None
);
9733 _resultobj
= Py_None
;
9737 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
9738 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9739 PyObject
* _resultobj
;
9742 PyObject
* _argo0
= 0;
9744 PyObject
* _obj1
= 0;
9745 char *_kwnames
[] = { "self","colour", NULL
};
9748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
9751 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9752 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
9759 if (! wxColour_helper(_obj1
, &_arg1
))
9763 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9764 wxDC_SetTextBackground(_arg0
,*_arg1
);
9766 wxPyEndAllowThreads(__tstate
);
9767 if (PyErr_Occurred()) return NULL
;
9768 } Py_INCREF(Py_None
);
9769 _resultobj
= Py_None
;
9773 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
9774 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9775 PyObject
* _resultobj
;
9778 PyObject
* _argo0
= 0;
9780 PyObject
* _obj1
= 0;
9781 char *_kwnames
[] = { "self","colour", NULL
};
9784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
9787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
9795 if (! wxColour_helper(_obj1
, &_arg1
))
9799 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9800 wxDC_SetTextForeground(_arg0
,*_arg1
);
9802 wxPyEndAllowThreads(__tstate
);
9803 if (PyErr_Occurred()) return NULL
;
9804 } Py_INCREF(Py_None
);
9805 _resultobj
= Py_None
;
9809 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
9810 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9811 PyObject
* _resultobj
;
9815 PyObject
* _argo0
= 0;
9816 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
9819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
9829 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9830 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
9832 wxPyEndAllowThreads(__tstate
);
9833 if (PyErr_Occurred()) return NULL
;
9834 } Py_INCREF(Py_None
);
9835 _resultobj
= Py_None
;
9839 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
9840 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9841 PyObject
* _resultobj
;
9845 PyObject
* _argo0
= 0;
9846 PyObject
* _obj1
= 0;
9847 char *_kwnames
[] = { "self","message", NULL
};
9850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
9853 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9854 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
9860 #if PYTHON_API_VERSION >= 1009
9861 char* tmpPtr
; int tmpSize
;
9862 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9863 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9866 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9868 _arg1
= new wxString(tmpPtr
, tmpSize
);
9870 if (!PyString_Check(_obj1
)) {
9871 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9874 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9879 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
9881 wxPyEndAllowThreads(__tstate
);
9882 if (PyErr_Occurred()) return NULL
;
9883 } _resultobj
= Py_BuildValue("i",_result
);
9891 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
9892 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9893 PyObject
* _resultobj
;
9895 PyObject
* _argo0
= 0;
9896 char *_kwnames
[] = { "self", NULL
};
9899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
9902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
9909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9910 wxDC_StartPage(_arg0
);
9912 wxPyEndAllowThreads(__tstate
);
9913 if (PyErr_Occurred()) return NULL
;
9914 } Py_INCREF(Py_None
);
9915 _resultobj
= Py_None
;
9919 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9920 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9921 PyObject
* _resultobj
;
9926 int _arg4
= (int ) FALSE
;
9927 PyObject
* _argo0
= 0;
9928 PyObject
* _argo1
= 0;
9929 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
9932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
9935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9942 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9943 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9944 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9949 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9950 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
9952 wxPyEndAllowThreads(__tstate
);
9953 if (PyErr_Occurred()) return NULL
;
9954 } Py_INCREF(Py_None
);
9955 _resultobj
= Py_None
;
9959 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9960 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9961 PyObject
* _resultobj
;
9964 PyObject
* _argo0
= 0;
9965 char *_kwnames
[] = { "self", NULL
};
9968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
9971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9978 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9979 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
9981 wxPyEndAllowThreads(__tstate
);
9982 if (PyErr_Occurred()) return NULL
;
9983 } _resultobj
= Py_BuildValue("i",_result
);
9987 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9988 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9989 PyObject
* _resultobj
;
9992 PyObject
* _argo0
= 0;
9993 char *_kwnames
[] = { "self", NULL
};
9996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
9999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
10006 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10007 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
10009 wxPyEndAllowThreads(__tstate
);
10010 if (PyErr_Occurred()) return NULL
;
10011 } _resultobj
= Py_BuildValue("i",_result
);
10015 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
10016 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10017 PyObject
* _resultobj
;
10020 PyObject
* _argo0
= 0;
10021 char *_kwnames
[] = { "self", NULL
};
10024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
10027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
10034 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10035 _result
= (int )wxDC_GetDepth(_arg0
);
10037 wxPyEndAllowThreads(__tstate
);
10038 if (PyErr_Occurred()) return NULL
;
10039 } _resultobj
= Py_BuildValue("i",_result
);
10043 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
10044 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10045 PyObject
* _resultobj
;
10048 PyObject
* _argo0
= 0;
10049 char *_kwnames
[] = { "self", NULL
};
10053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
10056 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10057 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
10063 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10064 _result
= new wxSize (wxDC_GetPPI(_arg0
));
10066 wxPyEndAllowThreads(__tstate
);
10067 if (PyErr_Occurred()) return NULL
;
10068 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
10069 _resultobj
= Py_BuildValue("s",_ptemp
);
10073 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
10074 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10075 PyObject
* _resultobj
;
10081 PyObject
* _argo0
= 0;
10082 char *_kwnames
[] = { "self", NULL
};
10091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
10094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
10101 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10102 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
10104 wxPyEndAllowThreads(__tstate
);
10105 if (PyErr_Occurred()) return NULL
;
10106 } Py_INCREF(Py_None
);
10107 _resultobj
= Py_None
;
10110 o
= PyInt_FromLong((long) (*_arg1
));
10111 _resultobj
= t_output_helper(_resultobj
, o
);
10115 o
= PyInt_FromLong((long) (*_arg2
));
10116 _resultobj
= t_output_helper(_resultobj
, o
);
10121 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
10122 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10123 PyObject
* _resultobj
;
10127 PyObject
* _argo0
= 0;
10128 char *_kwnames
[] = { "self","x","y", NULL
};
10131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
10141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10142 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
10144 wxPyEndAllowThreads(__tstate
);
10145 if (PyErr_Occurred()) return NULL
;
10146 } Py_INCREF(Py_None
);
10147 _resultobj
= Py_None
;
10151 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
10152 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10153 PyObject
* _resultobj
;
10159 PyObject
* _argo0
= 0;
10160 char *_kwnames
[] = { "self", NULL
};
10169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
10172 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10173 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
10179 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10180 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
10182 wxPyEndAllowThreads(__tstate
);
10183 if (PyErr_Occurred()) return NULL
;
10184 } Py_INCREF(Py_None
);
10185 _resultobj
= Py_None
;
10188 o
= PyInt_FromLong((long) (*_arg1
));
10189 _resultobj
= t_output_helper(_resultobj
, o
);
10193 o
= PyInt_FromLong((long) (*_arg2
));
10194 _resultobj
= t_output_helper(_resultobj
, o
);
10199 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
10200 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10201 PyObject
* _resultobj
;
10205 PyObject
* _argo0
= 0;
10208 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
10211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
10214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
10220 _arg1
= (bool ) tempbool1
;
10221 _arg2
= (bool ) tempbool2
;
10223 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10224 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
10226 wxPyEndAllowThreads(__tstate
);
10227 if (PyErr_Occurred()) return NULL
;
10228 } Py_INCREF(Py_None
);
10229 _resultobj
= Py_None
;
10233 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
10234 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10235 PyObject
* _resultobj
;
10239 PyObject
* _argo0
= 0;
10240 char *_kwnames
[] = { "self","x","y", NULL
};
10243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
10253 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10254 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
10256 wxPyEndAllowThreads(__tstate
);
10257 if (PyErr_Occurred()) return NULL
;
10258 } Py_INCREF(Py_None
);
10259 _resultobj
= Py_None
;
10263 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
10264 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10265 PyObject
* _resultobj
;
10267 PyObject
* _argo0
= 0;
10268 char *_kwnames
[] = { "self", NULL
};
10271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
10274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
10281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10282 wxDC_ResetBoundingBox(_arg0
);
10284 wxPyEndAllowThreads(__tstate
);
10285 if (PyErr_Occurred()) return NULL
;
10286 } Py_INCREF(Py_None
);
10287 _resultobj
= Py_None
;
10291 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10292 PyObject
* _resultobj
;
10302 PyObject
* _argo0
= 0;
10303 char *_kwnames
[] = { "self", NULL
};
10318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
10321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
10328 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10329 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10331 wxPyEndAllowThreads(__tstate
);
10332 if (PyErr_Occurred()) return NULL
;
10333 } Py_INCREF(Py_None
);
10334 _resultobj
= Py_None
;
10337 o
= PyInt_FromLong((long) (*_arg1
));
10338 _resultobj
= t_output_helper(_resultobj
, o
);
10342 o
= PyInt_FromLong((long) (*_arg2
));
10343 _resultobj
= t_output_helper(_resultobj
, o
);
10347 o
= PyInt_FromLong((long) (*_arg3
));
10348 _resultobj
= t_output_helper(_resultobj
, o
);
10352 o
= PyInt_FromLong((long) (*_arg4
));
10353 _resultobj
= t_output_helper(_resultobj
, o
);
10358 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
10359 static PyObject
*_wrap_wxDC_GetHDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10360 PyObject
* _resultobj
;
10363 PyObject
* _argo0
= 0;
10364 char *_kwnames
[] = { "self", NULL
};
10367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetHDC",_kwnames
,&_argo0
))
10370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
10377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10378 _result
= (long )wxDC_GetHDC(_arg0
);
10380 wxPyEndAllowThreads(__tstate
);
10381 if (PyErr_Occurred()) return NULL
;
10382 } _resultobj
= Py_BuildValue("l",_result
);
10386 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
10387 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
10388 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
10396 if (!PySequence_Check(pyPoints
)) {
10399 if (!PySequence_Check(pyPens
)) {
10402 numObjs
= PySequence_Length(pyPoints
);
10403 numPens
= PySequence_Length(pyPens
);
10405 for (i
= 0; i
< numObjs
; i
++) {
10409 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
10412 obj
= PySequence_GetItem(pyPens
, i
);
10414 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
10420 self
->SetPen(*pen
);
10425 // Get the point coordinants
10427 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
10430 obj
= PySequence_GetItem(pyPoints
, i
);
10432 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
10438 // Now draw the point
10439 self
->DrawPoint(x1
, y1
);
10445 Py_INCREF(Py_None
);
10449 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
10452 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
10455 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10456 PyObject
* _resultobj
;
10457 PyObject
* _result
;
10461 PyObject
* _argo0
= 0;
10462 PyObject
* _obj1
= 0;
10463 PyObject
* _obj2
= 0;
10464 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
10467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
10470 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10471 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
10483 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10484 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
10486 wxPyEndAllowThreads(__tstate
);
10487 if (PyErr_Occurred()) return NULL
;
10489 _resultobj
= _result
;
10494 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
10495 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
10496 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
10501 int x1
, y1
, x2
, y2
;
10504 if (!PySequence_Check(pyLines
)) {
10507 if (!PySequence_Check(pyPens
)) {
10510 numObjs
= PySequence_Length(pyLines
);
10511 numPens
= PySequence_Length(pyPens
);
10513 for (i
= 0; i
< numObjs
; i
++) {
10517 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
10520 obj
= PySequence_GetItem(pyPens
, i
);
10522 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
10528 self
->SetPen(*pen
);
10533 // Get the line coordinants
10535 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
10538 obj
= PySequence_GetItem(pyLines
, i
);
10540 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
10546 // Now draw the line
10547 self
->DrawLine(x1
, y1
, x2
, y2
);
10553 Py_INCREF(Py_None
);
10557 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
10560 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
10563 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10564 PyObject
* _resultobj
;
10565 PyObject
* _result
;
10569 PyObject
* _argo0
= 0;
10570 PyObject
* _obj1
= 0;
10571 PyObject
* _obj2
= 0;
10572 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
10575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
10578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
10591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10592 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
10594 wxPyEndAllowThreads(__tstate
);
10595 if (PyErr_Occurred()) return NULL
;
10597 _resultobj
= _result
;
10602 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
10605 src
= (wxMemoryDC
*) ptr
;
10606 dest
= (wxDC
*) src
;
10607 return (void *) dest
;
10610 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
10613 src
= (wxMemoryDC
*) ptr
;
10614 dest
= (wxObject
*) src
;
10615 return (void *) dest
;
10618 #define new_wxMemoryDC() (new wxMemoryDC())
10619 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10620 PyObject
* _resultobj
;
10621 wxMemoryDC
* _result
;
10622 char *_kwnames
[] = { NULL
};
10626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
10629 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10630 _result
= (wxMemoryDC
*)new_wxMemoryDC();
10632 wxPyEndAllowThreads(__tstate
);
10633 if (PyErr_Occurred()) return NULL
;
10635 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
10636 _resultobj
= Py_BuildValue("s",_ptemp
);
10638 Py_INCREF(Py_None
);
10639 _resultobj
= Py_None
;
10644 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
10645 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10646 PyObject
* _resultobj
;
10647 wxMemoryDC
* _arg0
;
10649 PyObject
* _argo0
= 0;
10650 PyObject
* _argo1
= 0;
10651 char *_kwnames
[] = { "self","bitmap", NULL
};
10654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
10657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
10659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
10664 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10665 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10666 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
10671 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10672 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
10674 wxPyEndAllowThreads(__tstate
);
10675 if (PyErr_Occurred()) return NULL
;
10676 } Py_INCREF(Py_None
);
10677 _resultobj
= Py_None
;
10681 static void *SwigwxScreenDCTowxDC(void *ptr
) {
10684 src
= (wxScreenDC
*) ptr
;
10685 dest
= (wxDC
*) src
;
10686 return (void *) dest
;
10689 static void *SwigwxScreenDCTowxObject(void *ptr
) {
10692 src
= (wxScreenDC
*) ptr
;
10693 dest
= (wxObject
*) src
;
10694 return (void *) dest
;
10697 #define new_wxScreenDC() (new wxScreenDC())
10698 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10699 PyObject
* _resultobj
;
10700 wxScreenDC
* _result
;
10701 char *_kwnames
[] = { NULL
};
10705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
10708 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10709 _result
= (wxScreenDC
*)new_wxScreenDC();
10711 wxPyEndAllowThreads(__tstate
);
10712 if (PyErr_Occurred()) return NULL
;
10714 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
10715 _resultobj
= Py_BuildValue("s",_ptemp
);
10717 Py_INCREF(Py_None
);
10718 _resultobj
= Py_None
;
10723 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10724 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10725 PyObject
* _resultobj
;
10727 wxScreenDC
* _arg0
;
10729 PyObject
* _argo0
= 0;
10730 PyObject
* _argo1
= 0;
10731 char *_kwnames
[] = { "self","window", NULL
};
10734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
10737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
10739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
10744 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10745 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
10746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
10751 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10752 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
10754 wxPyEndAllowThreads(__tstate
);
10755 if (PyErr_Occurred()) return NULL
;
10756 } _resultobj
= Py_BuildValue("i",_result
);
10760 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10761 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10762 PyObject
* _resultobj
;
10764 wxScreenDC
* _arg0
;
10765 wxRect
* _arg1
= (wxRect
*) NULL
;
10766 PyObject
* _argo0
= 0;
10768 PyObject
* _obj1
= 0;
10769 char *_kwnames
[] = { "self","rect", NULL
};
10772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
10775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
10777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
10784 if (! wxRect_helper(_obj1
, &_arg1
))
10788 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10789 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
10791 wxPyEndAllowThreads(__tstate
);
10792 if (PyErr_Occurred()) return NULL
;
10793 } _resultobj
= Py_BuildValue("i",_result
);
10797 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
10798 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10799 PyObject
* _resultobj
;
10801 wxScreenDC
* _arg0
;
10802 PyObject
* _argo0
= 0;
10803 char *_kwnames
[] = { "self", NULL
};
10806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
10809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
10811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
10816 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10817 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
10819 wxPyEndAllowThreads(__tstate
);
10820 if (PyErr_Occurred()) return NULL
;
10821 } _resultobj
= Py_BuildValue("i",_result
);
10825 static void *SwigwxClientDCTowxDC(void *ptr
) {
10828 src
= (wxClientDC
*) ptr
;
10829 dest
= (wxDC
*) src
;
10830 return (void *) dest
;
10833 static void *SwigwxClientDCTowxObject(void *ptr
) {
10836 src
= (wxClientDC
*) ptr
;
10837 dest
= (wxObject
*) src
;
10838 return (void *) dest
;
10841 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
10842 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10843 PyObject
* _resultobj
;
10844 wxClientDC
* _result
;
10846 PyObject
* _argo0
= 0;
10847 char *_kwnames
[] = { "win", NULL
};
10851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
10854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
10861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10862 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
10864 wxPyEndAllowThreads(__tstate
);
10865 if (PyErr_Occurred()) return NULL
;
10867 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
10868 _resultobj
= Py_BuildValue("s",_ptemp
);
10870 Py_INCREF(Py_None
);
10871 _resultobj
= Py_None
;
10876 static void *SwigwxPaintDCTowxDC(void *ptr
) {
10879 src
= (wxPaintDC
*) ptr
;
10880 dest
= (wxDC
*) src
;
10881 return (void *) dest
;
10884 static void *SwigwxPaintDCTowxObject(void *ptr
) {
10887 src
= (wxPaintDC
*) ptr
;
10888 dest
= (wxObject
*) src
;
10889 return (void *) dest
;
10892 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
10893 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10894 PyObject
* _resultobj
;
10895 wxPaintDC
* _result
;
10897 PyObject
* _argo0
= 0;
10898 char *_kwnames
[] = { "win", NULL
};
10902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
10905 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10906 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
10912 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10913 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
10915 wxPyEndAllowThreads(__tstate
);
10916 if (PyErr_Occurred()) return NULL
;
10918 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
10919 _resultobj
= Py_BuildValue("s",_ptemp
);
10921 Py_INCREF(Py_None
);
10922 _resultobj
= Py_None
;
10927 static void *SwigwxWindowDCTowxDC(void *ptr
) {
10930 src
= (wxWindowDC
*) ptr
;
10931 dest
= (wxDC
*) src
;
10932 return (void *) dest
;
10935 static void *SwigwxWindowDCTowxObject(void *ptr
) {
10938 src
= (wxWindowDC
*) ptr
;
10939 dest
= (wxObject
*) src
;
10940 return (void *) dest
;
10943 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
10944 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10945 PyObject
* _resultobj
;
10946 wxWindowDC
* _result
;
10948 PyObject
* _argo0
= 0;
10949 char *_kwnames
[] = { "win", NULL
};
10953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
10956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10964 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
10966 wxPyEndAllowThreads(__tstate
);
10967 if (PyErr_Occurred()) return NULL
;
10969 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
10970 _resultobj
= Py_BuildValue("s",_ptemp
);
10972 Py_INCREF(Py_None
);
10973 _resultobj
= Py_None
;
10978 static void *SwigwxMetaFileTowxObject(void *ptr
) {
10981 src
= (wxMetaFile
*) ptr
;
10982 dest
= (wxObject
*) src
;
10983 return (void *) dest
;
10986 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
10987 static PyObject
*_wrap_new_wxMetaFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10988 PyObject
* _resultobj
;
10989 wxMetaFile
* _result
;
10990 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
10991 PyObject
* _obj0
= 0;
10992 char *_kwnames
[] = { "filename", NULL
};
10996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFile",_kwnames
,&_obj0
))
11000 #if PYTHON_API_VERSION >= 1009
11001 char* tmpPtr
; int tmpSize
;
11002 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
11003 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11006 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
11008 _arg0
= new wxString(tmpPtr
, tmpSize
);
11010 if (!PyString_Check(_obj0
)) {
11011 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11014 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
11018 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11019 _result
= (wxMetaFile
*)new_wxMetaFile(*_arg0
);
11021 wxPyEndAllowThreads(__tstate
);
11022 if (PyErr_Occurred()) return NULL
;
11024 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
11025 _resultobj
= Py_BuildValue("s",_ptemp
);
11027 Py_INCREF(Py_None
);
11028 _resultobj
= Py_None
;
11037 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
11038 static PyObject
*_wrap_delete_wxMetaFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11039 PyObject
* _resultobj
;
11040 wxMetaFile
* _arg0
;
11041 PyObject
* _argo0
= 0;
11042 char *_kwnames
[] = { "self", NULL
};
11045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxMetaFile",_kwnames
,&_argo0
))
11048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
11055 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11056 delete_wxMetaFile(_arg0
);
11058 wxPyEndAllowThreads(__tstate
);
11059 if (PyErr_Occurred()) return NULL
;
11060 } Py_INCREF(Py_None
);
11061 _resultobj
= Py_None
;
11065 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
11066 static PyObject
*_wrap_wxMetaFile_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11067 PyObject
* _resultobj
;
11069 wxMetaFile
* _arg0
;
11070 PyObject
* _argo0
= 0;
11071 char *_kwnames
[] = { "self", NULL
};
11074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_Ok",_kwnames
,&_argo0
))
11077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
11084 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11085 _result
= (bool )wxMetaFile_Ok(_arg0
);
11087 wxPyEndAllowThreads(__tstate
);
11088 if (PyErr_Occurred()) return NULL
;
11089 } _resultobj
= Py_BuildValue("i",_result
);
11093 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
11094 static PyObject
*_wrap_wxMetaFile_SetClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11095 PyObject
* _resultobj
;
11097 wxMetaFile
* _arg0
;
11098 int _arg1
= (int ) 0;
11099 int _arg2
= (int ) 0;
11100 PyObject
* _argo0
= 0;
11101 char *_kwnames
[] = { "self","width","height", NULL
};
11104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:wxMetaFile_SetClipboard",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
11107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
11114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11115 _result
= (bool )wxMetaFile_SetClipboard(_arg0
,_arg1
,_arg2
);
11117 wxPyEndAllowThreads(__tstate
);
11118 if (PyErr_Occurred()) return NULL
;
11119 } _resultobj
= Py_BuildValue("i",_result
);
11123 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
11124 static PyObject
*_wrap_wxMetaFile_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11125 PyObject
* _resultobj
;
11127 wxMetaFile
* _arg0
;
11128 PyObject
* _argo0
= 0;
11129 char *_kwnames
[] = { "self", NULL
};
11133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetSize",_kwnames
,&_argo0
))
11136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
11143 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11144 _result
= new wxSize (wxMetaFile_GetSize(_arg0
));
11146 wxPyEndAllowThreads(__tstate
);
11147 if (PyErr_Occurred()) return NULL
;
11148 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
11149 _resultobj
= Py_BuildValue("s",_ptemp
);
11153 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
11154 static PyObject
*_wrap_wxMetaFile_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11155 PyObject
* _resultobj
;
11157 wxMetaFile
* _arg0
;
11158 PyObject
* _argo0
= 0;
11159 char *_kwnames
[] = { "self", NULL
};
11162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetWidth",_kwnames
,&_argo0
))
11165 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11166 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
11172 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11173 _result
= (int )wxMetaFile_GetWidth(_arg0
);
11175 wxPyEndAllowThreads(__tstate
);
11176 if (PyErr_Occurred()) return NULL
;
11177 } _resultobj
= Py_BuildValue("i",_result
);
11181 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
11182 static PyObject
*_wrap_wxMetaFile_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11183 PyObject
* _resultobj
;
11185 wxMetaFile
* _arg0
;
11186 PyObject
* _argo0
= 0;
11187 char *_kwnames
[] = { "self", NULL
};
11190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetHeight",_kwnames
,&_argo0
))
11193 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11194 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
11200 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11201 _result
= (int )wxMetaFile_GetHeight(_arg0
);
11203 wxPyEndAllowThreads(__tstate
);
11204 if (PyErr_Occurred()) return NULL
;
11205 } _resultobj
= Py_BuildValue("i",_result
);
11209 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
11210 static PyObject
*_wrap_wxMetaFile_GetFileName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11211 PyObject
* _resultobj
;
11212 wxString
* _result
;
11213 wxMetaFile
* _arg0
;
11214 PyObject
* _argo0
= 0;
11215 char *_kwnames
[] = { "self", NULL
};
11218 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetFileName",_kwnames
,&_argo0
))
11221 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11222 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
11228 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11229 const wxString
& _result_ref
= wxMetaFile_GetFileName(_arg0
);
11230 _result
= (wxString
*) &_result_ref
;
11232 wxPyEndAllowThreads(__tstate
);
11233 if (PyErr_Occurred()) return NULL
;
11235 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
11240 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
11243 src
= (wxMetaFileDC
*) ptr
;
11244 dest
= (wxDC
*) src
;
11245 return (void *) dest
;
11248 static void *SwigwxMetaFileDCTowxObject(void *ptr
) {
11251 src
= (wxMetaFileDC
*) ptr
;
11252 dest
= (wxObject
*) src
;
11253 return (void *) dest
;
11256 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11257 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11258 PyObject
* _resultobj
;
11259 wxMetaFileDC
* _result
;
11260 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
11261 int _arg1
= (int ) 0;
11262 int _arg2
= (int ) 0;
11263 wxString
* _arg3
= (wxString
*) &wxEmptyString
;
11264 PyObject
* _obj0
= 0;
11265 PyObject
* _obj3
= 0;
11266 char *_kwnames
[] = { "filename","width","height","description", NULL
};
11270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiiO:new_wxMetaFileDC",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_obj3
))
11274 #if PYTHON_API_VERSION >= 1009
11275 char* tmpPtr
; int tmpSize
;
11276 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
11277 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11280 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
11282 _arg0
= new wxString(tmpPtr
, tmpSize
);
11284 if (!PyString_Check(_obj0
)) {
11285 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11288 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
11293 #if PYTHON_API_VERSION >= 1009
11294 char* tmpPtr
; int tmpSize
;
11295 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
11296 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11299 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
11301 _arg3
= new wxString(tmpPtr
, tmpSize
);
11303 if (!PyString_Check(_obj3
)) {
11304 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11307 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
11311 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11312 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
,_arg1
,_arg2
,*_arg3
);
11314 wxPyEndAllowThreads(__tstate
);
11315 if (PyErr_Occurred()) return NULL
;
11317 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
11318 _resultobj
= Py_BuildValue("s",_ptemp
);
11320 Py_INCREF(Py_None
);
11321 _resultobj
= Py_None
;
11334 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
11335 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11336 PyObject
* _resultobj
;
11337 wxMetaFile
* _result
;
11338 wxMetaFileDC
* _arg0
;
11339 PyObject
* _argo0
= 0;
11340 char *_kwnames
[] = { "self", NULL
};
11344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
11347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
11349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
11354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11355 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
11357 wxPyEndAllowThreads(__tstate
);
11358 if (PyErr_Occurred()) return NULL
;
11360 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
11361 _resultobj
= Py_BuildValue("s",_ptemp
);
11363 Py_INCREF(Py_None
);
11364 _resultobj
= Py_None
;
11369 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
11372 src
= (wxPalette
*) ptr
;
11373 dest
= (wxGDIObject
*) src
;
11374 return (void *) dest
;
11377 static void *SwigwxPaletteTowxObject(void *ptr
) {
11380 src
= (wxPalette
*) ptr
;
11381 dest
= (wxObject
*) src
;
11382 return (void *) dest
;
11385 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11386 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11387 PyObject
* _resultobj
;
11388 wxPalette
* _result
;
11393 PyObject
* _obj1
= 0;
11394 PyObject
* _obj2
= 0;
11395 PyObject
* _obj3
= 0;
11396 char *_kwnames
[] = { "choices","choices","choices", NULL
};
11400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
11403 _arg1
= byte_LIST_helper(_obj1
);
11404 if (_arg1
== NULL
) {
11409 _arg2
= byte_LIST_helper(_obj2
);
11410 if (_arg2
== NULL
) {
11416 _arg3
= byte_LIST_helper(_obj3
);
11417 if (_arg3
== NULL
) {
11423 _arg0
= PyList_Size(_obj1
);
11430 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11431 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
11433 wxPyEndAllowThreads(__tstate
);
11434 if (PyErr_Occurred()) return NULL
;
11436 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
11437 _resultobj
= Py_BuildValue("s",_ptemp
);
11439 Py_INCREF(Py_None
);
11440 _resultobj
= Py_None
;
11454 #define delete_wxPalette(_swigobj) (delete _swigobj)
11455 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11456 PyObject
* _resultobj
;
11458 PyObject
* _argo0
= 0;
11459 char *_kwnames
[] = { "self", NULL
};
11462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
11465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
11467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
11472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11473 delete_wxPalette(_arg0
);
11475 wxPyEndAllowThreads(__tstate
);
11476 if (PyErr_Occurred()) return NULL
;
11477 } Py_INCREF(Py_None
);
11478 _resultobj
= Py_None
;
11482 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
11483 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11484 PyObject
* _resultobj
;
11490 PyObject
* _argo0
= 0;
11491 char *_kwnames
[] = { "self","red","green","blue", NULL
};
11494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
11497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
11499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
11504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11505 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
11507 wxPyEndAllowThreads(__tstate
);
11508 if (PyErr_Occurred()) return NULL
;
11509 } _resultobj
= Py_BuildValue("i",_result
);
11513 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11514 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11515 PyObject
* _resultobj
;
11525 PyObject
* _argo0
= 0;
11526 char *_kwnames
[] = { "self","pixel", NULL
};
11530 _arg2
= (byte
*)&temp
;
11533 _arg3
= (byte
*)&temp0
;
11536 _arg4
= (byte
*)&temp1
;
11538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
))
11541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
11543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
11548 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11549 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11551 wxPyEndAllowThreads(__tstate
);
11552 if (PyErr_Occurred()) return NULL
;
11553 } _resultobj
= Py_BuildValue("i",_result
);
11556 o
= PyInt_FromLong((long) (*_arg2
));
11557 _resultobj
= t_output_helper(_resultobj
, o
);
11561 o
= PyInt_FromLong((long) (*_arg3
));
11562 _resultobj
= t_output_helper(_resultobj
, o
);
11566 o
= PyInt_FromLong((long) (*_arg4
));
11567 _resultobj
= t_output_helper(_resultobj
, o
);
11572 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
11573 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11574 PyObject
* _resultobj
;
11577 PyObject
* _argo0
= 0;
11578 char *_kwnames
[] = { "self", NULL
};
11581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
11584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
11586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
11591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11592 _result
= (bool )wxPalette_Ok(_arg0
);
11594 wxPyEndAllowThreads(__tstate
);
11595 if (PyErr_Occurred()) return NULL
;
11596 } _resultobj
= Py_BuildValue("i",_result
);
11600 static void *SwigwxImageListTowxObject(void *ptr
) {
11603 src
= (wxImageList
*) ptr
;
11604 dest
= (wxObject
*) src
;
11605 return (void *) dest
;
11608 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11609 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11610 PyObject
* _resultobj
;
11611 wxImageList
* _result
;
11614 int _arg2
= (int ) TRUE
;
11615 int _arg3
= (int ) 1;
11616 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
11620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
11623 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11624 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
11626 wxPyEndAllowThreads(__tstate
);
11627 if (PyErr_Occurred()) return NULL
;
11629 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
11630 _resultobj
= Py_BuildValue("s",_ptemp
);
11632 Py_INCREF(Py_None
);
11633 _resultobj
= Py_None
;
11638 #define delete_wxImageList(_swigobj) (delete _swigobj)
11639 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11640 PyObject
* _resultobj
;
11641 wxImageList
* _arg0
;
11642 PyObject
* _argo0
= 0;
11643 char *_kwnames
[] = { "self", NULL
};
11646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
11649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
11656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11657 delete_wxImageList(_arg0
);
11659 wxPyEndAllowThreads(__tstate
);
11660 if (PyErr_Occurred()) return NULL
;
11661 } Py_INCREF(Py_None
);
11662 _resultobj
= Py_None
;
11666 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11667 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11668 PyObject
* _resultobj
;
11670 wxImageList
* _arg0
;
11672 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
11673 PyObject
* _argo0
= 0;
11674 PyObject
* _argo1
= 0;
11675 PyObject
* _argo2
= 0;
11676 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
11679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
11682 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11683 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
11689 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11690 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
11691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
11696 if (_argo2
== Py_None
) { _arg2
= NULL
; }
11697 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
11698 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
11703 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11704 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
11706 wxPyEndAllowThreads(__tstate
);
11707 if (PyErr_Occurred()) return NULL
;
11708 } _resultobj
= Py_BuildValue("i",_result
);
11712 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11713 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11714 PyObject
* _resultobj
;
11716 wxImageList
* _arg0
;
11719 PyObject
* _argo0
= 0;
11720 PyObject
* _argo1
= 0;
11722 PyObject
* _obj2
= 0;
11723 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
11726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
11729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
11736 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11737 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
11738 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
11744 if (! wxColour_helper(_obj2
, &_arg2
))
11748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11749 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
11751 wxPyEndAllowThreads(__tstate
);
11752 if (PyErr_Occurred()) return NULL
;
11753 } _resultobj
= Py_BuildValue("i",_result
);
11757 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
11758 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11759 PyObject
* _resultobj
;
11761 wxImageList
* _arg0
;
11763 PyObject
* _argo0
= 0;
11764 PyObject
* _argo1
= 0;
11765 char *_kwnames
[] = { "self","icon", NULL
};
11768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
11771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
11778 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11779 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
11780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
11785 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11786 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
11788 wxPyEndAllowThreads(__tstate
);
11789 if (PyErr_Occurred()) return NULL
;
11790 } _resultobj
= Py_BuildValue("i",_result
);
11794 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
11795 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11796 PyObject
* _resultobj
;
11798 wxImageList
* _arg0
;
11801 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
11802 PyObject
* _argo0
= 0;
11803 PyObject
* _argo2
= 0;
11804 PyObject
* _argo3
= 0;
11805 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
11808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
11811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
11818 if (_argo2
== Py_None
) { _arg2
= NULL
; }
11819 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
11820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
11825 if (_argo3
== Py_None
) { _arg3
= NULL
; }
11826 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
11827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
11832 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11833 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
11835 wxPyEndAllowThreads(__tstate
);
11836 if (PyErr_Occurred()) return NULL
;
11837 } _resultobj
= Py_BuildValue("i",_result
);
11841 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
11842 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11843 PyObject
* _resultobj
;
11845 wxImageList
* _arg0
;
11850 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
11851 bool _arg6
= (bool ) FALSE
;
11852 PyObject
* _argo0
= 0;
11853 PyObject
* _argo2
= 0;
11854 int tempbool6
= (int) FALSE
;
11855 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
11858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
11861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
11868 if (_argo2
== Py_None
) { _arg2
= NULL
; }
11869 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
11870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
11874 _arg6
= (bool ) tempbool6
;
11876 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11877 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
11879 wxPyEndAllowThreads(__tstate
);
11880 if (PyErr_Occurred()) return NULL
;
11881 } _resultobj
= Py_BuildValue("i",_result
);
11885 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
11886 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11887 PyObject
* _resultobj
;
11889 wxImageList
* _arg0
;
11890 PyObject
* _argo0
= 0;
11891 char *_kwnames
[] = { "self", NULL
};
11894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
11897 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11898 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
11904 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11905 _result
= (int )wxImageList_GetImageCount(_arg0
);
11907 wxPyEndAllowThreads(__tstate
);
11908 if (PyErr_Occurred()) return NULL
;
11909 } _resultobj
= Py_BuildValue("i",_result
);
11913 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
11914 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11915 PyObject
* _resultobj
;
11917 wxImageList
* _arg0
;
11919 PyObject
* _argo0
= 0;
11920 char *_kwnames
[] = { "self","index", NULL
};
11923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
11926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
11933 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11934 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
11936 wxPyEndAllowThreads(__tstate
);
11937 if (PyErr_Occurred()) return NULL
;
11938 } _resultobj
= Py_BuildValue("i",_result
);
11942 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
11943 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11944 PyObject
* _resultobj
;
11946 wxImageList
* _arg0
;
11947 PyObject
* _argo0
= 0;
11948 char *_kwnames
[] = { "self", NULL
};
11951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
11954 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11955 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
11961 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11962 _result
= (bool )wxImageList_RemoveAll(_arg0
);
11964 wxPyEndAllowThreads(__tstate
);
11965 if (PyErr_Occurred()) return NULL
;
11966 } _resultobj
= Py_BuildValue("i",_result
);
11970 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
11971 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11972 PyObject
* _resultobj
;
11973 wxImageList
* _arg0
;
11979 PyObject
* _argo0
= 0;
11980 char *_kwnames
[] = { "self","index", NULL
};
11989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
11992 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11993 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
11999 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12000 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
12002 wxPyEndAllowThreads(__tstate
);
12003 if (PyErr_Occurred()) return NULL
;
12004 } Py_INCREF(Py_None
);
12005 _resultobj
= Py_None
;
12008 o
= PyInt_FromLong((long) (*_arg2
));
12009 _resultobj
= t_output_helper(_resultobj
, o
);
12013 o
= PyInt_FromLong((long) (*_arg3
));
12014 _resultobj
= t_output_helper(_resultobj
, o
);
12019 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
12022 src
= (wxRegion
*) ptr
;
12023 dest
= (wxGDIObject
*) src
;
12024 return (void *) dest
;
12027 static void *SwigwxRegionTowxObject(void *ptr
) {
12030 src
= (wxRegion
*) ptr
;
12031 dest
= (wxObject
*) src
;
12032 return (void *) dest
;
12035 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12036 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12037 PyObject
* _resultobj
;
12038 wxRegion
* _result
;
12039 long _arg0
= (long ) 0;
12040 long _arg1
= (long ) 0;
12041 long _arg2
= (long ) 0;
12042 long _arg3
= (long ) 0;
12043 char *_kwnames
[] = { "x","y","width","height", NULL
};
12047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
12050 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12051 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
12053 wxPyEndAllowThreads(__tstate
);
12054 if (PyErr_Occurred()) return NULL
;
12056 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
12057 _resultobj
= Py_BuildValue("s",_ptemp
);
12059 Py_INCREF(Py_None
);
12060 _resultobj
= Py_None
;
12065 #define delete_wxRegion(_swigobj) (delete _swigobj)
12066 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12067 PyObject
* _resultobj
;
12069 PyObject
* _argo0
= 0;
12070 char *_kwnames
[] = { "self", NULL
};
12073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
12076 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12077 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
12083 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12084 delete_wxRegion(_arg0
);
12086 wxPyEndAllowThreads(__tstate
);
12087 if (PyErr_Occurred()) return NULL
;
12088 } Py_INCREF(Py_None
);
12089 _resultobj
= Py_None
;
12093 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
12094 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12095 PyObject
* _resultobj
;
12097 PyObject
* _argo0
= 0;
12098 char *_kwnames
[] = { "self", NULL
};
12101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
12104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
12111 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12112 wxRegion_Clear(_arg0
);
12114 wxPyEndAllowThreads(__tstate
);
12115 if (PyErr_Occurred()) return NULL
;
12116 } Py_INCREF(Py_None
);
12117 _resultobj
= Py_None
;
12121 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
12122 static PyObject
*_wrap_wxRegion_Offset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12123 PyObject
* _resultobj
;
12128 PyObject
* _argo0
= 0;
12129 char *_kwnames
[] = { "self","x","y", NULL
};
12132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxRegion_Offset",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
12135 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12136 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12137 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
12142 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12143 _result
= (bool )wxRegion_Offset(_arg0
,_arg1
,_arg2
);
12145 wxPyEndAllowThreads(__tstate
);
12146 if (PyErr_Occurred()) return NULL
;
12147 } _resultobj
= Py_BuildValue("i",_result
);
12151 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
12152 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12153 PyObject
* _resultobj
;
12154 wxRegionContain _result
;
12158 PyObject
* _argo0
= 0;
12159 char *_kwnames
[] = { "self","x","y", NULL
};
12162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
12165 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12166 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
12172 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12173 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
12175 wxPyEndAllowThreads(__tstate
);
12176 if (PyErr_Occurred()) return NULL
;
12177 } _resultobj
= Py_BuildValue("i",_result
);
12181 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
12182 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12183 PyObject
* _resultobj
;
12184 wxRegionContain _result
;
12187 PyObject
* _argo0
= 0;
12189 PyObject
* _obj1
= 0;
12190 char *_kwnames
[] = { "self","pt", NULL
};
12193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
12196 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12197 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
12204 if (! wxPoint_helper(_obj1
, &_arg1
))
12208 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12209 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
12211 wxPyEndAllowThreads(__tstate
);
12212 if (PyErr_Occurred()) return NULL
;
12213 } _resultobj
= Py_BuildValue("i",_result
);
12217 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
12218 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12219 PyObject
* _resultobj
;
12220 wxRegionContain _result
;
12223 PyObject
* _argo0
= 0;
12225 PyObject
* _obj1
= 0;
12226 char *_kwnames
[] = { "self","rect", NULL
};
12229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
12232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
12240 if (! wxRect_helper(_obj1
, &_arg1
))
12244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12245 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
12247 wxPyEndAllowThreads(__tstate
);
12248 if (PyErr_Occurred()) return NULL
;
12249 } _resultobj
= Py_BuildValue("i",_result
);
12253 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12254 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12255 PyObject
* _resultobj
;
12256 wxRegionContain _result
;
12262 PyObject
* _argo0
= 0;
12263 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
12266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
12276 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12277 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12279 wxPyEndAllowThreads(__tstate
);
12280 if (PyErr_Occurred()) return NULL
;
12281 } _resultobj
= Py_BuildValue("i",_result
);
12285 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
12286 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12287 PyObject
* _resultobj
;
12290 PyObject
* _argo0
= 0;
12291 char *_kwnames
[] = { "self", NULL
};
12295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
12298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
12305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12306 _result
= new wxRect (wxRegion_GetBox(_arg0
));
12308 wxPyEndAllowThreads(__tstate
);
12309 if (PyErr_Occurred()) return NULL
;
12310 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
12311 _resultobj
= Py_BuildValue("s",_ptemp
);
12315 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12316 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12317 PyObject
* _resultobj
;
12324 PyObject
* _argo0
= 0;
12325 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
12328 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12331 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12332 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12333 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
12338 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12339 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12341 wxPyEndAllowThreads(__tstate
);
12342 if (PyErr_Occurred()) return NULL
;
12343 } _resultobj
= Py_BuildValue("i",_result
);
12347 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12348 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12349 PyObject
* _resultobj
;
12353 PyObject
* _argo0
= 0;
12355 PyObject
* _obj1
= 0;
12356 char *_kwnames
[] = { "self","rect", NULL
};
12359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
12362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
12370 if (! wxRect_helper(_obj1
, &_arg1
))
12374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12375 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
12377 wxPyEndAllowThreads(__tstate
);
12378 if (PyErr_Occurred()) return NULL
;
12379 } _resultobj
= Py_BuildValue("i",_result
);
12383 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12384 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12385 PyObject
* _resultobj
;
12389 PyObject
* _argo0
= 0;
12390 PyObject
* _argo1
= 0;
12391 char *_kwnames
[] = { "self","region", NULL
};
12394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
12397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12404 if (_argo1
== Py_None
) { _arg1
= NULL
; }
12405 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
12406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12412 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
12414 wxPyEndAllowThreads(__tstate
);
12415 if (PyErr_Occurred()) return NULL
;
12416 } _resultobj
= Py_BuildValue("i",_result
);
12420 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
12421 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12422 PyObject
* _resultobj
;
12425 PyObject
* _argo0
= 0;
12426 char *_kwnames
[] = { "self", NULL
};
12429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
12432 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12433 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12434 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
12439 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12440 _result
= (bool )wxRegion_IsEmpty(_arg0
);
12442 wxPyEndAllowThreads(__tstate
);
12443 if (PyErr_Occurred()) return NULL
;
12444 } _resultobj
= Py_BuildValue("i",_result
);
12448 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12449 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12450 PyObject
* _resultobj
;
12457 PyObject
* _argo0
= 0;
12458 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
12461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12464 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12465 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12466 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
12471 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12472 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12474 wxPyEndAllowThreads(__tstate
);
12475 if (PyErr_Occurred()) return NULL
;
12476 } _resultobj
= Py_BuildValue("i",_result
);
12480 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12481 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12482 PyObject
* _resultobj
;
12486 PyObject
* _argo0
= 0;
12488 PyObject
* _obj1
= 0;
12489 char *_kwnames
[] = { "self","rect", NULL
};
12492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
12495 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12496 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
12503 if (! wxRect_helper(_obj1
, &_arg1
))
12507 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12508 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
12510 wxPyEndAllowThreads(__tstate
);
12511 if (PyErr_Occurred()) return NULL
;
12512 } _resultobj
= Py_BuildValue("i",_result
);
12516 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12517 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12518 PyObject
* _resultobj
;
12522 PyObject
* _argo0
= 0;
12523 PyObject
* _argo1
= 0;
12524 char *_kwnames
[] = { "self","region", NULL
};
12527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
12530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12537 if (_argo1
== Py_None
) { _arg1
= NULL
; }
12538 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
12539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12545 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
12547 wxPyEndAllowThreads(__tstate
);
12548 if (PyErr_Occurred()) return NULL
;
12549 } _resultobj
= Py_BuildValue("i",_result
);
12553 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12554 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12555 PyObject
* _resultobj
;
12562 PyObject
* _argo0
= 0;
12563 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
12566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
12576 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12577 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12579 wxPyEndAllowThreads(__tstate
);
12580 if (PyErr_Occurred()) return NULL
;
12581 } _resultobj
= Py_BuildValue("i",_result
);
12585 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12586 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12587 PyObject
* _resultobj
;
12591 PyObject
* _argo0
= 0;
12593 PyObject
* _obj1
= 0;
12594 char *_kwnames
[] = { "self","rect", NULL
};
12597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
12600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
12608 if (! wxRect_helper(_obj1
, &_arg1
))
12612 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12613 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
12615 wxPyEndAllowThreads(__tstate
);
12616 if (PyErr_Occurred()) return NULL
;
12617 } _resultobj
= Py_BuildValue("i",_result
);
12621 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12622 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12623 PyObject
* _resultobj
;
12627 PyObject
* _argo0
= 0;
12628 PyObject
* _argo1
= 0;
12629 char *_kwnames
[] = { "self","region", NULL
};
12632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
12635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12642 if (_argo1
== Py_None
) { _arg1
= NULL
; }
12643 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
12644 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12649 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12650 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
12652 wxPyEndAllowThreads(__tstate
);
12653 if (PyErr_Occurred()) return NULL
;
12654 } _resultobj
= Py_BuildValue("i",_result
);
12658 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12659 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12660 PyObject
* _resultobj
;
12667 PyObject
* _argo0
= 0;
12668 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
12671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
12681 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12682 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12684 wxPyEndAllowThreads(__tstate
);
12685 if (PyErr_Occurred()) return NULL
;
12686 } _resultobj
= Py_BuildValue("i",_result
);
12690 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12691 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12692 PyObject
* _resultobj
;
12696 PyObject
* _argo0
= 0;
12698 PyObject
* _obj1
= 0;
12699 char *_kwnames
[] = { "self","rect", NULL
};
12702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
12705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
12713 if (! wxRect_helper(_obj1
, &_arg1
))
12717 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12718 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
12720 wxPyEndAllowThreads(__tstate
);
12721 if (PyErr_Occurred()) return NULL
;
12722 } _resultobj
= Py_BuildValue("i",_result
);
12726 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12727 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12728 PyObject
* _resultobj
;
12732 PyObject
* _argo0
= 0;
12733 PyObject
* _argo1
= 0;
12734 char *_kwnames
[] = { "self","region", NULL
};
12737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
12740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
12747 if (_argo1
== Py_None
) { _arg1
= NULL
; }
12748 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
12749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
12754 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12755 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
12757 wxPyEndAllowThreads(__tstate
);
12758 if (PyErr_Occurred()) return NULL
;
12759 } _resultobj
= Py_BuildValue("i",_result
);
12763 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
12764 wxRegionIterator
*src
;
12766 src
= (wxRegionIterator
*) ptr
;
12767 dest
= (wxObject
*) src
;
12768 return (void *) dest
;
12771 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
12772 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12773 PyObject
* _resultobj
;
12774 wxRegionIterator
* _result
;
12776 PyObject
* _argo0
= 0;
12777 char *_kwnames
[] = { "region", NULL
};
12781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
12784 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12785 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12786 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
12791 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12792 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
12794 wxPyEndAllowThreads(__tstate
);
12795 if (PyErr_Occurred()) return NULL
;
12797 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
12798 _resultobj
= Py_BuildValue("s",_ptemp
);
12800 Py_INCREF(Py_None
);
12801 _resultobj
= Py_None
;
12806 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
12807 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12808 PyObject
* _resultobj
;
12809 wxRegionIterator
* _arg0
;
12810 PyObject
* _argo0
= 0;
12811 char *_kwnames
[] = { "self", NULL
};
12814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
12817 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12818 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
12824 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12825 delete_wxRegionIterator(_arg0
);
12827 wxPyEndAllowThreads(__tstate
);
12828 if (PyErr_Occurred()) return NULL
;
12829 } Py_INCREF(Py_None
);
12830 _resultobj
= Py_None
;
12834 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
12835 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12836 PyObject
* _resultobj
;
12838 wxRegionIterator
* _arg0
;
12839 PyObject
* _argo0
= 0;
12840 char *_kwnames
[] = { "self", NULL
};
12843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
12846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
12853 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12854 _result
= (long )wxRegionIterator_GetX(_arg0
);
12856 wxPyEndAllowThreads(__tstate
);
12857 if (PyErr_Occurred()) return NULL
;
12858 } _resultobj
= Py_BuildValue("l",_result
);
12862 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
12863 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12864 PyObject
* _resultobj
;
12866 wxRegionIterator
* _arg0
;
12867 PyObject
* _argo0
= 0;
12868 char *_kwnames
[] = { "self", NULL
};
12871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
12874 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12875 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
12881 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12882 _result
= (long )wxRegionIterator_GetY(_arg0
);
12884 wxPyEndAllowThreads(__tstate
);
12885 if (PyErr_Occurred()) return NULL
;
12886 } _resultobj
= Py_BuildValue("l",_result
);
12890 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
12891 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12892 PyObject
* _resultobj
;
12894 wxRegionIterator
* _arg0
;
12895 PyObject
* _argo0
= 0;
12896 char *_kwnames
[] = { "self", NULL
};
12899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
12902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
12909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12910 _result
= (long )wxRegionIterator_GetW(_arg0
);
12912 wxPyEndAllowThreads(__tstate
);
12913 if (PyErr_Occurred()) return NULL
;
12914 } _resultobj
= Py_BuildValue("l",_result
);
12918 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
12919 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12920 PyObject
* _resultobj
;
12922 wxRegionIterator
* _arg0
;
12923 PyObject
* _argo0
= 0;
12924 char *_kwnames
[] = { "self", NULL
};
12927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
12930 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12931 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
12937 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12938 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
12940 wxPyEndAllowThreads(__tstate
);
12941 if (PyErr_Occurred()) return NULL
;
12942 } _resultobj
= Py_BuildValue("l",_result
);
12946 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
12947 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12948 PyObject
* _resultobj
;
12950 wxRegionIterator
* _arg0
;
12951 PyObject
* _argo0
= 0;
12952 char *_kwnames
[] = { "self", NULL
};
12955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
12958 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12959 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12960 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
12965 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12966 _result
= (long )wxRegionIterator_GetH(_arg0
);
12968 wxPyEndAllowThreads(__tstate
);
12969 if (PyErr_Occurred()) return NULL
;
12970 } _resultobj
= Py_BuildValue("l",_result
);
12974 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
12975 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12976 PyObject
* _resultobj
;
12978 wxRegionIterator
* _arg0
;
12979 PyObject
* _argo0
= 0;
12980 char *_kwnames
[] = { "self", NULL
};
12983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
12986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
12993 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12994 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
12996 wxPyEndAllowThreads(__tstate
);
12997 if (PyErr_Occurred()) return NULL
;
12998 } _resultobj
= Py_BuildValue("l",_result
);
13002 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
13003 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
13004 PyObject
* _resultobj
;
13006 wxRegionIterator
* _arg0
;
13007 PyObject
* _argo0
= 0;
13008 char *_kwnames
[] = { "self", NULL
};
13012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
13015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
13016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
13017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
13022 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13023 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
13025 wxPyEndAllowThreads(__tstate
);
13026 if (PyErr_Occurred()) return NULL
;
13027 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
13028 _resultobj
= Py_BuildValue("s",_ptemp
);
13032 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
13033 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
13034 PyObject
* _resultobj
;
13036 wxRegionIterator
* _arg0
;
13037 PyObject
* _argo0
= 0;
13038 char *_kwnames
[] = { "self", NULL
};
13041 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
13044 if (_argo0
== Py_None
) { _arg0
= NULL
; }
13045 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
13046 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
13051 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13052 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
13054 wxPyEndAllowThreads(__tstate
);
13055 if (PyErr_Occurred()) return NULL
;
13056 } _resultobj
= Py_BuildValue("i",_result
);
13060 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
13061 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
13062 PyObject
* _resultobj
;
13063 wxRegionIterator
* _arg0
;
13064 PyObject
* _argo0
= 0;
13065 char *_kwnames
[] = { "self", NULL
};
13068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
13071 if (_argo0
== Py_None
) { _arg0
= NULL
; }
13072 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
13073 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
13078 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13079 wxRegionIterator_Reset(_arg0
);
13081 wxPyEndAllowThreads(__tstate
);
13082 if (PyErr_Occurred()) return NULL
;
13083 } Py_INCREF(Py_None
);
13084 _resultobj
= Py_None
;
13088 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
13091 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
13092 PyObject
* _resultobj
;
13093 wxRegionIterator
* _arg0
;
13094 PyObject
* _argo0
= 0;
13095 char *_kwnames
[] = { "self", NULL
};
13098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
13101 if (_argo0
== Py_None
) { _arg0
= NULL
; }
13102 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
13103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
13108 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13109 wxRegionIterator_Next(_arg0
);
13111 wxPyEndAllowThreads(__tstate
);
13112 if (PyErr_Occurred()) return NULL
;
13113 } Py_INCREF(Py_None
);
13114 _resultobj
= Py_None
;
13118 static PyMethodDef gdicMethods
[] = {
13119 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
13120 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
13121 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
13122 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
13123 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13124 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
13125 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13126 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
13127 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
13128 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
13129 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
13130 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
13131 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
13132 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
13133 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
13134 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
13135 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
13136 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
13137 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
13138 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
13139 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
13140 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
13141 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
13142 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
13143 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
13144 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
13145 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
13146 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
13147 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
13148 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
13149 { "wxRegion_Offset", (PyCFunction
) _wrap_wxRegion_Offset
, METH_VARARGS
| METH_KEYWORDS
},
13150 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
13151 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
13152 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
13153 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
13154 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
13155 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
13156 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
13157 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
13158 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
13159 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
13160 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
13161 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
13162 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
13163 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
13164 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13165 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
13166 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
13167 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
13168 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
13169 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
13170 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
13171 { "wxMetaFile_GetFileName", (PyCFunction
) _wrap_wxMetaFile_GetFileName
, METH_VARARGS
| METH_KEYWORDS
},
13172 { "wxMetaFile_GetHeight", (PyCFunction
) _wrap_wxMetaFile_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13173 { "wxMetaFile_GetWidth", (PyCFunction
) _wrap_wxMetaFile_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13174 { "wxMetaFile_GetSize", (PyCFunction
) _wrap_wxMetaFile_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
13175 { "wxMetaFile_SetClipboard", (PyCFunction
) _wrap_wxMetaFile_SetClipboard
, METH_VARARGS
| METH_KEYWORDS
},
13176 { "wxMetaFile_Ok", (PyCFunction
) _wrap_wxMetaFile_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13177 { "delete_wxMetaFile", (PyCFunction
) _wrap_delete_wxMetaFile
, METH_VARARGS
| METH_KEYWORDS
},
13178 { "new_wxMetaFile", (PyCFunction
) _wrap_new_wxMetaFile
, METH_VARARGS
| METH_KEYWORDS
},
13179 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
13180 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
13181 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
13182 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
13183 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
13184 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
13185 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
13186 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
13187 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
13188 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
13189 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
13190 { "wxDC_GetHDC", (PyCFunction
) _wrap_wxDC_GetHDC
, METH_VARARGS
| METH_KEYWORDS
},
13191 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
13192 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
13193 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
13194 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
13195 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
13196 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
13197 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
13198 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
13199 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13200 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
13201 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13202 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13203 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
13204 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
13205 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
13206 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
13207 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
13208 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
13209 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
13210 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
13211 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
13212 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
13213 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
13214 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
13215 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
13216 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
13217 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
13218 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
13219 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
13220 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
13221 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13222 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
13223 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
13224 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
13225 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
13226 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
13227 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
13228 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
13229 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
13230 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
13231 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
13232 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
13233 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
13234 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
13235 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
13236 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
13237 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
13238 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
13239 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
13240 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
13241 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
13242 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
13243 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
13244 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
13245 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
13246 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
13247 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
13248 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
13249 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
13250 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
13251 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
13252 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
13253 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
13254 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
13255 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
13256 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
13257 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
13258 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
13259 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
13260 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
13261 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
13262 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
13263 { "wxDC_DrawImageLabel", (PyCFunction
) _wrap_wxDC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
},
13264 { "wxDC_DrawLabel", (PyCFunction
) _wrap_wxDC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
},
13265 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
13266 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
13267 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
13268 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
13269 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
13270 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
13271 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
13272 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
13273 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
13274 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
13275 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
13276 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
13277 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
13278 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
13279 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
13280 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
13281 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
13282 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
13283 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
13284 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13285 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
13286 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
13287 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13288 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13289 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
13290 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
13291 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
13292 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
13293 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
13294 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
13295 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
13296 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
13297 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
13298 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
13299 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
13300 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
13301 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
13302 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
13303 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13304 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13305 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
13306 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
13307 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
13308 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13309 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13310 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13311 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
13312 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
13313 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
13314 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
13315 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
13316 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
13317 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
13318 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
13319 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
13320 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
13321 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13322 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
13323 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
13324 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
13325 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
13326 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
13327 { "wxFontList_GetCount", (PyCFunction
) _wrap_wxFontList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
13328 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
13329 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
13330 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
13331 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13332 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13333 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
13334 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
13335 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
13336 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_SetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
13337 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
13338 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13339 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
13340 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
13341 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
13342 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13343 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
13344 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
13345 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
13346 { "wxFont_GetNativeFontInfoDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoDesc
, METH_VARARGS
| METH_KEYWORDS
},
13347 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
13348 { "wxFont_IsFixedWidth", (PyCFunction
) _wrap_wxFont_IsFixedWidth
, METH_VARARGS
| METH_KEYWORDS
},
13349 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13350 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
13351 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
13352 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
13353 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13354 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
13355 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
13356 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13357 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
13358 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
13359 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
13360 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
13361 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
13362 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
13363 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
13364 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
13365 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
13366 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
13367 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13368 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
13369 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13370 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
13371 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
13372 { "wxNativeFontInfo_ToUserString", (PyCFunction
) _wrap_wxNativeFontInfo_ToUserString
, METH_VARARGS
| METH_KEYWORDS
},
13373 { "wxNativeFontInfo_FromUserString", (PyCFunction
) _wrap_wxNativeFontInfo_FromUserString
, METH_VARARGS
| METH_KEYWORDS
},
13374 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
13375 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
13376 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
13377 { "wxNativeFontInfo_SetEncoding", (PyCFunction
) _wrap_wxNativeFontInfo_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13378 { "wxNativeFontInfo_SetFamily", (PyCFunction
) _wrap_wxNativeFontInfo_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
13379 { "wxNativeFontInfo_SetFaceName", (PyCFunction
) _wrap_wxNativeFontInfo_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
13380 { "wxNativeFontInfo_SetUnderlined", (PyCFunction
) _wrap_wxNativeFontInfo_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
13381 { "wxNativeFontInfo_SetWeight", (PyCFunction
) _wrap_wxNativeFontInfo_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
13382 { "wxNativeFontInfo_SetStyle", (PyCFunction
) _wrap_wxNativeFontInfo_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13383 { "wxNativeFontInfo_SetPointSize", (PyCFunction
) _wrap_wxNativeFontInfo_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
13384 { "wxNativeFontInfo_GetEncoding", (PyCFunction
) _wrap_wxNativeFontInfo_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13385 { "wxNativeFontInfo_GetFamily", (PyCFunction
) _wrap_wxNativeFontInfo_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
13386 { "wxNativeFontInfo_GetFaceName", (PyCFunction
) _wrap_wxNativeFontInfo_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
13387 { "wxNativeFontInfo_GetUnderlined", (PyCFunction
) _wrap_wxNativeFontInfo_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
13388 { "wxNativeFontInfo_GetWeight", (PyCFunction
) _wrap_wxNativeFontInfo_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
13389 { "wxNativeFontInfo_GetStyle", (PyCFunction
) _wrap_wxNativeFontInfo_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13390 { "wxNativeFontInfo_GetPointSize", (PyCFunction
) _wrap_wxNativeFontInfo_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
13391 { "wxNativeFontInfo_Init", (PyCFunction
) _wrap_wxNativeFontInfo_Init
, METH_VARARGS
| METH_KEYWORDS
},
13392 { "new_wxNativeFontInfo", (PyCFunction
) _wrap_new_wxNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
13393 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
13394 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13395 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13396 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13397 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13398 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13399 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13400 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13401 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13402 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13403 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
13404 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
13405 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13406 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
13407 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13408 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13409 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13410 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13411 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13412 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13413 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13414 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13415 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13416 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
13417 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
13418 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
13419 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
13420 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
13421 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
13422 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
13423 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
13424 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
13425 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13426 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
13427 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13428 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13429 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13430 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13431 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13432 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13433 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13434 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13435 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13436 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
13437 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
13438 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
13439 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
13440 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
13441 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
13442 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13443 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13444 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
13445 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
13446 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
13447 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
13448 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
13449 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
13450 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
13451 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
13452 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
13453 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
13454 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
13455 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
13456 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
13457 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
13458 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13465 * This table is used by the pointer type-checker
13467 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
13468 { "_signed_long","_long",0},
13469 { "_wxPrintQuality","_wxCoord",0},
13470 { "_wxPrintQuality","_int",0},
13471 { "_wxPrintQuality","_signed_int",0},
13472 { "_wxPrintQuality","_unsigned_int",0},
13473 { "_wxPrintQuality","_wxWindowID",0},
13474 { "_wxPrintQuality","_uint",0},
13475 { "_wxPrintQuality","_EBool",0},
13476 { "_wxPrintQuality","_size_t",0},
13477 { "_wxPrintQuality","_time_t",0},
13478 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
13479 { "_byte","_unsigned_char",0},
13480 { "_long","_unsigned_long",0},
13481 { "_long","_signed_long",0},
13482 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
13483 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
13484 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
13485 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
13486 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
13487 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
13488 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
13489 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
13490 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
13491 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
13492 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
13493 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
13494 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
13495 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
13496 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
13497 { "_size_t","_wxCoord",0},
13498 { "_size_t","_wxPrintQuality",0},
13499 { "_size_t","_time_t",0},
13500 { "_size_t","_unsigned_int",0},
13501 { "_size_t","_int",0},
13502 { "_size_t","_wxWindowID",0},
13503 { "_size_t","_uint",0},
13504 { "_uint","_wxCoord",0},
13505 { "_uint","_wxPrintQuality",0},
13506 { "_uint","_time_t",0},
13507 { "_uint","_size_t",0},
13508 { "_uint","_unsigned_int",0},
13509 { "_uint","_int",0},
13510 { "_uint","_wxWindowID",0},
13511 { "_wxChar","_char",0},
13512 { "_char","_wxChar",0},
13513 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
13514 { "_EBool","_wxCoord",0},
13515 { "_EBool","_wxPrintQuality",0},
13516 { "_EBool","_signed_int",0},
13517 { "_EBool","_int",0},
13518 { "_EBool","_wxWindowID",0},
13519 { "_unsigned_long","_long",0},
13520 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
13521 { "_signed_int","_wxCoord",0},
13522 { "_signed_int","_wxPrintQuality",0},
13523 { "_signed_int","_EBool",0},
13524 { "_signed_int","_wxWindowID",0},
13525 { "_signed_int","_int",0},
13526 { "_WXTYPE","_short",0},
13527 { "_WXTYPE","_signed_short",0},
13528 { "_WXTYPE","_unsigned_short",0},
13529 { "_unsigned_short","_WXTYPE",0},
13530 { "_unsigned_short","_short",0},
13531 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
13532 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
13533 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
13534 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
13535 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject
},
13536 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject
},
13537 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
13538 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
13539 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
13540 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
13541 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
13542 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
13543 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
13544 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
13545 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
13546 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
13547 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
13548 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
13549 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
13550 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
13551 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
13552 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
13553 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
13554 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
13555 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
13556 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
13557 { "_signed_short","_WXTYPE",0},
13558 { "_signed_short","_short",0},
13559 { "_unsigned_char","_byte",0},
13560 { "_unsigned_int","_wxCoord",0},
13561 { "_unsigned_int","_wxPrintQuality",0},
13562 { "_unsigned_int","_time_t",0},
13563 { "_unsigned_int","_size_t",0},
13564 { "_unsigned_int","_uint",0},
13565 { "_unsigned_int","_wxWindowID",0},
13566 { "_unsigned_int","_int",0},
13567 { "_short","_WXTYPE",0},
13568 { "_short","_unsigned_short",0},
13569 { "_short","_signed_short",0},
13570 { "_wxWindowID","_wxCoord",0},
13571 { "_wxWindowID","_wxPrintQuality",0},
13572 { "_wxWindowID","_time_t",0},
13573 { "_wxWindowID","_size_t",0},
13574 { "_wxWindowID","_EBool",0},
13575 { "_wxWindowID","_uint",0},
13576 { "_wxWindowID","_int",0},
13577 { "_wxWindowID","_signed_int",0},
13578 { "_wxWindowID","_unsigned_int",0},
13579 { "_int","_wxCoord",0},
13580 { "_int","_wxPrintQuality",0},
13581 { "_int","_time_t",0},
13582 { "_int","_size_t",0},
13583 { "_int","_EBool",0},
13584 { "_int","_uint",0},
13585 { "_int","_wxWindowID",0},
13586 { "_int","_unsigned_int",0},
13587 { "_int","_signed_int",0},
13588 { "_time_t","_wxCoord",0},
13589 { "_time_t","_wxPrintQuality",0},
13590 { "_time_t","_unsigned_int",0},
13591 { "_time_t","_int",0},
13592 { "_time_t","_wxWindowID",0},
13593 { "_time_t","_uint",0},
13594 { "_time_t","_size_t",0},
13595 { "_wxCoord","_int",0},
13596 { "_wxCoord","_signed_int",0},
13597 { "_wxCoord","_unsigned_int",0},
13598 { "_wxCoord","_wxWindowID",0},
13599 { "_wxCoord","_uint",0},
13600 { "_wxCoord","_EBool",0},
13601 { "_wxCoord","_size_t",0},
13602 { "_wxCoord","_time_t",0},
13603 { "_wxCoord","_wxPrintQuality",0},
13606 static PyObject
*SWIG_globals
;
13610 SWIGEXPORT(void) initgdic() {
13612 SWIG_globals
= SWIG_newvarlink();
13613 m
= Py_InitModule("gdic", gdicMethods
);
13614 d
= PyModule_GetDict(m
);
13615 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
13616 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
13617 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
13618 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
13619 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
13620 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
13621 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
13622 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
13623 PyDict_SetItemString(d
,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN
));
13624 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
13625 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
13626 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
13627 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
13628 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
13629 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
13630 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
13631 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
13632 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
13633 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
13634 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
13635 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
13636 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
13637 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
13638 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
13639 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
13640 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
13641 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
13642 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
13643 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
13644 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
13645 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
13646 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
13647 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
13648 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
13649 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
13650 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
13651 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
13652 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
13653 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
13654 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
13655 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
13656 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
13657 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
13658 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
13659 PyDict_SetItemString(d
,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932
));
13660 PyDict_SetItemString(d
,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936
));
13661 PyDict_SetItemString(d
,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949
));
13662 PyDict_SetItemString(d
,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950
));
13663 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
13664 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
13665 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
13666 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
13667 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
13668 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
13669 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
13670 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
13671 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
13672 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
13673 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
13674 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
13675 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
13676 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
13677 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
13678 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
13679 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
13680 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
13681 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
13682 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
13683 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
13684 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
13685 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
13686 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
13687 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
13688 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
13689 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
13690 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
13691 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
13692 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
13693 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
13694 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
13695 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
13696 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
13697 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
13698 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
13699 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
13700 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
13701 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
13702 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
13703 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
13704 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
13705 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
13706 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
13707 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
13708 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
13709 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
13710 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
13711 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
13712 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
13713 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
13714 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
13715 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
13716 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
13717 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
13718 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
13719 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
13720 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
13721 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
13722 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
13723 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
13724 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
13725 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
13726 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
13727 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
13728 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
13729 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
13730 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
13731 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
13732 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
13735 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
13736 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);