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
);
176 wxIcon
* wxIconFromBitmap(const wxBitmap
& bmp
) {
177 wxIcon
* icon
= new wxIcon();
178 icon
->CopyFromBitmap(bmp
);
181 // Alternate 'constructor'
182 wxCursor
* wxPyStockCursor(int id
) {
183 return new wxCursor(id
);
185 // Alternate 'constructor'
186 wxColour
* wxNamedColour(const wxString
& colorName
) {
187 return new wxColour(colorName
);
190 class wxPyPen
: public wxPen
{
192 wxPyPen(wxColour
& colour
, int width
=1, int style
=wxSOLID
)
193 : wxPen(colour
, width
, style
)
200 void SetDashes(int nb_dashes
, const wxDash
*dash
) {
203 m_dash
= new wxDash
[nb_dashes
];
204 for (int i
=0; i
<nb_dashes
; i
++) {
207 wxPen::SetDashes(nb_dashes
, m_dash
);
214 static void wxDC_GetBoundingBox(wxDC
* dc
, int* x1
, int* y1
, int* x2
, int* y2
) {
220 // Alternate 'constructor'
221 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
222 return new wxMemoryDC(oldDC
);
225 #include <wx/metafile.h>
228 extern wxFont
* wxNORMAL_FONT
;
229 extern wxFont
* wxSMALL_FONT
;
230 extern wxFont
* wxITALIC_FONT
;
231 extern wxFont
* wxSWISS_FONT
;
232 extern wxPen
* wxRED_PEN
;
233 extern wxPen
* wxCYAN_PEN
;
234 extern wxPen
* wxGREEN_PEN
;
235 extern wxPen
* wxBLACK_PEN
;
236 extern wxPen
* wxWHITE_PEN
;
237 extern wxPen
* wxTRANSPARENT_PEN
;
238 extern wxPen
* wxBLACK_DASHED_PEN
;
239 extern wxPen
* wxGREY_PEN
;
240 extern wxPen
* wxMEDIUM_GREY_PEN
;
241 extern wxPen
* wxLIGHT_GREY_PEN
;
242 extern wxBrush
* wxBLUE_BRUSH
;
243 extern wxBrush
* wxGREEN_BRUSH
;
244 extern wxBrush
* wxWHITE_BRUSH
;
245 extern wxBrush
* wxBLACK_BRUSH
;
246 extern wxBrush
* wxTRANSPARENT_BRUSH
;
247 extern wxBrush
* wxCYAN_BRUSH
;
248 extern wxBrush
* wxRED_BRUSH
;
249 extern wxBrush
* wxGREY_BRUSH
;
250 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
251 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
252 extern wxColour
* wxBLACK
;
253 extern wxColour
* wxWHITE
;
254 extern wxColour
* wxRED
;
255 extern wxColour
* wxBLUE
;
256 extern wxColour
* wxGREEN
;
257 extern wxColour
* wxCYAN
;
258 extern wxColour
* wxLIGHT_GREY
;
259 extern wxCursor
* wxSTANDARD_CURSOR
;
260 extern wxCursor
* wxHOURGLASS_CURSOR
;
261 extern wxCursor
* wxCROSS_CURSOR
;
262 extern wxBitmap wxNullBitmap
;
263 extern wxIcon wxNullIcon
;
264 extern wxCursor wxNullCursor
;
265 extern wxPen wxNullPen
;
266 extern wxBrush wxNullBrush
;
267 extern wxPalette wxNullPalette
;
268 extern wxFont wxNullFont
;
269 extern wxColour wxNullColour
;
270 extern wxFontList
* wxTheFontList
;
271 extern wxPenList
* wxThePenList
;
272 extern wxBrushList
* wxTheBrushList
;
273 extern wxColourDatabase
* wxTheColourDatabase
;
279 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
280 PyObject
* _resultobj
;
284 int _arg2
= (int ) -1;
285 char *_kwnames
[] = { "width","height","depth", NULL
};
289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
293 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
295 wxPyEndAllowThreads(__tstate
);
296 if (PyErr_Occurred()) return NULL
;
298 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
299 _resultobj
= Py_BuildValue("s",_ptemp
);
302 _resultobj
= Py_None
;
307 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
308 PyObject
* _resultobj
;
311 PyObject
* _obj0
= 0;
312 char *_kwnames
[] = { "listOfStrings", NULL
};
316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
322 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
323 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
325 wxPyEndAllowThreads(__tstate
);
326 if (PyErr_Occurred()) return NULL
;
328 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
329 _resultobj
= Py_BuildValue("s",_ptemp
);
332 _resultobj
= Py_None
;
337 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
338 PyObject
* _resultobj
;
341 PyObject
* _argo0
= 0;
342 char *_kwnames
[] = { "icon", NULL
};
346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
357 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
359 wxPyEndAllowThreads(__tstate
);
360 if (PyErr_Occurred()) return NULL
;
362 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
363 _resultobj
= Py_BuildValue("s",_ptemp
);
366 _resultobj
= Py_None
;
371 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
372 PyObject
* _resultobj
;
377 int _arg3
= (int ) 1;
378 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"sii|i:wxBitmapFromBits",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
385 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
386 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
388 wxPyEndAllowThreads(__tstate
);
389 if (PyErr_Occurred()) return NULL
;
391 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
392 _resultobj
= Py_BuildValue("s",_ptemp
);
395 _resultobj
= Py_None
;
400 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
401 PyObject
* _resultobj
;
405 PyObject
* _argo0
= 0;
407 PyObject
* _obj1
= 0;
408 char *_kwnames
[] = { "bitmap","colour", NULL
};
412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
423 if (! wxColour_helper(_obj1
, &_arg1
))
427 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
428 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
430 wxPyEndAllowThreads(__tstate
);
431 if (PyErr_Occurred()) return NULL
;
433 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
434 _resultobj
= Py_BuildValue("s",_ptemp
);
437 _resultobj
= Py_None
;
442 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
443 PyObject
* _resultobj
;
445 char *_kwnames
[] = { NULL
};
449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
453 _result
= (wxIcon
*)wxEmptyIcon();
455 wxPyEndAllowThreads(__tstate
);
456 if (PyErr_Occurred()) return NULL
;
458 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
459 _resultobj
= Py_BuildValue("s",_ptemp
);
462 _resultobj
= Py_None
;
467 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
468 PyObject
* _resultobj
;
471 PyObject
* _obj0
= 0;
472 char *_kwnames
[] = { "listOfStrings", NULL
};
476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
482 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
483 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
485 wxPyEndAllowThreads(__tstate
);
486 if (PyErr_Occurred()) return NULL
;
488 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
489 _resultobj
= Py_BuildValue("s",_ptemp
);
492 _resultobj
= Py_None
;
497 static PyObject
*_wrap_wxIconFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
498 PyObject
* _resultobj
;
501 PyObject
* _argo0
= 0;
502 char *_kwnames
[] = { "bmp", NULL
};
506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromBitmap",_kwnames
,&_argo0
))
509 if (_argo0
== Py_None
) { _arg0
= NULL
; }
510 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
516 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
517 _result
= (wxIcon
*)wxIconFromBitmap(*_arg0
);
519 wxPyEndAllowThreads(__tstate
);
520 if (PyErr_Occurred()) return NULL
;
522 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
523 _resultobj
= Py_BuildValue("s",_ptemp
);
526 _resultobj
= Py_None
;
531 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
532 PyObject
* _resultobj
;
535 char *_kwnames
[] = { "id", NULL
};
539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
542 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
543 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
545 wxPyEndAllowThreads(__tstate
);
546 if (PyErr_Occurred()) return NULL
;
548 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
549 _resultobj
= Py_BuildValue("s",_ptemp
);
552 _resultobj
= Py_None
;
557 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
558 PyObject
* _resultobj
;
561 PyObject
* _obj0
= 0;
562 char *_kwnames
[] = { "colorName", NULL
};
566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
569 #if PYTHON_API_VERSION >= 1009
570 char* tmpPtr
; int tmpSize
;
571 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
572 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
575 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
577 _arg0
= new wxString(tmpPtr
, tmpSize
);
579 if (!PyString_Check(_obj0
)) {
580 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
583 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
587 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
588 _result
= (wxColour
*)wxNamedColour(*_arg0
);
590 wxPyEndAllowThreads(__tstate
);
591 if (PyErr_Occurred()) return NULL
;
593 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
594 _resultobj
= Py_BuildValue("s",_ptemp
);
597 _resultobj
= Py_None
;
606 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
607 PyObject
* _resultobj
;
608 wxMemoryDC
* _result
;
610 PyObject
* _argo0
= 0;
611 char *_kwnames
[] = { "oldDC", NULL
};
615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
618 if (_argo0
== Py_None
) { _arg0
= NULL
; }
619 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
625 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
626 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
628 wxPyEndAllowThreads(__tstate
);
629 if (PyErr_Occurred()) return NULL
;
631 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
632 _resultobj
= Py_BuildValue("s",_ptemp
);
635 _resultobj
= Py_None
;
640 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
642 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
646 static PyObject
*_wrap_wxNORMAL_FONT_get() {
650 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
651 pyobj
= PyString_FromString(ptemp
);
655 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
657 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
661 static PyObject
*_wrap_wxSMALL_FONT_get() {
665 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
666 pyobj
= PyString_FromString(ptemp
);
670 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
672 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
676 static PyObject
*_wrap_wxITALIC_FONT_get() {
680 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
681 pyobj
= PyString_FromString(ptemp
);
685 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
687 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
691 static PyObject
*_wrap_wxSWISS_FONT_get() {
695 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
696 pyobj
= PyString_FromString(ptemp
);
700 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
702 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
706 static PyObject
*_wrap_wxRED_PEN_get() {
710 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
711 pyobj
= PyString_FromString(ptemp
);
715 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
717 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
721 static PyObject
*_wrap_wxCYAN_PEN_get() {
725 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
726 pyobj
= PyString_FromString(ptemp
);
730 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
732 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
736 static PyObject
*_wrap_wxGREEN_PEN_get() {
740 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
741 pyobj
= PyString_FromString(ptemp
);
745 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
747 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
751 static PyObject
*_wrap_wxBLACK_PEN_get() {
755 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
756 pyobj
= PyString_FromString(ptemp
);
760 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
762 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
766 static PyObject
*_wrap_wxWHITE_PEN_get() {
770 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
771 pyobj
= PyString_FromString(ptemp
);
775 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
777 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
781 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
785 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
786 pyobj
= PyString_FromString(ptemp
);
790 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
792 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
796 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
800 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
801 pyobj
= PyString_FromString(ptemp
);
805 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
807 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
811 static PyObject
*_wrap_wxGREY_PEN_get() {
815 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
816 pyobj
= PyString_FromString(ptemp
);
820 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
822 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
826 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
830 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
831 pyobj
= PyString_FromString(ptemp
);
835 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
837 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
841 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
845 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
846 pyobj
= PyString_FromString(ptemp
);
850 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
852 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
856 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
860 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
861 pyobj
= PyString_FromString(ptemp
);
865 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
867 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
871 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
875 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
876 pyobj
= PyString_FromString(ptemp
);
880 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
882 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
886 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
890 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
891 pyobj
= PyString_FromString(ptemp
);
895 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
897 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
901 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
905 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
906 pyobj
= PyString_FromString(ptemp
);
910 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
912 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
916 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
920 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
921 pyobj
= PyString_FromString(ptemp
);
925 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
927 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
931 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
935 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
936 pyobj
= PyString_FromString(ptemp
);
940 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
942 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
946 static PyObject
*_wrap_wxRED_BRUSH_get() {
950 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
951 pyobj
= PyString_FromString(ptemp
);
955 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
957 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
961 static PyObject
*_wrap_wxGREY_BRUSH_get() {
965 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
966 pyobj
= PyString_FromString(ptemp
);
970 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
972 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
976 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
980 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
981 pyobj
= PyString_FromString(ptemp
);
985 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
987 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
991 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
995 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
996 pyobj
= PyString_FromString(ptemp
);
1000 static int _wrap_wxBLACK_set(PyObject
*val
) {
1002 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
1006 static PyObject
*_wrap_wxBLACK_get() {
1010 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
1011 pyobj
= PyString_FromString(ptemp
);
1015 static int _wrap_wxWHITE_set(PyObject
*val
) {
1017 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
1021 static PyObject
*_wrap_wxWHITE_get() {
1025 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
1026 pyobj
= PyString_FromString(ptemp
);
1030 static int _wrap_wxRED_set(PyObject
*val
) {
1032 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
1036 static PyObject
*_wrap_wxRED_get() {
1040 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1041 pyobj
= PyString_FromString(ptemp
);
1045 static int _wrap_wxBLUE_set(PyObject
*val
) {
1047 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1051 static PyObject
*_wrap_wxBLUE_get() {
1055 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1056 pyobj
= PyString_FromString(ptemp
);
1060 static int _wrap_wxGREEN_set(PyObject
*val
) {
1062 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1066 static PyObject
*_wrap_wxGREEN_get() {
1070 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1071 pyobj
= PyString_FromString(ptemp
);
1075 static int _wrap_wxCYAN_set(PyObject
*val
) {
1077 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1081 static PyObject
*_wrap_wxCYAN_get() {
1085 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1086 pyobj
= PyString_FromString(ptemp
);
1090 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1092 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1096 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1100 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1101 pyobj
= PyString_FromString(ptemp
);
1105 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1107 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1111 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1115 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1116 pyobj
= PyString_FromString(ptemp
);
1120 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1122 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1126 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1130 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1131 pyobj
= PyString_FromString(ptemp
);
1135 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1137 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1141 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1145 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1146 pyobj
= PyString_FromString(ptemp
);
1150 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1152 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1156 static PyObject
*_wrap_wxNullBitmap_get() {
1160 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1161 pyobj
= PyString_FromString(ptemp
);
1165 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1167 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1171 static PyObject
*_wrap_wxNullIcon_get() {
1175 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1176 pyobj
= PyString_FromString(ptemp
);
1180 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1182 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1186 static PyObject
*_wrap_wxNullCursor_get() {
1190 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1191 pyobj
= PyString_FromString(ptemp
);
1195 static int _wrap_wxNullPen_set(PyObject
*val
) {
1197 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1201 static PyObject
*_wrap_wxNullPen_get() {
1205 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1206 pyobj
= PyString_FromString(ptemp
);
1210 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1212 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1216 static PyObject
*_wrap_wxNullBrush_get() {
1220 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1221 pyobj
= PyString_FromString(ptemp
);
1225 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1227 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1231 static PyObject
*_wrap_wxNullPalette_get() {
1235 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1236 pyobj
= PyString_FromString(ptemp
);
1240 static int _wrap_wxNullFont_set(PyObject
*val
) {
1242 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1246 static PyObject
*_wrap_wxNullFont_get() {
1250 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1251 pyobj
= PyString_FromString(ptemp
);
1255 static int _wrap_wxNullColour_set(PyObject
*val
) {
1257 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1261 static PyObject
*_wrap_wxNullColour_get() {
1265 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1266 pyobj
= PyString_FromString(ptemp
);
1270 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1272 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1276 static PyObject
*_wrap_wxTheFontList_get() {
1280 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1281 pyobj
= PyString_FromString(ptemp
);
1285 static int _wrap_wxThePenList_set(PyObject
*val
) {
1287 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1291 static PyObject
*_wrap_wxThePenList_get() {
1295 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1296 pyobj
= PyString_FromString(ptemp
);
1300 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1302 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1306 static PyObject
*_wrap_wxTheBrushList_get() {
1310 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1311 pyobj
= PyString_FromString(ptemp
);
1315 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1317 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1321 static PyObject
*_wrap_wxTheColourDatabase_get() {
1325 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1326 pyobj
= PyString_FromString(ptemp
);
1330 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1333 src
= (wxGDIObject
*) ptr
;
1334 dest
= (wxObject
*) src
;
1335 return (void *) dest
;
1338 #define new_wxGDIObject() (new wxGDIObject())
1339 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1340 PyObject
* _resultobj
;
1341 wxGDIObject
* _result
;
1342 char *_kwnames
[] = { NULL
};
1346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1349 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1350 _result
= (wxGDIObject
*)new_wxGDIObject();
1352 wxPyEndAllowThreads(__tstate
);
1353 if (PyErr_Occurred()) return NULL
;
1355 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1356 _resultobj
= Py_BuildValue("s",_ptemp
);
1359 _resultobj
= Py_None
;
1364 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1365 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1366 PyObject
* _resultobj
;
1367 wxGDIObject
* _arg0
;
1368 PyObject
* _argo0
= 0;
1369 char *_kwnames
[] = { "self", NULL
};
1372 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1375 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1376 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1377 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1382 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1383 delete_wxGDIObject(_arg0
);
1385 wxPyEndAllowThreads(__tstate
);
1386 if (PyErr_Occurred()) return NULL
;
1387 } Py_INCREF(Py_None
);
1388 _resultobj
= Py_None
;
1392 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1393 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1394 PyObject
* _resultobj
;
1396 wxGDIObject
* _arg0
;
1397 PyObject
* _argo0
= 0;
1398 char *_kwnames
[] = { "self", NULL
};
1401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1412 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1414 wxPyEndAllowThreads(__tstate
);
1415 if (PyErr_Occurred()) return NULL
;
1416 } _resultobj
= Py_BuildValue("i",_result
);
1420 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1421 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1422 PyObject
* _resultobj
;
1423 wxGDIObject
* _arg0
;
1425 PyObject
* _argo0
= 0;
1427 char *_kwnames
[] = { "self","visible", NULL
};
1430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1439 _arg1
= (bool ) tempbool1
;
1441 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1442 wxGDIObject_SetVisible(_arg0
,_arg1
);
1444 wxPyEndAllowThreads(__tstate
);
1445 if (PyErr_Occurred()) return NULL
;
1446 } Py_INCREF(Py_None
);
1447 _resultobj
= Py_None
;
1451 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1452 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1453 PyObject
* _resultobj
;
1455 wxGDIObject
* _arg0
;
1456 PyObject
* _argo0
= 0;
1457 char *_kwnames
[] = { "self", NULL
};
1460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1470 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1471 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1473 wxPyEndAllowThreads(__tstate
);
1474 if (PyErr_Occurred()) return NULL
;
1475 } _resultobj
= Py_BuildValue("i",_result
);
1479 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1482 src
= (wxBitmap
*) ptr
;
1483 dest
= (wxGDIObject
*) src
;
1484 return (void *) dest
;
1487 static void *SwigwxBitmapTowxObject(void *ptr
) {
1490 src
= (wxBitmap
*) ptr
;
1491 dest
= (wxObject
*) src
;
1492 return (void *) dest
;
1495 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1496 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1497 PyObject
* _resultobj
;
1500 wxBitmapType _arg1
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
1501 PyObject
* _obj0
= 0;
1502 char *_kwnames
[] = { "name","type", NULL
};
1506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1509 #if PYTHON_API_VERSION >= 1009
1510 char* tmpPtr
; int tmpSize
;
1511 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1512 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1515 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1517 _arg0
= new wxString(tmpPtr
, tmpSize
);
1519 if (!PyString_Check(_obj0
)) {
1520 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1523 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1527 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1528 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1530 wxPyEndAllowThreads(__tstate
);
1531 if (PyErr_Occurred()) return NULL
;
1533 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1534 _resultobj
= Py_BuildValue("s",_ptemp
);
1537 _resultobj
= Py_None
;
1546 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1547 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1548 PyObject
* _resultobj
;
1550 PyObject
* _argo0
= 0;
1551 char *_kwnames
[] = { "self", NULL
};
1554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1557 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1558 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1564 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1565 delete_wxBitmap(_arg0
);
1567 wxPyEndAllowThreads(__tstate
);
1568 if (PyErr_Occurred()) return NULL
;
1569 } Py_INCREF(Py_None
);
1570 _resultobj
= Py_None
;
1574 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1575 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1576 PyObject
* _resultobj
;
1577 wxPalette
* _result
;
1579 PyObject
* _argo0
= 0;
1580 char *_kwnames
[] = { "self", NULL
};
1584 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1587 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1588 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1589 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1594 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1595 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1597 wxPyEndAllowThreads(__tstate
);
1598 if (PyErr_Occurred()) return NULL
;
1600 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1601 _resultobj
= Py_BuildValue("s",_ptemp
);
1604 _resultobj
= Py_None
;
1609 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1610 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1611 PyObject
* _resultobj
;
1614 PyObject
* _argo0
= 0;
1615 char *_kwnames
[] = { "self", NULL
};
1619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1629 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1630 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1632 wxPyEndAllowThreads(__tstate
);
1633 if (PyErr_Occurred()) return NULL
;
1635 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1636 _resultobj
= Py_BuildValue("s",_ptemp
);
1639 _resultobj
= Py_None
;
1644 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1645 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1646 PyObject
* _resultobj
;
1650 wxBitmapType _arg2
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
1651 PyObject
* _argo0
= 0;
1652 PyObject
* _obj1
= 0;
1653 char *_kwnames
[] = { "self","name","type", NULL
};
1656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1666 #if PYTHON_API_VERSION >= 1009
1667 char* tmpPtr
; int tmpSize
;
1668 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1669 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1672 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1674 _arg1
= new wxString(tmpPtr
, tmpSize
);
1676 if (!PyString_Check(_obj1
)) {
1677 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1680 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1684 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1685 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1687 wxPyEndAllowThreads(__tstate
);
1688 if (PyErr_Occurred()) return NULL
;
1689 } _resultobj
= Py_BuildValue("i",_result
);
1697 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1698 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1699 PyObject
* _resultobj
;
1704 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1705 PyObject
* _argo0
= 0;
1706 PyObject
* _obj1
= 0;
1707 PyObject
* _argo3
= 0;
1708 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1714 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1715 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1721 #if PYTHON_API_VERSION >= 1009
1722 char* tmpPtr
; int tmpSize
;
1723 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1724 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1727 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1729 _arg1
= new wxString(tmpPtr
, tmpSize
);
1731 if (!PyString_Check(_obj1
)) {
1732 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1735 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1739 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1740 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1747 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1749 wxPyEndAllowThreads(__tstate
);
1750 if (PyErr_Occurred()) return NULL
;
1751 } _resultobj
= Py_BuildValue("i",_result
);
1759 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1760 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1761 PyObject
* _resultobj
;
1764 PyObject
* _argo0
= 0;
1765 PyObject
* _argo1
= 0;
1766 char *_kwnames
[] = { "self","mask", NULL
};
1769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1772 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1773 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1779 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1780 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1786 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1787 wxBitmap_SetMask(_arg0
,_arg1
);
1789 wxPyEndAllowThreads(__tstate
);
1790 if (PyErr_Occurred()) return NULL
;
1791 } Py_INCREF(Py_None
);
1792 _resultobj
= Py_None
;
1796 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1797 static PyObject
*_wrap_wxBitmap_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1798 PyObject
* _resultobj
;
1801 PyObject
* _argo0
= 0;
1802 PyObject
* _argo1
= 0;
1803 char *_kwnames
[] = { "self","palette", NULL
};
1806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetPalette",_kwnames
,&_argo0
,&_argo1
))
1809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1816 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1817 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
1818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1823 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1824 wxBitmap_SetPalette(_arg0
,*_arg1
);
1826 wxPyEndAllowThreads(__tstate
);
1827 if (PyErr_Occurred()) return NULL
;
1828 } Py_INCREF(Py_None
);
1829 _resultobj
= Py_None
;
1833 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1834 static PyObject
*_wrap_wxBitmap_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1835 PyObject
* _resultobj
;
1838 PyObject
* _argo0
= 0;
1839 char *_kwnames
[] = { "self", NULL
};
1842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHandle",_kwnames
,&_argo0
))
1845 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1846 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1852 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1853 _result
= (long )wxBitmap_GetHandle(_arg0
);
1855 wxPyEndAllowThreads(__tstate
);
1856 if (PyErr_Occurred()) return NULL
;
1857 } _resultobj
= Py_BuildValue("l",_result
);
1861 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1862 static PyObject
*_wrap_wxBitmap_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1863 PyObject
* _resultobj
;
1866 PyObject
* _argo0
= 0;
1867 char *_kwnames
[] = { "self","handle", NULL
};
1870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxBitmap_SetHandle",_kwnames
,&_argo0
,&_arg1
))
1873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1880 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1881 wxBitmap_SetHandle(_arg0
,_arg1
);
1883 wxPyEndAllowThreads(__tstate
);
1884 if (PyErr_Occurred()) return NULL
;
1885 } Py_INCREF(Py_None
);
1886 _resultobj
= Py_None
;
1890 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1891 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1892 PyObject
* _resultobj
;
1895 PyObject
* _argo0
= 0;
1896 char *_kwnames
[] = { "self", NULL
};
1899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1910 _result
= (bool )wxBitmap_Ok(_arg0
);
1912 wxPyEndAllowThreads(__tstate
);
1913 if (PyErr_Occurred()) return NULL
;
1914 } _resultobj
= Py_BuildValue("i",_result
);
1918 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1919 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1920 PyObject
* _resultobj
;
1923 PyObject
* _argo0
= 0;
1924 char *_kwnames
[] = { "self", NULL
};
1927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1930 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1931 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1937 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1938 _result
= (int )wxBitmap_GetWidth(_arg0
);
1940 wxPyEndAllowThreads(__tstate
);
1941 if (PyErr_Occurred()) return NULL
;
1942 } _resultobj
= Py_BuildValue("i",_result
);
1946 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1947 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1948 PyObject
* _resultobj
;
1951 PyObject
* _argo0
= 0;
1952 char *_kwnames
[] = { "self", NULL
};
1955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1958 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1959 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1960 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1965 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1966 _result
= (int )wxBitmap_GetHeight(_arg0
);
1968 wxPyEndAllowThreads(__tstate
);
1969 if (PyErr_Occurred()) return NULL
;
1970 } _resultobj
= Py_BuildValue("i",_result
);
1974 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1975 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1976 PyObject
* _resultobj
;
1979 PyObject
* _argo0
= 0;
1980 char *_kwnames
[] = { "self", NULL
};
1983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1993 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1994 _result
= (int )wxBitmap_GetDepth(_arg0
);
1996 wxPyEndAllowThreads(__tstate
);
1997 if (PyErr_Occurred()) return NULL
;
1998 } _resultobj
= Py_BuildValue("i",_result
);
2002 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2003 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2004 PyObject
* _resultobj
;
2007 PyObject
* _argo0
= 0;
2008 char *_kwnames
[] = { "self","w", NULL
};
2011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
2021 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2022 wxBitmap_SetWidth(_arg0
,_arg1
);
2024 wxPyEndAllowThreads(__tstate
);
2025 if (PyErr_Occurred()) return NULL
;
2026 } Py_INCREF(Py_None
);
2027 _resultobj
= Py_None
;
2031 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2032 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2033 PyObject
* _resultobj
;
2036 PyObject
* _argo0
= 0;
2037 char *_kwnames
[] = { "self","h", NULL
};
2040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2043 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2044 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2050 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2051 wxBitmap_SetHeight(_arg0
,_arg1
);
2053 wxPyEndAllowThreads(__tstate
);
2054 if (PyErr_Occurred()) return NULL
;
2055 } Py_INCREF(Py_None
);
2056 _resultobj
= Py_None
;
2060 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2061 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2062 PyObject
* _resultobj
;
2065 PyObject
* _argo0
= 0;
2066 char *_kwnames
[] = { "self","d", NULL
};
2069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2072 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2073 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2074 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2080 wxBitmap_SetDepth(_arg0
,_arg1
);
2082 wxPyEndAllowThreads(__tstate
);
2083 if (PyErr_Occurred()) return NULL
;
2084 } Py_INCREF(Py_None
);
2085 _resultobj
= Py_None
;
2089 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2090 static PyObject
*_wrap_wxBitmap_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2091 PyObject
* _resultobj
;
2094 PyObject
* _argo0
= 0;
2096 PyObject
* _obj1
= 0;
2097 char *_kwnames
[] = { "self","size", NULL
};
2100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetSize",_kwnames
,&_argo0
,&_obj1
))
2103 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2104 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2105 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2111 if (! wxSize_helper(_obj1
, &_arg1
))
2115 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2116 wxBitmap_SetSize(_arg0
,*_arg1
);
2118 wxPyEndAllowThreads(__tstate
);
2119 if (PyErr_Occurred()) return NULL
;
2120 } Py_INCREF(Py_None
);
2121 _resultobj
= Py_None
;
2125 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2126 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2127 PyObject
* _resultobj
;
2131 PyObject
* _argo0
= 0;
2133 PyObject
* _obj1
= 0;
2134 char *_kwnames
[] = { "self","rect", NULL
};
2138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
2141 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2142 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2149 if (! wxRect_helper(_obj1
, &_arg1
))
2153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2154 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2156 wxPyEndAllowThreads(__tstate
);
2157 if (PyErr_Occurred()) return NULL
;
2158 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2159 _resultobj
= Py_BuildValue("s",_ptemp
);
2163 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2164 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2165 PyObject
* _resultobj
;
2169 PyObject
* _argo0
= 0;
2170 PyObject
* _argo1
= 0;
2171 char *_kwnames
[] = { "self","icon", NULL
};
2174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2184 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2185 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2192 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2194 wxPyEndAllowThreads(__tstate
);
2195 if (PyErr_Occurred()) return NULL
;
2196 } _resultobj
= Py_BuildValue("i",_result
);
2200 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2201 static PyObject
*_wrap_wxBitmap_CopyFromCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2202 PyObject
* _resultobj
;
2206 PyObject
* _argo0
= 0;
2207 PyObject
* _argo1
= 0;
2208 char *_kwnames
[] = { "self","cursor", NULL
};
2211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromCursor",_kwnames
,&_argo0
,&_argo1
))
2214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2221 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2222 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2228 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2229 _result
= (bool )wxBitmap_CopyFromCursor(_arg0
,*_arg1
);
2231 wxPyEndAllowThreads(__tstate
);
2232 if (PyErr_Occurred()) return NULL
;
2233 } _resultobj
= Py_BuildValue("i",_result
);
2237 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2238 static PyObject
*_wrap_wxBitmap_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2239 PyObject
* _resultobj
;
2242 PyObject
* _argo0
= 0;
2243 char *_kwnames
[] = { "self", NULL
};
2246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetQuality",_kwnames
,&_argo0
))
2249 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2250 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2256 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2257 _result
= (int )wxBitmap_GetQuality(_arg0
);
2259 wxPyEndAllowThreads(__tstate
);
2260 if (PyErr_Occurred()) return NULL
;
2261 } _resultobj
= Py_BuildValue("i",_result
);
2265 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2266 static PyObject
*_wrap_wxBitmap_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2267 PyObject
* _resultobj
;
2270 PyObject
* _argo0
= 0;
2271 char *_kwnames
[] = { "self","q", NULL
};
2274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetQuality",_kwnames
,&_argo0
,&_arg1
))
2277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2284 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2285 wxBitmap_SetQuality(_arg0
,_arg1
);
2287 wxPyEndAllowThreads(__tstate
);
2288 if (PyErr_Occurred()) return NULL
;
2289 } Py_INCREF(Py_None
);
2290 _resultobj
= Py_None
;
2294 static void *SwigwxMaskTowxObject(void *ptr
) {
2297 src
= (wxMask
*) ptr
;
2298 dest
= (wxObject
*) src
;
2299 return (void *) dest
;
2302 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2303 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2304 PyObject
* _resultobj
;
2307 PyObject
* _argo0
= 0;
2308 char *_kwnames
[] = { "bitmap", NULL
};
2312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2315 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2316 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2322 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2323 _result
= (wxMask
*)new_wxMask(*_arg0
);
2325 wxPyEndAllowThreads(__tstate
);
2326 if (PyErr_Occurred()) return NULL
;
2328 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2329 _resultobj
= Py_BuildValue("s",_ptemp
);
2332 _resultobj
= Py_None
;
2337 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2338 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2339 PyObject
* _resultobj
;
2341 PyObject
* _argo0
= 0;
2342 char *_kwnames
[] = { "self", NULL
};
2345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2348 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2349 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2350 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2355 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2356 wxMask_Destroy(_arg0
);
2358 wxPyEndAllowThreads(__tstate
);
2359 if (PyErr_Occurred()) return NULL
;
2360 } Py_INCREF(Py_None
);
2361 _resultobj
= Py_None
;
2365 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2368 src
= (wxIcon
*) ptr
;
2369 dest
= (wxGDIObject
*) src
;
2370 return (void *) dest
;
2373 static void *SwigwxIconTowxObject(void *ptr
) {
2376 src
= (wxIcon
*) ptr
;
2377 dest
= (wxObject
*) src
;
2378 return (void *) dest
;
2381 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2382 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2383 PyObject
* _resultobj
;
2387 int _arg2
= (int ) -1;
2388 int _arg3
= (int ) -1;
2389 PyObject
* _obj0
= 0;
2390 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2397 #if PYTHON_API_VERSION >= 1009
2398 char* tmpPtr
; int tmpSize
;
2399 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2400 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2403 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2405 _arg0
= new wxString(tmpPtr
, tmpSize
);
2407 if (!PyString_Check(_obj0
)) {
2408 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2411 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2415 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2416 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2418 wxPyEndAllowThreads(__tstate
);
2419 if (PyErr_Occurred()) return NULL
;
2421 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2422 _resultobj
= Py_BuildValue("s",_ptemp
);
2425 _resultobj
= Py_None
;
2434 #define delete_wxIcon(_swigobj) (delete _swigobj)
2435 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2436 PyObject
* _resultobj
;
2438 PyObject
* _argo0
= 0;
2439 char *_kwnames
[] = { "self", NULL
};
2442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2445 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2446 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2447 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2453 delete_wxIcon(_arg0
);
2455 wxPyEndAllowThreads(__tstate
);
2456 if (PyErr_Occurred()) return NULL
;
2457 } Py_INCREF(Py_None
);
2458 _resultobj
= Py_None
;
2462 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2463 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2464 PyObject
* _resultobj
;
2469 PyObject
* _argo0
= 0;
2470 PyObject
* _obj1
= 0;
2471 char *_kwnames
[] = { "self","name","flags", NULL
};
2474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2484 #if PYTHON_API_VERSION >= 1009
2485 char* tmpPtr
; int tmpSize
;
2486 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2487 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2490 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2492 _arg1
= new wxString(tmpPtr
, tmpSize
);
2494 if (!PyString_Check(_obj1
)) {
2495 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2498 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2502 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2503 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2505 wxPyEndAllowThreads(__tstate
);
2506 if (PyErr_Occurred()) return NULL
;
2507 } _resultobj
= Py_BuildValue("i",_result
);
2515 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2516 static PyObject
*_wrap_wxIcon_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2517 PyObject
* _resultobj
;
2520 PyObject
* _argo0
= 0;
2521 char *_kwnames
[] = { "self", NULL
};
2524 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHandle",_kwnames
,&_argo0
))
2527 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2528 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2529 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2534 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2535 _result
= (long )wxIcon_GetHandle(_arg0
);
2537 wxPyEndAllowThreads(__tstate
);
2538 if (PyErr_Occurred()) return NULL
;
2539 } _resultobj
= Py_BuildValue("l",_result
);
2543 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2544 static PyObject
*_wrap_wxIcon_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2545 PyObject
* _resultobj
;
2548 PyObject
* _argo0
= 0;
2549 char *_kwnames
[] = { "self","handle", NULL
};
2552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxIcon_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2563 wxIcon_SetHandle(_arg0
,_arg1
);
2565 wxPyEndAllowThreads(__tstate
);
2566 if (PyErr_Occurred()) return NULL
;
2567 } Py_INCREF(Py_None
);
2568 _resultobj
= Py_None
;
2572 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2573 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2574 PyObject
* _resultobj
;
2577 PyObject
* _argo0
= 0;
2578 char *_kwnames
[] = { "self", NULL
};
2581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2592 _result
= (bool )wxIcon_Ok(_arg0
);
2594 wxPyEndAllowThreads(__tstate
);
2595 if (PyErr_Occurred()) return NULL
;
2596 } _resultobj
= Py_BuildValue("i",_result
);
2600 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2601 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2602 PyObject
* _resultobj
;
2605 PyObject
* _argo0
= 0;
2606 char *_kwnames
[] = { "self", NULL
};
2609 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2612 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2613 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2614 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2619 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2620 _result
= (int )wxIcon_GetWidth(_arg0
);
2622 wxPyEndAllowThreads(__tstate
);
2623 if (PyErr_Occurred()) return NULL
;
2624 } _resultobj
= Py_BuildValue("i",_result
);
2628 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2629 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2630 PyObject
* _resultobj
;
2633 PyObject
* _argo0
= 0;
2634 char *_kwnames
[] = { "self", NULL
};
2637 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2640 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2641 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2647 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2648 _result
= (int )wxIcon_GetHeight(_arg0
);
2650 wxPyEndAllowThreads(__tstate
);
2651 if (PyErr_Occurred()) return NULL
;
2652 } _resultobj
= Py_BuildValue("i",_result
);
2656 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2657 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2658 PyObject
* _resultobj
;
2661 PyObject
* _argo0
= 0;
2662 char *_kwnames
[] = { "self", NULL
};
2665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2668 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2669 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2670 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2675 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2676 _result
= (int )wxIcon_GetDepth(_arg0
);
2678 wxPyEndAllowThreads(__tstate
);
2679 if (PyErr_Occurred()) return NULL
;
2680 } _resultobj
= Py_BuildValue("i",_result
);
2684 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2685 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2686 PyObject
* _resultobj
;
2689 PyObject
* _argo0
= 0;
2690 char *_kwnames
[] = { "self","w", NULL
};
2693 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2696 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2697 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2698 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2703 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2704 wxIcon_SetWidth(_arg0
,_arg1
);
2706 wxPyEndAllowThreads(__tstate
);
2707 if (PyErr_Occurred()) return NULL
;
2708 } Py_INCREF(Py_None
);
2709 _resultobj
= Py_None
;
2713 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2714 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2715 PyObject
* _resultobj
;
2718 PyObject
* _argo0
= 0;
2719 char *_kwnames
[] = { "self","h", NULL
};
2722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2732 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2733 wxIcon_SetHeight(_arg0
,_arg1
);
2735 wxPyEndAllowThreads(__tstate
);
2736 if (PyErr_Occurred()) return NULL
;
2737 } Py_INCREF(Py_None
);
2738 _resultobj
= Py_None
;
2742 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2743 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2744 PyObject
* _resultobj
;
2747 PyObject
* _argo0
= 0;
2748 char *_kwnames
[] = { "self","d", NULL
};
2751 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2754 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2755 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2761 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2762 wxIcon_SetDepth(_arg0
,_arg1
);
2764 wxPyEndAllowThreads(__tstate
);
2765 if (PyErr_Occurred()) return NULL
;
2766 } Py_INCREF(Py_None
);
2767 _resultobj
= Py_None
;
2771 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2772 static PyObject
*_wrap_wxIcon_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2773 PyObject
* _resultobj
;
2776 PyObject
* _argo0
= 0;
2778 PyObject
* _obj1
= 0;
2779 char *_kwnames
[] = { "self","size", NULL
};
2782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_SetSize",_kwnames
,&_argo0
,&_obj1
))
2785 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2786 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2793 if (! wxSize_helper(_obj1
, &_arg1
))
2797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2798 wxIcon_SetSize(_arg0
,*_arg1
);
2800 wxPyEndAllowThreads(__tstate
);
2801 if (PyErr_Occurred()) return NULL
;
2802 } Py_INCREF(Py_None
);
2803 _resultobj
= Py_None
;
2807 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2808 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2809 PyObject
* _resultobj
;
2812 PyObject
* _argo0
= 0;
2813 PyObject
* _argo1
= 0;
2814 char *_kwnames
[] = { "self","bmp", NULL
};
2817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2827 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2828 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2834 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2835 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2837 wxPyEndAllowThreads(__tstate
);
2838 if (PyErr_Occurred()) return NULL
;
2839 } Py_INCREF(Py_None
);
2840 _resultobj
= Py_None
;
2844 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2847 src
= (wxCursor
*) ptr
;
2848 dest
= (wxGDIObject
*) src
;
2849 return (void *) dest
;
2852 static void *SwigwxCursorTowxObject(void *ptr
) {
2855 src
= (wxCursor
*) ptr
;
2856 dest
= (wxObject
*) src
;
2857 return (void *) dest
;
2860 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2861 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2862 PyObject
* _resultobj
;
2866 int _arg2
= (int ) 0;
2867 int _arg3
= (int ) 0;
2868 PyObject
* _obj0
= 0;
2869 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
2873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2876 #if PYTHON_API_VERSION >= 1009
2877 char* tmpPtr
; int tmpSize
;
2878 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2879 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2882 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2884 _arg0
= new wxString(tmpPtr
, tmpSize
);
2886 if (!PyString_Check(_obj0
)) {
2887 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2890 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2894 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2895 _result
= (wxCursor
*)new_wxCursor(*_arg0
,_arg1
,_arg2
,_arg3
);
2897 wxPyEndAllowThreads(__tstate
);
2898 if (PyErr_Occurred()) return NULL
;
2900 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
2901 _resultobj
= Py_BuildValue("s",_ptemp
);
2904 _resultobj
= Py_None
;
2913 #define delete_wxCursor(_swigobj) (delete _swigobj)
2914 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2915 PyObject
* _resultobj
;
2917 PyObject
* _argo0
= 0;
2918 char *_kwnames
[] = { "self", NULL
};
2921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2924 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2925 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2931 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2932 delete_wxCursor(_arg0
);
2934 wxPyEndAllowThreads(__tstate
);
2935 if (PyErr_Occurred()) return NULL
;
2936 } Py_INCREF(Py_None
);
2937 _resultobj
= Py_None
;
2941 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2942 static PyObject
*_wrap_wxCursor_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2943 PyObject
* _resultobj
;
2946 PyObject
* _argo0
= 0;
2947 char *_kwnames
[] = { "self", NULL
};
2950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHandle",_kwnames
,&_argo0
))
2953 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2954 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2960 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2961 _result
= (long )wxCursor_GetHandle(_arg0
);
2963 wxPyEndAllowThreads(__tstate
);
2964 if (PyErr_Occurred()) return NULL
;
2965 } _resultobj
= Py_BuildValue("l",_result
);
2969 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2970 static PyObject
*_wrap_wxCursor_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2971 PyObject
* _resultobj
;
2974 PyObject
* _argo0
= 0;
2975 char *_kwnames
[] = { "self","handle", NULL
};
2978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxCursor_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2981 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2982 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2988 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2989 wxCursor_SetHandle(_arg0
,_arg1
);
2991 wxPyEndAllowThreads(__tstate
);
2992 if (PyErr_Occurred()) return NULL
;
2993 } Py_INCREF(Py_None
);
2994 _resultobj
= Py_None
;
2998 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2999 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3000 PyObject
* _resultobj
;
3003 PyObject
* _argo0
= 0;
3004 char *_kwnames
[] = { "self", NULL
};
3007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
3010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
3017 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3018 _result
= (bool )wxCursor_Ok(_arg0
);
3020 wxPyEndAllowThreads(__tstate
);
3021 if (PyErr_Occurred()) return NULL
;
3022 } _resultobj
= Py_BuildValue("i",_result
);
3026 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
3027 static PyObject
*_wrap_wxCursor_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3028 PyObject
* _resultobj
;
3031 PyObject
* _argo0
= 0;
3032 char *_kwnames
[] = { "self", NULL
};
3035 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetWidth",_kwnames
,&_argo0
))
3038 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3039 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3045 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3046 _result
= (int )wxCursor_GetWidth(_arg0
);
3048 wxPyEndAllowThreads(__tstate
);
3049 if (PyErr_Occurred()) return NULL
;
3050 } _resultobj
= Py_BuildValue("i",_result
);
3054 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3055 static PyObject
*_wrap_wxCursor_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3056 PyObject
* _resultobj
;
3059 PyObject
* _argo0
= 0;
3060 char *_kwnames
[] = { "self", NULL
};
3063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHeight",_kwnames
,&_argo0
))
3066 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3067 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3068 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3073 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3074 _result
= (int )wxCursor_GetHeight(_arg0
);
3076 wxPyEndAllowThreads(__tstate
);
3077 if (PyErr_Occurred()) return NULL
;
3078 } _resultobj
= Py_BuildValue("i",_result
);
3082 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3083 static PyObject
*_wrap_wxCursor_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3084 PyObject
* _resultobj
;
3087 PyObject
* _argo0
= 0;
3088 char *_kwnames
[] = { "self", NULL
};
3091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetDepth",_kwnames
,&_argo0
))
3094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3101 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3102 _result
= (int )wxCursor_GetDepth(_arg0
);
3104 wxPyEndAllowThreads(__tstate
);
3105 if (PyErr_Occurred()) return NULL
;
3106 } _resultobj
= Py_BuildValue("i",_result
);
3110 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3111 static PyObject
*_wrap_wxCursor_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3112 PyObject
* _resultobj
;
3115 PyObject
* _argo0
= 0;
3116 char *_kwnames
[] = { "self","w", NULL
};
3119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3129 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3130 wxCursor_SetWidth(_arg0
,_arg1
);
3132 wxPyEndAllowThreads(__tstate
);
3133 if (PyErr_Occurred()) return NULL
;
3134 } Py_INCREF(Py_None
);
3135 _resultobj
= Py_None
;
3139 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3140 static PyObject
*_wrap_wxCursor_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3141 PyObject
* _resultobj
;
3144 PyObject
* _argo0
= 0;
3145 char *_kwnames
[] = { "self","h", NULL
};
3148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetHeight",_kwnames
,&_argo0
,&_arg1
))
3151 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3152 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3153 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3158 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3159 wxCursor_SetHeight(_arg0
,_arg1
);
3161 wxPyEndAllowThreads(__tstate
);
3162 if (PyErr_Occurred()) return NULL
;
3163 } Py_INCREF(Py_None
);
3164 _resultobj
= Py_None
;
3168 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3169 static PyObject
*_wrap_wxCursor_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3170 PyObject
* _resultobj
;
3173 PyObject
* _argo0
= 0;
3174 char *_kwnames
[] = { "self","d", NULL
};
3177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetDepth",_kwnames
,&_argo0
,&_arg1
))
3180 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3181 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3187 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3188 wxCursor_SetDepth(_arg0
,_arg1
);
3190 wxPyEndAllowThreads(__tstate
);
3191 if (PyErr_Occurred()) return NULL
;
3192 } Py_INCREF(Py_None
);
3193 _resultobj
= Py_None
;
3197 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3198 static PyObject
*_wrap_wxCursor_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3199 PyObject
* _resultobj
;
3202 PyObject
* _argo0
= 0;
3204 PyObject
* _obj1
= 0;
3205 char *_kwnames
[] = { "self","size", NULL
};
3208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCursor_SetSize",_kwnames
,&_argo0
,&_obj1
))
3211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3219 if (! wxSize_helper(_obj1
, &_arg1
))
3223 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3224 wxCursor_SetSize(_arg0
,*_arg1
);
3226 wxPyEndAllowThreads(__tstate
);
3227 if (PyErr_Occurred()) return NULL
;
3228 } Py_INCREF(Py_None
);
3229 _resultobj
= Py_None
;
3233 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
3234 static PyObject
*_wrap_new_wxNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3235 PyObject
* _resultobj
;
3236 wxNativeFontInfo
* _result
;
3237 char *_kwnames
[] = { NULL
};
3241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxNativeFontInfo",_kwnames
))
3244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3245 _result
= (wxNativeFontInfo
*)new_wxNativeFontInfo();
3247 wxPyEndAllowThreads(__tstate
);
3248 if (PyErr_Occurred()) return NULL
;
3250 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
3251 _resultobj
= Py_BuildValue("s",_ptemp
);
3254 _resultobj
= Py_None
;
3259 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
3260 static PyObject
*_wrap_wxNativeFontInfo_Init(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3261 PyObject
* _resultobj
;
3262 wxNativeFontInfo
* _arg0
;
3263 PyObject
* _argo0
= 0;
3264 char *_kwnames
[] = { "self", NULL
};
3267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_Init",_kwnames
,&_argo0
))
3270 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3271 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
3277 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3278 wxNativeFontInfo_Init(_arg0
);
3280 wxPyEndAllowThreads(__tstate
);
3281 if (PyErr_Occurred()) return NULL
;
3282 } Py_INCREF(Py_None
);
3283 _resultobj
= Py_None
;
3287 #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3288 static PyObject
*_wrap_wxNativeFontInfo_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3289 PyObject
* _resultobj
;
3291 wxNativeFontInfo
* _arg0
;
3292 PyObject
* _argo0
= 0;
3293 char *_kwnames
[] = { "self", NULL
};
3296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetPointSize",_kwnames
,&_argo0
))
3299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p.");
3306 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3307 _result
= (int )wxNativeFontInfo_GetPointSize(_arg0
);
3309 wxPyEndAllowThreads(__tstate
);
3310 if (PyErr_Occurred()) return NULL
;
3311 } _resultobj
= Py_BuildValue("i",_result
);
3315 #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle())
3316 static PyObject
*_wrap_wxNativeFontInfo_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3317 PyObject
* _resultobj
;
3318 wxFontStyle _result
;
3319 wxNativeFontInfo
* _arg0
;
3320 PyObject
* _argo0
= 0;
3321 char *_kwnames
[] = { "self", NULL
};
3324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetStyle",_kwnames
,&_argo0
))
3327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p.");
3334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3335 _result
= (wxFontStyle
)wxNativeFontInfo_GetStyle(_arg0
);
3337 wxPyEndAllowThreads(__tstate
);
3338 if (PyErr_Occurred()) return NULL
;
3339 } _resultobj
= Py_BuildValue("i",_result
);
3343 #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight())
3344 static PyObject
*_wrap_wxNativeFontInfo_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3345 PyObject
* _resultobj
;
3346 wxFontWeight _result
;
3347 wxNativeFontInfo
* _arg0
;
3348 PyObject
* _argo0
= 0;
3349 char *_kwnames
[] = { "self", NULL
};
3352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetWeight",_kwnames
,&_argo0
))
3355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p.");
3362 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3363 _result
= (wxFontWeight
)wxNativeFontInfo_GetWeight(_arg0
);
3365 wxPyEndAllowThreads(__tstate
);
3366 if (PyErr_Occurred()) return NULL
;
3367 } _resultobj
= Py_BuildValue("i",_result
);
3371 #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3372 static PyObject
*_wrap_wxNativeFontInfo_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3373 PyObject
* _resultobj
;
3375 wxNativeFontInfo
* _arg0
;
3376 PyObject
* _argo0
= 0;
3377 char *_kwnames
[] = { "self", NULL
};
3380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetUnderlined",_kwnames
,&_argo0
))
3383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p.");
3390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3391 _result
= (bool )wxNativeFontInfo_GetUnderlined(_arg0
);
3393 wxPyEndAllowThreads(__tstate
);
3394 if (PyErr_Occurred()) return NULL
;
3395 } _resultobj
= Py_BuildValue("i",_result
);
3399 #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3400 static PyObject
*_wrap_wxNativeFontInfo_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3401 PyObject
* _resultobj
;
3403 wxNativeFontInfo
* _arg0
;
3404 PyObject
* _argo0
= 0;
3405 char *_kwnames
[] = { "self", NULL
};
3408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetFaceName",_kwnames
,&_argo0
))
3411 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3412 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3413 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p.");
3418 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3419 _result
= new wxString (wxNativeFontInfo_GetFaceName(_arg0
));
3421 wxPyEndAllowThreads(__tstate
);
3422 if (PyErr_Occurred()) return NULL
;
3424 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3432 #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily())
3433 static PyObject
*_wrap_wxNativeFontInfo_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3434 PyObject
* _resultobj
;
3435 wxFontFamily _result
;
3436 wxNativeFontInfo
* _arg0
;
3437 PyObject
* _argo0
= 0;
3438 char *_kwnames
[] = { "self", NULL
};
3441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetFamily",_kwnames
,&_argo0
))
3444 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3445 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p.");
3451 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3452 _result
= (wxFontFamily
)wxNativeFontInfo_GetFamily(_arg0
);
3454 wxPyEndAllowThreads(__tstate
);
3455 if (PyErr_Occurred()) return NULL
;
3456 } _resultobj
= Py_BuildValue("i",_result
);
3460 #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3461 static PyObject
*_wrap_wxNativeFontInfo_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3462 PyObject
* _resultobj
;
3463 wxFontEncoding _result
;
3464 wxNativeFontInfo
* _arg0
;
3465 PyObject
* _argo0
= 0;
3466 char *_kwnames
[] = { "self", NULL
};
3469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetEncoding",_kwnames
,&_argo0
))
3472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p.");
3479 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3480 _result
= (wxFontEncoding
)wxNativeFontInfo_GetEncoding(_arg0
);
3482 wxPyEndAllowThreads(__tstate
);
3483 if (PyErr_Occurred()) return NULL
;
3484 } _resultobj
= Py_BuildValue("i",_result
);
3488 #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3489 static PyObject
*_wrap_wxNativeFontInfo_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3490 PyObject
* _resultobj
;
3491 wxNativeFontInfo
* _arg0
;
3493 PyObject
* _argo0
= 0;
3494 char *_kwnames
[] = { "self","pointsize", NULL
};
3497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
3500 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3501 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3502 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p.");
3507 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3508 wxNativeFontInfo_SetPointSize(_arg0
,_arg1
);
3510 wxPyEndAllowThreads(__tstate
);
3511 if (PyErr_Occurred()) return NULL
;
3512 } Py_INCREF(Py_None
);
3513 _resultobj
= Py_None
;
3517 #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3518 static PyObject
*_wrap_wxNativeFontInfo_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3519 PyObject
* _resultobj
;
3520 wxNativeFontInfo
* _arg0
;
3522 PyObject
* _argo0
= 0;
3523 char *_kwnames
[] = { "self","style", NULL
};
3526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p.");
3536 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3537 wxNativeFontInfo_SetStyle(_arg0
,_arg1
);
3539 wxPyEndAllowThreads(__tstate
);
3540 if (PyErr_Occurred()) return NULL
;
3541 } Py_INCREF(Py_None
);
3542 _resultobj
= Py_None
;
3546 #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3547 static PyObject
*_wrap_wxNativeFontInfo_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3548 PyObject
* _resultobj
;
3549 wxNativeFontInfo
* _arg0
;
3551 PyObject
* _argo0
= 0;
3552 char *_kwnames
[] = { "self","weight", NULL
};
3555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetWeight",_kwnames
,&_argo0
,&_arg1
))
3558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p.");
3565 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3566 wxNativeFontInfo_SetWeight(_arg0
,_arg1
);
3568 wxPyEndAllowThreads(__tstate
);
3569 if (PyErr_Occurred()) return NULL
;
3570 } Py_INCREF(Py_None
);
3571 _resultobj
= Py_None
;
3575 #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3576 static PyObject
*_wrap_wxNativeFontInfo_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3577 PyObject
* _resultobj
;
3578 wxNativeFontInfo
* _arg0
;
3580 PyObject
* _argo0
= 0;
3582 char *_kwnames
[] = { "self","underlined", NULL
};
3585 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
3588 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3589 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p.");
3594 _arg1
= (bool ) tempbool1
;
3596 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3597 wxNativeFontInfo_SetUnderlined(_arg0
,_arg1
);
3599 wxPyEndAllowThreads(__tstate
);
3600 if (PyErr_Occurred()) return NULL
;
3601 } Py_INCREF(Py_None
);
3602 _resultobj
= Py_None
;
3606 #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3607 static PyObject
*_wrap_wxNativeFontInfo_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3608 PyObject
* _resultobj
;
3609 wxNativeFontInfo
* _arg0
;
3611 PyObject
* _argo0
= 0;
3612 PyObject
* _obj1
= 0;
3613 char *_kwnames
[] = { "self","facename", NULL
};
3616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
3619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p.");
3626 #if PYTHON_API_VERSION >= 1009
3627 char* tmpPtr
; int tmpSize
;
3628 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3629 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3632 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3634 _arg1
= new wxString(tmpPtr
, tmpSize
);
3636 if (!PyString_Check(_obj1
)) {
3637 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3640 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3645 wxNativeFontInfo_SetFaceName(_arg0
,*_arg1
);
3647 wxPyEndAllowThreads(__tstate
);
3648 if (PyErr_Occurred()) return NULL
;
3649 } Py_INCREF(Py_None
);
3650 _resultobj
= Py_None
;
3658 #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3659 static PyObject
*_wrap_wxNativeFontInfo_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3660 PyObject
* _resultobj
;
3661 wxNativeFontInfo
* _arg0
;
3663 PyObject
* _argo0
= 0;
3664 char *_kwnames
[] = { "self","family", NULL
};
3667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetFamily",_kwnames
,&_argo0
,&_arg1
))
3670 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3671 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p.");
3677 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3678 wxNativeFontInfo_SetFamily(_arg0
,_arg1
);
3680 wxPyEndAllowThreads(__tstate
);
3681 if (PyErr_Occurred()) return NULL
;
3682 } Py_INCREF(Py_None
);
3683 _resultobj
= Py_None
;
3687 #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3688 static PyObject
*_wrap_wxNativeFontInfo_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3689 PyObject
* _resultobj
;
3690 wxNativeFontInfo
* _arg0
;
3691 wxFontEncoding _arg1
;
3692 PyObject
* _argo0
= 0;
3693 char *_kwnames
[] = { "self","encoding", NULL
};
3696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
3699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p.");
3706 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3707 wxNativeFontInfo_SetEncoding(_arg0
,_arg1
);
3709 wxPyEndAllowThreads(__tstate
);
3710 if (PyErr_Occurred()) return NULL
;
3711 } Py_INCREF(Py_None
);
3712 _resultobj
= Py_None
;
3716 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
3717 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3718 PyObject
* _resultobj
;
3720 wxNativeFontInfo
* _arg0
;
3722 PyObject
* _argo0
= 0;
3723 PyObject
* _obj1
= 0;
3724 char *_kwnames
[] = { "self","s", NULL
};
3727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
3730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3737 #if PYTHON_API_VERSION >= 1009
3738 char* tmpPtr
; int tmpSize
;
3739 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3740 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3743 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3745 _arg1
= new wxString(tmpPtr
, tmpSize
);
3747 if (!PyString_Check(_obj1
)) {
3748 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3751 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3756 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
3758 wxPyEndAllowThreads(__tstate
);
3759 if (PyErr_Occurred()) return NULL
;
3760 } _resultobj
= Py_BuildValue("i",_result
);
3768 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3769 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3770 PyObject
* _resultobj
;
3772 wxNativeFontInfo
* _arg0
;
3773 PyObject
* _argo0
= 0;
3774 char *_kwnames
[] = { "self", NULL
};
3777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
3780 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3781 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3787 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3788 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
3790 wxPyEndAllowThreads(__tstate
);
3791 if (PyErr_Occurred()) return NULL
;
3793 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3801 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
3802 return self
->ToString();
3804 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3805 PyObject
* _resultobj
;
3807 wxNativeFontInfo
* _arg0
;
3808 PyObject
* _argo0
= 0;
3809 char *_kwnames
[] = { "self", NULL
};
3812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
3815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3822 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3823 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
3825 wxPyEndAllowThreads(__tstate
);
3826 if (PyErr_Occurred()) return NULL
;
3828 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3836 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
3837 static PyObject
*_wrap_wxNativeFontInfo_FromUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3838 PyObject
* _resultobj
;
3840 wxNativeFontInfo
* _arg0
;
3842 PyObject
* _argo0
= 0;
3843 PyObject
* _obj1
= 0;
3844 char *_kwnames
[] = { "self","s", NULL
};
3847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromUserString",_kwnames
,&_argo0
,&_obj1
))
3850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
3857 #if PYTHON_API_VERSION >= 1009
3858 char* tmpPtr
; int tmpSize
;
3859 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3860 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3863 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3865 _arg1
= new wxString(tmpPtr
, tmpSize
);
3867 if (!PyString_Check(_obj1
)) {
3868 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3871 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3876 _result
= (bool )wxNativeFontInfo_FromUserString(_arg0
,*_arg1
);
3878 wxPyEndAllowThreads(__tstate
);
3879 if (PyErr_Occurred()) return NULL
;
3880 } _resultobj
= Py_BuildValue("i",_result
);
3888 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
3889 static PyObject
*_wrap_wxNativeFontInfo_ToUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3890 PyObject
* _resultobj
;
3892 wxNativeFontInfo
* _arg0
;
3893 PyObject
* _argo0
= 0;
3894 char *_kwnames
[] = { "self", NULL
};
3897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToUserString",_kwnames
,&_argo0
))
3900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
3907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3908 _result
= new wxString (wxNativeFontInfo_ToUserString(_arg0
));
3910 wxPyEndAllowThreads(__tstate
);
3911 if (PyErr_Occurred()) return NULL
;
3913 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3921 #define new_wxFontMapper() (new wxFontMapper())
3922 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3923 PyObject
* _resultobj
;
3924 wxFontMapper
* _result
;
3925 char *_kwnames
[] = { NULL
};
3929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
3932 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3933 _result
= (wxFontMapper
*)new_wxFontMapper();
3935 wxPyEndAllowThreads(__tstate
);
3936 if (PyErr_Occurred()) return NULL
;
3938 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
3939 _resultobj
= Py_BuildValue("s",_ptemp
);
3942 _resultobj
= Py_None
;
3947 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3948 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3949 PyObject
* _resultobj
;
3950 wxFontMapper
* _arg0
;
3951 PyObject
* _argo0
= 0;
3952 char *_kwnames
[] = { "self", NULL
};
3955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
3958 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3959 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3960 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3965 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3966 delete_wxFontMapper(_arg0
);
3968 wxPyEndAllowThreads(__tstate
);
3969 if (PyErr_Occurred()) return NULL
;
3970 } Py_INCREF(Py_None
);
3971 _resultobj
= Py_None
;
3975 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
3976 wxFontEncoding alt_enc
;
3977 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
3978 return PyInt_FromLong(alt_enc
);
3984 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3985 PyObject
* _resultobj
;
3987 wxFontMapper
* _arg0
;
3988 wxFontEncoding _arg1
;
3989 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3990 bool _arg3
= (bool ) TRUE
;
3991 PyObject
* _argo0
= 0;
3992 PyObject
* _obj2
= 0;
3993 int tempbool3
= (int) TRUE
;
3994 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
3997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
4000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
4008 #if PYTHON_API_VERSION >= 1009
4009 char* tmpPtr
; int tmpSize
;
4010 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
4011 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4014 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
4016 _arg2
= new wxString(tmpPtr
, tmpSize
);
4018 if (!PyString_Check(_obj2
)) {
4019 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4022 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
4025 _arg3
= (bool ) tempbool3
;
4027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4028 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
4030 wxPyEndAllowThreads(__tstate
);
4031 if (PyErr_Occurred()) return NULL
;
4033 _resultobj
= _result
;
4042 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
4043 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4044 PyObject
* _resultobj
;
4046 wxFontMapper
* _arg0
;
4047 wxFontEncoding _arg1
;
4048 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
4049 PyObject
* _argo0
= 0;
4050 PyObject
* _obj2
= 0;
4051 char *_kwnames
[] = { "self","encoding","facename", NULL
};
4054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
4057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
4065 #if PYTHON_API_VERSION >= 1009
4066 char* tmpPtr
; int tmpSize
;
4067 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
4068 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4071 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
4073 _arg2
= new wxString(tmpPtr
, tmpSize
);
4075 if (!PyString_Check(_obj2
)) {
4076 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4079 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
4083 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4084 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
4086 wxPyEndAllowThreads(__tstate
);
4087 if (PyErr_Occurred()) return NULL
;
4088 } _resultobj
= Py_BuildValue("i",_result
);
4096 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
4097 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4098 PyObject
* _resultobj
;
4099 wxFontEncoding _result
;
4100 wxFontMapper
* _arg0
;
4102 bool _arg2
= (bool ) TRUE
;
4103 PyObject
* _argo0
= 0;
4104 PyObject
* _obj1
= 0;
4105 int tempbool2
= (int) TRUE
;
4106 char *_kwnames
[] = { "self","charset","interactive", NULL
};
4109 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
4112 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4113 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
4119 #if PYTHON_API_VERSION >= 1009
4120 char* tmpPtr
; int tmpSize
;
4121 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4122 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4125 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4127 _arg1
= new wxString(tmpPtr
, tmpSize
);
4129 if (!PyString_Check(_obj1
)) {
4130 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4133 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4136 _arg2
= (bool ) tempbool2
;
4138 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4139 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
4141 wxPyEndAllowThreads(__tstate
);
4142 if (PyErr_Occurred()) return NULL
;
4143 } _resultobj
= Py_BuildValue("i",_result
);
4151 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4152 PyObject
* _resultobj
;
4154 wxFontEncoding _arg0
;
4155 char *_kwnames
[] = { "encoding", NULL
};
4158 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
4161 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4162 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
4164 wxPyEndAllowThreads(__tstate
);
4165 if (PyErr_Occurred()) return NULL
;
4167 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4175 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4176 PyObject
* _resultobj
;
4178 wxFontEncoding _arg0
;
4179 char *_kwnames
[] = { "encoding", NULL
};
4182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
4185 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4186 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
4188 wxPyEndAllowThreads(__tstate
);
4189 if (PyErr_Occurred()) return NULL
;
4191 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4199 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
4200 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4201 PyObject
* _resultobj
;
4202 wxFontMapper
* _arg0
;
4204 PyObject
* _argo0
= 0;
4205 PyObject
* _argo1
= 0;
4206 char *_kwnames
[] = { "self","parent", NULL
};
4209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
4212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
4219 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4220 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
4221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
4226 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4227 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
4229 wxPyEndAllowThreads(__tstate
);
4230 if (PyErr_Occurred()) return NULL
;
4231 } Py_INCREF(Py_None
);
4232 _resultobj
= Py_None
;
4236 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
4237 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4238 PyObject
* _resultobj
;
4239 wxFontMapper
* _arg0
;
4241 PyObject
* _argo0
= 0;
4242 PyObject
* _obj1
= 0;
4243 char *_kwnames
[] = { "self","title", NULL
};
4246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
4249 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4250 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
4256 #if PYTHON_API_VERSION >= 1009
4257 char* tmpPtr
; int tmpSize
;
4258 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4259 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4262 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4264 _arg1
= new wxString(tmpPtr
, tmpSize
);
4266 if (!PyString_Check(_obj1
)) {
4267 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4270 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4274 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4275 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
4277 wxPyEndAllowThreads(__tstate
);
4278 if (PyErr_Occurred()) return NULL
;
4279 } Py_INCREF(Py_None
);
4280 _resultobj
= Py_None
;
4288 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
4289 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4290 PyObject
* _resultobj
;
4291 wxFontMapper
* _arg0
;
4292 wxConfigBase
* _arg1
;
4293 PyObject
* _argo0
= 0;
4294 PyObject
* _argo1
= 0;
4295 char *_kwnames
[] = { "self","config", NULL
};
4298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
4301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
4308 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4309 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
4310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
4315 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4316 wxFontMapper_SetConfig(_arg0
,_arg1
);
4318 wxPyEndAllowThreads(__tstate
);
4319 if (PyErr_Occurred()) return NULL
;
4320 } Py_INCREF(Py_None
);
4321 _resultobj
= Py_None
;
4325 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
4326 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4327 PyObject
* _resultobj
;
4328 wxFontMapper
* _arg0
;
4330 PyObject
* _argo0
= 0;
4331 PyObject
* _obj1
= 0;
4332 char *_kwnames
[] = { "self","prefix", NULL
};
4335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
4338 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4339 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
4340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
4345 #if PYTHON_API_VERSION >= 1009
4346 char* tmpPtr
; int tmpSize
;
4347 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4348 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4351 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4353 _arg1
= new wxString(tmpPtr
, tmpSize
);
4355 if (!PyString_Check(_obj1
)) {
4356 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4359 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4363 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4364 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
4366 wxPyEndAllowThreads(__tstate
);
4367 if (PyErr_Occurred()) return NULL
;
4368 } Py_INCREF(Py_None
);
4369 _resultobj
= Py_None
;
4377 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4378 PyObject
* _resultobj
;
4380 char *_kwnames
[] = { NULL
};
4383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
4386 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4387 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
4389 wxPyEndAllowThreads(__tstate
);
4390 if (PyErr_Occurred()) return NULL
;
4391 } _resultobj
= Py_BuildValue("s", _result
);
4395 static void *SwigwxFontTowxGDIObject(void *ptr
) {
4398 src
= (wxFont
*) ptr
;
4399 dest
= (wxGDIObject
*) src
;
4400 return (void *) dest
;
4403 static void *SwigwxFontTowxObject(void *ptr
) {
4406 src
= (wxFont
*) ptr
;
4407 dest
= (wxObject
*) src
;
4408 return (void *) dest
;
4411 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4412 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4413 PyObject
* _resultobj
;
4419 int _arg4
= (int ) FALSE
;
4420 char * _arg5
= (char *) "";
4421 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
4422 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
4426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4429 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4430 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4432 wxPyEndAllowThreads(__tstate
);
4433 if (PyErr_Occurred()) return NULL
;
4435 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4436 _resultobj
= Py_BuildValue("s",_ptemp
);
4439 _resultobj
= Py_None
;
4444 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
4445 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4446 PyObject
* _resultobj
;
4448 wxNativeFontInfo
* _arg0
;
4449 PyObject
* _argo0
= 0;
4450 char *_kwnames
[] = { "info", NULL
};
4454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
4457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
4459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
4464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4465 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
4467 wxPyEndAllowThreads(__tstate
);
4468 if (PyErr_Occurred()) return NULL
;
4470 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4471 _resultobj
= Py_BuildValue("s",_ptemp
);
4474 _resultobj
= Py_None
;
4479 #define delete_wxFont(_swigobj) (delete _swigobj)
4480 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4481 PyObject
* _resultobj
;
4483 PyObject
* _argo0
= 0;
4484 char *_kwnames
[] = { "self", NULL
};
4487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
4490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
4497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4498 delete_wxFont(_arg0
);
4500 wxPyEndAllowThreads(__tstate
);
4501 if (PyErr_Occurred()) return NULL
;
4502 } Py_INCREF(Py_None
);
4503 _resultobj
= Py_None
;
4507 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
4508 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4509 PyObject
* _resultobj
;
4512 PyObject
* _argo0
= 0;
4513 char *_kwnames
[] = { "self", NULL
};
4516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
4519 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4520 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
4526 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4527 _result
= (bool )wxFont_Ok(_arg0
);
4529 wxPyEndAllowThreads(__tstate
);
4530 if (PyErr_Occurred()) return NULL
;
4531 } _resultobj
= Py_BuildValue("i",_result
);
4535 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
4536 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4537 PyObject
* _resultobj
;
4540 PyObject
* _argo0
= 0;
4541 char *_kwnames
[] = { "self", NULL
};
4544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
4547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
4554 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4555 _result
= (int )wxFont_GetPointSize(_arg0
);
4557 wxPyEndAllowThreads(__tstate
);
4558 if (PyErr_Occurred()) return NULL
;
4559 } _resultobj
= Py_BuildValue("i",_result
);
4563 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
4564 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4565 PyObject
* _resultobj
;
4568 PyObject
* _argo0
= 0;
4569 char *_kwnames
[] = { "self", NULL
};
4572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
4575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
4582 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4583 _result
= (int )wxFont_GetFamily(_arg0
);
4585 wxPyEndAllowThreads(__tstate
);
4586 if (PyErr_Occurred()) return NULL
;
4587 } _resultobj
= Py_BuildValue("i",_result
);
4591 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
4592 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4593 PyObject
* _resultobj
;
4596 PyObject
* _argo0
= 0;
4597 char *_kwnames
[] = { "self", NULL
};
4600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
4603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
4610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4611 _result
= (int )wxFont_GetStyle(_arg0
);
4613 wxPyEndAllowThreads(__tstate
);
4614 if (PyErr_Occurred()) return NULL
;
4615 } _resultobj
= Py_BuildValue("i",_result
);
4619 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
4620 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4621 PyObject
* _resultobj
;
4624 PyObject
* _argo0
= 0;
4625 char *_kwnames
[] = { "self", NULL
};
4628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
4631 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4632 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
4638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4639 _result
= (int )wxFont_GetWeight(_arg0
);
4641 wxPyEndAllowThreads(__tstate
);
4642 if (PyErr_Occurred()) return NULL
;
4643 } _resultobj
= Py_BuildValue("i",_result
);
4647 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
4648 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4649 PyObject
* _resultobj
;
4652 PyObject
* _argo0
= 0;
4653 char *_kwnames
[] = { "self", NULL
};
4656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
4659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
4666 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4667 _result
= (bool )wxFont_GetUnderlined(_arg0
);
4669 wxPyEndAllowThreads(__tstate
);
4670 if (PyErr_Occurred()) return NULL
;
4671 } _resultobj
= Py_BuildValue("i",_result
);
4675 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
4676 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4677 PyObject
* _resultobj
;
4680 PyObject
* _argo0
= 0;
4681 char *_kwnames
[] = { "self", NULL
};
4684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
4687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
4694 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4695 _result
= new wxString (wxFont_GetFaceName(_arg0
));
4697 wxPyEndAllowThreads(__tstate
);
4698 if (PyErr_Occurred()) return NULL
;
4700 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4708 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
4709 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4710 PyObject
* _resultobj
;
4711 wxFontEncoding _result
;
4713 PyObject
* _argo0
= 0;
4714 char *_kwnames
[] = { "self", NULL
};
4717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
4720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4727 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4728 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
4730 wxPyEndAllowThreads(__tstate
);
4731 if (PyErr_Occurred()) return NULL
;
4732 } _resultobj
= Py_BuildValue("i",_result
);
4736 #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
4737 static PyObject
*_wrap_wxFont_IsFixedWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4738 PyObject
* _resultobj
;
4741 PyObject
* _argo0
= 0;
4742 char *_kwnames
[] = { "self", NULL
};
4745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_IsFixedWidth",_kwnames
,&_argo0
))
4748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
4755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4756 _result
= (bool )wxFont_IsFixedWidth(_arg0
);
4758 wxPyEndAllowThreads(__tstate
);
4759 if (PyErr_Occurred()) return NULL
;
4760 } _resultobj
= Py_BuildValue("i",_result
);
4764 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4765 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4766 PyObject
* _resultobj
;
4767 wxNativeFontInfo
* _result
;
4769 PyObject
* _argo0
= 0;
4770 char *_kwnames
[] = { "self", NULL
};
4774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
4777 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4778 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4784 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4785 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
4787 wxPyEndAllowThreads(__tstate
);
4788 if (PyErr_Occurred()) return NULL
;
4790 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
4791 _resultobj
= Py_BuildValue("s",_ptemp
);
4794 _resultobj
= Py_None
;
4799 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
4800 static PyObject
*_wrap_wxFont_GetNativeFontInfoDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4801 PyObject
* _resultobj
;
4804 PyObject
* _argo0
= 0;
4805 char *_kwnames
[] = { "self", NULL
};
4808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoDesc",_kwnames
,&_argo0
))
4811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
4818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4819 _result
= new wxString (wxFont_GetNativeFontInfoDesc(_arg0
));
4821 wxPyEndAllowThreads(__tstate
);
4822 if (PyErr_Occurred()) return NULL
;
4824 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4832 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
4833 static PyObject
*_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4834 PyObject
* _resultobj
;
4837 PyObject
* _argo0
= 0;
4838 char *_kwnames
[] = { "self", NULL
};
4841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames
,&_argo0
))
4844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
4851 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4852 _result
= new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0
));
4854 wxPyEndAllowThreads(__tstate
);
4855 if (PyErr_Occurred()) return NULL
;
4857 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4865 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4866 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4867 PyObject
* _resultobj
;
4870 PyObject
* _argo0
= 0;
4871 char *_kwnames
[] = { "self","pointSize", NULL
};
4874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
4877 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4878 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4884 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4885 wxFont_SetPointSize(_arg0
,_arg1
);
4887 wxPyEndAllowThreads(__tstate
);
4888 if (PyErr_Occurred()) return NULL
;
4889 } Py_INCREF(Py_None
);
4890 _resultobj
= Py_None
;
4894 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4895 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4896 PyObject
* _resultobj
;
4899 PyObject
* _argo0
= 0;
4900 char *_kwnames
[] = { "self","family", NULL
};
4903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
4906 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4907 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4913 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4914 wxFont_SetFamily(_arg0
,_arg1
);
4916 wxPyEndAllowThreads(__tstate
);
4917 if (PyErr_Occurred()) return NULL
;
4918 } Py_INCREF(Py_None
);
4919 _resultobj
= Py_None
;
4923 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4924 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4925 PyObject
* _resultobj
;
4928 PyObject
* _argo0
= 0;
4929 char *_kwnames
[] = { "self","style", NULL
};
4932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4942 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4943 wxFont_SetStyle(_arg0
,_arg1
);
4945 wxPyEndAllowThreads(__tstate
);
4946 if (PyErr_Occurred()) return NULL
;
4947 } Py_INCREF(Py_None
);
4948 _resultobj
= Py_None
;
4952 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4953 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4954 PyObject
* _resultobj
;
4957 PyObject
* _argo0
= 0;
4958 char *_kwnames
[] = { "self","weight", NULL
};
4961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
4964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4971 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4972 wxFont_SetWeight(_arg0
,_arg1
);
4974 wxPyEndAllowThreads(__tstate
);
4975 if (PyErr_Occurred()) return NULL
;
4976 } Py_INCREF(Py_None
);
4977 _resultobj
= Py_None
;
4981 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4982 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4983 PyObject
* _resultobj
;
4986 PyObject
* _argo0
= 0;
4987 PyObject
* _obj1
= 0;
4988 char *_kwnames
[] = { "self","faceName", NULL
};
4991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
4994 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4995 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
5001 #if PYTHON_API_VERSION >= 1009
5002 char* tmpPtr
; int tmpSize
;
5003 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5004 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5007 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5009 _arg1
= new wxString(tmpPtr
, tmpSize
);
5011 if (!PyString_Check(_obj1
)) {
5012 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5015 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5019 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5020 wxFont_SetFaceName(_arg0
,*_arg1
);
5022 wxPyEndAllowThreads(__tstate
);
5023 if (PyErr_Occurred()) return NULL
;
5024 } Py_INCREF(Py_None
);
5025 _resultobj
= Py_None
;
5033 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
5034 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5035 PyObject
* _resultobj
;
5038 PyObject
* _argo0
= 0;
5040 char *_kwnames
[] = { "self","underlined", NULL
};
5043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
5046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
5052 _arg1
= (bool ) tempbool1
;
5054 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5055 wxFont_SetUnderlined(_arg0
,_arg1
);
5057 wxPyEndAllowThreads(__tstate
);
5058 if (PyErr_Occurred()) return NULL
;
5059 } Py_INCREF(Py_None
);
5060 _resultobj
= Py_None
;
5064 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
5065 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5066 PyObject
* _resultobj
;
5068 wxFontEncoding _arg1
;
5069 PyObject
* _argo0
= 0;
5070 char *_kwnames
[] = { "self","encoding", NULL
};
5073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
5076 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5077 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
5083 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5084 wxFont_SetEncoding(_arg0
,_arg1
);
5086 wxPyEndAllowThreads(__tstate
);
5087 if (PyErr_Occurred()) return NULL
;
5088 } Py_INCREF(Py_None
);
5089 _resultobj
= Py_None
;
5093 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
5094 static PyObject
*_wrap_wxFont_SetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5095 PyObject
* _resultobj
;
5097 wxNativeFontInfo
* _arg1
;
5098 PyObject
* _argo0
= 0;
5099 PyObject
* _argo1
= 0;
5100 char *_kwnames
[] = { "self","info", NULL
};
5103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfo",_kwnames
,&_argo0
,&_argo1
))
5106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
5113 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5114 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxNativeFontInfo_p")) {
5115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
5120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5121 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
5123 wxPyEndAllowThreads(__tstate
);
5124 if (PyErr_Occurred()) return NULL
;
5125 } Py_INCREF(Py_None
);
5126 _resultobj
= Py_None
;
5130 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
5131 static PyObject
*_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5132 PyObject
* _resultobj
;
5135 PyObject
* _argo0
= 0;
5136 PyObject
* _obj1
= 0;
5137 char *_kwnames
[] = { "self","info", NULL
};
5140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames
,&_argo0
,&_obj1
))
5143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
5150 #if PYTHON_API_VERSION >= 1009
5151 char* tmpPtr
; int tmpSize
;
5152 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5153 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5156 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5158 _arg1
= new wxString(tmpPtr
, tmpSize
);
5160 if (!PyString_Check(_obj1
)) {
5161 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5164 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5168 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5169 wxFont_SetNativeFontInfoUserDesc(_arg0
,*_arg1
);
5171 wxPyEndAllowThreads(__tstate
);
5172 if (PyErr_Occurred()) return NULL
;
5173 } Py_INCREF(Py_None
);
5174 _resultobj
= Py_None
;
5182 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
5183 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5184 PyObject
* _resultobj
;
5187 PyObject
* _argo0
= 0;
5188 char *_kwnames
[] = { "self", NULL
};
5191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
5194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
5201 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5202 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
5204 wxPyEndAllowThreads(__tstate
);
5205 if (PyErr_Occurred()) return NULL
;
5207 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5215 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
5216 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5217 PyObject
* _resultobj
;
5220 PyObject
* _argo0
= 0;
5221 char *_kwnames
[] = { "self", NULL
};
5224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
5227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
5234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5235 _result
= new wxString (wxFont_GetStyleString(_arg0
));
5237 wxPyEndAllowThreads(__tstate
);
5238 if (PyErr_Occurred()) return NULL
;
5240 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5248 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
5249 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5250 PyObject
* _resultobj
;
5253 PyObject
* _argo0
= 0;
5254 char *_kwnames
[] = { "self", NULL
};
5257 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
5260 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5261 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
5262 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
5267 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5268 _result
= new wxString (wxFont_GetWeightString(_arg0
));
5270 wxPyEndAllowThreads(__tstate
);
5271 if (PyErr_Occurred()) return NULL
;
5273 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5281 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5282 PyObject
* _resultobj
;
5283 wxFontEncoding _result
;
5284 char *_kwnames
[] = { NULL
};
5287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
5290 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5291 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
5293 wxPyEndAllowThreads(__tstate
);
5294 if (PyErr_Occurred()) return NULL
;
5295 } _resultobj
= Py_BuildValue("i",_result
);
5299 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5300 PyObject
* _resultobj
;
5301 wxFontEncoding _arg0
;
5302 char *_kwnames
[] = { "encoding", NULL
};
5305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
5308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5309 wxFont::SetDefaultEncoding(_arg0
);
5311 wxPyEndAllowThreads(__tstate
);
5312 if (PyErr_Occurred()) return NULL
;
5313 } Py_INCREF(Py_None
);
5314 _resultobj
= Py_None
;
5318 static void *SwigwxFontListTowxObject(void *ptr
) {
5321 src
= (wxFontList
*) ptr
;
5322 dest
= (wxObject
*) src
;
5323 return (void *) dest
;
5326 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
5327 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5328 PyObject
* _resultobj
;
5331 PyObject
* _argo0
= 0;
5332 PyObject
* _argo1
= 0;
5333 char *_kwnames
[] = { "self","font", NULL
};
5336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
5339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
5341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
5346 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5347 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
5348 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
5353 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5354 wxFontList_AddFont(_arg0
,_arg1
);
5356 wxPyEndAllowThreads(__tstate
);
5357 if (PyErr_Occurred()) return NULL
;
5358 } Py_INCREF(Py_None
);
5359 _resultobj
= Py_None
;
5363 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5364 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5365 PyObject
* _resultobj
;
5372 bool _arg5
= (bool ) FALSE
;
5373 char * _arg6
= (char *) NULL
;
5374 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
5375 PyObject
* _argo0
= 0;
5376 int tempbool5
= (int) FALSE
;
5377 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
5381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
5384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
5386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
5390 _arg5
= (bool ) tempbool5
;
5392 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5393 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
5395 wxPyEndAllowThreads(__tstate
);
5396 if (PyErr_Occurred()) return NULL
;
5398 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
5399 _resultobj
= Py_BuildValue("s",_ptemp
);
5402 _resultobj
= Py_None
;
5407 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
5408 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5409 PyObject
* _resultobj
;
5412 PyObject
* _argo0
= 0;
5413 PyObject
* _argo1
= 0;
5414 char *_kwnames
[] = { "self","font", NULL
};
5417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
5420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
5422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
5427 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5428 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
5429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
5434 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5435 wxFontList_RemoveFont(_arg0
,_arg1
);
5437 wxPyEndAllowThreads(__tstate
);
5438 if (PyErr_Occurred()) return NULL
;
5439 } Py_INCREF(Py_None
);
5440 _resultobj
= Py_None
;
5444 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
5445 static PyObject
*_wrap_wxFontList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5446 PyObject
* _resultobj
;
5449 PyObject
* _argo0
= 0;
5450 char *_kwnames
[] = { "self", NULL
};
5453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFontList_GetCount",_kwnames
,&_argo0
))
5456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
5458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
5463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5464 _result
= (int )wxFontList_GetCount(_arg0
);
5466 wxPyEndAllowThreads(__tstate
);
5467 if (PyErr_Occurred()) return NULL
;
5468 } _resultobj
= Py_BuildValue("i",_result
);
5472 static void *SwigwxColourTowxObject(void *ptr
) {
5475 src
= (wxColour
*) ptr
;
5476 dest
= (wxObject
*) src
;
5477 return (void *) dest
;
5480 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
5481 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5482 PyObject
* _resultobj
;
5484 unsigned char _arg0
= (unsigned char ) 0;
5485 unsigned char _arg1
= (unsigned char ) 0;
5486 unsigned char _arg2
= (unsigned char ) 0;
5487 char *_kwnames
[] = { "red","green","blue", NULL
};
5491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
5494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5495 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
5497 wxPyEndAllowThreads(__tstate
);
5498 if (PyErr_Occurred()) return NULL
;
5500 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5501 _resultobj
= Py_BuildValue("s",_ptemp
);
5504 _resultobj
= Py_None
;
5509 #define delete_wxColour(_swigobj) (delete _swigobj)
5510 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5511 PyObject
* _resultobj
;
5514 PyObject
* _obj0
= 0;
5515 char *_kwnames
[] = { "self", NULL
};
5518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
5522 if (! wxColour_helper(_obj0
, &_arg0
))
5526 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5527 delete_wxColour(_arg0
);
5529 wxPyEndAllowThreads(__tstate
);
5530 if (PyErr_Occurred()) return NULL
;
5531 } Py_INCREF(Py_None
);
5532 _resultobj
= Py_None
;
5536 #define wxColour_Red(_swigobj) (_swigobj->Red())
5537 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5538 PyObject
* _resultobj
;
5539 unsigned char _result
;
5542 PyObject
* _obj0
= 0;
5543 char *_kwnames
[] = { "self", NULL
};
5546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
5550 if (! wxColour_helper(_obj0
, &_arg0
))
5554 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5555 _result
= (unsigned char )wxColour_Red(_arg0
);
5557 wxPyEndAllowThreads(__tstate
);
5558 if (PyErr_Occurred()) return NULL
;
5559 } _resultobj
= Py_BuildValue("b",_result
);
5563 #define wxColour_Green(_swigobj) (_swigobj->Green())
5564 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5565 PyObject
* _resultobj
;
5566 unsigned char _result
;
5569 PyObject
* _obj0
= 0;
5570 char *_kwnames
[] = { "self", NULL
};
5573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
5577 if (! wxColour_helper(_obj0
, &_arg0
))
5581 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5582 _result
= (unsigned char )wxColour_Green(_arg0
);
5584 wxPyEndAllowThreads(__tstate
);
5585 if (PyErr_Occurred()) return NULL
;
5586 } _resultobj
= Py_BuildValue("b",_result
);
5590 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
5591 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5592 PyObject
* _resultobj
;
5593 unsigned char _result
;
5596 PyObject
* _obj0
= 0;
5597 char *_kwnames
[] = { "self", NULL
};
5600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
5604 if (! wxColour_helper(_obj0
, &_arg0
))
5608 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5609 _result
= (unsigned char )wxColour_Blue(_arg0
);
5611 wxPyEndAllowThreads(__tstate
);
5612 if (PyErr_Occurred()) return NULL
;
5613 } _resultobj
= Py_BuildValue("b",_result
);
5617 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
5618 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5619 PyObject
* _resultobj
;
5623 PyObject
* _obj0
= 0;
5624 char *_kwnames
[] = { "self", NULL
};
5627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
5631 if (! wxColour_helper(_obj0
, &_arg0
))
5635 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5636 _result
= (bool )wxColour_Ok(_arg0
);
5638 wxPyEndAllowThreads(__tstate
);
5639 if (PyErr_Occurred()) return NULL
;
5640 } _resultobj
= Py_BuildValue("i",_result
);
5644 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
5645 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5646 PyObject
* _resultobj
;
5648 unsigned char _arg1
;
5649 unsigned char _arg2
;
5650 unsigned char _arg3
;
5652 PyObject
* _obj0
= 0;
5653 char *_kwnames
[] = { "self","red","green","blue", NULL
};
5656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
5660 if (! wxColour_helper(_obj0
, &_arg0
))
5664 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5665 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
5667 wxPyEndAllowThreads(__tstate
);
5668 if (PyErr_Occurred()) return NULL
;
5669 } Py_INCREF(Py_None
);
5670 _resultobj
= Py_None
;
5674 static PyObject
* wxColour_Get(wxColour
*self
) {
5675 PyObject
* rv
= PyTuple_New(3);
5676 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
5677 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
5678 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
5681 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5682 PyObject
* _resultobj
;
5686 PyObject
* _obj0
= 0;
5687 char *_kwnames
[] = { "self", NULL
};
5690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
5694 if (! wxColour_helper(_obj0
, &_arg0
))
5698 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5699 _result
= (PyObject
*)wxColour_Get(_arg0
);
5701 wxPyEndAllowThreads(__tstate
);
5702 if (PyErr_Occurred()) return NULL
;
5704 _resultobj
= _result
;
5709 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
5710 wxColourDatabase
*src
;
5712 src
= (wxColourDatabase
*) ptr
;
5713 dest
= (wxObject
*) src
;
5714 return (void *) dest
;
5717 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
5718 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5719 PyObject
* _resultobj
;
5721 wxColourDatabase
* _arg0
;
5723 PyObject
* _argo0
= 0;
5724 PyObject
* _obj1
= 0;
5725 char *_kwnames
[] = { "self","colour", NULL
};
5729 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
5732 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5733 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5734 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
5739 #if PYTHON_API_VERSION >= 1009
5740 char* tmpPtr
; int tmpSize
;
5741 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5742 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5745 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5747 _arg1
= new wxString(tmpPtr
, tmpSize
);
5749 if (!PyString_Check(_obj1
)) {
5750 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5753 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5757 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5758 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
5760 wxPyEndAllowThreads(__tstate
);
5761 if (PyErr_Occurred()) return NULL
;
5763 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5764 _resultobj
= Py_BuildValue("s",_ptemp
);
5767 _resultobj
= Py_None
;
5776 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
5777 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5778 PyObject
* _resultobj
;
5780 wxColourDatabase
* _arg0
;
5782 PyObject
* _argo0
= 0;
5784 PyObject
* _obj1
= 0;
5785 char *_kwnames
[] = { "self","colour", NULL
};
5788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
5791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5799 if (! wxColour_helper(_obj1
, &_arg1
))
5803 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5804 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
5806 wxPyEndAllowThreads(__tstate
);
5807 if (PyErr_Occurred()) return NULL
;
5809 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5817 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
5818 // first see if the name is already there
5819 wxString cName
= name
;
5821 wxString cName2
= cName
;
5822 if ( !cName2
.Replace("GRAY", "GREY") )
5825 wxNode
*node
= self
->First();
5827 const wxChar
*key
= node
->GetKeyString();
5828 if ( cName
== key
|| cName2
== key
) {
5829 wxColour
* c
= (wxColour
*)node
->Data();
5830 c
->Set(red
, green
, blue
);
5833 node
= node
->Next();
5836 // otherwise append the new colour
5837 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
5839 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5840 PyObject
* _resultobj
;
5841 wxColourDatabase
* _arg0
;
5846 PyObject
* _argo0
= 0;
5847 PyObject
* _obj1
= 0;
5848 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
5851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5861 #if PYTHON_API_VERSION >= 1009
5862 char* tmpPtr
; int tmpSize
;
5863 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5864 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5867 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5869 _arg1
= new wxString(tmpPtr
, tmpSize
);
5871 if (!PyString_Check(_obj1
)) {
5872 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5875 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5880 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5882 wxPyEndAllowThreads(__tstate
);
5883 if (PyErr_Occurred()) return NULL
;
5884 } Py_INCREF(Py_None
);
5885 _resultobj
= Py_None
;
5893 static void *SwigwxPenTowxGDIObject(void *ptr
) {
5896 src
= (wxPen
*) ptr
;
5897 dest
= (wxGDIObject
*) src
;
5898 return (void *) dest
;
5901 static void *SwigwxPenTowxObject(void *ptr
) {
5904 src
= (wxPen
*) ptr
;
5905 dest
= (wxObject
*) src
;
5906 return (void *) dest
;
5909 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5910 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5911 PyObject
* _resultobj
;
5914 int _arg1
= (int ) 1;
5915 int _arg2
= (int ) wxSOLID
;
5917 PyObject
* _obj0
= 0;
5918 char *_kwnames
[] = { "colour","width","style", NULL
};
5922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5926 if (! wxColour_helper(_obj0
, &_arg0
))
5930 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5931 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
5933 wxPyEndAllowThreads(__tstate
);
5934 if (PyErr_Occurred()) return NULL
;
5936 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5937 _resultobj
= Py_BuildValue("s",_ptemp
);
5940 _resultobj
= Py_None
;
5945 #define delete_wxPen(_swigobj) (delete _swigobj)
5946 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5947 PyObject
* _resultobj
;
5949 PyObject
* _argo0
= 0;
5950 char *_kwnames
[] = { "self", NULL
};
5953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
5956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5964 delete_wxPen(_arg0
);
5966 wxPyEndAllowThreads(__tstate
);
5967 if (PyErr_Occurred()) return NULL
;
5968 } Py_INCREF(Py_None
);
5969 _resultobj
= Py_None
;
5973 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5974 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5975 PyObject
* _resultobj
;
5978 PyObject
* _argo0
= 0;
5979 char *_kwnames
[] = { "self", NULL
};
5982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
5985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5993 _result
= (int )wxPen_GetCap(_arg0
);
5995 wxPyEndAllowThreads(__tstate
);
5996 if (PyErr_Occurred()) return NULL
;
5997 } _resultobj
= Py_BuildValue("i",_result
);
6001 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
6002 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6003 PyObject
* _resultobj
;
6006 PyObject
* _argo0
= 0;
6007 char *_kwnames
[] = { "self", NULL
};
6011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
6014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
6021 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6022 _result
= new wxColour (wxPen_GetColour(_arg0
));
6024 wxPyEndAllowThreads(__tstate
);
6025 if (PyErr_Occurred()) return NULL
;
6026 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6027 _resultobj
= Py_BuildValue("s",_ptemp
);
6031 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
6032 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6033 PyObject
* _resultobj
;
6036 PyObject
* _argo0
= 0;
6037 char *_kwnames
[] = { "self", NULL
};
6040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
6043 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6044 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
6050 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6051 _result
= (int )wxPen_GetJoin(_arg0
);
6053 wxPyEndAllowThreads(__tstate
);
6054 if (PyErr_Occurred()) return NULL
;
6055 } _resultobj
= Py_BuildValue("i",_result
);
6059 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
6060 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6061 PyObject
* _resultobj
;
6064 PyObject
* _argo0
= 0;
6065 char *_kwnames
[] = { "self", NULL
};
6068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
6071 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6072 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6073 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
6078 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6079 _result
= (int )wxPen_GetStyle(_arg0
);
6081 wxPyEndAllowThreads(__tstate
);
6082 if (PyErr_Occurred()) return NULL
;
6083 } _resultobj
= Py_BuildValue("i",_result
);
6087 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
6088 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6089 PyObject
* _resultobj
;
6092 PyObject
* _argo0
= 0;
6093 char *_kwnames
[] = { "self", NULL
};
6096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
6099 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6100 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6101 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
6106 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6107 _result
= (int )wxPen_GetWidth(_arg0
);
6109 wxPyEndAllowThreads(__tstate
);
6110 if (PyErr_Occurred()) return NULL
;
6111 } _resultobj
= Py_BuildValue("i",_result
);
6115 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
6116 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6117 PyObject
* _resultobj
;
6120 PyObject
* _argo0
= 0;
6121 char *_kwnames
[] = { "self", NULL
};
6124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
6127 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6128 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
6134 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6135 _result
= (bool )wxPen_Ok(_arg0
);
6137 wxPyEndAllowThreads(__tstate
);
6138 if (PyErr_Occurred()) return NULL
;
6139 } _resultobj
= Py_BuildValue("i",_result
);
6143 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
6144 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6145 PyObject
* _resultobj
;
6148 PyObject
* _argo0
= 0;
6149 char *_kwnames
[] = { "self","cap_style", NULL
};
6152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
6155 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6156 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6157 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
6162 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6163 wxPen_SetCap(_arg0
,_arg1
);
6165 wxPyEndAllowThreads(__tstate
);
6166 if (PyErr_Occurred()) return NULL
;
6167 } Py_INCREF(Py_None
);
6168 _resultobj
= Py_None
;
6172 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6173 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6174 PyObject
* _resultobj
;
6177 PyObject
* _argo0
= 0;
6179 PyObject
* _obj1
= 0;
6180 char *_kwnames
[] = { "self","colour", NULL
};
6183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
6186 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6187 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
6194 if (! wxColour_helper(_obj1
, &_arg1
))
6198 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6199 wxPen_SetColour(_arg0
,*_arg1
);
6201 wxPyEndAllowThreads(__tstate
);
6202 if (PyErr_Occurred()) return NULL
;
6203 } Py_INCREF(Py_None
);
6204 _resultobj
= Py_None
;
6208 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
6209 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6210 PyObject
* _resultobj
;
6213 PyObject
* _argo0
= 0;
6214 char *_kwnames
[] = { "self","join_style", NULL
};
6217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
6220 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6221 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
6227 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6228 wxPen_SetJoin(_arg0
,_arg1
);
6230 wxPyEndAllowThreads(__tstate
);
6231 if (PyErr_Occurred()) return NULL
;
6232 } Py_INCREF(Py_None
);
6233 _resultobj
= Py_None
;
6237 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6238 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6239 PyObject
* _resultobj
;
6242 PyObject
* _argo0
= 0;
6243 char *_kwnames
[] = { "self","style", NULL
};
6246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
6249 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6250 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
6256 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6257 wxPen_SetStyle(_arg0
,_arg1
);
6259 wxPyEndAllowThreads(__tstate
);
6260 if (PyErr_Occurred()) return NULL
;
6261 } Py_INCREF(Py_None
);
6262 _resultobj
= Py_None
;
6266 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
6267 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6268 PyObject
* _resultobj
;
6271 PyObject
* _argo0
= 0;
6272 char *_kwnames
[] = { "self","width", NULL
};
6275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
6278 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6279 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
6285 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6286 wxPen_SetWidth(_arg0
,_arg1
);
6288 wxPyEndAllowThreads(__tstate
);
6289 if (PyErr_Occurred()) return NULL
;
6290 } Py_INCREF(Py_None
);
6291 _resultobj
= Py_None
;
6295 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6296 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6297 PyObject
* _resultobj
;
6301 PyObject
* _argo0
= 0;
6302 PyObject
* _obj2
= 0;
6303 char *_kwnames
[] = { "self","choices", NULL
};
6306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
6309 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6310 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
6317 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
6318 if (_arg2
== NULL
) {
6324 _arg1
= PyList_Size(_obj2
);
6331 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6332 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
6334 wxPyEndAllowThreads(__tstate
);
6335 if (PyErr_Occurred()) return NULL
;
6336 } Py_INCREF(Py_None
);
6337 _resultobj
= Py_None
;
6344 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
6345 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6346 PyObject
* _resultobj
;
6349 PyObject
* _argo0
= 0;
6350 char *_kwnames
[] = { "self", NULL
};
6354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
6357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
6364 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6365 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
6367 wxPyEndAllowThreads(__tstate
);
6368 if (PyErr_Occurred()) return NULL
;
6370 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
6371 _resultobj
= Py_BuildValue("s",_ptemp
);
6374 _resultobj
= Py_None
;
6379 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6380 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6381 PyObject
* _resultobj
;
6384 PyObject
* _argo0
= 0;
6385 PyObject
* _argo1
= 0;
6386 char *_kwnames
[] = { "self","stipple", NULL
};
6389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
6392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
6394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
6399 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6400 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
6406 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6407 wxPen_SetStipple(_arg0
,*_arg1
);
6409 wxPyEndAllowThreads(__tstate
);
6410 if (PyErr_Occurred()) return NULL
;
6411 } Py_INCREF(Py_None
);
6412 _resultobj
= Py_None
;
6416 static void *SwigwxPyPenTowxPen(void *ptr
) {
6419 src
= (wxPyPen
*) ptr
;
6420 dest
= (wxPen
*) src
;
6421 return (void *) dest
;
6424 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
6427 src
= (wxPyPen
*) ptr
;
6428 dest
= (wxGDIObject
*) src
;
6429 return (void *) dest
;
6432 static void *SwigwxPyPenTowxObject(void *ptr
) {
6435 src
= (wxPyPen
*) ptr
;
6436 dest
= (wxObject
*) src
;
6437 return (void *) dest
;
6440 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
6441 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6442 PyObject
* _resultobj
;
6445 int _arg1
= (int ) 1;
6446 int _arg2
= (int ) wxSOLID
;
6448 PyObject
* _obj0
= 0;
6449 char *_kwnames
[] = { "colour","width","style", NULL
};
6453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
6457 if (! wxColour_helper(_obj0
, &_arg0
))
6461 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6462 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
6464 wxPyEndAllowThreads(__tstate
);
6465 if (PyErr_Occurred()) return NULL
;
6467 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
6468 _resultobj
= Py_BuildValue("s",_ptemp
);
6471 _resultobj
= Py_None
;
6476 #define delete_wxPyPen(_swigobj) (delete _swigobj)
6477 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6478 PyObject
* _resultobj
;
6480 PyObject
* _argo0
= 0;
6481 char *_kwnames
[] = { "self", NULL
};
6484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
6487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
6489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
6494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6495 delete_wxPyPen(_arg0
);
6497 wxPyEndAllowThreads(__tstate
);
6498 if (PyErr_Occurred()) return NULL
;
6499 } Py_INCREF(Py_None
);
6500 _resultobj
= Py_None
;
6504 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6505 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6506 PyObject
* _resultobj
;
6510 PyObject
* _argo0
= 0;
6511 PyObject
* _obj2
= 0;
6512 char *_kwnames
[] = { "self","choices", NULL
};
6515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
6518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
6520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
6526 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
6527 if (_arg2
== NULL
) {
6533 _arg1
= PyList_Size(_obj2
);
6540 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6541 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
6543 wxPyEndAllowThreads(__tstate
);
6544 if (PyErr_Occurred()) return NULL
;
6545 } Py_INCREF(Py_None
);
6546 _resultobj
= Py_None
;
6553 static void *SwigwxPenListTowxObject(void *ptr
) {
6556 src
= (wxPenList
*) ptr
;
6557 dest
= (wxObject
*) src
;
6558 return (void *) dest
;
6561 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
6562 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6563 PyObject
* _resultobj
;
6566 PyObject
* _argo0
= 0;
6567 PyObject
* _argo1
= 0;
6568 char *_kwnames
[] = { "self","pen", NULL
};
6571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
6574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
6576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
6581 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6582 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
6583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
6588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6589 wxPenList_AddPen(_arg0
,_arg1
);
6591 wxPyEndAllowThreads(__tstate
);
6592 if (PyErr_Occurred()) return NULL
;
6593 } Py_INCREF(Py_None
);
6594 _resultobj
= Py_None
;
6598 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
6599 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6600 PyObject
* _resultobj
;
6606 PyObject
* _argo0
= 0;
6608 PyObject
* _obj1
= 0;
6609 char *_kwnames
[] = { "self","colour","width","style", NULL
};
6613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
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_FindOrCreatePen. Expected _wxPenList_p.");
6624 if (! wxColour_helper(_obj1
, &_arg1
))
6628 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6629 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
6631 wxPyEndAllowThreads(__tstate
);
6632 if (PyErr_Occurred()) return NULL
;
6634 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6635 _resultobj
= Py_BuildValue("s",_ptemp
);
6638 _resultobj
= Py_None
;
6643 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
6644 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6645 PyObject
* _resultobj
;
6648 PyObject
* _argo0
= 0;
6649 PyObject
* _argo1
= 0;
6650 char *_kwnames
[] = { "self","pen", NULL
};
6653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
6656 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6657 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
6658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
6663 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6664 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
6665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
6670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6671 wxPenList_RemovePen(_arg0
,_arg1
);
6673 wxPyEndAllowThreads(__tstate
);
6674 if (PyErr_Occurred()) return NULL
;
6675 } Py_INCREF(Py_None
);
6676 _resultobj
= Py_None
;
6680 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
6681 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6682 PyObject
* _resultobj
;
6685 PyObject
* _argo0
= 0;
6686 char *_kwnames
[] = { "self", NULL
};
6689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
6692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
6694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
6699 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6700 _result
= (int )wxPenList_GetCount(_arg0
);
6702 wxPyEndAllowThreads(__tstate
);
6703 if (PyErr_Occurred()) return NULL
;
6704 } _resultobj
= Py_BuildValue("i",_result
);
6708 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
6711 src
= (wxBrush
*) ptr
;
6712 dest
= (wxGDIObject
*) src
;
6713 return (void *) dest
;
6716 static void *SwigwxBrushTowxObject(void *ptr
) {
6719 src
= (wxBrush
*) ptr
;
6720 dest
= (wxObject
*) src
;
6721 return (void *) dest
;
6724 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
6725 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6726 PyObject
* _resultobj
;
6729 int _arg1
= (int ) wxSOLID
;
6731 PyObject
* _obj0
= 0;
6732 char *_kwnames
[] = { "colour","style", NULL
};
6736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
6740 if (! wxColour_helper(_obj0
, &_arg0
))
6744 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6745 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
6747 wxPyEndAllowThreads(__tstate
);
6748 if (PyErr_Occurred()) return NULL
;
6750 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6751 _resultobj
= Py_BuildValue("s",_ptemp
);
6754 _resultobj
= Py_None
;
6759 #define delete_wxBrush(_swigobj) (delete _swigobj)
6760 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6761 PyObject
* _resultobj
;
6763 PyObject
* _argo0
= 0;
6764 char *_kwnames
[] = { "self", NULL
};
6767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
6770 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6771 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
6777 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6778 delete_wxBrush(_arg0
);
6780 wxPyEndAllowThreads(__tstate
);
6781 if (PyErr_Occurred()) return NULL
;
6782 } Py_INCREF(Py_None
);
6783 _resultobj
= Py_None
;
6787 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
6788 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6789 PyObject
* _resultobj
;
6792 PyObject
* _argo0
= 0;
6793 char *_kwnames
[] = { "self", NULL
};
6797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
6800 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6801 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
6807 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6808 _result
= new wxColour (wxBrush_GetColour(_arg0
));
6810 wxPyEndAllowThreads(__tstate
);
6811 if (PyErr_Occurred()) return NULL
;
6812 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6813 _resultobj
= Py_BuildValue("s",_ptemp
);
6817 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
6818 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6819 PyObject
* _resultobj
;
6822 PyObject
* _argo0
= 0;
6823 char *_kwnames
[] = { "self", NULL
};
6827 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
6830 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6831 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6832 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6837 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6838 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
6840 wxPyEndAllowThreads(__tstate
);
6841 if (PyErr_Occurred()) return NULL
;
6843 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
6844 _resultobj
= Py_BuildValue("s",_ptemp
);
6847 _resultobj
= Py_None
;
6852 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6853 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6854 PyObject
* _resultobj
;
6857 PyObject
* _argo0
= 0;
6858 char *_kwnames
[] = { "self", NULL
};
6861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
6864 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6865 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6871 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6872 _result
= (int )wxBrush_GetStyle(_arg0
);
6874 wxPyEndAllowThreads(__tstate
);
6875 if (PyErr_Occurred()) return NULL
;
6876 } _resultobj
= Py_BuildValue("i",_result
);
6880 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6881 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6882 PyObject
* _resultobj
;
6885 PyObject
* _argo0
= 0;
6886 char *_kwnames
[] = { "self", NULL
};
6889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
6892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6899 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6900 _result
= (bool )wxBrush_Ok(_arg0
);
6902 wxPyEndAllowThreads(__tstate
);
6903 if (PyErr_Occurred()) return NULL
;
6904 } _resultobj
= Py_BuildValue("i",_result
);
6908 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6909 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6910 PyObject
* _resultobj
;
6913 PyObject
* _argo0
= 0;
6915 PyObject
* _obj1
= 0;
6916 char *_kwnames
[] = { "self","colour", NULL
};
6919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
6922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6930 if (! wxColour_helper(_obj1
, &_arg1
))
6934 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6935 wxBrush_SetColour(_arg0
,*_arg1
);
6937 wxPyEndAllowThreads(__tstate
);
6938 if (PyErr_Occurred()) return NULL
;
6939 } Py_INCREF(Py_None
);
6940 _resultobj
= Py_None
;
6944 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6945 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6946 PyObject
* _resultobj
;
6949 PyObject
* _argo0
= 0;
6950 PyObject
* _argo1
= 0;
6951 char *_kwnames
[] = { "self","bitmap", NULL
};
6954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
6957 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6958 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6964 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6965 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6971 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6972 wxBrush_SetStipple(_arg0
,*_arg1
);
6974 wxPyEndAllowThreads(__tstate
);
6975 if (PyErr_Occurred()) return NULL
;
6976 } Py_INCREF(Py_None
);
6977 _resultobj
= Py_None
;
6981 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6982 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6983 PyObject
* _resultobj
;
6986 PyObject
* _argo0
= 0;
6987 char *_kwnames
[] = { "self","style", NULL
};
6990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
6993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
7000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7001 wxBrush_SetStyle(_arg0
,_arg1
);
7003 wxPyEndAllowThreads(__tstate
);
7004 if (PyErr_Occurred()) return NULL
;
7005 } Py_INCREF(Py_None
);
7006 _resultobj
= Py_None
;
7010 static void *SwigwxBrushListTowxObject(void *ptr
) {
7013 src
= (wxBrushList
*) ptr
;
7014 dest
= (wxObject
*) src
;
7015 return (void *) dest
;
7018 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
7019 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7020 PyObject
* _resultobj
;
7021 wxBrushList
* _arg0
;
7023 PyObject
* _argo0
= 0;
7024 PyObject
* _argo1
= 0;
7025 char *_kwnames
[] = { "self","brush", NULL
};
7028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
7031 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7032 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
7033 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
7038 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7039 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
7045 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7046 wxBrushList_AddBrush(_arg0
,_arg1
);
7048 wxPyEndAllowThreads(__tstate
);
7049 if (PyErr_Occurred()) return NULL
;
7050 } Py_INCREF(Py_None
);
7051 _resultobj
= Py_None
;
7055 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
7056 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7057 PyObject
* _resultobj
;
7059 wxBrushList
* _arg0
;
7062 PyObject
* _argo0
= 0;
7064 PyObject
* _obj1
= 0;
7065 char *_kwnames
[] = { "self","colour","style", NULL
};
7069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
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_FindOrCreateBrush. Expected _wxBrushList_p.");
7080 if (! wxColour_helper(_obj1
, &_arg1
))
7084 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7085 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
7087 wxPyEndAllowThreads(__tstate
);
7088 if (PyErr_Occurred()) return NULL
;
7090 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
7091 _resultobj
= Py_BuildValue("s",_ptemp
);
7094 _resultobj
= Py_None
;
7099 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
7100 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7101 PyObject
* _resultobj
;
7102 wxBrushList
* _arg0
;
7104 PyObject
* _argo0
= 0;
7105 PyObject
* _argo1
= 0;
7106 char *_kwnames
[] = { "self","brush", NULL
};
7109 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
7112 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7113 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
7114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
7119 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7120 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
7126 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7127 wxBrushList_RemoveBrush(_arg0
,_arg1
);
7129 wxPyEndAllowThreads(__tstate
);
7130 if (PyErr_Occurred()) return NULL
;
7131 } Py_INCREF(Py_None
);
7132 _resultobj
= Py_None
;
7136 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
7137 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7138 PyObject
* _resultobj
;
7140 wxBrushList
* _arg0
;
7141 PyObject
* _argo0
= 0;
7142 char *_kwnames
[] = { "self", NULL
};
7145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
7148 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7149 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
7150 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
7155 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7156 _result
= (int )wxBrushList_GetCount(_arg0
);
7158 wxPyEndAllowThreads(__tstate
);
7159 if (PyErr_Occurred()) return NULL
;
7160 } _resultobj
= Py_BuildValue("i",_result
);
7164 static void *SwigwxDCTowxObject(void *ptr
) {
7168 dest
= (wxObject
*) src
;
7169 return (void *) dest
;
7172 #define delete_wxDC(_swigobj) (delete _swigobj)
7173 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7174 PyObject
* _resultobj
;
7176 PyObject
* _argo0
= 0;
7177 char *_kwnames
[] = { "self", NULL
};
7180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
7183 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7184 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
7190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7193 wxPyEndAllowThreads(__tstate
);
7194 if (PyErr_Occurred()) return NULL
;
7195 } Py_INCREF(Py_None
);
7196 _resultobj
= Py_None
;
7200 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
7201 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7202 PyObject
* _resultobj
;
7204 PyObject
* _argo0
= 0;
7205 char *_kwnames
[] = { "self", NULL
};
7208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
7211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
7218 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7219 wxDC_BeginDrawing(_arg0
);
7221 wxPyEndAllowThreads(__tstate
);
7222 if (PyErr_Occurred()) return NULL
;
7223 } Py_INCREF(Py_None
);
7224 _resultobj
= Py_None
;
7228 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
7229 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7230 PyObject
* _resultobj
;
7240 int _arg8
= (int ) wxCOPY
;
7241 int _arg9
= (int ) FALSE
;
7242 PyObject
* _argo0
= 0;
7243 PyObject
* _argo5
= 0;
7244 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
7247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
7250 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7251 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7252 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
7257 if (_argo5
== Py_None
) { _arg5
= NULL
; }
7258 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
7259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
7264 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7265 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
7267 wxPyEndAllowThreads(__tstate
);
7268 if (PyErr_Occurred()) return NULL
;
7269 } _resultobj
= Py_BuildValue("i",_result
);
7273 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
7274 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7275 PyObject
* _resultobj
;
7277 PyObject
* _argo0
= 0;
7278 char *_kwnames
[] = { "self", NULL
};
7281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
7284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
7291 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7294 wxPyEndAllowThreads(__tstate
);
7295 if (PyErr_Occurred()) return NULL
;
7296 } Py_INCREF(Py_None
);
7297 _resultobj
= Py_None
;
7301 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
7302 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7303 PyObject
* _resultobj
;
7307 PyObject
* _argo0
= 0;
7308 char *_kwnames
[] = { "self","x","y", NULL
};
7311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
7321 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7322 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
7324 wxPyEndAllowThreads(__tstate
);
7325 if (PyErr_Occurred()) return NULL
;
7326 } Py_INCREF(Py_None
);
7327 _resultobj
= Py_None
;
7331 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
7332 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7333 PyObject
* _resultobj
;
7335 PyObject
* _argo0
= 0;
7336 char *_kwnames
[] = { "self", NULL
};
7339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
7342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
7349 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7350 wxDC_DestroyClippingRegion(_arg0
);
7352 wxPyEndAllowThreads(__tstate
);
7353 if (PyErr_Occurred()) return NULL
;
7354 } Py_INCREF(Py_None
);
7355 _resultobj
= Py_None
;
7359 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
7360 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7361 PyObject
* _resultobj
;
7365 PyObject
* _argo0
= 0;
7366 char *_kwnames
[] = { "self","x", NULL
};
7369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
7372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
7379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7380 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
7382 wxPyEndAllowThreads(__tstate
);
7383 if (PyErr_Occurred()) return NULL
;
7384 } _resultobj
= Py_BuildValue("l",_result
);
7388 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
7389 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7390 PyObject
* _resultobj
;
7394 PyObject
* _argo0
= 0;
7395 char *_kwnames
[] = { "self","x", NULL
};
7398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
7401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
7408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7409 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
7411 wxPyEndAllowThreads(__tstate
);
7412 if (PyErr_Occurred()) return NULL
;
7413 } _resultobj
= Py_BuildValue("l",_result
);
7417 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
7418 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7419 PyObject
* _resultobj
;
7423 PyObject
* _argo0
= 0;
7424 char *_kwnames
[] = { "self","y", NULL
};
7427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
7430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
7437 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7438 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
7440 wxPyEndAllowThreads(__tstate
);
7441 if (PyErr_Occurred()) return NULL
;
7442 } _resultobj
= Py_BuildValue("l",_result
);
7446 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
7447 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7448 PyObject
* _resultobj
;
7452 PyObject
* _argo0
= 0;
7453 char *_kwnames
[] = { "self","y", NULL
};
7456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
7459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
7466 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7467 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
7469 wxPyEndAllowThreads(__tstate
);
7470 if (PyErr_Occurred()) return NULL
;
7471 } _resultobj
= Py_BuildValue("l",_result
);
7475 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7476 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7477 PyObject
* _resultobj
;
7485 PyObject
* _argo0
= 0;
7486 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
7489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
7492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
7499 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7500 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7502 wxPyEndAllowThreads(__tstate
);
7503 if (PyErr_Occurred()) return NULL
;
7504 } Py_INCREF(Py_None
);
7505 _resultobj
= Py_None
;
7509 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
7510 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7511 PyObject
* _resultobj
;
7516 PyObject
* _argo0
= 0;
7517 char *_kwnames
[] = { "self","x","y","radius", NULL
};
7520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
7523 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7524 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
7530 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7531 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
7533 wxPyEndAllowThreads(__tstate
);
7534 if (PyErr_Occurred()) return NULL
;
7535 } Py_INCREF(Py_None
);
7536 _resultobj
= Py_None
;
7540 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7541 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7542 PyObject
* _resultobj
;
7548 PyObject
* _argo0
= 0;
7549 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
7562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7563 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7565 wxPyEndAllowThreads(__tstate
);
7566 if (PyErr_Occurred()) return NULL
;
7567 } Py_INCREF(Py_None
);
7568 _resultobj
= Py_None
;
7572 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7573 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7574 PyObject
* _resultobj
;
7582 PyObject
* _argo0
= 0;
7583 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
7586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
7589 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7590 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7591 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
7596 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7597 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7599 wxPyEndAllowThreads(__tstate
);
7600 if (PyErr_Occurred()) return NULL
;
7601 } Py_INCREF(Py_None
);
7602 _resultobj
= Py_None
;
7606 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
7607 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7608 PyObject
* _resultobj
;
7613 PyObject
* _argo0
= 0;
7614 PyObject
* _argo1
= 0;
7615 char *_kwnames
[] = { "self","icon","x","y", NULL
};
7618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
7621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
7628 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7629 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
7630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
7635 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7636 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
7638 wxPyEndAllowThreads(__tstate
);
7639 if (PyErr_Occurred()) return NULL
;
7640 } Py_INCREF(Py_None
);
7641 _resultobj
= Py_None
;
7645 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7646 static PyObject
*_wrap_wxDC_DrawLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7647 PyObject
* _resultobj
;
7651 int _arg3
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
7652 int _arg4
= (int ) -1;
7653 PyObject
* _argo0
= 0;
7654 PyObject
* _obj1
= 0;
7656 PyObject
* _obj2
= 0;
7657 char *_kwnames
[] = { "self","text","rect","alignment","indexAccel", NULL
};
7660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|ii:wxDC_DrawLabel",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
,&_arg4
))
7663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
7670 #if PYTHON_API_VERSION >= 1009
7671 char* tmpPtr
; int tmpSize
;
7672 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7673 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7676 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7678 _arg1
= new wxString(tmpPtr
, tmpSize
);
7680 if (!PyString_Check(_obj1
)) {
7681 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7684 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7689 if (! wxRect_helper(_obj2
, &_arg2
))
7693 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7694 wxDC_DrawLabel(_arg0
,*_arg1
,*_arg2
,_arg3
,_arg4
);
7696 wxPyEndAllowThreads(__tstate
);
7697 if (PyErr_Occurred()) return NULL
;
7698 } Py_INCREF(Py_None
);
7699 _resultobj
= Py_None
;
7707 static wxRect
wxDC_DrawImageLabel(wxDC
*self
,const wxString
& text
,const wxBitmap
& image
,const wxRect
& rect
,int alignment
,int indexAccel
) {
7709 self
->DrawLabel(text
, image
, rect
, alignment
, indexAccel
, &rv
);
7712 static PyObject
*_wrap_wxDC_DrawImageLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7713 PyObject
* _resultobj
;
7719 int _arg4
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
7720 int _arg5
= (int ) -1;
7721 PyObject
* _argo0
= 0;
7722 PyObject
* _obj1
= 0;
7723 PyObject
* _argo2
= 0;
7725 PyObject
* _obj3
= 0;
7726 char *_kwnames
[] = { "self","text","image","rect","alignment","indexAccel", NULL
};
7730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO|ii:wxDC_DrawImageLabel",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
,&_arg4
,&_arg5
))
7733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
7740 #if PYTHON_API_VERSION >= 1009
7741 char* tmpPtr
; int tmpSize
;
7742 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7743 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7746 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7748 _arg1
= new wxString(tmpPtr
, tmpSize
);
7750 if (!PyString_Check(_obj1
)) {
7751 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7754 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7758 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7759 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
7760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
7766 if (! wxRect_helper(_obj3
, &_arg3
))
7770 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7771 _result
= new wxRect (wxDC_DrawImageLabel(_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
));
7773 wxPyEndAllowThreads(__tstate
);
7774 if (PyErr_Occurred()) return NULL
;
7775 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
7776 _resultobj
= Py_BuildValue("s",_ptemp
);
7784 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7785 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7786 PyObject
* _resultobj
;
7792 PyObject
* _argo0
= 0;
7793 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
7796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
7806 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7807 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7809 wxPyEndAllowThreads(__tstate
);
7810 if (PyErr_Occurred()) return NULL
;
7811 } Py_INCREF(Py_None
);
7812 _resultobj
= Py_None
;
7816 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7817 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7818 PyObject
* _resultobj
;
7822 long _arg3
= (long ) 0;
7823 long _arg4
= (long ) 0;
7824 PyObject
* _argo0
= 0;
7826 PyObject
* _obj2
= 0;
7827 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
7830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
7833 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7834 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
7841 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7842 if (_arg2
== NULL
) {
7850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7851 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7853 wxPyEndAllowThreads(__tstate
);
7854 if (PyErr_Occurred()) return NULL
;
7855 } Py_INCREF(Py_None
);
7856 _resultobj
= Py_None
;
7863 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7864 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7865 PyObject
* _resultobj
;
7869 long _arg3
= (long ) 0;
7870 long _arg4
= (long ) 0;
7871 int _arg5
= (int ) wxODDEVEN_RULE
;
7872 PyObject
* _argo0
= 0;
7874 PyObject
* _obj2
= 0;
7875 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
7878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
7881 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7882 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7883 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
7889 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7890 if (_arg2
== NULL
) {
7898 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7899 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7901 wxPyEndAllowThreads(__tstate
);
7902 if (PyErr_Occurred()) return NULL
;
7903 } Py_INCREF(Py_None
);
7904 _resultobj
= Py_None
;
7911 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
7912 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7913 PyObject
* _resultobj
;
7917 PyObject
* _argo0
= 0;
7918 char *_kwnames
[] = { "self","x","y", NULL
};
7921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7924 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7925 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
7931 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7932 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
7934 wxPyEndAllowThreads(__tstate
);
7935 if (PyErr_Occurred()) return NULL
;
7936 } Py_INCREF(Py_None
);
7937 _resultobj
= Py_None
;
7941 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7942 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7943 PyObject
* _resultobj
;
7949 PyObject
* _argo0
= 0;
7950 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
7963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7964 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7966 wxPyEndAllowThreads(__tstate
);
7967 if (PyErr_Occurred()) return NULL
;
7968 } Py_INCREF(Py_None
);
7969 _resultobj
= Py_None
;
7973 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7974 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7975 PyObject
* _resultobj
;
7981 PyObject
* _argo0
= 0;
7982 PyObject
* _obj1
= 0;
7983 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
7986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
7989 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7990 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
7996 #if PYTHON_API_VERSION >= 1009
7997 char* tmpPtr
; int tmpSize
;
7998 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7999 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8002 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8004 _arg1
= new wxString(tmpPtr
, tmpSize
);
8006 if (!PyString_Check(_obj1
)) {
8007 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8010 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8014 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8015 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
8017 wxPyEndAllowThreads(__tstate
);
8018 if (PyErr_Occurred()) return NULL
;
8019 } Py_INCREF(Py_None
);
8020 _resultobj
= Py_None
;
8028 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
8029 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8030 PyObject
* _resultobj
;
8036 long _arg5
= (long ) 20;
8037 PyObject
* _argo0
= 0;
8038 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
8041 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
8044 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8045 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8046 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
8051 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8052 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
8054 wxPyEndAllowThreads(__tstate
);
8055 if (PyErr_Occurred()) return NULL
;
8056 } Py_INCREF(Py_None
);
8057 _resultobj
= Py_None
;
8061 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
8062 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8063 PyObject
* _resultobj
;
8067 PyObject
* _argo0
= 0;
8069 PyObject
* _obj2
= 0;
8070 char *_kwnames
[] = { "self","points", NULL
};
8073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
8076 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8077 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
8084 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
8085 if (_arg2
== NULL
) {
8093 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8094 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
8096 wxPyEndAllowThreads(__tstate
);
8097 if (PyErr_Occurred()) return NULL
;
8098 } Py_INCREF(Py_None
);
8099 _resultobj
= Py_None
;
8106 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
8107 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8108 PyObject
* _resultobj
;
8113 PyObject
* _argo0
= 0;
8114 PyObject
* _obj1
= 0;
8115 char *_kwnames
[] = { "self","text","x","y", NULL
};
8118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
8121 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8122 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8123 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
8128 #if PYTHON_API_VERSION >= 1009
8129 char* tmpPtr
; int tmpSize
;
8130 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8131 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8134 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8136 _arg1
= new wxString(tmpPtr
, tmpSize
);
8138 if (!PyString_Check(_obj1
)) {
8139 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8142 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8146 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8147 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
8149 wxPyEndAllowThreads(__tstate
);
8150 if (PyErr_Occurred()) return NULL
;
8151 } Py_INCREF(Py_None
);
8152 _resultobj
= Py_None
;
8160 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
8161 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8162 PyObject
* _resultobj
;
8164 PyObject
* _argo0
= 0;
8165 char *_kwnames
[] = { "self", NULL
};
8168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
8171 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8172 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
8178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8181 wxPyEndAllowThreads(__tstate
);
8182 if (PyErr_Occurred()) return NULL
;
8183 } Py_INCREF(Py_None
);
8184 _resultobj
= Py_None
;
8188 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
8189 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8190 PyObject
* _resultobj
;
8192 PyObject
* _argo0
= 0;
8193 char *_kwnames
[] = { "self", NULL
};
8196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
8199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
8206 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8207 wxDC_EndDrawing(_arg0
);
8209 wxPyEndAllowThreads(__tstate
);
8210 if (PyErr_Occurred()) return NULL
;
8211 } Py_INCREF(Py_None
);
8212 _resultobj
= Py_None
;
8216 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
8217 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8218 PyObject
* _resultobj
;
8220 PyObject
* _argo0
= 0;
8221 char *_kwnames
[] = { "self", NULL
};
8224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
8227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
8234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8235 wxDC_EndPage(_arg0
);
8237 wxPyEndAllowThreads(__tstate
);
8238 if (PyErr_Occurred()) return NULL
;
8239 } Py_INCREF(Py_None
);
8240 _resultobj
= Py_None
;
8244 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8245 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8246 PyObject
* _resultobj
;
8251 int _arg4
= (int ) wxFLOOD_SURFACE
;
8252 PyObject
* _argo0
= 0;
8254 PyObject
* _obj3
= 0;
8255 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
8258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
8261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
8269 if (! wxColour_helper(_obj3
, &_arg3
))
8273 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8274 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
8276 wxPyEndAllowThreads(__tstate
);
8277 if (PyErr_Occurred()) return NULL
;
8278 } Py_INCREF(Py_None
);
8279 _resultobj
= Py_None
;
8283 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
8284 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8285 PyObject
* _resultobj
;
8288 PyObject
* _argo0
= 0;
8289 char *_kwnames
[] = { "self", NULL
};
8293 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
8296 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8297 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
8303 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8304 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
8306 wxPyEndAllowThreads(__tstate
);
8307 if (PyErr_Occurred()) return NULL
;
8308 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
8309 _resultobj
= Py_BuildValue("s",_ptemp
);
8313 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
8314 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8315 PyObject
* _resultobj
;
8318 PyObject
* _argo0
= 0;
8319 char *_kwnames
[] = { "self", NULL
};
8323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
8326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
8333 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8334 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
8336 wxPyEndAllowThreads(__tstate
);
8337 if (PyErr_Occurred()) return NULL
;
8338 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
8339 _resultobj
= Py_BuildValue("s",_ptemp
);
8343 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
8344 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8345 PyObject
* _resultobj
;
8348 PyObject
* _argo0
= 0;
8349 char *_kwnames
[] = { "self", NULL
};
8352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
8355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
8362 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8363 _result
= (long )wxDC_GetCharHeight(_arg0
);
8365 wxPyEndAllowThreads(__tstate
);
8366 if (PyErr_Occurred()) return NULL
;
8367 } _resultobj
= Py_BuildValue("l",_result
);
8371 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
8372 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8373 PyObject
* _resultobj
;
8376 PyObject
* _argo0
= 0;
8377 char *_kwnames
[] = { "self", NULL
};
8380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
8383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
8390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8391 _result
= (long )wxDC_GetCharWidth(_arg0
);
8393 wxPyEndAllowThreads(__tstate
);
8394 if (PyErr_Occurred()) return NULL
;
8395 } _resultobj
= Py_BuildValue("l",_result
);
8399 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8400 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8401 PyObject
* _resultobj
;
8411 PyObject
* _argo0
= 0;
8412 char *_kwnames
[] = { "self", NULL
};
8427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
8430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
8437 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8438 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8440 wxPyEndAllowThreads(__tstate
);
8441 if (PyErr_Occurred()) return NULL
;
8442 } Py_INCREF(Py_None
);
8443 _resultobj
= Py_None
;
8446 o
= PyInt_FromLong((long) (*_arg1
));
8447 _resultobj
= t_output_helper(_resultobj
, o
);
8451 o
= PyInt_FromLong((long) (*_arg2
));
8452 _resultobj
= t_output_helper(_resultobj
, o
);
8456 o
= PyInt_FromLong((long) (*_arg3
));
8457 _resultobj
= t_output_helper(_resultobj
, o
);
8461 o
= PyInt_FromLong((long) (*_arg4
));
8462 _resultobj
= t_output_helper(_resultobj
, o
);
8467 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
8468 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8469 PyObject
* _resultobj
;
8472 PyObject
* _argo0
= 0;
8473 char *_kwnames
[] = { "self", NULL
};
8477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
8480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
8487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8488 _result
= new wxFont (wxDC_GetFont(_arg0
));
8490 wxPyEndAllowThreads(__tstate
);
8491 if (PyErr_Occurred()) return NULL
;
8492 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
8493 _resultobj
= Py_BuildValue("s",_ptemp
);
8497 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
8498 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8499 PyObject
* _resultobj
;
8502 PyObject
* _argo0
= 0;
8503 char *_kwnames
[] = { "self", NULL
};
8506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
8509 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8510 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
8516 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8517 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
8519 wxPyEndAllowThreads(__tstate
);
8520 if (PyErr_Occurred()) return NULL
;
8521 } _resultobj
= Py_BuildValue("i",_result
);
8525 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
8526 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8527 PyObject
* _resultobj
;
8533 PyObject
* _argo0
= 0;
8534 char *_kwnames
[] = { "self", NULL
};
8543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
8546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
8553 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8554 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
8556 wxPyEndAllowThreads(__tstate
);
8557 if (PyErr_Occurred()) return NULL
;
8558 } Py_INCREF(Py_None
);
8559 _resultobj
= Py_None
;
8562 o
= PyFloat_FromDouble((double) (*_arg1
));
8563 _resultobj
= t_output_helper(_resultobj
, o
);
8567 o
= PyFloat_FromDouble((double) (*_arg2
));
8568 _resultobj
= t_output_helper(_resultobj
, o
);
8573 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
8574 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8575 PyObject
* _resultobj
;
8578 PyObject
* _argo0
= 0;
8579 char *_kwnames
[] = { "self", NULL
};
8582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
8585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
8592 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8593 _result
= (int )wxDC_GetMapMode(_arg0
);
8595 wxPyEndAllowThreads(__tstate
);
8596 if (PyErr_Occurred()) return NULL
;
8597 } _resultobj
= Py_BuildValue("i",_result
);
8601 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
8602 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8603 PyObject
* _resultobj
;
8606 PyObject
* _argo0
= 0;
8607 char *_kwnames
[] = { "self", NULL
};
8610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
8613 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8614 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
8620 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8621 _result
= (bool )wxDC_GetOptimization(_arg0
);
8623 wxPyEndAllowThreads(__tstate
);
8624 if (PyErr_Occurred()) return NULL
;
8625 } _resultobj
= Py_BuildValue("i",_result
);
8629 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
8630 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8631 PyObject
* _resultobj
;
8634 PyObject
* _argo0
= 0;
8635 char *_kwnames
[] = { "self", NULL
};
8639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
8642 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8643 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8644 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
8649 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8650 _result
= new wxPen (wxDC_GetPen(_arg0
));
8652 wxPyEndAllowThreads(__tstate
);
8653 if (PyErr_Occurred()) return NULL
;
8654 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
8655 _resultobj
= Py_BuildValue("s",_ptemp
);
8659 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
8660 wxColour
* wc
= new wxColour();
8661 self
->GetPixel(x
, y
, wc
);
8664 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8665 PyObject
* _resultobj
;
8670 PyObject
* _argo0
= 0;
8671 char *_kwnames
[] = { "self","x","y", NULL
};
8675 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8678 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8679 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8680 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
8685 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8686 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
8688 wxPyEndAllowThreads(__tstate
);
8689 if (PyErr_Occurred()) return NULL
;
8691 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
8692 _resultobj
= Py_BuildValue("s",_ptemp
);
8695 _resultobj
= Py_None
;
8700 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
8701 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8702 PyObject
* _resultobj
;
8708 PyObject
* _argo0
= 0;
8709 char *_kwnames
[] = { "self", NULL
};
8718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_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_GetSizeTuple. Expected _wxDC_p.");
8728 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8729 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
8731 wxPyEndAllowThreads(__tstate
);
8732 if (PyErr_Occurred()) return NULL
;
8733 } Py_INCREF(Py_None
);
8734 _resultobj
= Py_None
;
8737 o
= PyInt_FromLong((long) (*_arg1
));
8738 _resultobj
= t_output_helper(_resultobj
, o
);
8742 o
= PyInt_FromLong((long) (*_arg2
));
8743 _resultobj
= t_output_helper(_resultobj
, o
);
8748 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
8749 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8750 PyObject
* _resultobj
;
8753 PyObject
* _argo0
= 0;
8754 char *_kwnames
[] = { "self", NULL
};
8758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
8761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
8768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8769 _result
= new wxSize (wxDC_GetSize(_arg0
));
8771 wxPyEndAllowThreads(__tstate
);
8772 if (PyErr_Occurred()) return NULL
;
8773 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8774 _resultobj
= Py_BuildValue("s",_ptemp
);
8778 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
8779 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8780 PyObject
* _resultobj
;
8783 PyObject
* _argo0
= 0;
8784 char *_kwnames
[] = { "self", NULL
};
8788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
8791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
8798 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8799 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
8801 wxPyEndAllowThreads(__tstate
);
8802 if (PyErr_Occurred()) return NULL
;
8803 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8804 _resultobj
= Py_BuildValue("s",_ptemp
);
8808 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
8809 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8810 PyObject
* _resultobj
;
8813 PyObject
* _argo0
= 0;
8814 char *_kwnames
[] = { "self", NULL
};
8818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
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_GetTextBackground. Expected _wxDC_p.");
8828 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8829 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
8831 wxPyEndAllowThreads(__tstate
);
8832 if (PyErr_Occurred()) return NULL
;
8833 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8834 _resultobj
= Py_BuildValue("s",_ptemp
);
8838 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
8839 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8840 PyObject
* _resultobj
;
8847 PyObject
* _argo0
= 0;
8848 PyObject
* _obj1
= 0;
8849 char *_kwnames
[] = { "self","string", NULL
};
8858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
8861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
8868 #if PYTHON_API_VERSION >= 1009
8869 char* tmpPtr
; int tmpSize
;
8870 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8871 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8874 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8876 _arg1
= new wxString(tmpPtr
, tmpSize
);
8878 if (!PyString_Check(_obj1
)) {
8879 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8882 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8886 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8887 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
8889 wxPyEndAllowThreads(__tstate
);
8890 if (PyErr_Occurred()) return NULL
;
8891 } Py_INCREF(Py_None
);
8892 _resultobj
= Py_None
;
8895 o
= PyInt_FromLong((long) (*_arg2
));
8896 _resultobj
= t_output_helper(_resultobj
, o
);
8900 o
= PyInt_FromLong((long) (*_arg3
));
8901 _resultobj
= t_output_helper(_resultobj
, o
);
8910 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8911 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8912 PyObject
* _resultobj
;
8923 wxFont
* _arg6
= (wxFont
*) NULL
;
8924 PyObject
* _argo0
= 0;
8925 PyObject
* _obj1
= 0;
8926 PyObject
* _argo6
= 0;
8927 char *_kwnames
[] = { "self","string","font", NULL
};
8942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
8945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
8952 #if PYTHON_API_VERSION >= 1009
8953 char* tmpPtr
; int tmpSize
;
8954 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8955 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8958 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8960 _arg1
= new wxString(tmpPtr
, tmpSize
);
8962 if (!PyString_Check(_obj1
)) {
8963 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8966 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8970 if (_argo6
== Py_None
) { _arg6
= NULL
; }
8971 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
8972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8977 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8978 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8980 wxPyEndAllowThreads(__tstate
);
8981 if (PyErr_Occurred()) return NULL
;
8982 } Py_INCREF(Py_None
);
8983 _resultobj
= Py_None
;
8986 o
= PyInt_FromLong((long) (*_arg2
));
8987 _resultobj
= t_output_helper(_resultobj
, o
);
8991 o
= PyInt_FromLong((long) (*_arg3
));
8992 _resultobj
= t_output_helper(_resultobj
, o
);
8996 o
= PyInt_FromLong((long) (*_arg4
));
8997 _resultobj
= t_output_helper(_resultobj
, o
);
9001 o
= PyInt_FromLong((long) (*_arg5
));
9002 _resultobj
= t_output_helper(_resultobj
, o
);
9011 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
9012 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9013 PyObject
* _resultobj
;
9016 PyObject
* _argo0
= 0;
9017 char *_kwnames
[] = { "self", NULL
};
9021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
9024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
9031 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9032 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
9034 wxPyEndAllowThreads(__tstate
);
9035 if (PyErr_Occurred()) return NULL
;
9036 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
9037 _resultobj
= Py_BuildValue("s",_ptemp
);
9041 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
9042 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9043 PyObject
* _resultobj
;
9049 PyObject
* _argo0
= 0;
9050 char *_kwnames
[] = { "self", NULL
};
9059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
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_GetUserScale. Expected _wxDC_p.");
9069 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9070 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
9072 wxPyEndAllowThreads(__tstate
);
9073 if (PyErr_Occurred()) return NULL
;
9074 } Py_INCREF(Py_None
);
9075 _resultobj
= Py_None
;
9078 o
= PyFloat_FromDouble((double) (*_arg1
));
9079 _resultobj
= t_output_helper(_resultobj
, o
);
9083 o
= PyFloat_FromDouble((double) (*_arg2
));
9084 _resultobj
= t_output_helper(_resultobj
, o
);
9089 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
9090 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9091 PyObject
* _resultobj
;
9095 PyObject
* _argo0
= 0;
9096 char *_kwnames
[] = { "self","x", NULL
};
9099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
9102 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9103 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9104 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
9109 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9110 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
9112 wxPyEndAllowThreads(__tstate
);
9113 if (PyErr_Occurred()) return NULL
;
9114 } _resultobj
= Py_BuildValue("l",_result
);
9118 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
9119 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9120 PyObject
* _resultobj
;
9124 PyObject
* _argo0
= 0;
9125 char *_kwnames
[] = { "self","x", NULL
};
9128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
9131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
9138 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9139 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
9141 wxPyEndAllowThreads(__tstate
);
9142 if (PyErr_Occurred()) return NULL
;
9143 } _resultobj
= Py_BuildValue("l",_result
);
9147 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
9148 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9149 PyObject
* _resultobj
;
9153 PyObject
* _argo0
= 0;
9154 char *_kwnames
[] = { "self","y", NULL
};
9157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
9160 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9161 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9162 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
9167 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9168 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
9170 wxPyEndAllowThreads(__tstate
);
9171 if (PyErr_Occurred()) return NULL
;
9172 } _resultobj
= Py_BuildValue("l",_result
);
9176 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
9177 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9178 PyObject
* _resultobj
;
9182 PyObject
* _argo0
= 0;
9183 char *_kwnames
[] = { "self","y", NULL
};
9186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
9189 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9190 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
9196 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9197 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
9199 wxPyEndAllowThreads(__tstate
);
9200 if (PyErr_Occurred()) return NULL
;
9201 } _resultobj
= Py_BuildValue("l",_result
);
9205 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
9206 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9207 PyObject
* _resultobj
;
9210 PyObject
* _argo0
= 0;
9211 char *_kwnames
[] = { "self", NULL
};
9214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
9217 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9218 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
9224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9225 _result
= (long )wxDC_MaxX(_arg0
);
9227 wxPyEndAllowThreads(__tstate
);
9228 if (PyErr_Occurred()) return NULL
;
9229 } _resultobj
= Py_BuildValue("l",_result
);
9233 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
9234 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9235 PyObject
* _resultobj
;
9238 PyObject
* _argo0
= 0;
9239 char *_kwnames
[] = { "self", NULL
};
9242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
9245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
9252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9253 _result
= (long )wxDC_MaxY(_arg0
);
9255 wxPyEndAllowThreads(__tstate
);
9256 if (PyErr_Occurred()) return NULL
;
9257 } _resultobj
= Py_BuildValue("l",_result
);
9261 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
9262 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9263 PyObject
* _resultobj
;
9266 PyObject
* _argo0
= 0;
9267 char *_kwnames
[] = { "self", NULL
};
9270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
9273 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9274 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
9280 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9281 _result
= (long )wxDC_MinX(_arg0
);
9283 wxPyEndAllowThreads(__tstate
);
9284 if (PyErr_Occurred()) return NULL
;
9285 } _resultobj
= Py_BuildValue("l",_result
);
9289 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
9290 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9291 PyObject
* _resultobj
;
9294 PyObject
* _argo0
= 0;
9295 char *_kwnames
[] = { "self", NULL
};
9298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
9301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
9308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9309 _result
= (long )wxDC_MinY(_arg0
);
9311 wxPyEndAllowThreads(__tstate
);
9312 if (PyErr_Occurred()) return NULL
;
9313 } _resultobj
= Py_BuildValue("l",_result
);
9317 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
9318 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9319 PyObject
* _resultobj
;
9322 PyObject
* _argo0
= 0;
9323 char *_kwnames
[] = { "self", NULL
};
9326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
9329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
9336 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9337 _result
= (bool )wxDC_Ok(_arg0
);
9339 wxPyEndAllowThreads(__tstate
);
9340 if (PyErr_Occurred()) return NULL
;
9341 } _resultobj
= Py_BuildValue("i",_result
);
9345 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
9346 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9347 PyObject
* _resultobj
;
9351 PyObject
* _argo0
= 0;
9352 char *_kwnames
[] = { "self","x","y", NULL
};
9355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
9365 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9366 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
9368 wxPyEndAllowThreads(__tstate
);
9369 if (PyErr_Occurred()) return NULL
;
9370 } Py_INCREF(Py_None
);
9371 _resultobj
= Py_None
;
9375 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
9376 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9377 PyObject
* _resultobj
;
9380 PyObject
* _argo0
= 0;
9381 PyObject
* _argo1
= 0;
9382 char *_kwnames
[] = { "self","brush", NULL
};
9385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
9388 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9389 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
9395 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9396 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
9397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
9402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9403 wxDC_SetBackground(_arg0
,*_arg1
);
9405 wxPyEndAllowThreads(__tstate
);
9406 if (PyErr_Occurred()) return NULL
;
9407 } Py_INCREF(Py_None
);
9408 _resultobj
= Py_None
;
9412 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
9413 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9414 PyObject
* _resultobj
;
9417 PyObject
* _argo0
= 0;
9418 char *_kwnames
[] = { "self","mode", NULL
};
9421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
9424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
9431 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9432 wxDC_SetBackgroundMode(_arg0
,_arg1
);
9434 wxPyEndAllowThreads(__tstate
);
9435 if (PyErr_Occurred()) return NULL
;
9436 } Py_INCREF(Py_None
);
9437 _resultobj
= Py_None
;
9441 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9442 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9443 PyObject
* _resultobj
;
9449 PyObject
* _argo0
= 0;
9450 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
9463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9464 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9466 wxPyEndAllowThreads(__tstate
);
9467 if (PyErr_Occurred()) return NULL
;
9468 } Py_INCREF(Py_None
);
9469 _resultobj
= Py_None
;
9473 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
9474 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9475 PyObject
* _resultobj
;
9478 PyObject
* _argo0
= 0;
9479 PyObject
* _argo1
= 0;
9480 char *_kwnames
[] = { "self","region", NULL
};
9483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
9486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
9493 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9494 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
9500 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9501 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
9503 wxPyEndAllowThreads(__tstate
);
9504 if (PyErr_Occurred()) return NULL
;
9505 } Py_INCREF(Py_None
);
9506 _resultobj
= Py_None
;
9510 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
9511 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9512 PyObject
* _resultobj
;
9515 PyObject
* _argo0
= 0;
9516 PyObject
* _argo1
= 0;
9517 char *_kwnames
[] = { "self","colourMap", NULL
};
9520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
9523 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9524 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
9530 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9531 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
9532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
9537 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9538 wxDC_SetPalette(_arg0
,*_arg1
);
9540 wxPyEndAllowThreads(__tstate
);
9541 if (PyErr_Occurred()) return NULL
;
9542 } Py_INCREF(Py_None
);
9543 _resultobj
= Py_None
;
9547 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
9548 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9549 PyObject
* _resultobj
;
9552 PyObject
* _argo0
= 0;
9553 PyObject
* _argo1
= 0;
9554 char *_kwnames
[] = { "self","brush", NULL
};
9557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
9560 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9561 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
9567 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9568 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
9569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
9574 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9575 wxDC_SetBrush(_arg0
,*_arg1
);
9577 wxPyEndAllowThreads(__tstate
);
9578 if (PyErr_Occurred()) return NULL
;
9579 } Py_INCREF(Py_None
);
9580 _resultobj
= Py_None
;
9584 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
9585 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9586 PyObject
* _resultobj
;
9589 PyObject
* _argo0
= 0;
9590 PyObject
* _argo1
= 0;
9591 char *_kwnames
[] = { "self","font", NULL
};
9594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
9597 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9598 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
9604 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9605 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
9606 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
9611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9612 wxDC_SetFont(_arg0
,*_arg1
);
9614 wxPyEndAllowThreads(__tstate
);
9615 if (PyErr_Occurred()) return NULL
;
9616 } Py_INCREF(Py_None
);
9617 _resultobj
= Py_None
;
9621 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
9622 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9623 PyObject
* _resultobj
;
9626 PyObject
* _argo0
= 0;
9627 char *_kwnames
[] = { "self","function", NULL
};
9630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
9633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
9640 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9641 wxDC_SetLogicalFunction(_arg0
,_arg1
);
9643 wxPyEndAllowThreads(__tstate
);
9644 if (PyErr_Occurred()) return NULL
;
9645 } Py_INCREF(Py_None
);
9646 _resultobj
= Py_None
;
9650 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
9651 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9652 PyObject
* _resultobj
;
9656 PyObject
* _argo0
= 0;
9657 char *_kwnames
[] = { "self","x","y", NULL
};
9660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
9670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9671 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
9673 wxPyEndAllowThreads(__tstate
);
9674 if (PyErr_Occurred()) return NULL
;
9675 } Py_INCREF(Py_None
);
9676 _resultobj
= Py_None
;
9680 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
9681 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9682 PyObject
* _resultobj
;
9685 PyObject
* _argo0
= 0;
9686 char *_kwnames
[] = { "self","mode", NULL
};
9689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
9692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
9699 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9700 wxDC_SetMapMode(_arg0
,_arg1
);
9702 wxPyEndAllowThreads(__tstate
);
9703 if (PyErr_Occurred()) return NULL
;
9704 } Py_INCREF(Py_None
);
9705 _resultobj
= Py_None
;
9709 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
9710 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9711 PyObject
* _resultobj
;
9714 PyObject
* _argo0
= 0;
9716 char *_kwnames
[] = { "self","optimize", NULL
};
9719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
9722 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9723 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
9728 _arg1
= (bool ) tempbool1
;
9730 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9731 wxDC_SetOptimization(_arg0
,_arg1
);
9733 wxPyEndAllowThreads(__tstate
);
9734 if (PyErr_Occurred()) return NULL
;
9735 } Py_INCREF(Py_None
);
9736 _resultobj
= Py_None
;
9740 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
9741 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9742 PyObject
* _resultobj
;
9745 PyObject
* _argo0
= 0;
9746 PyObject
* _argo1
= 0;
9747 char *_kwnames
[] = { "self","pen", NULL
};
9750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
9753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
9760 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9761 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
9762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
9767 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9768 wxDC_SetPen(_arg0
,*_arg1
);
9770 wxPyEndAllowThreads(__tstate
);
9771 if (PyErr_Occurred()) return NULL
;
9772 } Py_INCREF(Py_None
);
9773 _resultobj
= Py_None
;
9777 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
9778 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9779 PyObject
* _resultobj
;
9782 PyObject
* _argo0
= 0;
9784 PyObject
* _obj1
= 0;
9785 char *_kwnames
[] = { "self","colour", NULL
};
9788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
9791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
9799 if (! wxColour_helper(_obj1
, &_arg1
))
9803 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9804 wxDC_SetTextBackground(_arg0
,*_arg1
);
9806 wxPyEndAllowThreads(__tstate
);
9807 if (PyErr_Occurred()) return NULL
;
9808 } Py_INCREF(Py_None
);
9809 _resultobj
= Py_None
;
9813 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
9814 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9815 PyObject
* _resultobj
;
9818 PyObject
* _argo0
= 0;
9820 PyObject
* _obj1
= 0;
9821 char *_kwnames
[] = { "self","colour", NULL
};
9824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
9827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
9835 if (! wxColour_helper(_obj1
, &_arg1
))
9839 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9840 wxDC_SetTextForeground(_arg0
,*_arg1
);
9842 wxPyEndAllowThreads(__tstate
);
9843 if (PyErr_Occurred()) return NULL
;
9844 } Py_INCREF(Py_None
);
9845 _resultobj
= Py_None
;
9849 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
9850 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9851 PyObject
* _resultobj
;
9855 PyObject
* _argo0
= 0;
9856 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
9859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
9869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9870 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
9872 wxPyEndAllowThreads(__tstate
);
9873 if (PyErr_Occurred()) return NULL
;
9874 } Py_INCREF(Py_None
);
9875 _resultobj
= Py_None
;
9879 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
9880 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9881 PyObject
* _resultobj
;
9885 PyObject
* _argo0
= 0;
9886 PyObject
* _obj1
= 0;
9887 char *_kwnames
[] = { "self","message", NULL
};
9890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
9893 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9894 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
9900 #if PYTHON_API_VERSION >= 1009
9901 char* tmpPtr
; int tmpSize
;
9902 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9903 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9906 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9908 _arg1
= new wxString(tmpPtr
, tmpSize
);
9910 if (!PyString_Check(_obj1
)) {
9911 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9914 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9918 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9919 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
9921 wxPyEndAllowThreads(__tstate
);
9922 if (PyErr_Occurred()) return NULL
;
9923 } _resultobj
= Py_BuildValue("i",_result
);
9931 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
9932 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9933 PyObject
* _resultobj
;
9935 PyObject
* _argo0
= 0;
9936 char *_kwnames
[] = { "self", NULL
};
9939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
9942 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9943 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9944 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
9949 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9950 wxDC_StartPage(_arg0
);
9952 wxPyEndAllowThreads(__tstate
);
9953 if (PyErr_Occurred()) return NULL
;
9954 } Py_INCREF(Py_None
);
9955 _resultobj
= Py_None
;
9959 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9960 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9961 PyObject
* _resultobj
;
9966 int _arg4
= (int ) FALSE
;
9967 PyObject
* _argo0
= 0;
9968 PyObject
* _argo1
= 0;
9969 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
9972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
9975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9982 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9983 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9989 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9990 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
9992 wxPyEndAllowThreads(__tstate
);
9993 if (PyErr_Occurred()) return NULL
;
9994 } Py_INCREF(Py_None
);
9995 _resultobj
= Py_None
;
9999 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
10000 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10001 PyObject
* _resultobj
;
10004 PyObject
* _argo0
= 0;
10005 char *_kwnames
[] = { "self", NULL
};
10008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
10011 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10012 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
10018 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10019 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
10021 wxPyEndAllowThreads(__tstate
);
10022 if (PyErr_Occurred()) return NULL
;
10023 } _resultobj
= Py_BuildValue("i",_result
);
10027 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
10028 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10029 PyObject
* _resultobj
;
10032 PyObject
* _argo0
= 0;
10033 char *_kwnames
[] = { "self", NULL
};
10036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
10039 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10040 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
10046 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10047 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
10049 wxPyEndAllowThreads(__tstate
);
10050 if (PyErr_Occurred()) return NULL
;
10051 } _resultobj
= Py_BuildValue("i",_result
);
10055 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
10056 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10057 PyObject
* _resultobj
;
10060 PyObject
* _argo0
= 0;
10061 char *_kwnames
[] = { "self", NULL
};
10064 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
10067 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10068 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
10074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10075 _result
= (int )wxDC_GetDepth(_arg0
);
10077 wxPyEndAllowThreads(__tstate
);
10078 if (PyErr_Occurred()) return NULL
;
10079 } _resultobj
= Py_BuildValue("i",_result
);
10083 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
10084 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10085 PyObject
* _resultobj
;
10088 PyObject
* _argo0
= 0;
10089 char *_kwnames
[] = { "self", NULL
};
10093 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
10096 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10097 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10098 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
10103 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10104 _result
= new wxSize (wxDC_GetPPI(_arg0
));
10106 wxPyEndAllowThreads(__tstate
);
10107 if (PyErr_Occurred()) return NULL
;
10108 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
10109 _resultobj
= Py_BuildValue("s",_ptemp
);
10113 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
10114 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10115 PyObject
* _resultobj
;
10121 PyObject
* _argo0
= 0;
10122 char *_kwnames
[] = { "self", NULL
};
10131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
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_GetLogicalOrigin. Expected _wxDC_p.");
10141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10142 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
10144 wxPyEndAllowThreads(__tstate
);
10145 if (PyErr_Occurred()) return NULL
;
10146 } Py_INCREF(Py_None
);
10147 _resultobj
= Py_None
;
10150 o
= PyInt_FromLong((long) (*_arg1
));
10151 _resultobj
= t_output_helper(_resultobj
, o
);
10155 o
= PyInt_FromLong((long) (*_arg2
));
10156 _resultobj
= t_output_helper(_resultobj
, o
);
10161 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
10162 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10163 PyObject
* _resultobj
;
10167 PyObject
* _argo0
= 0;
10168 char *_kwnames
[] = { "self","x","y", NULL
};
10171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
10181 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10182 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
10184 wxPyEndAllowThreads(__tstate
);
10185 if (PyErr_Occurred()) return NULL
;
10186 } Py_INCREF(Py_None
);
10187 _resultobj
= Py_None
;
10191 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
10192 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10193 PyObject
* _resultobj
;
10199 PyObject
* _argo0
= 0;
10200 char *_kwnames
[] = { "self", NULL
};
10209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
10212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
10219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10220 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
10222 wxPyEndAllowThreads(__tstate
);
10223 if (PyErr_Occurred()) return NULL
;
10224 } Py_INCREF(Py_None
);
10225 _resultobj
= Py_None
;
10228 o
= PyInt_FromLong((long) (*_arg1
));
10229 _resultobj
= t_output_helper(_resultobj
, o
);
10233 o
= PyInt_FromLong((long) (*_arg2
));
10234 _resultobj
= t_output_helper(_resultobj
, o
);
10239 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
10240 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10241 PyObject
* _resultobj
;
10245 PyObject
* _argo0
= 0;
10248 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
10251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
10254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
10260 _arg1
= (bool ) tempbool1
;
10261 _arg2
= (bool ) tempbool2
;
10263 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10264 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
10266 wxPyEndAllowThreads(__tstate
);
10267 if (PyErr_Occurred()) return NULL
;
10268 } Py_INCREF(Py_None
);
10269 _resultobj
= Py_None
;
10273 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
10274 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10275 PyObject
* _resultobj
;
10279 PyObject
* _argo0
= 0;
10280 char *_kwnames
[] = { "self","x","y", NULL
};
10283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10286 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10287 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10288 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
10293 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10294 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
10296 wxPyEndAllowThreads(__tstate
);
10297 if (PyErr_Occurred()) return NULL
;
10298 } Py_INCREF(Py_None
);
10299 _resultobj
= Py_None
;
10303 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
10304 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10305 PyObject
* _resultobj
;
10307 PyObject
* _argo0
= 0;
10308 char *_kwnames
[] = { "self", NULL
};
10311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
10314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
10321 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10322 wxDC_ResetBoundingBox(_arg0
);
10324 wxPyEndAllowThreads(__tstate
);
10325 if (PyErr_Occurred()) return NULL
;
10326 } Py_INCREF(Py_None
);
10327 _resultobj
= Py_None
;
10331 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10332 PyObject
* _resultobj
;
10342 PyObject
* _argo0
= 0;
10343 char *_kwnames
[] = { "self", NULL
};
10358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
10361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
10368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10369 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10371 wxPyEndAllowThreads(__tstate
);
10372 if (PyErr_Occurred()) return NULL
;
10373 } Py_INCREF(Py_None
);
10374 _resultobj
= Py_None
;
10377 o
= PyInt_FromLong((long) (*_arg1
));
10378 _resultobj
= t_output_helper(_resultobj
, o
);
10382 o
= PyInt_FromLong((long) (*_arg2
));
10383 _resultobj
= t_output_helper(_resultobj
, o
);
10387 o
= PyInt_FromLong((long) (*_arg3
));
10388 _resultobj
= t_output_helper(_resultobj
, o
);
10392 o
= PyInt_FromLong((long) (*_arg4
));
10393 _resultobj
= t_output_helper(_resultobj
, o
);
10398 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
10399 static PyObject
*_wrap_wxDC_GetHDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10400 PyObject
* _resultobj
;
10403 PyObject
* _argo0
= 0;
10404 char *_kwnames
[] = { "self", NULL
};
10407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetHDC",_kwnames
,&_argo0
))
10410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
10417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10418 _result
= (long )wxDC_GetHDC(_arg0
);
10420 wxPyEndAllowThreads(__tstate
);
10421 if (PyErr_Occurred()) return NULL
;
10422 } _resultobj
= Py_BuildValue("l",_result
);
10426 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
10427 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
10428 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
10436 if (!PySequence_Check(pyPoints
)) {
10439 if (!PySequence_Check(pyPens
)) {
10442 numObjs
= PySequence_Length(pyPoints
);
10443 numPens
= PySequence_Length(pyPens
);
10445 for (i
= 0; i
< numObjs
; i
++) {
10449 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
10452 obj
= PySequence_GetItem(pyPens
, i
);
10454 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
10460 self
->SetPen(*pen
);
10465 // Get the point coordinants
10467 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
10470 obj
= PySequence_GetItem(pyPoints
, i
);
10472 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
10478 // Now draw the point
10479 self
->DrawPoint(x1
, y1
);
10485 Py_INCREF(Py_None
);
10489 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
10492 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
10495 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10496 PyObject
* _resultobj
;
10497 PyObject
* _result
;
10501 PyObject
* _argo0
= 0;
10502 PyObject
* _obj1
= 0;
10503 PyObject
* _obj2
= 0;
10504 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
10507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
10510 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10511 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10512 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
10523 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10524 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
10526 wxPyEndAllowThreads(__tstate
);
10527 if (PyErr_Occurred()) return NULL
;
10529 _resultobj
= _result
;
10534 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
10535 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
10536 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
10541 int x1
, y1
, x2
, y2
;
10544 if (!PySequence_Check(pyLines
)) {
10547 if (!PySequence_Check(pyPens
)) {
10550 numObjs
= PySequence_Length(pyLines
);
10551 numPens
= PySequence_Length(pyPens
);
10553 for (i
= 0; i
< numObjs
; i
++) {
10557 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
10560 obj
= PySequence_GetItem(pyPens
, i
);
10562 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
10568 self
->SetPen(*pen
);
10573 // Get the line coordinants
10575 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
10578 obj
= PySequence_GetItem(pyLines
, i
);
10580 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
10586 // Now draw the line
10587 self
->DrawLine(x1
, y1
, x2
, y2
);
10593 Py_INCREF(Py_None
);
10597 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
10600 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
10603 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10604 PyObject
* _resultobj
;
10605 PyObject
* _result
;
10609 PyObject
* _argo0
= 0;
10610 PyObject
* _obj1
= 0;
10611 PyObject
* _obj2
= 0;
10612 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
10615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
10618 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10619 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
10620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
10631 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10632 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
10634 wxPyEndAllowThreads(__tstate
);
10635 if (PyErr_Occurred()) return NULL
;
10637 _resultobj
= _result
;
10642 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
10645 src
= (wxMemoryDC
*) ptr
;
10646 dest
= (wxDC
*) src
;
10647 return (void *) dest
;
10650 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
10653 src
= (wxMemoryDC
*) ptr
;
10654 dest
= (wxObject
*) src
;
10655 return (void *) dest
;
10658 #define new_wxMemoryDC() (new wxMemoryDC())
10659 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10660 PyObject
* _resultobj
;
10661 wxMemoryDC
* _result
;
10662 char *_kwnames
[] = { NULL
};
10666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
10669 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10670 _result
= (wxMemoryDC
*)new_wxMemoryDC();
10672 wxPyEndAllowThreads(__tstate
);
10673 if (PyErr_Occurred()) return NULL
;
10675 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
10676 _resultobj
= Py_BuildValue("s",_ptemp
);
10678 Py_INCREF(Py_None
);
10679 _resultobj
= Py_None
;
10684 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
10685 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10686 PyObject
* _resultobj
;
10687 wxMemoryDC
* _arg0
;
10689 PyObject
* _argo0
= 0;
10690 PyObject
* _argo1
= 0;
10691 char *_kwnames
[] = { "self","bitmap", NULL
};
10694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
10697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
10699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
10704 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10705 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
10711 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10712 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
10714 wxPyEndAllowThreads(__tstate
);
10715 if (PyErr_Occurred()) return NULL
;
10716 } Py_INCREF(Py_None
);
10717 _resultobj
= Py_None
;
10721 static void *SwigwxScreenDCTowxDC(void *ptr
) {
10724 src
= (wxScreenDC
*) ptr
;
10725 dest
= (wxDC
*) src
;
10726 return (void *) dest
;
10729 static void *SwigwxScreenDCTowxObject(void *ptr
) {
10732 src
= (wxScreenDC
*) ptr
;
10733 dest
= (wxObject
*) src
;
10734 return (void *) dest
;
10737 #define new_wxScreenDC() (new wxScreenDC())
10738 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10739 PyObject
* _resultobj
;
10740 wxScreenDC
* _result
;
10741 char *_kwnames
[] = { NULL
};
10745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
10748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10749 _result
= (wxScreenDC
*)new_wxScreenDC();
10751 wxPyEndAllowThreads(__tstate
);
10752 if (PyErr_Occurred()) return NULL
;
10754 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
10755 _resultobj
= Py_BuildValue("s",_ptemp
);
10757 Py_INCREF(Py_None
);
10758 _resultobj
= Py_None
;
10763 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10764 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10765 PyObject
* _resultobj
;
10767 wxScreenDC
* _arg0
;
10769 PyObject
* _argo0
= 0;
10770 PyObject
* _argo1
= 0;
10771 char *_kwnames
[] = { "self","window", NULL
};
10774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
10777 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10778 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
10779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
10784 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10785 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
10786 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
10791 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10792 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
10794 wxPyEndAllowThreads(__tstate
);
10795 if (PyErr_Occurred()) return NULL
;
10796 } _resultobj
= Py_BuildValue("i",_result
);
10800 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10801 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10802 PyObject
* _resultobj
;
10804 wxScreenDC
* _arg0
;
10805 wxRect
* _arg1
= (wxRect
*) NULL
;
10806 PyObject
* _argo0
= 0;
10808 PyObject
* _obj1
= 0;
10809 char *_kwnames
[] = { "self","rect", NULL
};
10812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
10815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
10817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
10824 if (! wxRect_helper(_obj1
, &_arg1
))
10828 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10829 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
10831 wxPyEndAllowThreads(__tstate
);
10832 if (PyErr_Occurred()) return NULL
;
10833 } _resultobj
= Py_BuildValue("i",_result
);
10837 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
10838 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10839 PyObject
* _resultobj
;
10841 wxScreenDC
* _arg0
;
10842 PyObject
* _argo0
= 0;
10843 char *_kwnames
[] = { "self", NULL
};
10846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
10849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
10851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
10856 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10857 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
10859 wxPyEndAllowThreads(__tstate
);
10860 if (PyErr_Occurred()) return NULL
;
10861 } _resultobj
= Py_BuildValue("i",_result
);
10865 static void *SwigwxClientDCTowxDC(void *ptr
) {
10868 src
= (wxClientDC
*) ptr
;
10869 dest
= (wxDC
*) src
;
10870 return (void *) dest
;
10873 static void *SwigwxClientDCTowxObject(void *ptr
) {
10876 src
= (wxClientDC
*) ptr
;
10877 dest
= (wxObject
*) src
;
10878 return (void *) dest
;
10881 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
10882 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10883 PyObject
* _resultobj
;
10884 wxClientDC
* _result
;
10886 PyObject
* _argo0
= 0;
10887 char *_kwnames
[] = { "win", NULL
};
10891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
10894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
10901 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10902 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
10904 wxPyEndAllowThreads(__tstate
);
10905 if (PyErr_Occurred()) return NULL
;
10907 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
10908 _resultobj
= Py_BuildValue("s",_ptemp
);
10910 Py_INCREF(Py_None
);
10911 _resultobj
= Py_None
;
10916 static void *SwigwxPaintDCTowxDC(void *ptr
) {
10919 src
= (wxPaintDC
*) ptr
;
10920 dest
= (wxDC
*) src
;
10921 return (void *) dest
;
10924 static void *SwigwxPaintDCTowxObject(void *ptr
) {
10927 src
= (wxPaintDC
*) ptr
;
10928 dest
= (wxObject
*) src
;
10929 return (void *) dest
;
10932 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
10933 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10934 PyObject
* _resultobj
;
10935 wxPaintDC
* _result
;
10937 PyObject
* _argo0
= 0;
10938 char *_kwnames
[] = { "win", NULL
};
10942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
10945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
10952 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10953 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
10955 wxPyEndAllowThreads(__tstate
);
10956 if (PyErr_Occurred()) return NULL
;
10958 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
10959 _resultobj
= Py_BuildValue("s",_ptemp
);
10961 Py_INCREF(Py_None
);
10962 _resultobj
= Py_None
;
10967 static void *SwigwxWindowDCTowxDC(void *ptr
) {
10970 src
= (wxWindowDC
*) ptr
;
10971 dest
= (wxDC
*) src
;
10972 return (void *) dest
;
10975 static void *SwigwxWindowDCTowxObject(void *ptr
) {
10978 src
= (wxWindowDC
*) ptr
;
10979 dest
= (wxObject
*) src
;
10980 return (void *) dest
;
10983 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
10984 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10985 PyObject
* _resultobj
;
10986 wxWindowDC
* _result
;
10988 PyObject
* _argo0
= 0;
10989 char *_kwnames
[] = { "win", NULL
};
10993 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
10996 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10997 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10998 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
11003 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11004 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
11006 wxPyEndAllowThreads(__tstate
);
11007 if (PyErr_Occurred()) return NULL
;
11009 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
11010 _resultobj
= Py_BuildValue("s",_ptemp
);
11012 Py_INCREF(Py_None
);
11013 _resultobj
= Py_None
;
11018 static void *SwigwxMetaFileTowxObject(void *ptr
) {
11021 src
= (wxMetaFile
*) ptr
;
11022 dest
= (wxObject
*) src
;
11023 return (void *) dest
;
11026 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
11027 static PyObject
*_wrap_new_wxMetaFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11028 PyObject
* _resultobj
;
11029 wxMetaFile
* _result
;
11030 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
11031 PyObject
* _obj0
= 0;
11032 char *_kwnames
[] = { "filename", NULL
};
11036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFile",_kwnames
,&_obj0
))
11040 #if PYTHON_API_VERSION >= 1009
11041 char* tmpPtr
; int tmpSize
;
11042 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
11043 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11046 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
11048 _arg0
= new wxString(tmpPtr
, tmpSize
);
11050 if (!PyString_Check(_obj0
)) {
11051 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11054 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
11058 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11059 _result
= (wxMetaFile
*)new_wxMetaFile(*_arg0
);
11061 wxPyEndAllowThreads(__tstate
);
11062 if (PyErr_Occurred()) return NULL
;
11064 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
11065 _resultobj
= Py_BuildValue("s",_ptemp
);
11067 Py_INCREF(Py_None
);
11068 _resultobj
= Py_None
;
11077 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
11078 static PyObject
*_wrap_delete_wxMetaFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11079 PyObject
* _resultobj
;
11080 wxMetaFile
* _arg0
;
11081 PyObject
* _argo0
= 0;
11082 char *_kwnames
[] = { "self", NULL
};
11085 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxMetaFile",_kwnames
,&_argo0
))
11088 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11089 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11090 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
11095 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11096 delete_wxMetaFile(_arg0
);
11098 wxPyEndAllowThreads(__tstate
);
11099 if (PyErr_Occurred()) return NULL
;
11100 } Py_INCREF(Py_None
);
11101 _resultobj
= Py_None
;
11105 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
11106 static PyObject
*_wrap_wxMetaFile_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11107 PyObject
* _resultobj
;
11109 wxMetaFile
* _arg0
;
11110 PyObject
* _argo0
= 0;
11111 char *_kwnames
[] = { "self", NULL
};
11114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_Ok",_kwnames
,&_argo0
))
11117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
11124 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11125 _result
= (bool )wxMetaFile_Ok(_arg0
);
11127 wxPyEndAllowThreads(__tstate
);
11128 if (PyErr_Occurred()) return NULL
;
11129 } _resultobj
= Py_BuildValue("i",_result
);
11133 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
11134 static PyObject
*_wrap_wxMetaFile_SetClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11135 PyObject
* _resultobj
;
11137 wxMetaFile
* _arg0
;
11138 int _arg1
= (int ) 0;
11139 int _arg2
= (int ) 0;
11140 PyObject
* _argo0
= 0;
11141 char *_kwnames
[] = { "self","width","height", NULL
};
11144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:wxMetaFile_SetClipboard",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
11147 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11148 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
11154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11155 _result
= (bool )wxMetaFile_SetClipboard(_arg0
,_arg1
,_arg2
);
11157 wxPyEndAllowThreads(__tstate
);
11158 if (PyErr_Occurred()) return NULL
;
11159 } _resultobj
= Py_BuildValue("i",_result
);
11163 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
11164 static PyObject
*_wrap_wxMetaFile_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11165 PyObject
* _resultobj
;
11167 wxMetaFile
* _arg0
;
11168 PyObject
* _argo0
= 0;
11169 char *_kwnames
[] = { "self", NULL
};
11173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetSize",_kwnames
,&_argo0
))
11176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
11183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11184 _result
= new wxSize (wxMetaFile_GetSize(_arg0
));
11186 wxPyEndAllowThreads(__tstate
);
11187 if (PyErr_Occurred()) return NULL
;
11188 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
11189 _resultobj
= Py_BuildValue("s",_ptemp
);
11193 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
11194 static PyObject
*_wrap_wxMetaFile_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11195 PyObject
* _resultobj
;
11197 wxMetaFile
* _arg0
;
11198 PyObject
* _argo0
= 0;
11199 char *_kwnames
[] = { "self", NULL
};
11202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetWidth",_kwnames
,&_argo0
))
11205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
11212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11213 _result
= (int )wxMetaFile_GetWidth(_arg0
);
11215 wxPyEndAllowThreads(__tstate
);
11216 if (PyErr_Occurred()) return NULL
;
11217 } _resultobj
= Py_BuildValue("i",_result
);
11221 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
11222 static PyObject
*_wrap_wxMetaFile_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11223 PyObject
* _resultobj
;
11225 wxMetaFile
* _arg0
;
11226 PyObject
* _argo0
= 0;
11227 char *_kwnames
[] = { "self", NULL
};
11230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetHeight",_kwnames
,&_argo0
))
11233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
11240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11241 _result
= (int )wxMetaFile_GetHeight(_arg0
);
11243 wxPyEndAllowThreads(__tstate
);
11244 if (PyErr_Occurred()) return NULL
;
11245 } _resultobj
= Py_BuildValue("i",_result
);
11249 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
11250 static PyObject
*_wrap_wxMetaFile_GetFileName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11251 PyObject
* _resultobj
;
11252 wxString
* _result
;
11253 wxMetaFile
* _arg0
;
11254 PyObject
* _argo0
= 0;
11255 char *_kwnames
[] = { "self", NULL
};
11258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetFileName",_kwnames
,&_argo0
))
11261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
11263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
11268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11269 const wxString
& _result_ref
= wxMetaFile_GetFileName(_arg0
);
11270 _result
= (wxString
*) &_result_ref
;
11272 wxPyEndAllowThreads(__tstate
);
11273 if (PyErr_Occurred()) return NULL
;
11275 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
11280 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
11283 src
= (wxMetaFileDC
*) ptr
;
11284 dest
= (wxDC
*) src
;
11285 return (void *) dest
;
11288 static void *SwigwxMetaFileDCTowxObject(void *ptr
) {
11291 src
= (wxMetaFileDC
*) ptr
;
11292 dest
= (wxObject
*) src
;
11293 return (void *) dest
;
11296 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11297 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11298 PyObject
* _resultobj
;
11299 wxMetaFileDC
* _result
;
11300 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
11301 int _arg1
= (int ) 0;
11302 int _arg2
= (int ) 0;
11303 wxString
* _arg3
= (wxString
*) &wxEmptyString
;
11304 PyObject
* _obj0
= 0;
11305 PyObject
* _obj3
= 0;
11306 char *_kwnames
[] = { "filename","width","height","description", NULL
};
11310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiiO:new_wxMetaFileDC",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_obj3
))
11314 #if PYTHON_API_VERSION >= 1009
11315 char* tmpPtr
; int tmpSize
;
11316 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
11317 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11320 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
11322 _arg0
= new wxString(tmpPtr
, tmpSize
);
11324 if (!PyString_Check(_obj0
)) {
11325 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11328 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
11333 #if PYTHON_API_VERSION >= 1009
11334 char* tmpPtr
; int tmpSize
;
11335 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
11336 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11339 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
11341 _arg3
= new wxString(tmpPtr
, tmpSize
);
11343 if (!PyString_Check(_obj3
)) {
11344 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
11347 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
11351 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11352 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
,_arg1
,_arg2
,*_arg3
);
11354 wxPyEndAllowThreads(__tstate
);
11355 if (PyErr_Occurred()) return NULL
;
11357 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
11358 _resultobj
= Py_BuildValue("s",_ptemp
);
11360 Py_INCREF(Py_None
);
11361 _resultobj
= Py_None
;
11374 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
11375 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11376 PyObject
* _resultobj
;
11377 wxMetaFile
* _result
;
11378 wxMetaFileDC
* _arg0
;
11379 PyObject
* _argo0
= 0;
11380 char *_kwnames
[] = { "self", NULL
};
11384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
11387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
11389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
11394 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11395 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
11397 wxPyEndAllowThreads(__tstate
);
11398 if (PyErr_Occurred()) return NULL
;
11400 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
11401 _resultobj
= Py_BuildValue("s",_ptemp
);
11403 Py_INCREF(Py_None
);
11404 _resultobj
= Py_None
;
11409 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
11412 src
= (wxPalette
*) ptr
;
11413 dest
= (wxGDIObject
*) src
;
11414 return (void *) dest
;
11417 static void *SwigwxPaletteTowxObject(void *ptr
) {
11420 src
= (wxPalette
*) ptr
;
11421 dest
= (wxObject
*) src
;
11422 return (void *) dest
;
11425 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11426 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11427 PyObject
* _resultobj
;
11428 wxPalette
* _result
;
11433 PyObject
* _obj1
= 0;
11434 PyObject
* _obj2
= 0;
11435 PyObject
* _obj3
= 0;
11436 char *_kwnames
[] = { "choices","choices","choices", NULL
};
11440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
11443 _arg1
= byte_LIST_helper(_obj1
);
11444 if (_arg1
== NULL
) {
11449 _arg2
= byte_LIST_helper(_obj2
);
11450 if (_arg2
== NULL
) {
11456 _arg3
= byte_LIST_helper(_obj3
);
11457 if (_arg3
== NULL
) {
11463 _arg0
= PyList_Size(_obj1
);
11470 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11471 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
11473 wxPyEndAllowThreads(__tstate
);
11474 if (PyErr_Occurred()) return NULL
;
11476 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
11477 _resultobj
= Py_BuildValue("s",_ptemp
);
11479 Py_INCREF(Py_None
);
11480 _resultobj
= Py_None
;
11494 #define delete_wxPalette(_swigobj) (delete _swigobj)
11495 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11496 PyObject
* _resultobj
;
11498 PyObject
* _argo0
= 0;
11499 char *_kwnames
[] = { "self", NULL
};
11502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
11505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
11507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
11512 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11513 delete_wxPalette(_arg0
);
11515 wxPyEndAllowThreads(__tstate
);
11516 if (PyErr_Occurred()) return NULL
;
11517 } Py_INCREF(Py_None
);
11518 _resultobj
= Py_None
;
11522 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
11523 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11524 PyObject
* _resultobj
;
11530 PyObject
* _argo0
= 0;
11531 char *_kwnames
[] = { "self","red","green","blue", NULL
};
11534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
11537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
11539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
11544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11545 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
11547 wxPyEndAllowThreads(__tstate
);
11548 if (PyErr_Occurred()) return NULL
;
11549 } _resultobj
= Py_BuildValue("i",_result
);
11553 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11554 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11555 PyObject
* _resultobj
;
11565 PyObject
* _argo0
= 0;
11566 char *_kwnames
[] = { "self","pixel", NULL
};
11570 _arg2
= (byte
*)&temp
;
11573 _arg3
= (byte
*)&temp0
;
11576 _arg4
= (byte
*)&temp1
;
11578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
))
11581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
11583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
11588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11589 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11591 wxPyEndAllowThreads(__tstate
);
11592 if (PyErr_Occurred()) return NULL
;
11593 } _resultobj
= Py_BuildValue("i",_result
);
11596 o
= PyInt_FromLong((long) (*_arg2
));
11597 _resultobj
= t_output_helper(_resultobj
, o
);
11601 o
= PyInt_FromLong((long) (*_arg3
));
11602 _resultobj
= t_output_helper(_resultobj
, o
);
11606 o
= PyInt_FromLong((long) (*_arg4
));
11607 _resultobj
= t_output_helper(_resultobj
, o
);
11612 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
11613 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11614 PyObject
* _resultobj
;
11617 PyObject
* _argo0
= 0;
11618 char *_kwnames
[] = { "self", NULL
};
11621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
11624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
11626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
11631 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11632 _result
= (bool )wxPalette_Ok(_arg0
);
11634 wxPyEndAllowThreads(__tstate
);
11635 if (PyErr_Occurred()) return NULL
;
11636 } _resultobj
= Py_BuildValue("i",_result
);
11640 static void *SwigwxImageListTowxObject(void *ptr
) {
11643 src
= (wxImageList
*) ptr
;
11644 dest
= (wxObject
*) src
;
11645 return (void *) dest
;
11648 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11649 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11650 PyObject
* _resultobj
;
11651 wxImageList
* _result
;
11654 int _arg2
= (int ) TRUE
;
11655 int _arg3
= (int ) 1;
11656 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
11660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
11663 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11664 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
11666 wxPyEndAllowThreads(__tstate
);
11667 if (PyErr_Occurred()) return NULL
;
11669 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
11670 _resultobj
= Py_BuildValue("s",_ptemp
);
11672 Py_INCREF(Py_None
);
11673 _resultobj
= Py_None
;
11678 #define delete_wxImageList(_swigobj) (delete _swigobj)
11679 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11680 PyObject
* _resultobj
;
11681 wxImageList
* _arg0
;
11682 PyObject
* _argo0
= 0;
11683 char *_kwnames
[] = { "self", NULL
};
11686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
11689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
11696 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11697 delete_wxImageList(_arg0
);
11699 wxPyEndAllowThreads(__tstate
);
11700 if (PyErr_Occurred()) return NULL
;
11701 } Py_INCREF(Py_None
);
11702 _resultobj
= Py_None
;
11706 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11707 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11708 PyObject
* _resultobj
;
11710 wxImageList
* _arg0
;
11712 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
11713 PyObject
* _argo0
= 0;
11714 PyObject
* _argo1
= 0;
11715 PyObject
* _argo2
= 0;
11716 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
11719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
11722 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11723 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
11729 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11730 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
11731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
11736 if (_argo2
== Py_None
) { _arg2
= NULL
; }
11737 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
11738 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
11743 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11744 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
11746 wxPyEndAllowThreads(__tstate
);
11747 if (PyErr_Occurred()) return NULL
;
11748 } _resultobj
= Py_BuildValue("i",_result
);
11752 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11753 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11754 PyObject
* _resultobj
;
11756 wxImageList
* _arg0
;
11759 PyObject
* _argo0
= 0;
11760 PyObject
* _argo1
= 0;
11762 PyObject
* _obj2
= 0;
11763 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
11766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
11769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
11776 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11777 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
11778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
11784 if (! wxColour_helper(_obj2
, &_arg2
))
11788 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11789 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
11791 wxPyEndAllowThreads(__tstate
);
11792 if (PyErr_Occurred()) return NULL
;
11793 } _resultobj
= Py_BuildValue("i",_result
);
11797 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
11798 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11799 PyObject
* _resultobj
;
11801 wxImageList
* _arg0
;
11803 PyObject
* _argo0
= 0;
11804 PyObject
* _argo1
= 0;
11805 char *_kwnames
[] = { "self","icon", NULL
};
11808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
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_AddIcon. Expected _wxImageList_p.");
11818 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11819 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
11820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
11825 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11826 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
11828 wxPyEndAllowThreads(__tstate
);
11829 if (PyErr_Occurred()) return NULL
;
11830 } _resultobj
= Py_BuildValue("i",_result
);
11834 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
11835 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11836 PyObject
* _resultobj
;
11838 wxImageList
* _arg0
;
11841 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
11842 PyObject
* _argo0
= 0;
11843 PyObject
* _argo2
= 0;
11844 PyObject
* _argo3
= 0;
11845 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
11848 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
11851 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11852 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11853 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
11858 if (_argo2
== Py_None
) { _arg2
= NULL
; }
11859 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
11860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
11865 if (_argo3
== Py_None
) { _arg3
= NULL
; }
11866 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
11867 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
11872 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11873 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
11875 wxPyEndAllowThreads(__tstate
);
11876 if (PyErr_Occurred()) return NULL
;
11877 } _resultobj
= Py_BuildValue("i",_result
);
11881 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
11882 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11883 PyObject
* _resultobj
;
11885 wxImageList
* _arg0
;
11890 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
11891 bool _arg6
= (bool ) FALSE
;
11892 PyObject
* _argo0
= 0;
11893 PyObject
* _argo2
= 0;
11894 int tempbool6
= (int) FALSE
;
11895 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
11898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
11901 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11902 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11903 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
11908 if (_argo2
== Py_None
) { _arg2
= NULL
; }
11909 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
11910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
11914 _arg6
= (bool ) tempbool6
;
11916 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11917 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
11919 wxPyEndAllowThreads(__tstate
);
11920 if (PyErr_Occurred()) return NULL
;
11921 } _resultobj
= Py_BuildValue("i",_result
);
11925 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
11926 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11927 PyObject
* _resultobj
;
11929 wxImageList
* _arg0
;
11930 PyObject
* _argo0
= 0;
11931 char *_kwnames
[] = { "self", NULL
};
11934 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
11937 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11938 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11939 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
11944 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11945 _result
= (int )wxImageList_GetImageCount(_arg0
);
11947 wxPyEndAllowThreads(__tstate
);
11948 if (PyErr_Occurred()) return NULL
;
11949 } _resultobj
= Py_BuildValue("i",_result
);
11953 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
11954 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11955 PyObject
* _resultobj
;
11957 wxImageList
* _arg0
;
11959 PyObject
* _argo0
= 0;
11960 char *_kwnames
[] = { "self","index", NULL
};
11963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
11966 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11967 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11968 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
11973 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11974 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
11976 wxPyEndAllowThreads(__tstate
);
11977 if (PyErr_Occurred()) return NULL
;
11978 } _resultobj
= Py_BuildValue("i",_result
);
11982 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
11983 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11984 PyObject
* _resultobj
;
11986 wxImageList
* _arg0
;
11987 PyObject
* _argo0
= 0;
11988 char *_kwnames
[] = { "self", NULL
};
11991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
11994 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11995 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
12001 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12002 _result
= (bool )wxImageList_RemoveAll(_arg0
);
12004 wxPyEndAllowThreads(__tstate
);
12005 if (PyErr_Occurred()) return NULL
;
12006 } _resultobj
= Py_BuildValue("i",_result
);
12010 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
12011 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12012 PyObject
* _resultobj
;
12013 wxImageList
* _arg0
;
12019 PyObject
* _argo0
= 0;
12020 char *_kwnames
[] = { "self","index", NULL
};
12029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
12032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
12034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
12039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12040 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
12042 wxPyEndAllowThreads(__tstate
);
12043 if (PyErr_Occurred()) return NULL
;
12044 } Py_INCREF(Py_None
);
12045 _resultobj
= Py_None
;
12048 o
= PyInt_FromLong((long) (*_arg2
));
12049 _resultobj
= t_output_helper(_resultobj
, o
);
12053 o
= PyInt_FromLong((long) (*_arg3
));
12054 _resultobj
= t_output_helper(_resultobj
, o
);
12059 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
12062 src
= (wxRegion
*) ptr
;
12063 dest
= (wxGDIObject
*) src
;
12064 return (void *) dest
;
12067 static void *SwigwxRegionTowxObject(void *ptr
) {
12070 src
= (wxRegion
*) ptr
;
12071 dest
= (wxObject
*) src
;
12072 return (void *) dest
;
12075 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12076 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12077 PyObject
* _resultobj
;
12078 wxRegion
* _result
;
12079 long _arg0
= (long ) 0;
12080 long _arg1
= (long ) 0;
12081 long _arg2
= (long ) 0;
12082 long _arg3
= (long ) 0;
12083 char *_kwnames
[] = { "x","y","width","height", NULL
};
12087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
12090 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12091 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
12093 wxPyEndAllowThreads(__tstate
);
12094 if (PyErr_Occurred()) return NULL
;
12096 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
12097 _resultobj
= Py_BuildValue("s",_ptemp
);
12099 Py_INCREF(Py_None
);
12100 _resultobj
= Py_None
;
12105 #define delete_wxRegion(_swigobj) (delete _swigobj)
12106 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12107 PyObject
* _resultobj
;
12109 PyObject
* _argo0
= 0;
12110 char *_kwnames
[] = { "self", NULL
};
12113 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
12116 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12117 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12118 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
12123 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12124 delete_wxRegion(_arg0
);
12126 wxPyEndAllowThreads(__tstate
);
12127 if (PyErr_Occurred()) return NULL
;
12128 } Py_INCREF(Py_None
);
12129 _resultobj
= Py_None
;
12133 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
12134 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12135 PyObject
* _resultobj
;
12137 PyObject
* _argo0
= 0;
12138 char *_kwnames
[] = { "self", NULL
};
12141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
12144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
12151 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12152 wxRegion_Clear(_arg0
);
12154 wxPyEndAllowThreads(__tstate
);
12155 if (PyErr_Occurred()) return NULL
;
12156 } Py_INCREF(Py_None
);
12157 _resultobj
= Py_None
;
12161 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
12162 static PyObject
*_wrap_wxRegion_Offset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12163 PyObject
* _resultobj
;
12168 PyObject
* _argo0
= 0;
12169 char *_kwnames
[] = { "self","x","y", NULL
};
12172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxRegion_Offset",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
12175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
12182 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12183 _result
= (bool )wxRegion_Offset(_arg0
,_arg1
,_arg2
);
12185 wxPyEndAllowThreads(__tstate
);
12186 if (PyErr_Occurred()) return NULL
;
12187 } _resultobj
= Py_BuildValue("i",_result
);
12191 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
12192 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12193 PyObject
* _resultobj
;
12194 wxRegionContain _result
;
12198 PyObject
* _argo0
= 0;
12199 char *_kwnames
[] = { "self","x","y", NULL
};
12202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
12205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
12212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12213 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
12215 wxPyEndAllowThreads(__tstate
);
12216 if (PyErr_Occurred()) return NULL
;
12217 } _resultobj
= Py_BuildValue("i",_result
);
12221 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
12222 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12223 PyObject
* _resultobj
;
12224 wxRegionContain _result
;
12227 PyObject
* _argo0
= 0;
12229 PyObject
* _obj1
= 0;
12230 char *_kwnames
[] = { "self","pt", NULL
};
12233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
12236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
12244 if (! wxPoint_helper(_obj1
, &_arg1
))
12248 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12249 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
12251 wxPyEndAllowThreads(__tstate
);
12252 if (PyErr_Occurred()) return NULL
;
12253 } _resultobj
= Py_BuildValue("i",_result
);
12257 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
12258 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12259 PyObject
* _resultobj
;
12260 wxRegionContain _result
;
12263 PyObject
* _argo0
= 0;
12265 PyObject
* _obj1
= 0;
12266 char *_kwnames
[] = { "self","rect", NULL
};
12269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
12272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
12280 if (! wxRect_helper(_obj1
, &_arg1
))
12284 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12285 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
12287 wxPyEndAllowThreads(__tstate
);
12288 if (PyErr_Occurred()) return NULL
;
12289 } _resultobj
= Py_BuildValue("i",_result
);
12293 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12294 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12295 PyObject
* _resultobj
;
12296 wxRegionContain _result
;
12302 PyObject
* _argo0
= 0;
12303 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
12306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12309 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12310 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
12316 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12317 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12319 wxPyEndAllowThreads(__tstate
);
12320 if (PyErr_Occurred()) return NULL
;
12321 } _resultobj
= Py_BuildValue("i",_result
);
12325 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
12326 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12327 PyObject
* _resultobj
;
12330 PyObject
* _argo0
= 0;
12331 char *_kwnames
[] = { "self", NULL
};
12335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
12338 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12339 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
12345 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12346 _result
= new wxRect (wxRegion_GetBox(_arg0
));
12348 wxPyEndAllowThreads(__tstate
);
12349 if (PyErr_Occurred()) return NULL
;
12350 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
12351 _resultobj
= Py_BuildValue("s",_ptemp
);
12355 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12356 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12357 PyObject
* _resultobj
;
12364 PyObject
* _argo0
= 0;
12365 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
12368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12371 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12372 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
12378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12379 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12381 wxPyEndAllowThreads(__tstate
);
12382 if (PyErr_Occurred()) return NULL
;
12383 } _resultobj
= Py_BuildValue("i",_result
);
12387 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12388 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12389 PyObject
* _resultobj
;
12393 PyObject
* _argo0
= 0;
12395 PyObject
* _obj1
= 0;
12396 char *_kwnames
[] = { "self","rect", NULL
};
12399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
12402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
12410 if (! wxRect_helper(_obj1
, &_arg1
))
12414 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12415 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
12417 wxPyEndAllowThreads(__tstate
);
12418 if (PyErr_Occurred()) return NULL
;
12419 } _resultobj
= Py_BuildValue("i",_result
);
12423 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12424 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12425 PyObject
* _resultobj
;
12429 PyObject
* _argo0
= 0;
12430 PyObject
* _argo1
= 0;
12431 char *_kwnames
[] = { "self","region", NULL
};
12434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
12437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12444 if (_argo1
== Py_None
) { _arg1
= NULL
; }
12445 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
12446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12451 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12452 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
12454 wxPyEndAllowThreads(__tstate
);
12455 if (PyErr_Occurred()) return NULL
;
12456 } _resultobj
= Py_BuildValue("i",_result
);
12460 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
12461 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12462 PyObject
* _resultobj
;
12465 PyObject
* _argo0
= 0;
12466 char *_kwnames
[] = { "self", NULL
};
12469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
12472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
12479 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12480 _result
= (bool )wxRegion_IsEmpty(_arg0
);
12482 wxPyEndAllowThreads(__tstate
);
12483 if (PyErr_Occurred()) return NULL
;
12484 } _resultobj
= Py_BuildValue("i",_result
);
12488 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12489 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12490 PyObject
* _resultobj
;
12497 PyObject
* _argo0
= 0;
12498 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
12501 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12504 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12505 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12506 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
12511 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12512 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12514 wxPyEndAllowThreads(__tstate
);
12515 if (PyErr_Occurred()) return NULL
;
12516 } _resultobj
= Py_BuildValue("i",_result
);
12520 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12521 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12522 PyObject
* _resultobj
;
12526 PyObject
* _argo0
= 0;
12528 PyObject
* _obj1
= 0;
12529 char *_kwnames
[] = { "self","rect", NULL
};
12532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
12535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
12543 if (! wxRect_helper(_obj1
, &_arg1
))
12547 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12548 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
12550 wxPyEndAllowThreads(__tstate
);
12551 if (PyErr_Occurred()) return NULL
;
12552 } _resultobj
= Py_BuildValue("i",_result
);
12556 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12557 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12558 PyObject
* _resultobj
;
12562 PyObject
* _argo0
= 0;
12563 PyObject
* _argo1
= 0;
12564 char *_kwnames
[] = { "self","region", NULL
};
12567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
12570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12577 if (_argo1
== Py_None
) { _arg1
= NULL
; }
12578 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
12579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12584 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12585 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
12587 wxPyEndAllowThreads(__tstate
);
12588 if (PyErr_Occurred()) return NULL
;
12589 } _resultobj
= Py_BuildValue("i",_result
);
12593 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12594 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12595 PyObject
* _resultobj
;
12602 PyObject
* _argo0
= 0;
12603 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
12606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
12616 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12617 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12619 wxPyEndAllowThreads(__tstate
);
12620 if (PyErr_Occurred()) return NULL
;
12621 } _resultobj
= Py_BuildValue("i",_result
);
12625 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12626 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12627 PyObject
* _resultobj
;
12631 PyObject
* _argo0
= 0;
12633 PyObject
* _obj1
= 0;
12634 char *_kwnames
[] = { "self","rect", NULL
};
12637 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
12640 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12641 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
12648 if (! wxRect_helper(_obj1
, &_arg1
))
12652 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12653 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
12655 wxPyEndAllowThreads(__tstate
);
12656 if (PyErr_Occurred()) return NULL
;
12657 } _resultobj
= Py_BuildValue("i",_result
);
12661 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12662 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12663 PyObject
* _resultobj
;
12667 PyObject
* _argo0
= 0;
12668 PyObject
* _argo1
= 0;
12669 char *_kwnames
[] = { "self","region", NULL
};
12672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
12675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12682 if (_argo1
== Py_None
) { _arg1
= NULL
; }
12683 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
12684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12689 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12690 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
12692 wxPyEndAllowThreads(__tstate
);
12693 if (PyErr_Occurred()) return NULL
;
12694 } _resultobj
= Py_BuildValue("i",_result
);
12698 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12699 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12700 PyObject
* _resultobj
;
12707 PyObject
* _argo0
= 0;
12708 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
12711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
12714 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12715 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
12721 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12722 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
12724 wxPyEndAllowThreads(__tstate
);
12725 if (PyErr_Occurred()) return NULL
;
12726 } _resultobj
= Py_BuildValue("i",_result
);
12730 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12731 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12732 PyObject
* _resultobj
;
12736 PyObject
* _argo0
= 0;
12738 PyObject
* _obj1
= 0;
12739 char *_kwnames
[] = { "self","rect", NULL
};
12742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
12745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
12753 if (! wxRect_helper(_obj1
, &_arg1
))
12757 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12758 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
12760 wxPyEndAllowThreads(__tstate
);
12761 if (PyErr_Occurred()) return NULL
;
12762 } _resultobj
= Py_BuildValue("i",_result
);
12766 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12767 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12768 PyObject
* _resultobj
;
12772 PyObject
* _argo0
= 0;
12773 PyObject
* _argo1
= 0;
12774 char *_kwnames
[] = { "self","region", NULL
};
12777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
12780 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12781 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
12787 if (_argo1
== Py_None
) { _arg1
= NULL
; }
12788 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
12789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
12794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12795 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
12797 wxPyEndAllowThreads(__tstate
);
12798 if (PyErr_Occurred()) return NULL
;
12799 } _resultobj
= Py_BuildValue("i",_result
);
12803 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
12804 wxRegionIterator
*src
;
12806 src
= (wxRegionIterator
*) ptr
;
12807 dest
= (wxObject
*) src
;
12808 return (void *) dest
;
12811 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
12812 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12813 PyObject
* _resultobj
;
12814 wxRegionIterator
* _result
;
12816 PyObject
* _argo0
= 0;
12817 char *_kwnames
[] = { "region", NULL
};
12821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
12824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
12826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
12831 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12832 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
12834 wxPyEndAllowThreads(__tstate
);
12835 if (PyErr_Occurred()) return NULL
;
12837 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
12838 _resultobj
= Py_BuildValue("s",_ptemp
);
12840 Py_INCREF(Py_None
);
12841 _resultobj
= Py_None
;
12846 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
12847 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12848 PyObject
* _resultobj
;
12849 wxRegionIterator
* _arg0
;
12850 PyObject
* _argo0
= 0;
12851 char *_kwnames
[] = { "self", NULL
};
12854 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
12857 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12858 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12859 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
12864 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12865 delete_wxRegionIterator(_arg0
);
12867 wxPyEndAllowThreads(__tstate
);
12868 if (PyErr_Occurred()) return NULL
;
12869 } Py_INCREF(Py_None
);
12870 _resultobj
= Py_None
;
12874 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
12875 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12876 PyObject
* _resultobj
;
12878 wxRegionIterator
* _arg0
;
12879 PyObject
* _argo0
= 0;
12880 char *_kwnames
[] = { "self", NULL
};
12883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
12886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
12893 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12894 _result
= (long )wxRegionIterator_GetX(_arg0
);
12896 wxPyEndAllowThreads(__tstate
);
12897 if (PyErr_Occurred()) return NULL
;
12898 } _resultobj
= Py_BuildValue("l",_result
);
12902 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
12903 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12904 PyObject
* _resultobj
;
12906 wxRegionIterator
* _arg0
;
12907 PyObject
* _argo0
= 0;
12908 char *_kwnames
[] = { "self", NULL
};
12911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
12914 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12915 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12916 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
12921 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12922 _result
= (long )wxRegionIterator_GetY(_arg0
);
12924 wxPyEndAllowThreads(__tstate
);
12925 if (PyErr_Occurred()) return NULL
;
12926 } _resultobj
= Py_BuildValue("l",_result
);
12930 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
12931 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12932 PyObject
* _resultobj
;
12934 wxRegionIterator
* _arg0
;
12935 PyObject
* _argo0
= 0;
12936 char *_kwnames
[] = { "self", NULL
};
12939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
12942 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12943 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12944 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
12949 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12950 _result
= (long )wxRegionIterator_GetW(_arg0
);
12952 wxPyEndAllowThreads(__tstate
);
12953 if (PyErr_Occurred()) return NULL
;
12954 } _resultobj
= Py_BuildValue("l",_result
);
12958 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
12959 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12960 PyObject
* _resultobj
;
12962 wxRegionIterator
* _arg0
;
12963 PyObject
* _argo0
= 0;
12964 char *_kwnames
[] = { "self", NULL
};
12967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
12970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
12977 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12978 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
12980 wxPyEndAllowThreads(__tstate
);
12981 if (PyErr_Occurred()) return NULL
;
12982 } _resultobj
= Py_BuildValue("l",_result
);
12986 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
12987 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12988 PyObject
* _resultobj
;
12990 wxRegionIterator
* _arg0
;
12991 PyObject
* _argo0
= 0;
12992 char *_kwnames
[] = { "self", NULL
};
12995 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
12998 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12999 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
13000 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
13005 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13006 _result
= (long )wxRegionIterator_GetH(_arg0
);
13008 wxPyEndAllowThreads(__tstate
);
13009 if (PyErr_Occurred()) return NULL
;
13010 } _resultobj
= Py_BuildValue("l",_result
);
13014 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
13015 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
13016 PyObject
* _resultobj
;
13018 wxRegionIterator
* _arg0
;
13019 PyObject
* _argo0
= 0;
13020 char *_kwnames
[] = { "self", NULL
};
13023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
13026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
13027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
13028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
13033 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13034 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
13036 wxPyEndAllowThreads(__tstate
);
13037 if (PyErr_Occurred()) return NULL
;
13038 } _resultobj
= Py_BuildValue("l",_result
);
13042 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
13043 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
13044 PyObject
* _resultobj
;
13046 wxRegionIterator
* _arg0
;
13047 PyObject
* _argo0
= 0;
13048 char *_kwnames
[] = { "self", NULL
};
13052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
13055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
13056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
13057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
13062 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13063 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
13065 wxPyEndAllowThreads(__tstate
);
13066 if (PyErr_Occurred()) return NULL
;
13067 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
13068 _resultobj
= Py_BuildValue("s",_ptemp
);
13072 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
13073 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
13074 PyObject
* _resultobj
;
13076 wxRegionIterator
* _arg0
;
13077 PyObject
* _argo0
= 0;
13078 char *_kwnames
[] = { "self", NULL
};
13081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
13084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
13085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
13086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
13091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13092 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
13094 wxPyEndAllowThreads(__tstate
);
13095 if (PyErr_Occurred()) return NULL
;
13096 } _resultobj
= Py_BuildValue("i",_result
);
13100 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
13101 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
13102 PyObject
* _resultobj
;
13103 wxRegionIterator
* _arg0
;
13104 PyObject
* _argo0
= 0;
13105 char *_kwnames
[] = { "self", NULL
};
13108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
13111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
13112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
13113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
13118 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13119 wxRegionIterator_Reset(_arg0
);
13121 wxPyEndAllowThreads(__tstate
);
13122 if (PyErr_Occurred()) return NULL
;
13123 } Py_INCREF(Py_None
);
13124 _resultobj
= Py_None
;
13128 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
13131 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
13132 PyObject
* _resultobj
;
13133 wxRegionIterator
* _arg0
;
13134 PyObject
* _argo0
= 0;
13135 char *_kwnames
[] = { "self", NULL
};
13138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
13141 if (_argo0
== Py_None
) { _arg0
= NULL
; }
13142 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
13143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
13148 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13149 wxRegionIterator_Next(_arg0
);
13151 wxPyEndAllowThreads(__tstate
);
13152 if (PyErr_Occurred()) return NULL
;
13153 } Py_INCREF(Py_None
);
13154 _resultobj
= Py_None
;
13158 static PyMethodDef gdicMethods
[] = {
13159 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
13160 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
13161 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
13162 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
13163 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13164 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
13165 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13166 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
13167 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
13168 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
13169 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
13170 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
13171 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
13172 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
13173 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
13174 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
13175 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
13176 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
13177 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
13178 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
13179 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
13180 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
13181 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
13182 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
13183 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
13184 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
13185 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
13186 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
13187 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
13188 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
13189 { "wxRegion_Offset", (PyCFunction
) _wrap_wxRegion_Offset
, METH_VARARGS
| METH_KEYWORDS
},
13190 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
13191 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
13192 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
13193 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
13194 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
13195 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
13196 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
13197 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
13198 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
13199 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
13200 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
13201 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
13202 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
13203 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
13204 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13205 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
13206 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
13207 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
13208 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
13209 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
13210 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
13211 { "wxMetaFile_GetFileName", (PyCFunction
) _wrap_wxMetaFile_GetFileName
, METH_VARARGS
| METH_KEYWORDS
},
13212 { "wxMetaFile_GetHeight", (PyCFunction
) _wrap_wxMetaFile_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13213 { "wxMetaFile_GetWidth", (PyCFunction
) _wrap_wxMetaFile_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13214 { "wxMetaFile_GetSize", (PyCFunction
) _wrap_wxMetaFile_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
13215 { "wxMetaFile_SetClipboard", (PyCFunction
) _wrap_wxMetaFile_SetClipboard
, METH_VARARGS
| METH_KEYWORDS
},
13216 { "wxMetaFile_Ok", (PyCFunction
) _wrap_wxMetaFile_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13217 { "delete_wxMetaFile", (PyCFunction
) _wrap_delete_wxMetaFile
, METH_VARARGS
| METH_KEYWORDS
},
13218 { "new_wxMetaFile", (PyCFunction
) _wrap_new_wxMetaFile
, METH_VARARGS
| METH_KEYWORDS
},
13219 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
13220 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
13221 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
13222 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
13223 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
13224 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
13225 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
13226 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
13227 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
13228 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
13229 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
13230 { "wxDC_GetHDC", (PyCFunction
) _wrap_wxDC_GetHDC
, METH_VARARGS
| METH_KEYWORDS
},
13231 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
13232 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
13233 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
13234 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
13235 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
13236 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
13237 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
13238 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
13239 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13240 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
13241 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13242 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13243 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
13244 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
13245 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
13246 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
13247 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
13248 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
13249 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
13250 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
13251 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
13252 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
13253 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
13254 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
13255 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
13256 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
13257 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
13258 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
13259 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
13260 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
13261 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13262 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
13263 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
13264 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
13265 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
13266 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
13267 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
13268 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
13269 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
13270 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
13271 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
13272 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
13273 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
13274 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
13275 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
13276 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
13277 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
13278 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
13279 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
13280 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
13281 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
13282 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
13283 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
13284 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
13285 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
13286 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
13287 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
13288 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
13289 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
13290 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
13291 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
13292 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
13293 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
13294 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
13295 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
13296 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
13297 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
13298 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
13299 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
13300 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
13301 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
13302 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
13303 { "wxDC_DrawImageLabel", (PyCFunction
) _wrap_wxDC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
},
13304 { "wxDC_DrawLabel", (PyCFunction
) _wrap_wxDC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
},
13305 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
13306 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
13307 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
13308 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
13309 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
13310 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
13311 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
13312 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
13313 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
13314 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
13315 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
13316 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
13317 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
13318 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
13319 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
13320 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
13321 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
13322 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
13323 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
13324 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13325 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
13326 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
13327 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13328 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13329 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
13330 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
13331 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
13332 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
13333 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
13334 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
13335 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
13336 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
13337 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
13338 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
13339 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
13340 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
13341 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
13342 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
13343 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13344 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13345 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
13346 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
13347 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
13348 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13349 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13350 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13351 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
13352 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
13353 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
13354 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
13355 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
13356 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
13357 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
13358 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
13359 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
13360 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
13361 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13362 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
13363 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
13364 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
13365 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
13366 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
13367 { "wxFontList_GetCount", (PyCFunction
) _wrap_wxFontList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
13368 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
13369 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
13370 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
13371 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13372 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13373 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
13374 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
13375 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
13376 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_SetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
13377 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
13378 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13379 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
13380 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
13381 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
13382 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13383 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
13384 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
13385 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
13386 { "wxFont_GetNativeFontInfoDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoDesc
, METH_VARARGS
| METH_KEYWORDS
},
13387 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
13388 { "wxFont_IsFixedWidth", (PyCFunction
) _wrap_wxFont_IsFixedWidth
, METH_VARARGS
| METH_KEYWORDS
},
13389 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13390 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
13391 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
13392 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
13393 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13394 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
13395 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
13396 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13397 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
13398 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
13399 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
13400 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
13401 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
13402 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
13403 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
13404 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
13405 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
13406 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
13407 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13408 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
13409 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13410 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
13411 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
13412 { "wxNativeFontInfo_ToUserString", (PyCFunction
) _wrap_wxNativeFontInfo_ToUserString
, METH_VARARGS
| METH_KEYWORDS
},
13413 { "wxNativeFontInfo_FromUserString", (PyCFunction
) _wrap_wxNativeFontInfo_FromUserString
, METH_VARARGS
| METH_KEYWORDS
},
13414 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
13415 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
13416 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
13417 { "wxNativeFontInfo_SetEncoding", (PyCFunction
) _wrap_wxNativeFontInfo_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13418 { "wxNativeFontInfo_SetFamily", (PyCFunction
) _wrap_wxNativeFontInfo_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
13419 { "wxNativeFontInfo_SetFaceName", (PyCFunction
) _wrap_wxNativeFontInfo_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
13420 { "wxNativeFontInfo_SetUnderlined", (PyCFunction
) _wrap_wxNativeFontInfo_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
13421 { "wxNativeFontInfo_SetWeight", (PyCFunction
) _wrap_wxNativeFontInfo_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
13422 { "wxNativeFontInfo_SetStyle", (PyCFunction
) _wrap_wxNativeFontInfo_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13423 { "wxNativeFontInfo_SetPointSize", (PyCFunction
) _wrap_wxNativeFontInfo_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
13424 { "wxNativeFontInfo_GetEncoding", (PyCFunction
) _wrap_wxNativeFontInfo_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
13425 { "wxNativeFontInfo_GetFamily", (PyCFunction
) _wrap_wxNativeFontInfo_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
13426 { "wxNativeFontInfo_GetFaceName", (PyCFunction
) _wrap_wxNativeFontInfo_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
13427 { "wxNativeFontInfo_GetUnderlined", (PyCFunction
) _wrap_wxNativeFontInfo_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
13428 { "wxNativeFontInfo_GetWeight", (PyCFunction
) _wrap_wxNativeFontInfo_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
13429 { "wxNativeFontInfo_GetStyle", (PyCFunction
) _wrap_wxNativeFontInfo_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
13430 { "wxNativeFontInfo_GetPointSize", (PyCFunction
) _wrap_wxNativeFontInfo_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
13431 { "wxNativeFontInfo_Init", (PyCFunction
) _wrap_wxNativeFontInfo_Init
, METH_VARARGS
| METH_KEYWORDS
},
13432 { "new_wxNativeFontInfo", (PyCFunction
) _wrap_new_wxNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
13433 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
13434 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13435 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13436 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13437 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13438 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13439 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13440 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13441 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13442 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13443 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
13444 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
13445 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13446 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
13447 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13448 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13449 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13450 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13451 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13452 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13453 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13454 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13455 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13456 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
13457 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
13458 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
13459 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
13460 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
13461 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
13462 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
13463 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
13464 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
13465 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13466 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
13467 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13468 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13469 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13470 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
13471 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
13472 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
13473 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
13474 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13475 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
13476 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
13477 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
13478 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
13479 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
13480 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
13481 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
13482 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13483 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13484 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
13485 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
13486 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
13487 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
13488 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
13489 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
13490 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
13491 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
13492 { "wxIconFromBitmap", (PyCFunction
) _wrap_wxIconFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13493 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
13494 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
13495 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
13496 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
13497 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
13498 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
13499 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
13506 * This table is used by the pointer type-checker
13508 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
13509 { "_signed_long","_long",0},
13510 { "_wxPrintQuality","_wxCoord",0},
13511 { "_wxPrintQuality","_int",0},
13512 { "_wxPrintQuality","_signed_int",0},
13513 { "_wxPrintQuality","_unsigned_int",0},
13514 { "_wxPrintQuality","_wxWindowID",0},
13515 { "_wxPrintQuality","_uint",0},
13516 { "_wxPrintQuality","_EBool",0},
13517 { "_wxPrintQuality","_size_t",0},
13518 { "_wxPrintQuality","_time_t",0},
13519 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
13520 { "_byte","_unsigned_char",0},
13521 { "_long","_unsigned_long",0},
13522 { "_long","_signed_long",0},
13523 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
13524 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
13525 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
13526 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
13527 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
13528 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
13529 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
13530 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
13531 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
13532 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
13533 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
13534 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
13535 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
13536 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
13537 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
13538 { "_size_t","_wxCoord",0},
13539 { "_size_t","_wxPrintQuality",0},
13540 { "_size_t","_time_t",0},
13541 { "_size_t","_unsigned_int",0},
13542 { "_size_t","_int",0},
13543 { "_size_t","_wxWindowID",0},
13544 { "_size_t","_uint",0},
13545 { "_uint","_wxCoord",0},
13546 { "_uint","_wxPrintQuality",0},
13547 { "_uint","_time_t",0},
13548 { "_uint","_size_t",0},
13549 { "_uint","_unsigned_int",0},
13550 { "_uint","_int",0},
13551 { "_uint","_wxWindowID",0},
13552 { "_wxChar","_char",0},
13553 { "_char","_wxChar",0},
13554 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
13555 { "_EBool","_wxCoord",0},
13556 { "_EBool","_wxPrintQuality",0},
13557 { "_EBool","_signed_int",0},
13558 { "_EBool","_int",0},
13559 { "_EBool","_wxWindowID",0},
13560 { "_unsigned_long","_long",0},
13561 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
13562 { "_signed_int","_wxCoord",0},
13563 { "_signed_int","_wxPrintQuality",0},
13564 { "_signed_int","_EBool",0},
13565 { "_signed_int","_wxWindowID",0},
13566 { "_signed_int","_int",0},
13567 { "_WXTYPE","_short",0},
13568 { "_WXTYPE","_signed_short",0},
13569 { "_WXTYPE","_unsigned_short",0},
13570 { "_unsigned_short","_WXTYPE",0},
13571 { "_unsigned_short","_short",0},
13572 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
13573 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
13574 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
13575 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
13576 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject
},
13577 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject
},
13578 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
13579 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
13580 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
13581 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
13582 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
13583 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
13584 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
13585 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
13586 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
13587 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
13588 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
13589 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
13590 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
13591 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
13592 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
13593 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
13594 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
13595 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
13596 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
13597 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
13598 { "_signed_short","_WXTYPE",0},
13599 { "_signed_short","_short",0},
13600 { "_unsigned_char","_byte",0},
13601 { "_unsigned_int","_wxCoord",0},
13602 { "_unsigned_int","_wxPrintQuality",0},
13603 { "_unsigned_int","_time_t",0},
13604 { "_unsigned_int","_size_t",0},
13605 { "_unsigned_int","_uint",0},
13606 { "_unsigned_int","_wxWindowID",0},
13607 { "_unsigned_int","_int",0},
13608 { "_short","_WXTYPE",0},
13609 { "_short","_unsigned_short",0},
13610 { "_short","_signed_short",0},
13611 { "_wxWindowID","_wxCoord",0},
13612 { "_wxWindowID","_wxPrintQuality",0},
13613 { "_wxWindowID","_time_t",0},
13614 { "_wxWindowID","_size_t",0},
13615 { "_wxWindowID","_EBool",0},
13616 { "_wxWindowID","_uint",0},
13617 { "_wxWindowID","_int",0},
13618 { "_wxWindowID","_signed_int",0},
13619 { "_wxWindowID","_unsigned_int",0},
13620 { "_int","_wxCoord",0},
13621 { "_int","_wxPrintQuality",0},
13622 { "_int","_time_t",0},
13623 { "_int","_size_t",0},
13624 { "_int","_EBool",0},
13625 { "_int","_uint",0},
13626 { "_int","_wxWindowID",0},
13627 { "_int","_unsigned_int",0},
13628 { "_int","_signed_int",0},
13629 { "_time_t","_wxCoord",0},
13630 { "_time_t","_wxPrintQuality",0},
13631 { "_time_t","_unsigned_int",0},
13632 { "_time_t","_int",0},
13633 { "_time_t","_wxWindowID",0},
13634 { "_time_t","_uint",0},
13635 { "_time_t","_size_t",0},
13636 { "_wxCoord","_int",0},
13637 { "_wxCoord","_signed_int",0},
13638 { "_wxCoord","_unsigned_int",0},
13639 { "_wxCoord","_wxWindowID",0},
13640 { "_wxCoord","_uint",0},
13641 { "_wxCoord","_EBool",0},
13642 { "_wxCoord","_size_t",0},
13643 { "_wxCoord","_time_t",0},
13644 { "_wxCoord","_wxPrintQuality",0},
13647 static PyObject
*SWIG_globals
;
13651 SWIGEXPORT(void) initgdic() {
13653 SWIG_globals
= SWIG_newvarlink();
13654 m
= Py_InitModule("gdic", gdicMethods
);
13655 d
= PyModule_GetDict(m
);
13656 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
13657 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
13658 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
13659 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
13660 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
13661 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
13662 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
13663 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
13664 PyDict_SetItemString(d
,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN
));
13665 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
13666 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
13667 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
13668 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
13669 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
13670 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
13671 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
13672 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
13673 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
13674 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
13675 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
13676 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
13677 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
13678 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
13679 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
13680 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
13681 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
13682 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
13683 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
13684 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
13685 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
13686 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
13687 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
13688 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
13689 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
13690 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
13691 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
13692 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
13693 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
13694 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
13695 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
13696 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
13697 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
13698 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
13699 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
13700 PyDict_SetItemString(d
,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932
));
13701 PyDict_SetItemString(d
,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936
));
13702 PyDict_SetItemString(d
,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949
));
13703 PyDict_SetItemString(d
,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950
));
13704 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
13705 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
13706 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
13707 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
13708 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
13709 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
13710 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
13711 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
13712 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
13713 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
13714 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
13715 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
13716 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
13717 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
13718 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
13719 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
13720 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
13721 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
13722 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
13723 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
13724 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
13725 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
13726 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
13727 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
13728 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
13729 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
13730 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
13731 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
13732 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
13733 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
13734 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
13735 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
13736 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
13737 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
13738 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
13739 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
13740 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
13741 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
13742 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
13743 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
13744 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
13745 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
13746 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
13747 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
13748 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
13749 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
13750 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
13751 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
13752 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
13753 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
13754 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
13755 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
13756 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
13757 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
13758 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
13759 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
13760 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
13761 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
13762 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
13763 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
13764 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
13765 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
13766 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
13767 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
13768 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
13769 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
13770 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
13771 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
13772 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
13773 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
13776 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
13777 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);