2 * FILE : src/mac/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/imaglist.h>
60 #include <wx/fontmap.h>
61 #include <wx/fontenc.h>
62 #include <wx/fontmap.h>
63 #include <wx/fontutil.h>
66 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
72 } else if (target
== Py_None
) {
76 if (!PyTuple_Check(target
)) {
78 target
= PyTuple_New(1);
79 PyTuple_SetItem(target
, 0, o2
);
82 PyTuple_SetItem(o3
, 0, o
);
85 target
= PySequence_Concat(o2
, o3
);
92 #if PYTHON_API_VERSION >= 1009
93 static char* wxStringErrorMsg
= "String or Unicode type required";
95 static char* wxStringErrorMsg
= "String type required";
98 static wxString
wxPyEmptyStr("");
99 // Implementations of some alternate "constructors"
101 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
102 return new wxBitmap(width
, height
, depth
);
105 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
106 char** cArray
= NULL
;
109 if (!PyList_Check(listOfStrings
)) {
110 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
113 count
= PyList_Size(listOfStrings
);
114 cArray
= new char*[count
];
116 for(int x
=0; x
<count
; x
++) {
117 // TODO: Need some validation and error checking here
118 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
124 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
125 char** cArray
= NULL
;
128 cArray
= ConvertListOfStrings(listOfStrings
);
131 bmp
= new wxBitmap(cArray
);
137 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
138 return new wxBitmap(icon
);
142 wxBitmap
* wxBitmapFromBits(char* bits
, int width
, int height
, int depth
= 1 ) {
143 return new wxBitmap(bits
, width
, height
, depth
);
148 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
149 // int width, int height, int depth = 1) {
150 // if (! PyString_Check(data)) {
151 // PyErr_SetString(PyExc_TypeError, "Expected string object");
154 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
158 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
159 return new wxMask(bitmap
, colour
);
161 // Implementations of some alternate "constructors"
162 wxIcon
* wxEmptyIcon() {
166 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
167 char** cArray
= NULL
;
170 cArray
= ConvertListOfStrings(listOfStrings
);
173 icon
= new wxIcon(cArray
);
177 // Alternate 'constructor'
178 wxCursor
* wxPyStockCursor(int id
) {
179 return new wxCursor(id
);
181 // Alternate 'constructor'
182 wxColour
* wxNamedColour(const wxString
& colorName
) {
183 return new wxColour(colorName
);
186 class wxPyPen
: public wxPen
{
188 wxPyPen(wxColour
& colour
, int width
=1, int style
=wxSOLID
)
189 : wxPen(colour
, width
, style
)
196 void SetDashes(int nb_dashes
, const wxDash
*dash
) {
197 m_dash
= new wxDash
[nb_dashes
];
198 for (int i
=0; i
<nb_dashes
; i
++)
200 wxPen::SetDashes(nb_dashes
, m_dash
);
207 static void wxDC_GetBoundingBox(wxDC
* dc
, int* x1
, int* y1
, int* x2
, int* y2
) {
213 // Alternate 'constructor'
214 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
215 return new wxMemoryDC(oldDC
);
219 extern wxFont
* wxNORMAL_FONT
;
220 extern wxFont
* wxSMALL_FONT
;
221 extern wxFont
* wxITALIC_FONT
;
222 extern wxFont
* wxSWISS_FONT
;
223 extern wxPen
* wxRED_PEN
;
224 extern wxPen
* wxCYAN_PEN
;
225 extern wxPen
* wxGREEN_PEN
;
226 extern wxPen
* wxBLACK_PEN
;
227 extern wxPen
* wxWHITE_PEN
;
228 extern wxPen
* wxTRANSPARENT_PEN
;
229 extern wxPen
* wxBLACK_DASHED_PEN
;
230 extern wxPen
* wxGREY_PEN
;
231 extern wxPen
* wxMEDIUM_GREY_PEN
;
232 extern wxPen
* wxLIGHT_GREY_PEN
;
233 extern wxBrush
* wxBLUE_BRUSH
;
234 extern wxBrush
* wxGREEN_BRUSH
;
235 extern wxBrush
* wxWHITE_BRUSH
;
236 extern wxBrush
* wxBLACK_BRUSH
;
237 extern wxBrush
* wxTRANSPARENT_BRUSH
;
238 extern wxBrush
* wxCYAN_BRUSH
;
239 extern wxBrush
* wxRED_BRUSH
;
240 extern wxBrush
* wxGREY_BRUSH
;
241 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
242 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
243 extern wxColour
* wxBLACK
;
244 extern wxColour
* wxWHITE
;
245 extern wxColour
* wxRED
;
246 extern wxColour
* wxBLUE
;
247 extern wxColour
* wxGREEN
;
248 extern wxColour
* wxCYAN
;
249 extern wxColour
* wxLIGHT_GREY
;
250 extern wxCursor
* wxSTANDARD_CURSOR
;
251 extern wxCursor
* wxHOURGLASS_CURSOR
;
252 extern wxCursor
* wxCROSS_CURSOR
;
253 extern wxBitmap wxNullBitmap
;
254 extern wxIcon wxNullIcon
;
255 extern wxCursor wxNullCursor
;
256 extern wxPen wxNullPen
;
257 extern wxBrush wxNullBrush
;
258 extern wxPalette wxNullPalette
;
259 extern wxFont wxNullFont
;
260 extern wxColour wxNullColour
;
261 extern wxFontList
* wxTheFontList
;
262 extern wxPenList
* wxThePenList
;
263 extern wxBrushList
* wxTheBrushList
;
264 extern wxColourDatabase
* wxTheColourDatabase
;
270 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
271 PyObject
* _resultobj
;
275 int _arg2
= (int ) -1;
276 char *_kwnames
[] = { "width","height","depth", NULL
};
280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
283 wxPy_BEGIN_ALLOW_THREADS
;
284 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
286 wxPy_END_ALLOW_THREADS
;
287 if (PyErr_Occurred()) return NULL
;
289 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
290 _resultobj
= Py_BuildValue("s",_ptemp
);
293 _resultobj
= Py_None
;
298 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
299 PyObject
* _resultobj
;
302 PyObject
* _obj0
= 0;
303 char *_kwnames
[] = { "listOfStrings", NULL
};
307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
313 wxPy_BEGIN_ALLOW_THREADS
;
314 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
316 wxPy_END_ALLOW_THREADS
;
317 if (PyErr_Occurred()) return NULL
;
319 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
320 _resultobj
= Py_BuildValue("s",_ptemp
);
323 _resultobj
= Py_None
;
328 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
329 PyObject
* _resultobj
;
332 PyObject
* _argo0
= 0;
333 char *_kwnames
[] = { "icon", NULL
};
337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
340 if (_argo0
== Py_None
) { _arg0
= NULL
; }
341 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
342 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
347 wxPy_BEGIN_ALLOW_THREADS
;
348 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
350 wxPy_END_ALLOW_THREADS
;
351 if (PyErr_Occurred()) return NULL
;
353 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
354 _resultobj
= Py_BuildValue("s",_ptemp
);
357 _resultobj
= Py_None
;
362 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
363 PyObject
* _resultobj
;
368 int _arg3
= (int ) 1;
369 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
373 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"sii|i:wxBitmapFromBits",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
376 wxPy_BEGIN_ALLOW_THREADS
;
377 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
379 wxPy_END_ALLOW_THREADS
;
380 if (PyErr_Occurred()) return NULL
;
382 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
383 _resultobj
= Py_BuildValue("s",_ptemp
);
386 _resultobj
= Py_None
;
391 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
392 PyObject
* _resultobj
;
396 PyObject
* _argo0
= 0;
398 PyObject
* _obj1
= 0;
399 char *_kwnames
[] = { "bitmap","colour", NULL
};
403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
414 if (! wxColour_helper(_obj1
, &_arg1
))
418 wxPy_BEGIN_ALLOW_THREADS
;
419 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
421 wxPy_END_ALLOW_THREADS
;
422 if (PyErr_Occurred()) return NULL
;
424 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
425 _resultobj
= Py_BuildValue("s",_ptemp
);
428 _resultobj
= Py_None
;
433 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
434 PyObject
* _resultobj
;
436 char *_kwnames
[] = { NULL
};
440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
443 wxPy_BEGIN_ALLOW_THREADS
;
444 _result
= (wxIcon
*)wxEmptyIcon();
446 wxPy_END_ALLOW_THREADS
;
447 if (PyErr_Occurred()) return NULL
;
449 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
450 _resultobj
= Py_BuildValue("s",_ptemp
);
453 _resultobj
= Py_None
;
458 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
459 PyObject
* _resultobj
;
462 PyObject
* _obj0
= 0;
463 char *_kwnames
[] = { "listOfStrings", NULL
};
467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
473 wxPy_BEGIN_ALLOW_THREADS
;
474 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
476 wxPy_END_ALLOW_THREADS
;
477 if (PyErr_Occurred()) return NULL
;
479 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
480 _resultobj
= Py_BuildValue("s",_ptemp
);
483 _resultobj
= Py_None
;
488 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
489 PyObject
* _resultobj
;
492 char *_kwnames
[] = { "id", NULL
};
496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
499 wxPy_BEGIN_ALLOW_THREADS
;
500 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
502 wxPy_END_ALLOW_THREADS
;
503 if (PyErr_Occurred()) return NULL
;
505 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
506 _resultobj
= Py_BuildValue("s",_ptemp
);
509 _resultobj
= Py_None
;
514 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
515 PyObject
* _resultobj
;
518 PyObject
* _obj0
= 0;
519 char *_kwnames
[] = { "colorName", NULL
};
523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
526 #if PYTHON_API_VERSION >= 1009
527 char* tmpPtr
; int tmpSize
;
528 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
529 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
532 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
534 _arg0
= new wxString(tmpPtr
, tmpSize
);
536 if (!PyString_Check(_obj0
)) {
537 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
540 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
544 wxPy_BEGIN_ALLOW_THREADS
;
545 _result
= (wxColour
*)wxNamedColour(*_arg0
);
547 wxPy_END_ALLOW_THREADS
;
548 if (PyErr_Occurred()) return NULL
;
550 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
551 _resultobj
= Py_BuildValue("s",_ptemp
);
554 _resultobj
= Py_None
;
563 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
564 PyObject
* _resultobj
;
565 wxMemoryDC
* _result
;
567 PyObject
* _argo0
= 0;
568 char *_kwnames
[] = { "oldDC", NULL
};
572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
582 wxPy_BEGIN_ALLOW_THREADS
;
583 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
585 wxPy_END_ALLOW_THREADS
;
586 if (PyErr_Occurred()) return NULL
;
588 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
589 _resultobj
= Py_BuildValue("s",_ptemp
);
592 _resultobj
= Py_None
;
597 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
599 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
603 static PyObject
*_wrap_wxNORMAL_FONT_get() {
607 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
608 pyobj
= PyString_FromString(ptemp
);
612 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
614 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
618 static PyObject
*_wrap_wxSMALL_FONT_get() {
622 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
623 pyobj
= PyString_FromString(ptemp
);
627 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
629 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
633 static PyObject
*_wrap_wxITALIC_FONT_get() {
637 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
638 pyobj
= PyString_FromString(ptemp
);
642 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
644 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
648 static PyObject
*_wrap_wxSWISS_FONT_get() {
652 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
653 pyobj
= PyString_FromString(ptemp
);
657 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
659 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
663 static PyObject
*_wrap_wxRED_PEN_get() {
667 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
668 pyobj
= PyString_FromString(ptemp
);
672 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
674 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
678 static PyObject
*_wrap_wxCYAN_PEN_get() {
682 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
683 pyobj
= PyString_FromString(ptemp
);
687 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
689 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
693 static PyObject
*_wrap_wxGREEN_PEN_get() {
697 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
698 pyobj
= PyString_FromString(ptemp
);
702 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
704 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
708 static PyObject
*_wrap_wxBLACK_PEN_get() {
712 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
713 pyobj
= PyString_FromString(ptemp
);
717 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
719 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
723 static PyObject
*_wrap_wxWHITE_PEN_get() {
727 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
728 pyobj
= PyString_FromString(ptemp
);
732 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
734 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
738 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
742 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
743 pyobj
= PyString_FromString(ptemp
);
747 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
749 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
753 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
757 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
758 pyobj
= PyString_FromString(ptemp
);
762 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
764 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
768 static PyObject
*_wrap_wxGREY_PEN_get() {
772 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
773 pyobj
= PyString_FromString(ptemp
);
777 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
779 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
783 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
787 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
788 pyobj
= PyString_FromString(ptemp
);
792 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
794 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
798 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
802 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
803 pyobj
= PyString_FromString(ptemp
);
807 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
809 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
813 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
817 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
818 pyobj
= PyString_FromString(ptemp
);
822 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
824 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
828 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
832 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
833 pyobj
= PyString_FromString(ptemp
);
837 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
839 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
843 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
847 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
848 pyobj
= PyString_FromString(ptemp
);
852 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
854 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
858 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
862 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
863 pyobj
= PyString_FromString(ptemp
);
867 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
869 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
873 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
877 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
878 pyobj
= PyString_FromString(ptemp
);
882 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
884 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
888 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
892 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
893 pyobj
= PyString_FromString(ptemp
);
897 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
899 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
903 static PyObject
*_wrap_wxRED_BRUSH_get() {
907 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
908 pyobj
= PyString_FromString(ptemp
);
912 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
914 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
918 static PyObject
*_wrap_wxGREY_BRUSH_get() {
922 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
923 pyobj
= PyString_FromString(ptemp
);
927 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
929 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
933 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
937 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
938 pyobj
= PyString_FromString(ptemp
);
942 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
944 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
948 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
952 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
953 pyobj
= PyString_FromString(ptemp
);
957 static int _wrap_wxBLACK_set(PyObject
*val
) {
959 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
963 static PyObject
*_wrap_wxBLACK_get() {
967 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
968 pyobj
= PyString_FromString(ptemp
);
972 static int _wrap_wxWHITE_set(PyObject
*val
) {
974 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
978 static PyObject
*_wrap_wxWHITE_get() {
982 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
983 pyobj
= PyString_FromString(ptemp
);
987 static int _wrap_wxRED_set(PyObject
*val
) {
989 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
993 static PyObject
*_wrap_wxRED_get() {
997 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
998 pyobj
= PyString_FromString(ptemp
);
1002 static int _wrap_wxBLUE_set(PyObject
*val
) {
1004 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1008 static PyObject
*_wrap_wxBLUE_get() {
1012 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1013 pyobj
= PyString_FromString(ptemp
);
1017 static int _wrap_wxGREEN_set(PyObject
*val
) {
1019 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1023 static PyObject
*_wrap_wxGREEN_get() {
1027 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1028 pyobj
= PyString_FromString(ptemp
);
1032 static int _wrap_wxCYAN_set(PyObject
*val
) {
1034 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1038 static PyObject
*_wrap_wxCYAN_get() {
1042 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1043 pyobj
= PyString_FromString(ptemp
);
1047 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1049 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1053 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1057 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1058 pyobj
= PyString_FromString(ptemp
);
1062 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1064 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1068 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1072 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1073 pyobj
= PyString_FromString(ptemp
);
1077 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1079 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1083 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1087 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1088 pyobj
= PyString_FromString(ptemp
);
1092 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1094 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1098 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1102 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1103 pyobj
= PyString_FromString(ptemp
);
1107 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1109 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1113 static PyObject
*_wrap_wxNullBitmap_get() {
1117 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1118 pyobj
= PyString_FromString(ptemp
);
1122 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1124 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1128 static PyObject
*_wrap_wxNullIcon_get() {
1132 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1133 pyobj
= PyString_FromString(ptemp
);
1137 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1139 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1143 static PyObject
*_wrap_wxNullCursor_get() {
1147 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1148 pyobj
= PyString_FromString(ptemp
);
1152 static int _wrap_wxNullPen_set(PyObject
*val
) {
1154 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1158 static PyObject
*_wrap_wxNullPen_get() {
1162 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1163 pyobj
= PyString_FromString(ptemp
);
1167 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1169 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1173 static PyObject
*_wrap_wxNullBrush_get() {
1177 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1178 pyobj
= PyString_FromString(ptemp
);
1182 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1184 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1188 static PyObject
*_wrap_wxNullPalette_get() {
1192 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1193 pyobj
= PyString_FromString(ptemp
);
1197 static int _wrap_wxNullFont_set(PyObject
*val
) {
1199 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1203 static PyObject
*_wrap_wxNullFont_get() {
1207 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1208 pyobj
= PyString_FromString(ptemp
);
1212 static int _wrap_wxNullColour_set(PyObject
*val
) {
1214 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1218 static PyObject
*_wrap_wxNullColour_get() {
1222 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1223 pyobj
= PyString_FromString(ptemp
);
1227 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1229 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1233 static PyObject
*_wrap_wxTheFontList_get() {
1237 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1238 pyobj
= PyString_FromString(ptemp
);
1242 static int _wrap_wxThePenList_set(PyObject
*val
) {
1244 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1248 static PyObject
*_wrap_wxThePenList_get() {
1252 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1253 pyobj
= PyString_FromString(ptemp
);
1257 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1259 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1263 static PyObject
*_wrap_wxTheBrushList_get() {
1267 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1268 pyobj
= PyString_FromString(ptemp
);
1272 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1274 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1278 static PyObject
*_wrap_wxTheColourDatabase_get() {
1282 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1283 pyobj
= PyString_FromString(ptemp
);
1287 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1290 src
= (wxGDIObject
*) ptr
;
1291 dest
= (wxObject
*) src
;
1292 return (void *) dest
;
1295 #define new_wxGDIObject() (new wxGDIObject())
1296 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1297 PyObject
* _resultobj
;
1298 wxGDIObject
* _result
;
1299 char *_kwnames
[] = { NULL
};
1303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1306 wxPy_BEGIN_ALLOW_THREADS
;
1307 _result
= (wxGDIObject
*)new_wxGDIObject();
1309 wxPy_END_ALLOW_THREADS
;
1310 if (PyErr_Occurred()) return NULL
;
1312 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1313 _resultobj
= Py_BuildValue("s",_ptemp
);
1316 _resultobj
= Py_None
;
1321 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1322 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1323 PyObject
* _resultobj
;
1324 wxGDIObject
* _arg0
;
1325 PyObject
* _argo0
= 0;
1326 char *_kwnames
[] = { "self", NULL
};
1329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1332 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1333 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1339 wxPy_BEGIN_ALLOW_THREADS
;
1340 delete_wxGDIObject(_arg0
);
1342 wxPy_END_ALLOW_THREADS
;
1343 if (PyErr_Occurred()) return NULL
;
1344 } Py_INCREF(Py_None
);
1345 _resultobj
= Py_None
;
1349 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1350 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1351 PyObject
* _resultobj
;
1353 wxGDIObject
* _arg0
;
1354 PyObject
* _argo0
= 0;
1355 char *_kwnames
[] = { "self", NULL
};
1358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1368 wxPy_BEGIN_ALLOW_THREADS
;
1369 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1371 wxPy_END_ALLOW_THREADS
;
1372 if (PyErr_Occurred()) return NULL
;
1373 } _resultobj
= Py_BuildValue("i",_result
);
1377 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1378 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1379 PyObject
* _resultobj
;
1380 wxGDIObject
* _arg0
;
1382 PyObject
* _argo0
= 0;
1384 char *_kwnames
[] = { "self","visible", NULL
};
1387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1396 _arg1
= (bool ) tempbool1
;
1398 wxPy_BEGIN_ALLOW_THREADS
;
1399 wxGDIObject_SetVisible(_arg0
,_arg1
);
1401 wxPy_END_ALLOW_THREADS
;
1402 if (PyErr_Occurred()) return NULL
;
1403 } Py_INCREF(Py_None
);
1404 _resultobj
= Py_None
;
1408 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1409 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1410 PyObject
* _resultobj
;
1412 wxGDIObject
* _arg0
;
1413 PyObject
* _argo0
= 0;
1414 char *_kwnames
[] = { "self", NULL
};
1417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1427 wxPy_BEGIN_ALLOW_THREADS
;
1428 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1430 wxPy_END_ALLOW_THREADS
;
1431 if (PyErr_Occurred()) return NULL
;
1432 } _resultobj
= Py_BuildValue("i",_result
);
1436 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1439 src
= (wxBitmap
*) ptr
;
1440 dest
= (wxGDIObject
*) src
;
1441 return (void *) dest
;
1444 static void *SwigwxBitmapTowxObject(void *ptr
) {
1447 src
= (wxBitmap
*) ptr
;
1448 dest
= (wxObject
*) src
;
1449 return (void *) dest
;
1452 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1453 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1454 PyObject
* _resultobj
;
1457 wxBitmapType _arg1
= (wxBitmapType
) wxBITMAP_TYPE_BMP
;
1458 PyObject
* _obj0
= 0;
1459 char *_kwnames
[] = { "name","type", NULL
};
1463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1466 #if PYTHON_API_VERSION >= 1009
1467 char* tmpPtr
; int tmpSize
;
1468 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1469 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1472 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1474 _arg0
= new wxString(tmpPtr
, tmpSize
);
1476 if (!PyString_Check(_obj0
)) {
1477 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1480 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1484 wxPy_BEGIN_ALLOW_THREADS
;
1485 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1487 wxPy_END_ALLOW_THREADS
;
1488 if (PyErr_Occurred()) return NULL
;
1490 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1491 _resultobj
= Py_BuildValue("s",_ptemp
);
1494 _resultobj
= Py_None
;
1503 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1504 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1505 PyObject
* _resultobj
;
1507 PyObject
* _argo0
= 0;
1508 char *_kwnames
[] = { "self", NULL
};
1511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1521 wxPy_BEGIN_ALLOW_THREADS
;
1522 delete_wxBitmap(_arg0
);
1524 wxPy_END_ALLOW_THREADS
;
1525 if (PyErr_Occurred()) return NULL
;
1526 } Py_INCREF(Py_None
);
1527 _resultobj
= Py_None
;
1531 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1532 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1533 PyObject
* _resultobj
;
1534 wxPalette
* _result
;
1536 PyObject
* _argo0
= 0;
1537 char *_kwnames
[] = { "self", NULL
};
1541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1551 wxPy_BEGIN_ALLOW_THREADS
;
1552 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1554 wxPy_END_ALLOW_THREADS
;
1555 if (PyErr_Occurred()) return NULL
;
1557 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1558 _resultobj
= Py_BuildValue("s",_ptemp
);
1561 _resultobj
= Py_None
;
1566 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1567 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1568 PyObject
* _resultobj
;
1571 PyObject
* _argo0
= 0;
1572 char *_kwnames
[] = { "self", NULL
};
1576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1586 wxPy_BEGIN_ALLOW_THREADS
;
1587 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1589 wxPy_END_ALLOW_THREADS
;
1590 if (PyErr_Occurred()) return NULL
;
1592 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1593 _resultobj
= Py_BuildValue("s",_ptemp
);
1596 _resultobj
= Py_None
;
1601 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1602 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1603 PyObject
* _resultobj
;
1607 wxBitmapType _arg2
= (wxBitmapType
) wxBITMAP_TYPE_BMP
;
1608 PyObject
* _argo0
= 0;
1609 PyObject
* _obj1
= 0;
1610 char *_kwnames
[] = { "self","name","type", NULL
};
1613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1616 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1617 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1618 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1623 #if PYTHON_API_VERSION >= 1009
1624 char* tmpPtr
; int tmpSize
;
1625 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1626 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1629 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1631 _arg1
= new wxString(tmpPtr
, tmpSize
);
1633 if (!PyString_Check(_obj1
)) {
1634 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1637 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1641 wxPy_BEGIN_ALLOW_THREADS
;
1642 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1644 wxPy_END_ALLOW_THREADS
;
1645 if (PyErr_Occurred()) return NULL
;
1646 } _resultobj
= Py_BuildValue("i",_result
);
1654 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1655 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1656 PyObject
* _resultobj
;
1661 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1662 PyObject
* _argo0
= 0;
1663 PyObject
* _obj1
= 0;
1664 PyObject
* _argo3
= 0;
1665 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1668 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1671 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1672 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1673 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1678 #if PYTHON_API_VERSION >= 1009
1679 char* tmpPtr
; int tmpSize
;
1680 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1681 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1684 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1686 _arg1
= new wxString(tmpPtr
, tmpSize
);
1688 if (!PyString_Check(_obj1
)) {
1689 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1692 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1696 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1697 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1698 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1703 wxPy_BEGIN_ALLOW_THREADS
;
1704 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1706 wxPy_END_ALLOW_THREADS
;
1707 if (PyErr_Occurred()) return NULL
;
1708 } _resultobj
= Py_BuildValue("i",_result
);
1716 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1717 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1718 PyObject
* _resultobj
;
1721 PyObject
* _argo0
= 0;
1722 PyObject
* _argo1
= 0;
1723 char *_kwnames
[] = { "self","mask", NULL
};
1726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1736 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1737 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1738 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1743 wxPy_BEGIN_ALLOW_THREADS
;
1744 wxBitmap_SetMask(_arg0
,_arg1
);
1746 wxPy_END_ALLOW_THREADS
;
1747 if (PyErr_Occurred()) return NULL
;
1748 } Py_INCREF(Py_None
);
1749 _resultobj
= Py_None
;
1753 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1754 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1755 PyObject
* _resultobj
;
1758 PyObject
* _argo0
= 0;
1759 char *_kwnames
[] = { "self", NULL
};
1762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1772 wxPy_BEGIN_ALLOW_THREADS
;
1773 _result
= (bool )wxBitmap_Ok(_arg0
);
1775 wxPy_END_ALLOW_THREADS
;
1776 if (PyErr_Occurred()) return NULL
;
1777 } _resultobj
= Py_BuildValue("i",_result
);
1781 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1782 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1783 PyObject
* _resultobj
;
1786 PyObject
* _argo0
= 0;
1787 char *_kwnames
[] = { "self", NULL
};
1790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1793 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1794 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1800 wxPy_BEGIN_ALLOW_THREADS
;
1801 _result
= (int )wxBitmap_GetWidth(_arg0
);
1803 wxPy_END_ALLOW_THREADS
;
1804 if (PyErr_Occurred()) return NULL
;
1805 } _resultobj
= Py_BuildValue("i",_result
);
1809 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1810 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1811 PyObject
* _resultobj
;
1814 PyObject
* _argo0
= 0;
1815 char *_kwnames
[] = { "self", NULL
};
1818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1821 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1822 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1828 wxPy_BEGIN_ALLOW_THREADS
;
1829 _result
= (int )wxBitmap_GetHeight(_arg0
);
1831 wxPy_END_ALLOW_THREADS
;
1832 if (PyErr_Occurred()) return NULL
;
1833 } _resultobj
= Py_BuildValue("i",_result
);
1837 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1838 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1839 PyObject
* _resultobj
;
1842 PyObject
* _argo0
= 0;
1843 char *_kwnames
[] = { "self", NULL
};
1846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1856 wxPy_BEGIN_ALLOW_THREADS
;
1857 _result
= (int )wxBitmap_GetDepth(_arg0
);
1859 wxPy_END_ALLOW_THREADS
;
1860 if (PyErr_Occurred()) return NULL
;
1861 } _resultobj
= Py_BuildValue("i",_result
);
1865 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1866 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1867 PyObject
* _resultobj
;
1870 PyObject
* _argo0
= 0;
1871 char *_kwnames
[] = { "self","w", NULL
};
1874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1877 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1878 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1884 wxPy_BEGIN_ALLOW_THREADS
;
1885 wxBitmap_SetWidth(_arg0
,_arg1
);
1887 wxPy_END_ALLOW_THREADS
;
1888 if (PyErr_Occurred()) return NULL
;
1889 } Py_INCREF(Py_None
);
1890 _resultobj
= Py_None
;
1894 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1895 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1896 PyObject
* _resultobj
;
1899 PyObject
* _argo0
= 0;
1900 char *_kwnames
[] = { "self","h", NULL
};
1903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1906 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1907 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1913 wxPy_BEGIN_ALLOW_THREADS
;
1914 wxBitmap_SetHeight(_arg0
,_arg1
);
1916 wxPy_END_ALLOW_THREADS
;
1917 if (PyErr_Occurred()) return NULL
;
1918 } Py_INCREF(Py_None
);
1919 _resultobj
= Py_None
;
1923 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1924 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1925 PyObject
* _resultobj
;
1928 PyObject
* _argo0
= 0;
1929 char *_kwnames
[] = { "self","d", NULL
};
1932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1942 wxPy_BEGIN_ALLOW_THREADS
;
1943 wxBitmap_SetDepth(_arg0
,_arg1
);
1945 wxPy_END_ALLOW_THREADS
;
1946 if (PyErr_Occurred()) return NULL
;
1947 } Py_INCREF(Py_None
);
1948 _resultobj
= Py_None
;
1952 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1953 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1954 PyObject
* _resultobj
;
1958 PyObject
* _argo0
= 0;
1960 PyObject
* _obj1
= 0;
1961 char *_kwnames
[] = { "self","rect", NULL
};
1965 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1968 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1969 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1970 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1976 if (! wxRect_helper(_obj1
, &_arg1
))
1980 wxPy_BEGIN_ALLOW_THREADS
;
1981 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
1983 wxPy_END_ALLOW_THREADS
;
1984 if (PyErr_Occurred()) return NULL
;
1985 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1986 _resultobj
= Py_BuildValue("s",_ptemp
);
1990 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
1991 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1992 PyObject
* _resultobj
;
1996 PyObject
* _argo0
= 0;
1997 PyObject
* _argo1
= 0;
1998 char *_kwnames
[] = { "self","icon", NULL
};
2001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2011 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2012 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2018 wxPy_BEGIN_ALLOW_THREADS
;
2019 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2021 wxPy_END_ALLOW_THREADS
;
2022 if (PyErr_Occurred()) return NULL
;
2023 } _resultobj
= Py_BuildValue("i",_result
);
2027 static void *SwigwxMaskTowxObject(void *ptr
) {
2030 src
= (wxMask
*) ptr
;
2031 dest
= (wxObject
*) src
;
2032 return (void *) dest
;
2035 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2036 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2037 PyObject
* _resultobj
;
2040 PyObject
* _argo0
= 0;
2041 char *_kwnames
[] = { "bitmap", NULL
};
2045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2055 wxPy_BEGIN_ALLOW_THREADS
;
2056 _result
= (wxMask
*)new_wxMask(*_arg0
);
2058 wxPy_END_ALLOW_THREADS
;
2059 if (PyErr_Occurred()) return NULL
;
2061 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2062 _resultobj
= Py_BuildValue("s",_ptemp
);
2065 _resultobj
= Py_None
;
2070 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2071 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2072 PyObject
* _resultobj
;
2074 PyObject
* _argo0
= 0;
2075 char *_kwnames
[] = { "self", NULL
};
2078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2088 wxPy_BEGIN_ALLOW_THREADS
;
2089 wxMask_Destroy(_arg0
);
2091 wxPy_END_ALLOW_THREADS
;
2092 if (PyErr_Occurred()) return NULL
;
2093 } Py_INCREF(Py_None
);
2094 _resultobj
= Py_None
;
2098 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2101 src
= (wxIcon
*) ptr
;
2102 dest
= (wxGDIObject
*) src
;
2103 return (void *) dest
;
2106 static void *SwigwxIconTowxObject(void *ptr
) {
2109 src
= (wxIcon
*) ptr
;
2110 dest
= (wxObject
*) src
;
2111 return (void *) dest
;
2114 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2115 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2116 PyObject
* _resultobj
;
2120 int _arg2
= (int ) -1;
2121 int _arg3
= (int ) -1;
2122 PyObject
* _obj0
= 0;
2123 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2130 #if PYTHON_API_VERSION >= 1009
2131 char* tmpPtr
; int tmpSize
;
2132 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2133 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2136 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2138 _arg0
= new wxString(tmpPtr
, tmpSize
);
2140 if (!PyString_Check(_obj0
)) {
2141 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2144 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2148 wxPy_BEGIN_ALLOW_THREADS
;
2149 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2151 wxPy_END_ALLOW_THREADS
;
2152 if (PyErr_Occurred()) return NULL
;
2154 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2155 _resultobj
= Py_BuildValue("s",_ptemp
);
2158 _resultobj
= Py_None
;
2167 #define delete_wxIcon(_swigobj) (delete _swigobj)
2168 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2169 PyObject
* _resultobj
;
2171 PyObject
* _argo0
= 0;
2172 char *_kwnames
[] = { "self", NULL
};
2175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2185 wxPy_BEGIN_ALLOW_THREADS
;
2186 delete_wxIcon(_arg0
);
2188 wxPy_END_ALLOW_THREADS
;
2189 if (PyErr_Occurred()) return NULL
;
2190 } Py_INCREF(Py_None
);
2191 _resultobj
= Py_None
;
2195 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2196 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2197 PyObject
* _resultobj
;
2202 PyObject
* _argo0
= 0;
2203 PyObject
* _obj1
= 0;
2204 char *_kwnames
[] = { "self","name","flags", NULL
};
2207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2210 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2211 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2217 #if PYTHON_API_VERSION >= 1009
2218 char* tmpPtr
; int tmpSize
;
2219 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2220 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2223 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2225 _arg1
= new wxString(tmpPtr
, tmpSize
);
2227 if (!PyString_Check(_obj1
)) {
2228 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2231 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2235 wxPy_BEGIN_ALLOW_THREADS
;
2236 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2238 wxPy_END_ALLOW_THREADS
;
2239 if (PyErr_Occurred()) return NULL
;
2240 } _resultobj
= Py_BuildValue("i",_result
);
2248 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2249 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2250 PyObject
* _resultobj
;
2253 PyObject
* _argo0
= 0;
2254 char *_kwnames
[] = { "self", NULL
};
2257 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2260 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2261 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2262 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2267 wxPy_BEGIN_ALLOW_THREADS
;
2268 _result
= (bool )wxIcon_Ok(_arg0
);
2270 wxPy_END_ALLOW_THREADS
;
2271 if (PyErr_Occurred()) return NULL
;
2272 } _resultobj
= Py_BuildValue("i",_result
);
2276 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2277 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2278 PyObject
* _resultobj
;
2281 PyObject
* _argo0
= 0;
2282 char *_kwnames
[] = { "self", NULL
};
2285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2288 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2289 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2290 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2295 wxPy_BEGIN_ALLOW_THREADS
;
2296 _result
= (int )wxIcon_GetWidth(_arg0
);
2298 wxPy_END_ALLOW_THREADS
;
2299 if (PyErr_Occurred()) return NULL
;
2300 } _resultobj
= Py_BuildValue("i",_result
);
2304 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2305 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2306 PyObject
* _resultobj
;
2309 PyObject
* _argo0
= 0;
2310 char *_kwnames
[] = { "self", NULL
};
2313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2323 wxPy_BEGIN_ALLOW_THREADS
;
2324 _result
= (int )wxIcon_GetHeight(_arg0
);
2326 wxPy_END_ALLOW_THREADS
;
2327 if (PyErr_Occurred()) return NULL
;
2328 } _resultobj
= Py_BuildValue("i",_result
);
2332 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2333 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2334 PyObject
* _resultobj
;
2337 PyObject
* _argo0
= 0;
2338 char *_kwnames
[] = { "self", NULL
};
2341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2351 wxPy_BEGIN_ALLOW_THREADS
;
2352 _result
= (int )wxIcon_GetDepth(_arg0
);
2354 wxPy_END_ALLOW_THREADS
;
2355 if (PyErr_Occurred()) return NULL
;
2356 } _resultobj
= Py_BuildValue("i",_result
);
2360 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2361 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2362 PyObject
* _resultobj
;
2365 PyObject
* _argo0
= 0;
2366 char *_kwnames
[] = { "self","w", NULL
};
2369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2379 wxPy_BEGIN_ALLOW_THREADS
;
2380 wxIcon_SetWidth(_arg0
,_arg1
);
2382 wxPy_END_ALLOW_THREADS
;
2383 if (PyErr_Occurred()) return NULL
;
2384 } Py_INCREF(Py_None
);
2385 _resultobj
= Py_None
;
2389 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2390 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2391 PyObject
* _resultobj
;
2394 PyObject
* _argo0
= 0;
2395 char *_kwnames
[] = { "self","h", NULL
};
2398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2408 wxPy_BEGIN_ALLOW_THREADS
;
2409 wxIcon_SetHeight(_arg0
,_arg1
);
2411 wxPy_END_ALLOW_THREADS
;
2412 if (PyErr_Occurred()) return NULL
;
2413 } Py_INCREF(Py_None
);
2414 _resultobj
= Py_None
;
2418 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2419 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2420 PyObject
* _resultobj
;
2423 PyObject
* _argo0
= 0;
2424 char *_kwnames
[] = { "self","d", NULL
};
2427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2437 wxPy_BEGIN_ALLOW_THREADS
;
2438 wxIcon_SetDepth(_arg0
,_arg1
);
2440 wxPy_END_ALLOW_THREADS
;
2441 if (PyErr_Occurred()) return NULL
;
2442 } Py_INCREF(Py_None
);
2443 _resultobj
= Py_None
;
2447 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2448 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2449 PyObject
* _resultobj
;
2452 PyObject
* _argo0
= 0;
2453 PyObject
* _argo1
= 0;
2454 char *_kwnames
[] = { "self","bmp", NULL
};
2457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2467 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2468 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2474 wxPy_BEGIN_ALLOW_THREADS
;
2475 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2477 wxPy_END_ALLOW_THREADS
;
2478 if (PyErr_Occurred()) return NULL
;
2479 } Py_INCREF(Py_None
);
2480 _resultobj
= Py_None
;
2484 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2487 src
= (wxCursor
*) ptr
;
2488 dest
= (wxGDIObject
*) src
;
2489 return (void *) dest
;
2492 static void *SwigwxCursorTowxObject(void *ptr
) {
2495 src
= (wxCursor
*) ptr
;
2496 dest
= (wxObject
*) src
;
2497 return (void *) dest
;
2500 #define delete_wxCursor(_swigobj) (delete _swigobj)
2501 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2502 PyObject
* _resultobj
;
2504 PyObject
* _argo0
= 0;
2505 char *_kwnames
[] = { "self", NULL
};
2508 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2511 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2512 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2513 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2518 wxPy_BEGIN_ALLOW_THREADS
;
2519 delete_wxCursor(_arg0
);
2521 wxPy_END_ALLOW_THREADS
;
2522 if (PyErr_Occurred()) return NULL
;
2523 } Py_INCREF(Py_None
);
2524 _resultobj
= Py_None
;
2528 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2529 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2530 PyObject
* _resultobj
;
2533 PyObject
* _argo0
= 0;
2534 char *_kwnames
[] = { "self", NULL
};
2537 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2540 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2541 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2542 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2547 wxPy_BEGIN_ALLOW_THREADS
;
2548 _result
= (bool )wxCursor_Ok(_arg0
);
2550 wxPy_END_ALLOW_THREADS
;
2551 if (PyErr_Occurred()) return NULL
;
2552 } _resultobj
= Py_BuildValue("i",_result
);
2556 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
2557 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2558 PyObject
* _resultobj
;
2560 wxNativeFontInfo
* _arg0
;
2562 PyObject
* _argo0
= 0;
2563 PyObject
* _obj1
= 0;
2564 char *_kwnames
[] = { "self","s", NULL
};
2567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
2570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
2577 #if PYTHON_API_VERSION >= 1009
2578 char* tmpPtr
; int tmpSize
;
2579 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2580 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2583 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2585 _arg1
= new wxString(tmpPtr
, tmpSize
);
2587 if (!PyString_Check(_obj1
)) {
2588 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2591 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2595 wxPy_BEGIN_ALLOW_THREADS
;
2596 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
2598 wxPy_END_ALLOW_THREADS
;
2599 if (PyErr_Occurred()) return NULL
;
2600 } _resultobj
= Py_BuildValue("i",_result
);
2608 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
2609 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2610 PyObject
* _resultobj
;
2612 wxNativeFontInfo
* _arg0
;
2613 PyObject
* _argo0
= 0;
2614 char *_kwnames
[] = { "self", NULL
};
2617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
2620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
2627 wxPy_BEGIN_ALLOW_THREADS
;
2628 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
2630 wxPy_END_ALLOW_THREADS
;
2631 if (PyErr_Occurred()) return NULL
;
2633 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2641 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
2642 return self
->ToString();
2644 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2645 PyObject
* _resultobj
;
2647 wxNativeFontInfo
* _arg0
;
2648 PyObject
* _argo0
= 0;
2649 char *_kwnames
[] = { "self", NULL
};
2652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
2655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
2662 wxPy_BEGIN_ALLOW_THREADS
;
2663 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
2665 wxPy_END_ALLOW_THREADS
;
2666 if (PyErr_Occurred()) return NULL
;
2668 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2676 #define new_wxFontMapper() (new wxFontMapper())
2677 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2678 PyObject
* _resultobj
;
2679 wxFontMapper
* _result
;
2680 char *_kwnames
[] = { NULL
};
2684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
2687 wxPy_BEGIN_ALLOW_THREADS
;
2688 _result
= (wxFontMapper
*)new_wxFontMapper();
2690 wxPy_END_ALLOW_THREADS
;
2691 if (PyErr_Occurred()) return NULL
;
2693 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
2694 _resultobj
= Py_BuildValue("s",_ptemp
);
2697 _resultobj
= Py_None
;
2702 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
2703 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2704 PyObject
* _resultobj
;
2705 wxFontMapper
* _arg0
;
2706 PyObject
* _argo0
= 0;
2707 char *_kwnames
[] = { "self", NULL
};
2710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
2713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
2720 wxPy_BEGIN_ALLOW_THREADS
;
2721 delete_wxFontMapper(_arg0
);
2723 wxPy_END_ALLOW_THREADS
;
2724 if (PyErr_Occurred()) return NULL
;
2725 } Py_INCREF(Py_None
);
2726 _resultobj
= Py_None
;
2730 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
2731 wxFontEncoding alt_enc
;
2732 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
2733 return PyInt_FromLong(alt_enc
);
2739 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2740 PyObject
* _resultobj
;
2742 wxFontMapper
* _arg0
;
2743 wxFontEncoding _arg1
;
2744 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
2745 bool _arg3
= (bool ) TRUE
;
2746 PyObject
* _argo0
= 0;
2747 PyObject
* _obj2
= 0;
2748 int tempbool3
= (int) TRUE
;
2749 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
2752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
2755 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2756 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2757 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
2763 #if PYTHON_API_VERSION >= 1009
2764 char* tmpPtr
; int tmpSize
;
2765 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2766 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2769 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2771 _arg2
= new wxString(tmpPtr
, tmpSize
);
2773 if (!PyString_Check(_obj2
)) {
2774 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2777 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2780 _arg3
= (bool ) tempbool3
;
2782 wxPy_BEGIN_ALLOW_THREADS
;
2783 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
2785 wxPy_END_ALLOW_THREADS
;
2786 if (PyErr_Occurred()) return NULL
;
2788 _resultobj
= _result
;
2797 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
2798 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2799 PyObject
* _resultobj
;
2801 wxFontMapper
* _arg0
;
2802 wxFontEncoding _arg1
;
2803 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
2804 PyObject
* _argo0
= 0;
2805 PyObject
* _obj2
= 0;
2806 char *_kwnames
[] = { "self","encoding","facename", NULL
};
2809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
2820 #if PYTHON_API_VERSION >= 1009
2821 char* tmpPtr
; int tmpSize
;
2822 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2823 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2826 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2828 _arg2
= new wxString(tmpPtr
, tmpSize
);
2830 if (!PyString_Check(_obj2
)) {
2831 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2834 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2838 wxPy_BEGIN_ALLOW_THREADS
;
2839 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
2841 wxPy_END_ALLOW_THREADS
;
2842 if (PyErr_Occurred()) return NULL
;
2843 } _resultobj
= Py_BuildValue("i",_result
);
2851 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
2852 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2853 PyObject
* _resultobj
;
2854 wxFontEncoding _result
;
2855 wxFontMapper
* _arg0
;
2857 bool _arg2
= (bool ) TRUE
;
2858 PyObject
* _argo0
= 0;
2859 PyObject
* _obj1
= 0;
2860 int tempbool2
= (int) TRUE
;
2861 char *_kwnames
[] = { "self","charset","interactive", NULL
};
2864 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
2867 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2868 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2869 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
2874 #if PYTHON_API_VERSION >= 1009
2875 char* tmpPtr
; int tmpSize
;
2876 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2877 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2880 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2882 _arg1
= new wxString(tmpPtr
, tmpSize
);
2884 if (!PyString_Check(_obj1
)) {
2885 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2888 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2891 _arg2
= (bool ) tempbool2
;
2893 wxPy_BEGIN_ALLOW_THREADS
;
2894 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
2896 wxPy_END_ALLOW_THREADS
;
2897 if (PyErr_Occurred()) return NULL
;
2898 } _resultobj
= Py_BuildValue("i",_result
);
2906 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2907 PyObject
* _resultobj
;
2909 wxFontEncoding _arg0
;
2910 char *_kwnames
[] = { "encoding", NULL
};
2913 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
2916 wxPy_BEGIN_ALLOW_THREADS
;
2917 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
2919 wxPy_END_ALLOW_THREADS
;
2920 if (PyErr_Occurred()) return NULL
;
2922 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2930 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2931 PyObject
* _resultobj
;
2933 wxFontEncoding _arg0
;
2934 char *_kwnames
[] = { "encoding", NULL
};
2937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
2940 wxPy_BEGIN_ALLOW_THREADS
;
2941 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
2943 wxPy_END_ALLOW_THREADS
;
2944 if (PyErr_Occurred()) return NULL
;
2946 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2954 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
2955 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2956 PyObject
* _resultobj
;
2957 wxFontMapper
* _arg0
;
2959 PyObject
* _argo0
= 0;
2960 PyObject
* _argo1
= 0;
2961 char *_kwnames
[] = { "self","parent", NULL
};
2964 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
2967 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2968 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2969 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
2974 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2975 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
2976 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
2981 wxPy_BEGIN_ALLOW_THREADS
;
2982 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
2984 wxPy_END_ALLOW_THREADS
;
2985 if (PyErr_Occurred()) return NULL
;
2986 } Py_INCREF(Py_None
);
2987 _resultobj
= Py_None
;
2991 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
2992 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2993 PyObject
* _resultobj
;
2994 wxFontMapper
* _arg0
;
2996 PyObject
* _argo0
= 0;
2997 PyObject
* _obj1
= 0;
2998 char *_kwnames
[] = { "self","title", NULL
};
3001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
3004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3011 #if PYTHON_API_VERSION >= 1009
3012 char* tmpPtr
; int tmpSize
;
3013 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3014 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3017 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3019 _arg1
= new wxString(tmpPtr
, tmpSize
);
3021 if (!PyString_Check(_obj1
)) {
3022 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3025 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3029 wxPy_BEGIN_ALLOW_THREADS
;
3030 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
3032 wxPy_END_ALLOW_THREADS
;
3033 if (PyErr_Occurred()) return NULL
;
3034 } Py_INCREF(Py_None
);
3035 _resultobj
= Py_None
;
3043 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3044 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3045 PyObject
* _resultobj
;
3046 wxFontMapper
* _arg0
;
3047 wxConfigBase
* _arg1
;
3048 PyObject
* _argo0
= 0;
3049 PyObject
* _argo1
= 0;
3050 char *_kwnames
[] = { "self","config", NULL
};
3053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
3056 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3057 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3063 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3064 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
3065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3070 wxPy_BEGIN_ALLOW_THREADS
;
3071 wxFontMapper_SetConfig(_arg0
,_arg1
);
3073 wxPy_END_ALLOW_THREADS
;
3074 if (PyErr_Occurred()) return NULL
;
3075 } Py_INCREF(Py_None
);
3076 _resultobj
= Py_None
;
3080 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3081 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3082 PyObject
* _resultobj
;
3083 wxFontMapper
* _arg0
;
3085 PyObject
* _argo0
= 0;
3086 PyObject
* _obj1
= 0;
3087 char *_kwnames
[] = { "self","prefix", NULL
};
3090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
3093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3100 #if PYTHON_API_VERSION >= 1009
3101 char* tmpPtr
; int tmpSize
;
3102 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3103 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3106 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3108 _arg1
= new wxString(tmpPtr
, tmpSize
);
3110 if (!PyString_Check(_obj1
)) {
3111 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3114 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3118 wxPy_BEGIN_ALLOW_THREADS
;
3119 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
3121 wxPy_END_ALLOW_THREADS
;
3122 if (PyErr_Occurred()) return NULL
;
3123 } Py_INCREF(Py_None
);
3124 _resultobj
= Py_None
;
3132 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3133 PyObject
* _resultobj
;
3135 char *_kwnames
[] = { NULL
};
3138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
3141 wxPy_BEGIN_ALLOW_THREADS
;
3142 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
3144 wxPy_END_ALLOW_THREADS
;
3145 if (PyErr_Occurred()) return NULL
;
3146 } _resultobj
= Py_BuildValue("s", _result
);
3150 static void *SwigwxFontTowxGDIObject(void *ptr
) {
3153 src
= (wxFont
*) ptr
;
3154 dest
= (wxGDIObject
*) src
;
3155 return (void *) dest
;
3158 static void *SwigwxFontTowxObject(void *ptr
) {
3161 src
= (wxFont
*) ptr
;
3162 dest
= (wxObject
*) src
;
3163 return (void *) dest
;
3166 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3167 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3168 PyObject
* _resultobj
;
3174 int _arg4
= (int ) FALSE
;
3175 char * _arg5
= (char *) "";
3176 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3177 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
3181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3184 wxPy_BEGIN_ALLOW_THREADS
;
3185 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3187 wxPy_END_ALLOW_THREADS
;
3188 if (PyErr_Occurred()) return NULL
;
3190 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3191 _resultobj
= Py_BuildValue("s",_ptemp
);
3194 _resultobj
= Py_None
;
3199 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3200 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3201 PyObject
* _resultobj
;
3203 wxNativeFontInfo
* _arg0
;
3204 PyObject
* _argo0
= 0;
3205 char *_kwnames
[] = { "info", NULL
};
3209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
3212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3219 wxPy_BEGIN_ALLOW_THREADS
;
3220 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
3222 wxPy_END_ALLOW_THREADS
;
3223 if (PyErr_Occurred()) return NULL
;
3225 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3226 _resultobj
= Py_BuildValue("s",_ptemp
);
3229 _resultobj
= Py_None
;
3234 #define delete_wxFont(_swigobj) (delete _swigobj)
3235 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3236 PyObject
* _resultobj
;
3238 PyObject
* _argo0
= 0;
3239 char *_kwnames
[] = { "self", NULL
};
3242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3252 wxPy_BEGIN_ALLOW_THREADS
;
3253 delete_wxFont(_arg0
);
3255 wxPy_END_ALLOW_THREADS
;
3256 if (PyErr_Occurred()) return NULL
;
3257 } Py_INCREF(Py_None
);
3258 _resultobj
= Py_None
;
3262 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3263 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3264 PyObject
* _resultobj
;
3267 PyObject
* _argo0
= 0;
3268 char *_kwnames
[] = { "self", NULL
};
3271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3281 wxPy_BEGIN_ALLOW_THREADS
;
3282 _result
= (bool )wxFont_Ok(_arg0
);
3284 wxPy_END_ALLOW_THREADS
;
3285 if (PyErr_Occurred()) return NULL
;
3286 } _resultobj
= Py_BuildValue("i",_result
);
3290 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3291 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3292 PyObject
* _resultobj
;
3295 PyObject
* _argo0
= 0;
3296 char *_kwnames
[] = { "self", NULL
};
3299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3309 wxPy_BEGIN_ALLOW_THREADS
;
3310 _result
= (int )wxFont_GetPointSize(_arg0
);
3312 wxPy_END_ALLOW_THREADS
;
3313 if (PyErr_Occurred()) return NULL
;
3314 } _resultobj
= Py_BuildValue("i",_result
);
3318 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3319 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3320 PyObject
* _resultobj
;
3323 PyObject
* _argo0
= 0;
3324 char *_kwnames
[] = { "self", NULL
};
3327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3337 wxPy_BEGIN_ALLOW_THREADS
;
3338 _result
= (int )wxFont_GetFamily(_arg0
);
3340 wxPy_END_ALLOW_THREADS
;
3341 if (PyErr_Occurred()) return NULL
;
3342 } _resultobj
= Py_BuildValue("i",_result
);
3346 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3347 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3348 PyObject
* _resultobj
;
3351 PyObject
* _argo0
= 0;
3352 char *_kwnames
[] = { "self", NULL
};
3355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3365 wxPy_BEGIN_ALLOW_THREADS
;
3366 _result
= (int )wxFont_GetStyle(_arg0
);
3368 wxPy_END_ALLOW_THREADS
;
3369 if (PyErr_Occurred()) return NULL
;
3370 } _resultobj
= Py_BuildValue("i",_result
);
3374 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3375 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3376 PyObject
* _resultobj
;
3379 PyObject
* _argo0
= 0;
3380 char *_kwnames
[] = { "self", NULL
};
3383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
3386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3393 wxPy_BEGIN_ALLOW_THREADS
;
3394 _result
= (int )wxFont_GetWeight(_arg0
);
3396 wxPy_END_ALLOW_THREADS
;
3397 if (PyErr_Occurred()) return NULL
;
3398 } _resultobj
= Py_BuildValue("i",_result
);
3402 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3403 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3404 PyObject
* _resultobj
;
3407 PyObject
* _argo0
= 0;
3408 char *_kwnames
[] = { "self", NULL
};
3411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
3414 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3415 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3421 wxPy_BEGIN_ALLOW_THREADS
;
3422 _result
= (bool )wxFont_GetUnderlined(_arg0
);
3424 wxPy_END_ALLOW_THREADS
;
3425 if (PyErr_Occurred()) return NULL
;
3426 } _resultobj
= Py_BuildValue("i",_result
);
3430 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3431 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3432 PyObject
* _resultobj
;
3435 PyObject
* _argo0
= 0;
3436 char *_kwnames
[] = { "self", NULL
};
3439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
3442 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3443 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3449 wxPy_BEGIN_ALLOW_THREADS
;
3450 _result
= new wxString (wxFont_GetFaceName(_arg0
));
3452 wxPy_END_ALLOW_THREADS
;
3453 if (PyErr_Occurred()) return NULL
;
3455 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3463 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3464 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3465 PyObject
* _resultobj
;
3466 wxFontEncoding _result
;
3468 PyObject
* _argo0
= 0;
3469 char *_kwnames
[] = { "self", NULL
};
3472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
3475 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3476 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3477 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3482 wxPy_BEGIN_ALLOW_THREADS
;
3483 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
3485 wxPy_END_ALLOW_THREADS
;
3486 if (PyErr_Occurred()) return NULL
;
3487 } _resultobj
= Py_BuildValue("i",_result
);
3491 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
3492 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3493 PyObject
* _resultobj
;
3494 wxNativeFontInfo
* _result
;
3496 PyObject
* _argo0
= 0;
3497 char *_kwnames
[] = { "self", NULL
};
3501 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
3504 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3505 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3506 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
3511 wxPy_BEGIN_ALLOW_THREADS
;
3512 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
3514 wxPy_END_ALLOW_THREADS
;
3515 if (PyErr_Occurred()) return NULL
;
3517 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
3518 _resultobj
= Py_BuildValue("s",_ptemp
);
3521 _resultobj
= Py_None
;
3526 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3527 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3528 PyObject
* _resultobj
;
3531 PyObject
* _argo0
= 0;
3532 char *_kwnames
[] = { "self","pointSize", NULL
};
3535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
3538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
3545 wxPy_BEGIN_ALLOW_THREADS
;
3546 wxFont_SetPointSize(_arg0
,_arg1
);
3548 wxPy_END_ALLOW_THREADS
;
3549 if (PyErr_Occurred()) return NULL
;
3550 } Py_INCREF(Py_None
);
3551 _resultobj
= Py_None
;
3555 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3556 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3557 PyObject
* _resultobj
;
3560 PyObject
* _argo0
= 0;
3561 char *_kwnames
[] = { "self","family", NULL
};
3564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
3567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
3574 wxPy_BEGIN_ALLOW_THREADS
;
3575 wxFont_SetFamily(_arg0
,_arg1
);
3577 wxPy_END_ALLOW_THREADS
;
3578 if (PyErr_Occurred()) return NULL
;
3579 } Py_INCREF(Py_None
);
3580 _resultobj
= Py_None
;
3584 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3585 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3586 PyObject
* _resultobj
;
3589 PyObject
* _argo0
= 0;
3590 char *_kwnames
[] = { "self","style", NULL
};
3593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
3603 wxPy_BEGIN_ALLOW_THREADS
;
3604 wxFont_SetStyle(_arg0
,_arg1
);
3606 wxPy_END_ALLOW_THREADS
;
3607 if (PyErr_Occurred()) return NULL
;
3608 } Py_INCREF(Py_None
);
3609 _resultobj
= Py_None
;
3613 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3614 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3615 PyObject
* _resultobj
;
3618 PyObject
* _argo0
= 0;
3619 char *_kwnames
[] = { "self","weight", NULL
};
3622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
3625 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3626 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
3632 wxPy_BEGIN_ALLOW_THREADS
;
3633 wxFont_SetWeight(_arg0
,_arg1
);
3635 wxPy_END_ALLOW_THREADS
;
3636 if (PyErr_Occurred()) return NULL
;
3637 } Py_INCREF(Py_None
);
3638 _resultobj
= Py_None
;
3642 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3643 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3644 PyObject
* _resultobj
;
3647 PyObject
* _argo0
= 0;
3648 PyObject
* _obj1
= 0;
3649 char *_kwnames
[] = { "self","faceName", NULL
};
3652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
3655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
3662 #if PYTHON_API_VERSION >= 1009
3663 char* tmpPtr
; int tmpSize
;
3664 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3665 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3668 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3670 _arg1
= new wxString(tmpPtr
, tmpSize
);
3672 if (!PyString_Check(_obj1
)) {
3673 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3676 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3680 wxPy_BEGIN_ALLOW_THREADS
;
3681 wxFont_SetFaceName(_arg0
,*_arg1
);
3683 wxPy_END_ALLOW_THREADS
;
3684 if (PyErr_Occurred()) return NULL
;
3685 } Py_INCREF(Py_None
);
3686 _resultobj
= Py_None
;
3694 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3695 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3696 PyObject
* _resultobj
;
3699 PyObject
* _argo0
= 0;
3701 char *_kwnames
[] = { "self","underlined", NULL
};
3704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
3707 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3708 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3709 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
3713 _arg1
= (bool ) tempbool1
;
3715 wxPy_BEGIN_ALLOW_THREADS
;
3716 wxFont_SetUnderlined(_arg0
,_arg1
);
3718 wxPy_END_ALLOW_THREADS
;
3719 if (PyErr_Occurred()) return NULL
;
3720 } Py_INCREF(Py_None
);
3721 _resultobj
= Py_None
;
3725 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3726 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3727 PyObject
* _resultobj
;
3729 wxFontEncoding _arg1
;
3730 PyObject
* _argo0
= 0;
3731 char *_kwnames
[] = { "self","encoding", NULL
};
3734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
3737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
3744 wxPy_BEGIN_ALLOW_THREADS
;
3745 wxFont_SetEncoding(_arg0
,_arg1
);
3747 wxPy_END_ALLOW_THREADS
;
3748 if (PyErr_Occurred()) return NULL
;
3749 } Py_INCREF(Py_None
);
3750 _resultobj
= Py_None
;
3754 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
3755 static PyObject
*_wrap_wxFont_SetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3756 PyObject
* _resultobj
;
3758 wxNativeFontInfo
* _arg1
;
3759 PyObject
* _argo0
= 0;
3760 PyObject
* _argo1
= 0;
3761 char *_kwnames
[] = { "self","info", NULL
};
3764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfo",_kwnames
,&_argo0
,&_argo1
))
3767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
3774 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3775 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxNativeFontInfo_p")) {
3776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
3781 wxPy_BEGIN_ALLOW_THREADS
;
3782 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
3784 wxPy_END_ALLOW_THREADS
;
3785 if (PyErr_Occurred()) return NULL
;
3786 } Py_INCREF(Py_None
);
3787 _resultobj
= Py_None
;
3791 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
3792 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3793 PyObject
* _resultobj
;
3796 PyObject
* _argo0
= 0;
3797 char *_kwnames
[] = { "self", NULL
};
3800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
3803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
3810 wxPy_BEGIN_ALLOW_THREADS
;
3811 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
3813 wxPy_END_ALLOW_THREADS
;
3814 if (PyErr_Occurred()) return NULL
;
3816 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3824 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
3825 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3826 PyObject
* _resultobj
;
3829 PyObject
* _argo0
= 0;
3830 char *_kwnames
[] = { "self", NULL
};
3833 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
3836 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3837 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3838 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
3843 wxPy_BEGIN_ALLOW_THREADS
;
3844 _result
= new wxString (wxFont_GetStyleString(_arg0
));
3846 wxPy_END_ALLOW_THREADS
;
3847 if (PyErr_Occurred()) return NULL
;
3849 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3857 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
3858 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3859 PyObject
* _resultobj
;
3862 PyObject
* _argo0
= 0;
3863 char *_kwnames
[] = { "self", NULL
};
3866 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
3869 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3870 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3871 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
3876 wxPy_BEGIN_ALLOW_THREADS
;
3877 _result
= new wxString (wxFont_GetWeightString(_arg0
));
3879 wxPy_END_ALLOW_THREADS
;
3880 if (PyErr_Occurred()) return NULL
;
3882 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3890 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3891 PyObject
* _resultobj
;
3892 wxFontEncoding _result
;
3893 char *_kwnames
[] = { NULL
};
3896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
3899 wxPy_BEGIN_ALLOW_THREADS
;
3900 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
3902 wxPy_END_ALLOW_THREADS
;
3903 if (PyErr_Occurred()) return NULL
;
3904 } _resultobj
= Py_BuildValue("i",_result
);
3908 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3909 PyObject
* _resultobj
;
3910 wxFontEncoding _arg0
;
3911 char *_kwnames
[] = { "encoding", NULL
};
3914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
3917 wxPy_BEGIN_ALLOW_THREADS
;
3918 wxFont::SetDefaultEncoding(_arg0
);
3920 wxPy_END_ALLOW_THREADS
;
3921 if (PyErr_Occurred()) return NULL
;
3922 } Py_INCREF(Py_None
);
3923 _resultobj
= Py_None
;
3927 static void *SwigwxFontListTowxObject(void *ptr
) {
3930 src
= (wxFontList
*) ptr
;
3931 dest
= (wxObject
*) src
;
3932 return (void *) dest
;
3935 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
3936 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3937 PyObject
* _resultobj
;
3940 PyObject
* _argo0
= 0;
3941 PyObject
* _argo1
= 0;
3942 char *_kwnames
[] = { "self","font", NULL
};
3945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
3948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
3955 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3956 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
3962 wxPy_BEGIN_ALLOW_THREADS
;
3963 wxFontList_AddFont(_arg0
,_arg1
);
3965 wxPy_END_ALLOW_THREADS
;
3966 if (PyErr_Occurred()) return NULL
;
3967 } Py_INCREF(Py_None
);
3968 _resultobj
= Py_None
;
3972 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3973 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3974 PyObject
* _resultobj
;
3981 bool _arg5
= (bool ) FALSE
;
3982 char * _arg6
= (char *) NULL
;
3983 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3984 PyObject
* _argo0
= 0;
3985 int tempbool5
= (int) FALSE
;
3986 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
3990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
3993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
3999 _arg5
= (bool ) tempbool5
;
4001 wxPy_BEGIN_ALLOW_THREADS
;
4002 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
4004 wxPy_END_ALLOW_THREADS
;
4005 if (PyErr_Occurred()) return NULL
;
4007 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4008 _resultobj
= Py_BuildValue("s",_ptemp
);
4011 _resultobj
= Py_None
;
4016 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4017 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4018 PyObject
* _resultobj
;
4021 PyObject
* _argo0
= 0;
4022 PyObject
* _argo1
= 0;
4023 char *_kwnames
[] = { "self","font", NULL
};
4026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
4029 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4030 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4036 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4037 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4043 wxPy_BEGIN_ALLOW_THREADS
;
4044 wxFontList_RemoveFont(_arg0
,_arg1
);
4046 wxPy_END_ALLOW_THREADS
;
4047 if (PyErr_Occurred()) return NULL
;
4048 } Py_INCREF(Py_None
);
4049 _resultobj
= Py_None
;
4053 static void *SwigwxColourTowxObject(void *ptr
) {
4056 src
= (wxColour
*) ptr
;
4057 dest
= (wxObject
*) src
;
4058 return (void *) dest
;
4061 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4062 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4063 PyObject
* _resultobj
;
4065 unsigned char _arg0
= (unsigned char ) 0;
4066 unsigned char _arg1
= (unsigned char ) 0;
4067 unsigned char _arg2
= (unsigned char ) 0;
4068 char *_kwnames
[] = { "red","green","blue", NULL
};
4072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
4075 wxPy_BEGIN_ALLOW_THREADS
;
4076 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
4078 wxPy_END_ALLOW_THREADS
;
4079 if (PyErr_Occurred()) return NULL
;
4081 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4082 _resultobj
= Py_BuildValue("s",_ptemp
);
4085 _resultobj
= Py_None
;
4090 #define delete_wxColour(_swigobj) (delete _swigobj)
4091 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4092 PyObject
* _resultobj
;
4095 PyObject
* _obj0
= 0;
4096 char *_kwnames
[] = { "self", NULL
};
4099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
4103 if (! wxColour_helper(_obj0
, &_arg0
))
4107 wxPy_BEGIN_ALLOW_THREADS
;
4108 delete_wxColour(_arg0
);
4110 wxPy_END_ALLOW_THREADS
;
4111 if (PyErr_Occurred()) return NULL
;
4112 } Py_INCREF(Py_None
);
4113 _resultobj
= Py_None
;
4117 #define wxColour_Red(_swigobj) (_swigobj->Red())
4118 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4119 PyObject
* _resultobj
;
4120 unsigned char _result
;
4123 PyObject
* _obj0
= 0;
4124 char *_kwnames
[] = { "self", NULL
};
4127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
4131 if (! wxColour_helper(_obj0
, &_arg0
))
4135 wxPy_BEGIN_ALLOW_THREADS
;
4136 _result
= (unsigned char )wxColour_Red(_arg0
);
4138 wxPy_END_ALLOW_THREADS
;
4139 if (PyErr_Occurred()) return NULL
;
4140 } _resultobj
= Py_BuildValue("b",_result
);
4144 #define wxColour_Green(_swigobj) (_swigobj->Green())
4145 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4146 PyObject
* _resultobj
;
4147 unsigned char _result
;
4150 PyObject
* _obj0
= 0;
4151 char *_kwnames
[] = { "self", NULL
};
4154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
4158 if (! wxColour_helper(_obj0
, &_arg0
))
4162 wxPy_BEGIN_ALLOW_THREADS
;
4163 _result
= (unsigned char )wxColour_Green(_arg0
);
4165 wxPy_END_ALLOW_THREADS
;
4166 if (PyErr_Occurred()) return NULL
;
4167 } _resultobj
= Py_BuildValue("b",_result
);
4171 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4172 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4173 PyObject
* _resultobj
;
4174 unsigned char _result
;
4177 PyObject
* _obj0
= 0;
4178 char *_kwnames
[] = { "self", NULL
};
4181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
4185 if (! wxColour_helper(_obj0
, &_arg0
))
4189 wxPy_BEGIN_ALLOW_THREADS
;
4190 _result
= (unsigned char )wxColour_Blue(_arg0
);
4192 wxPy_END_ALLOW_THREADS
;
4193 if (PyErr_Occurred()) return NULL
;
4194 } _resultobj
= Py_BuildValue("b",_result
);
4198 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4199 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4200 PyObject
* _resultobj
;
4204 PyObject
* _obj0
= 0;
4205 char *_kwnames
[] = { "self", NULL
};
4208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
4212 if (! wxColour_helper(_obj0
, &_arg0
))
4216 wxPy_BEGIN_ALLOW_THREADS
;
4217 _result
= (bool )wxColour_Ok(_arg0
);
4219 wxPy_END_ALLOW_THREADS
;
4220 if (PyErr_Occurred()) return NULL
;
4221 } _resultobj
= Py_BuildValue("i",_result
);
4225 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4226 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4227 PyObject
* _resultobj
;
4229 unsigned char _arg1
;
4230 unsigned char _arg2
;
4231 unsigned char _arg3
;
4233 PyObject
* _obj0
= 0;
4234 char *_kwnames
[] = { "self","red","green","blue", NULL
};
4237 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
4241 if (! wxColour_helper(_obj0
, &_arg0
))
4245 wxPy_BEGIN_ALLOW_THREADS
;
4246 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
4248 wxPy_END_ALLOW_THREADS
;
4249 if (PyErr_Occurred()) return NULL
;
4250 } Py_INCREF(Py_None
);
4251 _resultobj
= Py_None
;
4255 static PyObject
* wxColour_Get(wxColour
*self
) {
4256 PyObject
* rv
= PyTuple_New(3);
4257 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
4258 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
4259 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
4262 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4263 PyObject
* _resultobj
;
4267 PyObject
* _obj0
= 0;
4268 char *_kwnames
[] = { "self", NULL
};
4271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
4275 if (! wxColour_helper(_obj0
, &_arg0
))
4279 wxPy_BEGIN_ALLOW_THREADS
;
4280 _result
= (PyObject
*)wxColour_Get(_arg0
);
4282 wxPy_END_ALLOW_THREADS
;
4283 if (PyErr_Occurred()) return NULL
;
4285 _resultobj
= _result
;
4290 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4291 wxColourDatabase
*src
;
4293 src
= (wxColourDatabase
*) ptr
;
4294 dest
= (wxObject
*) src
;
4295 return (void *) dest
;
4298 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4299 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4300 PyObject
* _resultobj
;
4302 wxColourDatabase
* _arg0
;
4304 PyObject
* _argo0
= 0;
4305 PyObject
* _obj1
= 0;
4306 char *_kwnames
[] = { "self","colour", NULL
};
4310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
4313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4320 #if PYTHON_API_VERSION >= 1009
4321 char* tmpPtr
; int tmpSize
;
4322 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4323 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4326 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4328 _arg1
= new wxString(tmpPtr
, tmpSize
);
4330 if (!PyString_Check(_obj1
)) {
4331 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4334 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4338 wxPy_BEGIN_ALLOW_THREADS
;
4339 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
4341 wxPy_END_ALLOW_THREADS
;
4342 if (PyErr_Occurred()) return NULL
;
4344 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4345 _resultobj
= Py_BuildValue("s",_ptemp
);
4348 _resultobj
= Py_None
;
4357 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4358 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4359 PyObject
* _resultobj
;
4361 wxColourDatabase
* _arg0
;
4363 PyObject
* _argo0
= 0;
4365 PyObject
* _obj1
= 0;
4366 char *_kwnames
[] = { "self","colour", NULL
};
4369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
4372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
4380 if (! wxColour_helper(_obj1
, &_arg1
))
4384 wxPy_BEGIN_ALLOW_THREADS
;
4385 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
4387 wxPy_END_ALLOW_THREADS
;
4388 if (PyErr_Occurred()) return NULL
;
4390 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4398 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
4399 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
4401 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4402 PyObject
* _resultobj
;
4403 wxColourDatabase
* _arg0
;
4408 PyObject
* _argo0
= 0;
4409 PyObject
* _obj1
= 0;
4410 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
4413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4423 #if PYTHON_API_VERSION >= 1009
4424 char* tmpPtr
; int tmpSize
;
4425 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4426 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4429 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4431 _arg1
= new wxString(tmpPtr
, tmpSize
);
4433 if (!PyString_Check(_obj1
)) {
4434 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4437 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4441 wxPy_BEGIN_ALLOW_THREADS
;
4442 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
4444 wxPy_END_ALLOW_THREADS
;
4445 if (PyErr_Occurred()) return NULL
;
4446 } Py_INCREF(Py_None
);
4447 _resultobj
= Py_None
;
4455 static void *SwigwxPenTowxGDIObject(void *ptr
) {
4458 src
= (wxPen
*) ptr
;
4459 dest
= (wxGDIObject
*) src
;
4460 return (void *) dest
;
4463 static void *SwigwxPenTowxObject(void *ptr
) {
4466 src
= (wxPen
*) ptr
;
4467 dest
= (wxObject
*) src
;
4468 return (void *) dest
;
4471 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4472 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4473 PyObject
* _resultobj
;
4476 int _arg1
= (int ) 1;
4477 int _arg2
= (int ) wxSOLID
;
4479 PyObject
* _obj0
= 0;
4480 char *_kwnames
[] = { "colour","width","style", NULL
};
4484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4488 if (! wxColour_helper(_obj0
, &_arg0
))
4492 wxPy_BEGIN_ALLOW_THREADS
;
4493 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
4495 wxPy_END_ALLOW_THREADS
;
4496 if (PyErr_Occurred()) return NULL
;
4498 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4499 _resultobj
= Py_BuildValue("s",_ptemp
);
4502 _resultobj
= Py_None
;
4507 #define delete_wxPen(_swigobj) (delete _swigobj)
4508 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4509 PyObject
* _resultobj
;
4511 PyObject
* _argo0
= 0;
4512 char *_kwnames
[] = { "self", NULL
};
4515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
4518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4525 wxPy_BEGIN_ALLOW_THREADS
;
4526 delete_wxPen(_arg0
);
4528 wxPy_END_ALLOW_THREADS
;
4529 if (PyErr_Occurred()) return NULL
;
4530 } Py_INCREF(Py_None
);
4531 _resultobj
= Py_None
;
4535 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4536 static PyObject
*_wrap_wxPen_GetCap(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:wxPen_GetCap",_kwnames
,&_argo0
))
4547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4554 wxPy_BEGIN_ALLOW_THREADS
;
4555 _result
= (int )wxPen_GetCap(_arg0
);
4557 wxPy_END_ALLOW_THREADS
;
4558 if (PyErr_Occurred()) return NULL
;
4559 } _resultobj
= Py_BuildValue("i",_result
);
4563 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4564 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4565 PyObject
* _resultobj
;
4568 PyObject
* _argo0
= 0;
4569 char *_kwnames
[] = { "self", NULL
};
4573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
4576 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4577 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4583 wxPy_BEGIN_ALLOW_THREADS
;
4584 _result
= new wxColour (wxPen_GetColour(_arg0
));
4586 wxPy_END_ALLOW_THREADS
;
4587 if (PyErr_Occurred()) return NULL
;
4588 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4589 _resultobj
= Py_BuildValue("s",_ptemp
);
4593 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
4594 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4595 PyObject
* _resultobj
;
4598 PyObject
* _argo0
= 0;
4599 char *_kwnames
[] = { "self", NULL
};
4602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
4605 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4606 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4612 wxPy_BEGIN_ALLOW_THREADS
;
4613 _result
= (int )wxPen_GetJoin(_arg0
);
4615 wxPy_END_ALLOW_THREADS
;
4616 if (PyErr_Occurred()) return NULL
;
4617 } _resultobj
= Py_BuildValue("i",_result
);
4621 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
4622 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4623 PyObject
* _resultobj
;
4626 PyObject
* _argo0
= 0;
4627 char *_kwnames
[] = { "self", NULL
};
4630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
4633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4640 wxPy_BEGIN_ALLOW_THREADS
;
4641 _result
= (int )wxPen_GetStyle(_arg0
);
4643 wxPy_END_ALLOW_THREADS
;
4644 if (PyErr_Occurred()) return NULL
;
4645 } _resultobj
= Py_BuildValue("i",_result
);
4649 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
4650 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4651 PyObject
* _resultobj
;
4654 PyObject
* _argo0
= 0;
4655 char *_kwnames
[] = { "self", NULL
};
4658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
4661 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4662 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
4668 wxPy_BEGIN_ALLOW_THREADS
;
4669 _result
= (int )wxPen_GetWidth(_arg0
);
4671 wxPy_END_ALLOW_THREADS
;
4672 if (PyErr_Occurred()) return NULL
;
4673 } _resultobj
= Py_BuildValue("i",_result
);
4677 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
4678 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4679 PyObject
* _resultobj
;
4682 PyObject
* _argo0
= 0;
4683 char *_kwnames
[] = { "self", NULL
};
4686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
4689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
4696 wxPy_BEGIN_ALLOW_THREADS
;
4697 _result
= (bool )wxPen_Ok(_arg0
);
4699 wxPy_END_ALLOW_THREADS
;
4700 if (PyErr_Occurred()) return NULL
;
4701 } _resultobj
= Py_BuildValue("i",_result
);
4705 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
4706 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4707 PyObject
* _resultobj
;
4710 PyObject
* _argo0
= 0;
4711 char *_kwnames
[] = { "self","cap_style", NULL
};
4714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
4717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4724 wxPy_BEGIN_ALLOW_THREADS
;
4725 wxPen_SetCap(_arg0
,_arg1
);
4727 wxPy_END_ALLOW_THREADS
;
4728 if (PyErr_Occurred()) return NULL
;
4729 } Py_INCREF(Py_None
);
4730 _resultobj
= Py_None
;
4734 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4735 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4736 PyObject
* _resultobj
;
4739 PyObject
* _argo0
= 0;
4741 PyObject
* _obj1
= 0;
4742 char *_kwnames
[] = { "self","colour", NULL
};
4745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
4748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4756 if (! wxColour_helper(_obj1
, &_arg1
))
4760 wxPy_BEGIN_ALLOW_THREADS
;
4761 wxPen_SetColour(_arg0
,*_arg1
);
4763 wxPy_END_ALLOW_THREADS
;
4764 if (PyErr_Occurred()) return NULL
;
4765 } Py_INCREF(Py_None
);
4766 _resultobj
= Py_None
;
4770 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4771 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4772 PyObject
* _resultobj
;
4775 PyObject
* _argo0
= 0;
4776 char *_kwnames
[] = { "self","join_style", NULL
};
4779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
4782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4789 wxPy_BEGIN_ALLOW_THREADS
;
4790 wxPen_SetJoin(_arg0
,_arg1
);
4792 wxPy_END_ALLOW_THREADS
;
4793 if (PyErr_Occurred()) return NULL
;
4794 } Py_INCREF(Py_None
);
4795 _resultobj
= Py_None
;
4799 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4800 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4801 PyObject
* _resultobj
;
4804 PyObject
* _argo0
= 0;
4805 char *_kwnames
[] = { "self","style", NULL
};
4808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4818 wxPy_BEGIN_ALLOW_THREADS
;
4819 wxPen_SetStyle(_arg0
,_arg1
);
4821 wxPy_END_ALLOW_THREADS
;
4822 if (PyErr_Occurred()) return NULL
;
4823 } Py_INCREF(Py_None
);
4824 _resultobj
= Py_None
;
4828 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4829 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4830 PyObject
* _resultobj
;
4833 PyObject
* _argo0
= 0;
4834 char *_kwnames
[] = { "self","width", NULL
};
4837 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4840 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4841 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4842 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4847 wxPy_BEGIN_ALLOW_THREADS
;
4848 wxPen_SetWidth(_arg0
,_arg1
);
4850 wxPy_END_ALLOW_THREADS
;
4851 if (PyErr_Occurred()) return NULL
;
4852 } Py_INCREF(Py_None
);
4853 _resultobj
= Py_None
;
4857 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4858 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4859 PyObject
* _resultobj
;
4863 PyObject
* _argo0
= 0;
4864 PyObject
* _obj2
= 0;
4865 char *_kwnames
[] = { "self","choices", NULL
};
4868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4871 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4872 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4879 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4880 if (_arg2
== NULL
) {
4886 _arg1
= PyList_Size(_obj2
);
4893 wxPy_BEGIN_ALLOW_THREADS
;
4894 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4896 wxPy_END_ALLOW_THREADS
;
4897 if (PyErr_Occurred()) return NULL
;
4898 } Py_INCREF(Py_None
);
4899 _resultobj
= Py_None
;
4906 static void *SwigwxPyPenTowxPen(void *ptr
) {
4909 src
= (wxPyPen
*) ptr
;
4910 dest
= (wxPen
*) src
;
4911 return (void *) dest
;
4914 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
4917 src
= (wxPyPen
*) ptr
;
4918 dest
= (wxGDIObject
*) src
;
4919 return (void *) dest
;
4922 static void *SwigwxPyPenTowxObject(void *ptr
) {
4925 src
= (wxPyPen
*) ptr
;
4926 dest
= (wxObject
*) src
;
4927 return (void *) dest
;
4930 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
4931 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4932 PyObject
* _resultobj
;
4935 int _arg1
= (int ) 1;
4936 int _arg2
= (int ) wxSOLID
;
4938 PyObject
* _obj0
= 0;
4939 char *_kwnames
[] = { "colour","width","style", NULL
};
4943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4947 if (! wxColour_helper(_obj0
, &_arg0
))
4951 wxPy_BEGIN_ALLOW_THREADS
;
4952 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
4954 wxPy_END_ALLOW_THREADS
;
4955 if (PyErr_Occurred()) return NULL
;
4957 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
4958 _resultobj
= Py_BuildValue("s",_ptemp
);
4961 _resultobj
= Py_None
;
4966 #define delete_wxPyPen(_swigobj) (delete _swigobj)
4967 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4968 PyObject
* _resultobj
;
4970 PyObject
* _argo0
= 0;
4971 char *_kwnames
[] = { "self", NULL
};
4974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
4977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
4979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
4984 wxPy_BEGIN_ALLOW_THREADS
;
4985 delete_wxPyPen(_arg0
);
4987 wxPy_END_ALLOW_THREADS
;
4988 if (PyErr_Occurred()) return NULL
;
4989 } Py_INCREF(Py_None
);
4990 _resultobj
= Py_None
;
4994 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4995 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4996 PyObject
* _resultobj
;
5000 PyObject
* _argo0
= 0;
5001 PyObject
* _obj2
= 0;
5002 char *_kwnames
[] = { "self","choices", NULL
};
5005 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5008 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5009 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5010 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5016 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5017 if (_arg2
== NULL
) {
5023 _arg1
= PyList_Size(_obj2
);
5030 wxPy_BEGIN_ALLOW_THREADS
;
5031 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
5033 wxPy_END_ALLOW_THREADS
;
5034 if (PyErr_Occurred()) return NULL
;
5035 } Py_INCREF(Py_None
);
5036 _resultobj
= Py_None
;
5043 static void *SwigwxPenListTowxObject(void *ptr
) {
5046 src
= (wxPenList
*) ptr
;
5047 dest
= (wxObject
*) src
;
5048 return (void *) dest
;
5051 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5052 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5053 PyObject
* _resultobj
;
5056 PyObject
* _argo0
= 0;
5057 PyObject
* _argo1
= 0;
5058 char *_kwnames
[] = { "self","pen", NULL
};
5061 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
5064 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5065 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5066 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5071 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5072 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5073 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5078 wxPy_BEGIN_ALLOW_THREADS
;
5079 wxPenList_AddPen(_arg0
,_arg1
);
5081 wxPy_END_ALLOW_THREADS
;
5082 if (PyErr_Occurred()) return NULL
;
5083 } Py_INCREF(Py_None
);
5084 _resultobj
= Py_None
;
5088 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5089 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5090 PyObject
* _resultobj
;
5096 PyObject
* _argo0
= 0;
5098 PyObject
* _obj1
= 0;
5099 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5114 if (! wxColour_helper(_obj1
, &_arg1
))
5118 wxPy_BEGIN_ALLOW_THREADS
;
5119 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5121 wxPy_END_ALLOW_THREADS
;
5122 if (PyErr_Occurred()) return NULL
;
5124 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5125 _resultobj
= Py_BuildValue("s",_ptemp
);
5128 _resultobj
= Py_None
;
5133 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5134 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5135 PyObject
* _resultobj
;
5138 PyObject
* _argo0
= 0;
5139 PyObject
* _argo1
= 0;
5140 char *_kwnames
[] = { "self","pen", NULL
};
5143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5153 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5154 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5155 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5160 wxPy_BEGIN_ALLOW_THREADS
;
5161 wxPenList_RemovePen(_arg0
,_arg1
);
5163 wxPy_END_ALLOW_THREADS
;
5164 if (PyErr_Occurred()) return NULL
;
5165 } Py_INCREF(Py_None
);
5166 _resultobj
= Py_None
;
5170 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5173 src
= (wxBrush
*) ptr
;
5174 dest
= (wxGDIObject
*) src
;
5175 return (void *) dest
;
5178 static void *SwigwxBrushTowxObject(void *ptr
) {
5181 src
= (wxBrush
*) ptr
;
5182 dest
= (wxObject
*) src
;
5183 return (void *) dest
;
5186 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5187 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5188 PyObject
* _resultobj
;
5191 int _arg1
= (int ) wxSOLID
;
5193 PyObject
* _obj0
= 0;
5194 char *_kwnames
[] = { "colour","style", NULL
};
5198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5202 if (! wxColour_helper(_obj0
, &_arg0
))
5206 wxPy_BEGIN_ALLOW_THREADS
;
5207 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5209 wxPy_END_ALLOW_THREADS
;
5210 if (PyErr_Occurred()) return NULL
;
5212 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5213 _resultobj
= Py_BuildValue("s",_ptemp
);
5216 _resultobj
= Py_None
;
5221 #define delete_wxBrush(_swigobj) (delete _swigobj)
5222 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5223 PyObject
* _resultobj
;
5225 PyObject
* _argo0
= 0;
5226 char *_kwnames
[] = { "self", NULL
};
5229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5239 wxPy_BEGIN_ALLOW_THREADS
;
5240 delete_wxBrush(_arg0
);
5242 wxPy_END_ALLOW_THREADS
;
5243 if (PyErr_Occurred()) return NULL
;
5244 } Py_INCREF(Py_None
);
5245 _resultobj
= Py_None
;
5249 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5250 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5251 PyObject
* _resultobj
;
5254 PyObject
* _argo0
= 0;
5255 char *_kwnames
[] = { "self", NULL
};
5259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5262 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5263 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5269 wxPy_BEGIN_ALLOW_THREADS
;
5270 _result
= new wxColour (wxBrush_GetColour(_arg0
));
5272 wxPy_END_ALLOW_THREADS
;
5273 if (PyErr_Occurred()) return NULL
;
5274 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5275 _resultobj
= Py_BuildValue("s",_ptemp
);
5279 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5280 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5281 PyObject
* _resultobj
;
5284 PyObject
* _argo0
= 0;
5285 char *_kwnames
[] = { "self", NULL
};
5289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
5292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5299 wxPy_BEGIN_ALLOW_THREADS
;
5300 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
5302 wxPy_END_ALLOW_THREADS
;
5303 if (PyErr_Occurred()) return NULL
;
5305 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5306 _resultobj
= Py_BuildValue("s",_ptemp
);
5309 _resultobj
= Py_None
;
5314 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5315 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5316 PyObject
* _resultobj
;
5319 PyObject
* _argo0
= 0;
5320 char *_kwnames
[] = { "self", NULL
};
5323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
5326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5333 wxPy_BEGIN_ALLOW_THREADS
;
5334 _result
= (int )wxBrush_GetStyle(_arg0
);
5336 wxPy_END_ALLOW_THREADS
;
5337 if (PyErr_Occurred()) return NULL
;
5338 } _resultobj
= Py_BuildValue("i",_result
);
5342 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5343 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5344 PyObject
* _resultobj
;
5347 PyObject
* _argo0
= 0;
5348 char *_kwnames
[] = { "self", NULL
};
5351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
5354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5361 wxPy_BEGIN_ALLOW_THREADS
;
5362 _result
= (bool )wxBrush_Ok(_arg0
);
5364 wxPy_END_ALLOW_THREADS
;
5365 if (PyErr_Occurred()) return NULL
;
5366 } _resultobj
= Py_BuildValue("i",_result
);
5370 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5371 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5372 PyObject
* _resultobj
;
5375 PyObject
* _argo0
= 0;
5377 PyObject
* _obj1
= 0;
5378 char *_kwnames
[] = { "self","colour", NULL
};
5381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
5384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5392 if (! wxColour_helper(_obj1
, &_arg1
))
5396 wxPy_BEGIN_ALLOW_THREADS
;
5397 wxBrush_SetColour(_arg0
,*_arg1
);
5399 wxPy_END_ALLOW_THREADS
;
5400 if (PyErr_Occurred()) return NULL
;
5401 } Py_INCREF(Py_None
);
5402 _resultobj
= Py_None
;
5406 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5407 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5408 PyObject
* _resultobj
;
5411 PyObject
* _argo0
= 0;
5412 PyObject
* _argo1
= 0;
5413 char *_kwnames
[] = { "self","bitmap", NULL
};
5416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5426 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5427 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5433 wxPy_BEGIN_ALLOW_THREADS
;
5434 wxBrush_SetStipple(_arg0
,*_arg1
);
5436 wxPy_END_ALLOW_THREADS
;
5437 if (PyErr_Occurred()) return NULL
;
5438 } Py_INCREF(Py_None
);
5439 _resultobj
= Py_None
;
5443 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5444 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5445 PyObject
* _resultobj
;
5448 PyObject
* _argo0
= 0;
5449 char *_kwnames
[] = { "self","style", NULL
};
5452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5462 wxPy_BEGIN_ALLOW_THREADS
;
5463 wxBrush_SetStyle(_arg0
,_arg1
);
5465 wxPy_END_ALLOW_THREADS
;
5466 if (PyErr_Occurred()) return NULL
;
5467 } Py_INCREF(Py_None
);
5468 _resultobj
= Py_None
;
5472 static void *SwigwxBrushListTowxObject(void *ptr
) {
5475 src
= (wxBrushList
*) ptr
;
5476 dest
= (wxObject
*) src
;
5477 return (void *) dest
;
5480 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5481 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5482 PyObject
* _resultobj
;
5483 wxBrushList
* _arg0
;
5485 PyObject
* _argo0
= 0;
5486 PyObject
* _argo1
= 0;
5487 char *_kwnames
[] = { "self","brush", NULL
};
5490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
5493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5500 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5501 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5502 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5507 wxPy_BEGIN_ALLOW_THREADS
;
5508 wxBrushList_AddBrush(_arg0
,_arg1
);
5510 wxPy_END_ALLOW_THREADS
;
5511 if (PyErr_Occurred()) return NULL
;
5512 } Py_INCREF(Py_None
);
5513 _resultobj
= Py_None
;
5517 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5518 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5519 PyObject
* _resultobj
;
5521 wxBrushList
* _arg0
;
5524 PyObject
* _argo0
= 0;
5526 PyObject
* _obj1
= 0;
5527 char *_kwnames
[] = { "self","colour","style", NULL
};
5531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
5534 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5535 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5542 if (! wxColour_helper(_obj1
, &_arg1
))
5546 wxPy_BEGIN_ALLOW_THREADS
;
5547 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
5549 wxPy_END_ALLOW_THREADS
;
5550 if (PyErr_Occurred()) return NULL
;
5552 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5553 _resultobj
= Py_BuildValue("s",_ptemp
);
5556 _resultobj
= Py_None
;
5561 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5562 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5563 PyObject
* _resultobj
;
5564 wxBrushList
* _arg0
;
5566 PyObject
* _argo0
= 0;
5567 PyObject
* _argo1
= 0;
5568 char *_kwnames
[] = { "self","brush", NULL
};
5571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
5574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5581 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5582 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5588 wxPy_BEGIN_ALLOW_THREADS
;
5589 wxBrushList_RemoveBrush(_arg0
,_arg1
);
5591 wxPy_END_ALLOW_THREADS
;
5592 if (PyErr_Occurred()) return NULL
;
5593 } Py_INCREF(Py_None
);
5594 _resultobj
= Py_None
;
5598 static void *SwigwxDCTowxObject(void *ptr
) {
5602 dest
= (wxObject
*) src
;
5603 return (void *) dest
;
5606 #define delete_wxDC(_swigobj) (delete _swigobj)
5607 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5608 PyObject
* _resultobj
;
5610 PyObject
* _argo0
= 0;
5611 char *_kwnames
[] = { "self", NULL
};
5614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
5617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5624 wxPy_BEGIN_ALLOW_THREADS
;
5627 wxPy_END_ALLOW_THREADS
;
5628 if (PyErr_Occurred()) return NULL
;
5629 } Py_INCREF(Py_None
);
5630 _resultobj
= Py_None
;
5634 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
5635 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5636 PyObject
* _resultobj
;
5638 PyObject
* _argo0
= 0;
5639 char *_kwnames
[] = { "self", NULL
};
5642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
5645 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5646 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5652 wxPy_BEGIN_ALLOW_THREADS
;
5653 wxDC_BeginDrawing(_arg0
);
5655 wxPy_END_ALLOW_THREADS
;
5656 if (PyErr_Occurred()) return NULL
;
5657 } Py_INCREF(Py_None
);
5658 _resultobj
= Py_None
;
5662 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5663 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5664 PyObject
* _resultobj
;
5674 int _arg8
= (int ) wxCOPY
;
5675 int _arg9
= (int ) FALSE
;
5676 PyObject
* _argo0
= 0;
5677 PyObject
* _argo5
= 0;
5678 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
5681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
5684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5691 if (_argo5
== Py_None
) { _arg5
= NULL
; }
5692 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
5693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5698 wxPy_BEGIN_ALLOW_THREADS
;
5699 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
5701 wxPy_END_ALLOW_THREADS
;
5702 if (PyErr_Occurred()) return NULL
;
5703 } _resultobj
= Py_BuildValue("i",_result
);
5707 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
5708 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5709 PyObject
* _resultobj
;
5711 PyObject
* _argo0
= 0;
5712 char *_kwnames
[] = { "self", NULL
};
5715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
5718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5725 wxPy_BEGIN_ALLOW_THREADS
;
5728 wxPy_END_ALLOW_THREADS
;
5729 if (PyErr_Occurred()) return NULL
;
5730 } Py_INCREF(Py_None
);
5731 _resultobj
= Py_None
;
5735 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5736 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5737 PyObject
* _resultobj
;
5741 PyObject
* _argo0
= 0;
5742 char *_kwnames
[] = { "self","x","y", NULL
};
5745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5755 wxPy_BEGIN_ALLOW_THREADS
;
5756 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
5758 wxPy_END_ALLOW_THREADS
;
5759 if (PyErr_Occurred()) return NULL
;
5760 } Py_INCREF(Py_None
);
5761 _resultobj
= Py_None
;
5765 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5766 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5767 PyObject
* _resultobj
;
5769 PyObject
* _argo0
= 0;
5770 char *_kwnames
[] = { "self", NULL
};
5773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
5776 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5777 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5783 wxPy_BEGIN_ALLOW_THREADS
;
5784 wxDC_DestroyClippingRegion(_arg0
);
5786 wxPy_END_ALLOW_THREADS
;
5787 if (PyErr_Occurred()) return NULL
;
5788 } Py_INCREF(Py_None
);
5789 _resultobj
= Py_None
;
5793 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5794 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5795 PyObject
* _resultobj
;
5799 PyObject
* _argo0
= 0;
5800 char *_kwnames
[] = { "self","x", NULL
};
5803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
5806 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5807 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5813 wxPy_BEGIN_ALLOW_THREADS
;
5814 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
5816 wxPy_END_ALLOW_THREADS
;
5817 if (PyErr_Occurred()) return NULL
;
5818 } _resultobj
= Py_BuildValue("l",_result
);
5822 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5823 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5824 PyObject
* _resultobj
;
5828 PyObject
* _argo0
= 0;
5829 char *_kwnames
[] = { "self","x", NULL
};
5832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
5835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5842 wxPy_BEGIN_ALLOW_THREADS
;
5843 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
5845 wxPy_END_ALLOW_THREADS
;
5846 if (PyErr_Occurred()) return NULL
;
5847 } _resultobj
= Py_BuildValue("l",_result
);
5851 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5852 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5853 PyObject
* _resultobj
;
5857 PyObject
* _argo0
= 0;
5858 char *_kwnames
[] = { "self","y", NULL
};
5861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
5864 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5865 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5871 wxPy_BEGIN_ALLOW_THREADS
;
5872 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
5874 wxPy_END_ALLOW_THREADS
;
5875 if (PyErr_Occurred()) return NULL
;
5876 } _resultobj
= Py_BuildValue("l",_result
);
5880 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5881 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5882 PyObject
* _resultobj
;
5886 PyObject
* _argo0
= 0;
5887 char *_kwnames
[] = { "self","y", NULL
};
5890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
5893 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5894 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5900 wxPy_BEGIN_ALLOW_THREADS
;
5901 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5903 wxPy_END_ALLOW_THREADS
;
5904 if (PyErr_Occurred()) return NULL
;
5905 } _resultobj
= Py_BuildValue("l",_result
);
5909 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5910 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5911 PyObject
* _resultobj
;
5919 PyObject
* _argo0
= 0;
5920 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5933 wxPy_BEGIN_ALLOW_THREADS
;
5934 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5936 wxPy_END_ALLOW_THREADS
;
5937 if (PyErr_Occurred()) return NULL
;
5938 } Py_INCREF(Py_None
);
5939 _resultobj
= Py_None
;
5943 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5944 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5945 PyObject
* _resultobj
;
5950 PyObject
* _argo0
= 0;
5951 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5957 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5958 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5964 wxPy_BEGIN_ALLOW_THREADS
;
5965 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
5967 wxPy_END_ALLOW_THREADS
;
5968 if (PyErr_Occurred()) return NULL
;
5969 } Py_INCREF(Py_None
);
5970 _resultobj
= Py_None
;
5974 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5975 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5976 PyObject
* _resultobj
;
5982 PyObject
* _argo0
= 0;
5983 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5989 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5990 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5996 wxPy_BEGIN_ALLOW_THREADS
;
5997 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5999 wxPy_END_ALLOW_THREADS
;
6000 if (PyErr_Occurred()) return NULL
;
6001 } Py_INCREF(Py_None
);
6002 _resultobj
= Py_None
;
6006 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6007 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6008 PyObject
* _resultobj
;
6016 PyObject
* _argo0
= 0;
6017 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
6020 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6023 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6024 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6025 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6030 wxPy_BEGIN_ALLOW_THREADS
;
6031 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6033 wxPy_END_ALLOW_THREADS
;
6034 if (PyErr_Occurred()) return NULL
;
6035 } Py_INCREF(Py_None
);
6036 _resultobj
= Py_None
;
6040 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6041 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6042 PyObject
* _resultobj
;
6047 PyObject
* _argo0
= 0;
6048 PyObject
* _argo1
= 0;
6049 char *_kwnames
[] = { "self","icon","x","y", NULL
};
6052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
6055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6062 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6063 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
6064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6069 wxPy_BEGIN_ALLOW_THREADS
;
6070 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
6072 wxPy_END_ALLOW_THREADS
;
6073 if (PyErr_Occurred()) return NULL
;
6074 } Py_INCREF(Py_None
);
6075 _resultobj
= Py_None
;
6079 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6080 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6081 PyObject
* _resultobj
;
6087 PyObject
* _argo0
= 0;
6088 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
6091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6101 wxPy_BEGIN_ALLOW_THREADS
;
6102 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6104 wxPy_END_ALLOW_THREADS
;
6105 if (PyErr_Occurred()) return NULL
;
6106 } Py_INCREF(Py_None
);
6107 _resultobj
= Py_None
;
6111 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6112 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6113 PyObject
* _resultobj
;
6117 long _arg3
= (long ) 0;
6118 long _arg4
= (long ) 0;
6119 PyObject
* _argo0
= 0;
6121 PyObject
* _obj2
= 0;
6122 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
6125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
6128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6136 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6137 if (_arg2
== NULL
) {
6145 wxPy_BEGIN_ALLOW_THREADS
;
6146 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6148 wxPy_END_ALLOW_THREADS
;
6149 if (PyErr_Occurred()) return NULL
;
6150 } Py_INCREF(Py_None
);
6151 _resultobj
= Py_None
;
6158 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6159 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6160 PyObject
* _resultobj
;
6164 long _arg3
= (long ) 0;
6165 long _arg4
= (long ) 0;
6166 int _arg5
= (int ) wxODDEVEN_RULE
;
6167 PyObject
* _argo0
= 0;
6169 PyObject
* _obj2
= 0;
6170 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6184 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6185 if (_arg2
== NULL
) {
6193 wxPy_BEGIN_ALLOW_THREADS
;
6194 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6196 wxPy_END_ALLOW_THREADS
;
6197 if (PyErr_Occurred()) return NULL
;
6198 } Py_INCREF(Py_None
);
6199 _resultobj
= Py_None
;
6206 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6207 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6208 PyObject
* _resultobj
;
6212 PyObject
* _argo0
= 0;
6213 char *_kwnames
[] = { "self","x","y", NULL
};
6216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6226 wxPy_BEGIN_ALLOW_THREADS
;
6227 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6229 wxPy_END_ALLOW_THREADS
;
6230 if (PyErr_Occurred()) return NULL
;
6231 } Py_INCREF(Py_None
);
6232 _resultobj
= Py_None
;
6236 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6237 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6238 PyObject
* _resultobj
;
6244 PyObject
* _argo0
= 0;
6245 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6258 wxPy_BEGIN_ALLOW_THREADS
;
6259 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6261 wxPy_END_ALLOW_THREADS
;
6262 if (PyErr_Occurred()) return NULL
;
6263 } Py_INCREF(Py_None
);
6264 _resultobj
= Py_None
;
6268 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6269 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6270 PyObject
* _resultobj
;
6276 PyObject
* _argo0
= 0;
6277 PyObject
* _obj1
= 0;
6278 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6291 #if PYTHON_API_VERSION >= 1009
6292 char* tmpPtr
; int tmpSize
;
6293 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6294 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6297 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6299 _arg1
= new wxString(tmpPtr
, tmpSize
);
6301 if (!PyString_Check(_obj1
)) {
6302 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6305 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6309 wxPy_BEGIN_ALLOW_THREADS
;
6310 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
6312 wxPy_END_ALLOW_THREADS
;
6313 if (PyErr_Occurred()) return NULL
;
6314 } Py_INCREF(Py_None
);
6315 _resultobj
= Py_None
;
6323 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6324 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6325 PyObject
* _resultobj
;
6331 long _arg5
= (long ) 20;
6332 PyObject
* _argo0
= 0;
6333 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
6336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
6339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6346 wxPy_BEGIN_ALLOW_THREADS
;
6347 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6349 wxPy_END_ALLOW_THREADS
;
6350 if (PyErr_Occurred()) return NULL
;
6351 } Py_INCREF(Py_None
);
6352 _resultobj
= Py_None
;
6356 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
6357 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6358 PyObject
* _resultobj
;
6362 PyObject
* _argo0
= 0;
6364 PyObject
* _obj2
= 0;
6365 char *_kwnames
[] = { "self","points", NULL
};
6368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
6371 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6372 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6379 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6380 if (_arg2
== NULL
) {
6388 wxPy_BEGIN_ALLOW_THREADS
;
6389 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
6391 wxPy_END_ALLOW_THREADS
;
6392 if (PyErr_Occurred()) return NULL
;
6393 } Py_INCREF(Py_None
);
6394 _resultobj
= Py_None
;
6401 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
6402 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6403 PyObject
* _resultobj
;
6408 PyObject
* _argo0
= 0;
6409 PyObject
* _obj1
= 0;
6410 char *_kwnames
[] = { "self","text","x","y", NULL
};
6413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
6416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6423 #if PYTHON_API_VERSION >= 1009
6424 char* tmpPtr
; int tmpSize
;
6425 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6426 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6429 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6431 _arg1
= new wxString(tmpPtr
, tmpSize
);
6433 if (!PyString_Check(_obj1
)) {
6434 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6437 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6441 wxPy_BEGIN_ALLOW_THREADS
;
6442 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
6444 wxPy_END_ALLOW_THREADS
;
6445 if (PyErr_Occurred()) return NULL
;
6446 } Py_INCREF(Py_None
);
6447 _resultobj
= Py_None
;
6455 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
6456 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6457 PyObject
* _resultobj
;
6459 PyObject
* _argo0
= 0;
6460 char *_kwnames
[] = { "self", NULL
};
6463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
6466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6473 wxPy_BEGIN_ALLOW_THREADS
;
6476 wxPy_END_ALLOW_THREADS
;
6477 if (PyErr_Occurred()) return NULL
;
6478 } Py_INCREF(Py_None
);
6479 _resultobj
= Py_None
;
6483 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
6484 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6485 PyObject
* _resultobj
;
6487 PyObject
* _argo0
= 0;
6488 char *_kwnames
[] = { "self", NULL
};
6491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
6494 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6495 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6501 wxPy_BEGIN_ALLOW_THREADS
;
6502 wxDC_EndDrawing(_arg0
);
6504 wxPy_END_ALLOW_THREADS
;
6505 if (PyErr_Occurred()) return NULL
;
6506 } Py_INCREF(Py_None
);
6507 _resultobj
= Py_None
;
6511 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
6512 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6513 PyObject
* _resultobj
;
6515 PyObject
* _argo0
= 0;
6516 char *_kwnames
[] = { "self", NULL
};
6519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
6522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6529 wxPy_BEGIN_ALLOW_THREADS
;
6530 wxDC_EndPage(_arg0
);
6532 wxPy_END_ALLOW_THREADS
;
6533 if (PyErr_Occurred()) return NULL
;
6534 } Py_INCREF(Py_None
);
6535 _resultobj
= Py_None
;
6539 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6540 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6541 PyObject
* _resultobj
;
6546 int _arg4
= (int ) wxFLOOD_SURFACE
;
6547 PyObject
* _argo0
= 0;
6549 PyObject
* _obj3
= 0;
6550 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
6553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
6556 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6557 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6564 if (! wxColour_helper(_obj3
, &_arg3
))
6568 wxPy_BEGIN_ALLOW_THREADS
;
6569 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
6571 wxPy_END_ALLOW_THREADS
;
6572 if (PyErr_Occurred()) return NULL
;
6573 } Py_INCREF(Py_None
);
6574 _resultobj
= Py_None
;
6578 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
6579 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6580 PyObject
* _resultobj
;
6583 PyObject
* _argo0
= 0;
6584 char *_kwnames
[] = { "self", NULL
};
6588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
6591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6598 wxPy_BEGIN_ALLOW_THREADS
;
6599 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
6600 _result
= (wxBrush
*) &_result_ref
;
6602 wxPy_END_ALLOW_THREADS
;
6603 if (PyErr_Occurred()) return NULL
;
6605 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6606 _resultobj
= Py_BuildValue("s",_ptemp
);
6609 _resultobj
= Py_None
;
6614 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
6615 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6616 PyObject
* _resultobj
;
6619 PyObject
* _argo0
= 0;
6620 char *_kwnames
[] = { "self", NULL
};
6624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
6627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6634 wxPy_BEGIN_ALLOW_THREADS
;
6635 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
6636 _result
= (wxBrush
*) &_result_ref
;
6638 wxPy_END_ALLOW_THREADS
;
6639 if (PyErr_Occurred()) return NULL
;
6641 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6642 _resultobj
= Py_BuildValue("s",_ptemp
);
6645 _resultobj
= Py_None
;
6650 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
6651 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6652 PyObject
* _resultobj
;
6655 PyObject
* _argo0
= 0;
6656 char *_kwnames
[] = { "self", NULL
};
6659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
6662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6669 wxPy_BEGIN_ALLOW_THREADS
;
6670 _result
= (long )wxDC_GetCharHeight(_arg0
);
6672 wxPy_END_ALLOW_THREADS
;
6673 if (PyErr_Occurred()) return NULL
;
6674 } _resultobj
= Py_BuildValue("l",_result
);
6678 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
6679 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6680 PyObject
* _resultobj
;
6683 PyObject
* _argo0
= 0;
6684 char *_kwnames
[] = { "self", NULL
};
6687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
6690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6697 wxPy_BEGIN_ALLOW_THREADS
;
6698 _result
= (long )wxDC_GetCharWidth(_arg0
);
6700 wxPy_END_ALLOW_THREADS
;
6701 if (PyErr_Occurred()) return NULL
;
6702 } _resultobj
= Py_BuildValue("l",_result
);
6706 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6707 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6708 PyObject
* _resultobj
;
6718 PyObject
* _argo0
= 0;
6719 char *_kwnames
[] = { "self", NULL
};
6734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
6737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6744 wxPy_BEGIN_ALLOW_THREADS
;
6745 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6747 wxPy_END_ALLOW_THREADS
;
6748 if (PyErr_Occurred()) return NULL
;
6749 } Py_INCREF(Py_None
);
6750 _resultobj
= Py_None
;
6753 o
= PyInt_FromLong((long) (*_arg1
));
6754 _resultobj
= t_output_helper(_resultobj
, o
);
6758 o
= PyInt_FromLong((long) (*_arg2
));
6759 _resultobj
= t_output_helper(_resultobj
, o
);
6763 o
= PyInt_FromLong((long) (*_arg3
));
6764 _resultobj
= t_output_helper(_resultobj
, o
);
6768 o
= PyInt_FromLong((long) (*_arg4
));
6769 _resultobj
= t_output_helper(_resultobj
, o
);
6774 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6775 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6776 PyObject
* _resultobj
;
6779 PyObject
* _argo0
= 0;
6780 char *_kwnames
[] = { "self", NULL
};
6784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
6787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6794 wxPy_BEGIN_ALLOW_THREADS
;
6795 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
6796 _result
= (wxFont
*) &_result_ref
;
6798 wxPy_END_ALLOW_THREADS
;
6799 if (PyErr_Occurred()) return NULL
;
6801 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
6802 _resultobj
= Py_BuildValue("s",_ptemp
);
6805 _resultobj
= Py_None
;
6810 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6811 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6812 PyObject
* _resultobj
;
6815 PyObject
* _argo0
= 0;
6816 char *_kwnames
[] = { "self", NULL
};
6819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
6822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6829 wxPy_BEGIN_ALLOW_THREADS
;
6830 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
6832 wxPy_END_ALLOW_THREADS
;
6833 if (PyErr_Occurred()) return NULL
;
6834 } _resultobj
= Py_BuildValue("i",_result
);
6838 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6839 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6840 PyObject
* _resultobj
;
6846 PyObject
* _argo0
= 0;
6847 char *_kwnames
[] = { "self", NULL
};
6856 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
6859 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6860 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6861 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
6866 wxPy_BEGIN_ALLOW_THREADS
;
6867 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
6869 wxPy_END_ALLOW_THREADS
;
6870 if (PyErr_Occurred()) return NULL
;
6871 } Py_INCREF(Py_None
);
6872 _resultobj
= Py_None
;
6875 o
= PyFloat_FromDouble((double) (*_arg1
));
6876 _resultobj
= t_output_helper(_resultobj
, o
);
6880 o
= PyFloat_FromDouble((double) (*_arg2
));
6881 _resultobj
= t_output_helper(_resultobj
, o
);
6886 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6887 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6888 PyObject
* _resultobj
;
6891 PyObject
* _argo0
= 0;
6892 char *_kwnames
[] = { "self", NULL
};
6895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
6898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6905 wxPy_BEGIN_ALLOW_THREADS
;
6906 _result
= (int )wxDC_GetMapMode(_arg0
);
6908 wxPy_END_ALLOW_THREADS
;
6909 if (PyErr_Occurred()) return NULL
;
6910 } _resultobj
= Py_BuildValue("i",_result
);
6914 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6915 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6916 PyObject
* _resultobj
;
6919 PyObject
* _argo0
= 0;
6920 char *_kwnames
[] = { "self", NULL
};
6923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
6926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6933 wxPy_BEGIN_ALLOW_THREADS
;
6934 _result
= (bool )wxDC_GetOptimization(_arg0
);
6936 wxPy_END_ALLOW_THREADS
;
6937 if (PyErr_Occurred()) return NULL
;
6938 } _resultobj
= Py_BuildValue("i",_result
);
6942 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6943 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6944 PyObject
* _resultobj
;
6947 PyObject
* _argo0
= 0;
6948 char *_kwnames
[] = { "self", NULL
};
6952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
6955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6962 wxPy_BEGIN_ALLOW_THREADS
;
6963 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
6964 _result
= (wxPen
*) &_result_ref
;
6966 wxPy_END_ALLOW_THREADS
;
6967 if (PyErr_Occurred()) return NULL
;
6969 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6970 _resultobj
= Py_BuildValue("s",_ptemp
);
6973 _resultobj
= Py_None
;
6978 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
6979 wxColour
* wc
= new wxColour();
6980 self
->GetPixel(x
, y
, wc
);
6983 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6984 PyObject
* _resultobj
;
6989 PyObject
* _argo0
= 0;
6990 char *_kwnames
[] = { "self","x","y", NULL
};
6994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7004 wxPy_BEGIN_ALLOW_THREADS
;
7005 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
7007 wxPy_END_ALLOW_THREADS
;
7008 if (PyErr_Occurred()) return NULL
;
7010 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7011 _resultobj
= Py_BuildValue("s",_ptemp
);
7014 _resultobj
= Py_None
;
7019 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7020 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7021 PyObject
* _resultobj
;
7027 PyObject
* _argo0
= 0;
7028 char *_kwnames
[] = { "self", NULL
};
7037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
7040 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7041 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7042 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7047 wxPy_BEGIN_ALLOW_THREADS
;
7048 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
7050 wxPy_END_ALLOW_THREADS
;
7051 if (PyErr_Occurred()) return NULL
;
7052 } Py_INCREF(Py_None
);
7053 _resultobj
= Py_None
;
7056 o
= PyInt_FromLong((long) (*_arg1
));
7057 _resultobj
= t_output_helper(_resultobj
, o
);
7061 o
= PyInt_FromLong((long) (*_arg2
));
7062 _resultobj
= t_output_helper(_resultobj
, o
);
7067 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7068 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7069 PyObject
* _resultobj
;
7072 PyObject
* _argo0
= 0;
7073 char *_kwnames
[] = { "self", NULL
};
7077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
7080 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7081 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7087 wxPy_BEGIN_ALLOW_THREADS
;
7088 _result
= new wxSize (wxDC_GetSize(_arg0
));
7090 wxPy_END_ALLOW_THREADS
;
7091 if (PyErr_Occurred()) return NULL
;
7092 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7093 _resultobj
= Py_BuildValue("s",_ptemp
);
7097 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7098 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7099 PyObject
* _resultobj
;
7102 PyObject
* _argo0
= 0;
7103 char *_kwnames
[] = { "self", NULL
};
7107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7117 wxPy_BEGIN_ALLOW_THREADS
;
7118 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
7120 wxPy_END_ALLOW_THREADS
;
7121 if (PyErr_Occurred()) return NULL
;
7122 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7123 _resultobj
= Py_BuildValue("s",_ptemp
);
7127 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7128 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7129 PyObject
* _resultobj
;
7132 PyObject
* _argo0
= 0;
7133 char *_kwnames
[] = { "self", NULL
};
7137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
7140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7147 wxPy_BEGIN_ALLOW_THREADS
;
7148 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
7150 wxPy_END_ALLOW_THREADS
;
7151 if (PyErr_Occurred()) return NULL
;
7152 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7153 _resultobj
= Py_BuildValue("s",_ptemp
);
7157 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7158 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7159 PyObject
* _resultobj
;
7166 PyObject
* _argo0
= 0;
7167 PyObject
* _obj1
= 0;
7168 char *_kwnames
[] = { "self","string", NULL
};
7177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7180 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7181 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7187 #if PYTHON_API_VERSION >= 1009
7188 char* tmpPtr
; int tmpSize
;
7189 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7190 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7193 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7195 _arg1
= new wxString(tmpPtr
, tmpSize
);
7197 if (!PyString_Check(_obj1
)) {
7198 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7201 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7205 wxPy_BEGIN_ALLOW_THREADS
;
7206 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7208 wxPy_END_ALLOW_THREADS
;
7209 if (PyErr_Occurred()) return NULL
;
7210 } Py_INCREF(Py_None
);
7211 _resultobj
= Py_None
;
7214 o
= PyInt_FromLong((long) (*_arg2
));
7215 _resultobj
= t_output_helper(_resultobj
, o
);
7219 o
= PyInt_FromLong((long) (*_arg3
));
7220 _resultobj
= t_output_helper(_resultobj
, o
);
7229 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7230 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7231 PyObject
* _resultobj
;
7242 wxFont
* _arg6
= (wxFont
*) NULL
;
7243 PyObject
* _argo0
= 0;
7244 PyObject
* _obj1
= 0;
7245 PyObject
* _argo6
= 0;
7246 char *_kwnames
[] = { "self","string","font", NULL
};
7261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7271 #if PYTHON_API_VERSION >= 1009
7272 char* tmpPtr
; int tmpSize
;
7273 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7274 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7277 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7279 _arg1
= new wxString(tmpPtr
, tmpSize
);
7281 if (!PyString_Check(_obj1
)) {
7282 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7285 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7289 if (_argo6
== Py_None
) { _arg6
= NULL
; }
7290 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
7291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7296 wxPy_BEGIN_ALLOW_THREADS
;
7297 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7299 wxPy_END_ALLOW_THREADS
;
7300 if (PyErr_Occurred()) return NULL
;
7301 } Py_INCREF(Py_None
);
7302 _resultobj
= Py_None
;
7305 o
= PyInt_FromLong((long) (*_arg2
));
7306 _resultobj
= t_output_helper(_resultobj
, o
);
7310 o
= PyInt_FromLong((long) (*_arg3
));
7311 _resultobj
= t_output_helper(_resultobj
, o
);
7315 o
= PyInt_FromLong((long) (*_arg4
));
7316 _resultobj
= t_output_helper(_resultobj
, o
);
7320 o
= PyInt_FromLong((long) (*_arg5
));
7321 _resultobj
= t_output_helper(_resultobj
, o
);
7330 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
7331 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7332 PyObject
* _resultobj
;
7335 PyObject
* _argo0
= 0;
7336 char *_kwnames
[] = { "self", NULL
};
7340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
7343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7350 wxPy_BEGIN_ALLOW_THREADS
;
7351 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
7353 wxPy_END_ALLOW_THREADS
;
7354 if (PyErr_Occurred()) return NULL
;
7355 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7356 _resultobj
= Py_BuildValue("s",_ptemp
);
7360 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7361 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7362 PyObject
* _resultobj
;
7368 PyObject
* _argo0
= 0;
7369 char *_kwnames
[] = { "self", NULL
};
7378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
7381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7388 wxPy_BEGIN_ALLOW_THREADS
;
7389 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
7391 wxPy_END_ALLOW_THREADS
;
7392 if (PyErr_Occurred()) return NULL
;
7393 } Py_INCREF(Py_None
);
7394 _resultobj
= Py_None
;
7397 o
= PyFloat_FromDouble((double) (*_arg1
));
7398 _resultobj
= t_output_helper(_resultobj
, o
);
7402 o
= PyFloat_FromDouble((double) (*_arg2
));
7403 _resultobj
= t_output_helper(_resultobj
, o
);
7408 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
7409 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7410 PyObject
* _resultobj
;
7414 PyObject
* _argo0
= 0;
7415 char *_kwnames
[] = { "self","x", NULL
};
7418 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
7421 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7422 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7423 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7428 wxPy_BEGIN_ALLOW_THREADS
;
7429 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
7431 wxPy_END_ALLOW_THREADS
;
7432 if (PyErr_Occurred()) return NULL
;
7433 } _resultobj
= Py_BuildValue("l",_result
);
7437 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
7438 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7439 PyObject
* _resultobj
;
7443 PyObject
* _argo0
= 0;
7444 char *_kwnames
[] = { "self","x", NULL
};
7447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
7450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7457 wxPy_BEGIN_ALLOW_THREADS
;
7458 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
7460 wxPy_END_ALLOW_THREADS
;
7461 if (PyErr_Occurred()) return NULL
;
7462 } _resultobj
= Py_BuildValue("l",_result
);
7466 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
7467 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7468 PyObject
* _resultobj
;
7472 PyObject
* _argo0
= 0;
7473 char *_kwnames
[] = { "self","y", NULL
};
7476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
7479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7486 wxPy_BEGIN_ALLOW_THREADS
;
7487 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
7489 wxPy_END_ALLOW_THREADS
;
7490 if (PyErr_Occurred()) return NULL
;
7491 } _resultobj
= Py_BuildValue("l",_result
);
7495 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
7496 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7497 PyObject
* _resultobj
;
7501 PyObject
* _argo0
= 0;
7502 char *_kwnames
[] = { "self","y", NULL
};
7505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
7508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7515 wxPy_BEGIN_ALLOW_THREADS
;
7516 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
7518 wxPy_END_ALLOW_THREADS
;
7519 if (PyErr_Occurred()) return NULL
;
7520 } _resultobj
= Py_BuildValue("l",_result
);
7524 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
7525 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7526 PyObject
* _resultobj
;
7529 PyObject
* _argo0
= 0;
7530 char *_kwnames
[] = { "self", NULL
};
7533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
7536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7543 wxPy_BEGIN_ALLOW_THREADS
;
7544 _result
= (long )wxDC_MaxX(_arg0
);
7546 wxPy_END_ALLOW_THREADS
;
7547 if (PyErr_Occurred()) return NULL
;
7548 } _resultobj
= Py_BuildValue("l",_result
);
7552 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7553 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7554 PyObject
* _resultobj
;
7557 PyObject
* _argo0
= 0;
7558 char *_kwnames
[] = { "self", NULL
};
7561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
7564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7571 wxPy_BEGIN_ALLOW_THREADS
;
7572 _result
= (long )wxDC_MaxY(_arg0
);
7574 wxPy_END_ALLOW_THREADS
;
7575 if (PyErr_Occurred()) return NULL
;
7576 } _resultobj
= Py_BuildValue("l",_result
);
7580 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
7581 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7582 PyObject
* _resultobj
;
7585 PyObject
* _argo0
= 0;
7586 char *_kwnames
[] = { "self", NULL
};
7589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
7592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7599 wxPy_BEGIN_ALLOW_THREADS
;
7600 _result
= (long )wxDC_MinX(_arg0
);
7602 wxPy_END_ALLOW_THREADS
;
7603 if (PyErr_Occurred()) return NULL
;
7604 } _resultobj
= Py_BuildValue("l",_result
);
7608 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
7609 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7610 PyObject
* _resultobj
;
7613 PyObject
* _argo0
= 0;
7614 char *_kwnames
[] = { "self", NULL
};
7617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
7620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7627 wxPy_BEGIN_ALLOW_THREADS
;
7628 _result
= (long )wxDC_MinY(_arg0
);
7630 wxPy_END_ALLOW_THREADS
;
7631 if (PyErr_Occurred()) return NULL
;
7632 } _resultobj
= Py_BuildValue("l",_result
);
7636 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
7637 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7638 PyObject
* _resultobj
;
7641 PyObject
* _argo0
= 0;
7642 char *_kwnames
[] = { "self", NULL
};
7645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
7648 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7649 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7650 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7655 wxPy_BEGIN_ALLOW_THREADS
;
7656 _result
= (bool )wxDC_Ok(_arg0
);
7658 wxPy_END_ALLOW_THREADS
;
7659 if (PyErr_Occurred()) return NULL
;
7660 } _resultobj
= Py_BuildValue("i",_result
);
7664 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
7665 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7666 PyObject
* _resultobj
;
7670 PyObject
* _argo0
= 0;
7671 char *_kwnames
[] = { "self","x","y", NULL
};
7674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7677 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7678 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7684 wxPy_BEGIN_ALLOW_THREADS
;
7685 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7687 wxPy_END_ALLOW_THREADS
;
7688 if (PyErr_Occurred()) return NULL
;
7689 } Py_INCREF(Py_None
);
7690 _resultobj
= Py_None
;
7694 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
7695 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7696 PyObject
* _resultobj
;
7699 PyObject
* _argo0
= 0;
7700 PyObject
* _argo1
= 0;
7701 char *_kwnames
[] = { "self","brush", NULL
};
7704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
7707 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7708 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7709 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7714 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7715 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7721 wxPy_BEGIN_ALLOW_THREADS
;
7722 wxDC_SetBackground(_arg0
,*_arg1
);
7724 wxPy_END_ALLOW_THREADS
;
7725 if (PyErr_Occurred()) return NULL
;
7726 } Py_INCREF(Py_None
);
7727 _resultobj
= Py_None
;
7731 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
7732 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7733 PyObject
* _resultobj
;
7736 PyObject
* _argo0
= 0;
7737 char *_kwnames
[] = { "self","mode", NULL
};
7740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
7743 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7744 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7745 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
7750 wxPy_BEGIN_ALLOW_THREADS
;
7751 wxDC_SetBackgroundMode(_arg0
,_arg1
);
7753 wxPy_END_ALLOW_THREADS
;
7754 if (PyErr_Occurred()) return NULL
;
7755 } Py_INCREF(Py_None
);
7756 _resultobj
= Py_None
;
7760 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7761 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7762 PyObject
* _resultobj
;
7768 PyObject
* _argo0
= 0;
7769 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7782 wxPy_BEGIN_ALLOW_THREADS
;
7783 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7785 wxPy_END_ALLOW_THREADS
;
7786 if (PyErr_Occurred()) return NULL
;
7787 } Py_INCREF(Py_None
);
7788 _resultobj
= Py_None
;
7792 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
7793 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7794 PyObject
* _resultobj
;
7797 PyObject
* _argo0
= 0;
7798 PyObject
* _argo1
= 0;
7799 char *_kwnames
[] = { "self","region", NULL
};
7802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
7805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
7812 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7813 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
7814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
7819 wxPy_BEGIN_ALLOW_THREADS
;
7820 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
7822 wxPy_END_ALLOW_THREADS
;
7823 if (PyErr_Occurred()) return NULL
;
7824 } Py_INCREF(Py_None
);
7825 _resultobj
= Py_None
;
7829 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
7830 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7831 PyObject
* _resultobj
;
7834 PyObject
* _argo0
= 0;
7835 PyObject
* _argo1
= 0;
7836 char *_kwnames
[] = { "self","colourMap", NULL
};
7839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
7842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
7849 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7850 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
7851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
7856 wxPy_BEGIN_ALLOW_THREADS
;
7857 wxDC_SetPalette(_arg0
,*_arg1
);
7859 wxPy_END_ALLOW_THREADS
;
7860 if (PyErr_Occurred()) return NULL
;
7861 } Py_INCREF(Py_None
);
7862 _resultobj
= Py_None
;
7866 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
7867 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7868 PyObject
* _resultobj
;
7871 PyObject
* _argo0
= 0;
7872 PyObject
* _argo1
= 0;
7873 char *_kwnames
[] = { "self","brush", NULL
};
7876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
7879 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7880 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
7886 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7887 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
7893 wxPy_BEGIN_ALLOW_THREADS
;
7894 wxDC_SetBrush(_arg0
,*_arg1
);
7896 wxPy_END_ALLOW_THREADS
;
7897 if (PyErr_Occurred()) return NULL
;
7898 } Py_INCREF(Py_None
);
7899 _resultobj
= Py_None
;
7903 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7904 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7905 PyObject
* _resultobj
;
7908 PyObject
* _argo0
= 0;
7909 PyObject
* _argo1
= 0;
7910 char *_kwnames
[] = { "self","font", NULL
};
7913 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
7916 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7917 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7918 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7923 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7924 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
7925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7930 wxPy_BEGIN_ALLOW_THREADS
;
7931 wxDC_SetFont(_arg0
,*_arg1
);
7933 wxPy_END_ALLOW_THREADS
;
7934 if (PyErr_Occurred()) return NULL
;
7935 } Py_INCREF(Py_None
);
7936 _resultobj
= Py_None
;
7940 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7941 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7942 PyObject
* _resultobj
;
7945 PyObject
* _argo0
= 0;
7946 char *_kwnames
[] = { "self","function", NULL
};
7949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7952 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7953 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7959 wxPy_BEGIN_ALLOW_THREADS
;
7960 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7962 wxPy_END_ALLOW_THREADS
;
7963 if (PyErr_Occurred()) return NULL
;
7964 } Py_INCREF(Py_None
);
7965 _resultobj
= Py_None
;
7969 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7970 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7971 PyObject
* _resultobj
;
7975 PyObject
* _argo0
= 0;
7976 char *_kwnames
[] = { "self","x","y", NULL
};
7979 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7982 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7983 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7989 wxPy_BEGIN_ALLOW_THREADS
;
7990 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7992 wxPy_END_ALLOW_THREADS
;
7993 if (PyErr_Occurred()) return NULL
;
7994 } Py_INCREF(Py_None
);
7995 _resultobj
= Py_None
;
7999 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8000 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8001 PyObject
* _resultobj
;
8004 PyObject
* _argo0
= 0;
8005 char *_kwnames
[] = { "self","mode", NULL
};
8008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
8011 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8012 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8018 wxPy_BEGIN_ALLOW_THREADS
;
8019 wxDC_SetMapMode(_arg0
,_arg1
);
8021 wxPy_END_ALLOW_THREADS
;
8022 if (PyErr_Occurred()) return NULL
;
8023 } Py_INCREF(Py_None
);
8024 _resultobj
= Py_None
;
8028 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8029 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8030 PyObject
* _resultobj
;
8033 PyObject
* _argo0
= 0;
8035 char *_kwnames
[] = { "self","optimize", NULL
};
8038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
8041 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8042 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8043 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8047 _arg1
= (bool ) tempbool1
;
8049 wxPy_BEGIN_ALLOW_THREADS
;
8050 wxDC_SetOptimization(_arg0
,_arg1
);
8052 wxPy_END_ALLOW_THREADS
;
8053 if (PyErr_Occurred()) return NULL
;
8054 } Py_INCREF(Py_None
);
8055 _resultobj
= Py_None
;
8059 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8060 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8061 PyObject
* _resultobj
;
8064 PyObject
* _argo0
= 0;
8065 PyObject
* _argo1
= 0;
8066 char *_kwnames
[] = { "self","pen", NULL
};
8069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
8072 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8073 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8074 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8079 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8080 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
8081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8086 wxPy_BEGIN_ALLOW_THREADS
;
8087 wxDC_SetPen(_arg0
,*_arg1
);
8089 wxPy_END_ALLOW_THREADS
;
8090 if (PyErr_Occurred()) return NULL
;
8091 } Py_INCREF(Py_None
);
8092 _resultobj
= Py_None
;
8096 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8097 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8098 PyObject
* _resultobj
;
8101 PyObject
* _argo0
= 0;
8103 PyObject
* _obj1
= 0;
8104 char *_kwnames
[] = { "self","colour", NULL
};
8107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
8110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8118 if (! wxColour_helper(_obj1
, &_arg1
))
8122 wxPy_BEGIN_ALLOW_THREADS
;
8123 wxDC_SetTextBackground(_arg0
,*_arg1
);
8125 wxPy_END_ALLOW_THREADS
;
8126 if (PyErr_Occurred()) return NULL
;
8127 } Py_INCREF(Py_None
);
8128 _resultobj
= Py_None
;
8132 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8133 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8134 PyObject
* _resultobj
;
8137 PyObject
* _argo0
= 0;
8139 PyObject
* _obj1
= 0;
8140 char *_kwnames
[] = { "self","colour", NULL
};
8143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
8146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8154 if (! wxColour_helper(_obj1
, &_arg1
))
8158 wxPy_BEGIN_ALLOW_THREADS
;
8159 wxDC_SetTextForeground(_arg0
,*_arg1
);
8161 wxPy_END_ALLOW_THREADS
;
8162 if (PyErr_Occurred()) return NULL
;
8163 } Py_INCREF(Py_None
);
8164 _resultobj
= Py_None
;
8168 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8169 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8170 PyObject
* _resultobj
;
8174 PyObject
* _argo0
= 0;
8175 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8188 wxPy_BEGIN_ALLOW_THREADS
;
8189 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8191 wxPy_END_ALLOW_THREADS
;
8192 if (PyErr_Occurred()) return NULL
;
8193 } Py_INCREF(Py_None
);
8194 _resultobj
= Py_None
;
8198 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8199 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8200 PyObject
* _resultobj
;
8204 PyObject
* _argo0
= 0;
8205 PyObject
* _obj1
= 0;
8206 char *_kwnames
[] = { "self","message", NULL
};
8209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8219 #if PYTHON_API_VERSION >= 1009
8220 char* tmpPtr
; int tmpSize
;
8221 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8222 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8225 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8227 _arg1
= new wxString(tmpPtr
, tmpSize
);
8229 if (!PyString_Check(_obj1
)) {
8230 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8233 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8237 wxPy_BEGIN_ALLOW_THREADS
;
8238 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8240 wxPy_END_ALLOW_THREADS
;
8241 if (PyErr_Occurred()) return NULL
;
8242 } _resultobj
= Py_BuildValue("i",_result
);
8250 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8251 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8252 PyObject
* _resultobj
;
8254 PyObject
* _argo0
= 0;
8255 char *_kwnames
[] = { "self", NULL
};
8258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
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_StartPage. Expected _wxDC_p.");
8268 wxPy_BEGIN_ALLOW_THREADS
;
8269 wxDC_StartPage(_arg0
);
8271 wxPy_END_ALLOW_THREADS
;
8272 if (PyErr_Occurred()) return NULL
;
8273 } Py_INCREF(Py_None
);
8274 _resultobj
= Py_None
;
8278 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8279 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8280 PyObject
* _resultobj
;
8285 int _arg4
= (int ) FALSE
;
8286 PyObject
* _argo0
= 0;
8287 PyObject
* _argo1
= 0;
8288 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
8291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
8294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8301 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8302 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8308 wxPy_BEGIN_ALLOW_THREADS
;
8309 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
8311 wxPy_END_ALLOW_THREADS
;
8312 if (PyErr_Occurred()) return NULL
;
8313 } Py_INCREF(Py_None
);
8314 _resultobj
= Py_None
;
8318 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8319 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8320 PyObject
* _resultobj
;
8323 PyObject
* _argo0
= 0;
8324 char *_kwnames
[] = { "self", NULL
};
8327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
8330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8337 wxPy_BEGIN_ALLOW_THREADS
;
8338 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
8340 wxPy_END_ALLOW_THREADS
;
8341 if (PyErr_Occurred()) return NULL
;
8342 } _resultobj
= Py_BuildValue("i",_result
);
8346 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8347 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8348 PyObject
* _resultobj
;
8351 PyObject
* _argo0
= 0;
8352 char *_kwnames
[] = { "self", NULL
};
8355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
8358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8365 wxPy_BEGIN_ALLOW_THREADS
;
8366 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
8368 wxPy_END_ALLOW_THREADS
;
8369 if (PyErr_Occurred()) return NULL
;
8370 } _resultobj
= Py_BuildValue("i",_result
);
8374 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8375 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8376 PyObject
* _resultobj
;
8379 PyObject
* _argo0
= 0;
8380 char *_kwnames
[] = { "self", NULL
};
8383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
8386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8393 wxPy_BEGIN_ALLOW_THREADS
;
8394 _result
= (int )wxDC_GetDepth(_arg0
);
8396 wxPy_END_ALLOW_THREADS
;
8397 if (PyErr_Occurred()) return NULL
;
8398 } _resultobj
= Py_BuildValue("i",_result
);
8402 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8403 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8404 PyObject
* _resultobj
;
8407 PyObject
* _argo0
= 0;
8408 char *_kwnames
[] = { "self", NULL
};
8412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
8415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8422 wxPy_BEGIN_ALLOW_THREADS
;
8423 _result
= new wxSize (wxDC_GetPPI(_arg0
));
8425 wxPy_END_ALLOW_THREADS
;
8426 if (PyErr_Occurred()) return NULL
;
8427 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8428 _resultobj
= Py_BuildValue("s",_ptemp
);
8432 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8433 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8434 PyObject
* _resultobj
;
8440 PyObject
* _argo0
= 0;
8441 char *_kwnames
[] = { "self", NULL
};
8450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
8453 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8454 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8455 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8460 wxPy_BEGIN_ALLOW_THREADS
;
8461 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8463 wxPy_END_ALLOW_THREADS
;
8464 if (PyErr_Occurred()) return NULL
;
8465 } Py_INCREF(Py_None
);
8466 _resultobj
= Py_None
;
8469 o
= PyInt_FromLong((long) (*_arg1
));
8470 _resultobj
= t_output_helper(_resultobj
, o
);
8474 o
= PyInt_FromLong((long) (*_arg2
));
8475 _resultobj
= t_output_helper(_resultobj
, o
);
8480 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8481 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8482 PyObject
* _resultobj
;
8486 PyObject
* _argo0
= 0;
8487 char *_kwnames
[] = { "self","x","y", NULL
};
8490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8500 wxPy_BEGIN_ALLOW_THREADS
;
8501 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8503 wxPy_END_ALLOW_THREADS
;
8504 if (PyErr_Occurred()) return NULL
;
8505 } Py_INCREF(Py_None
);
8506 _resultobj
= Py_None
;
8510 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8511 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8512 PyObject
* _resultobj
;
8518 PyObject
* _argo0
= 0;
8519 char *_kwnames
[] = { "self", NULL
};
8528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
8531 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8532 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8538 wxPy_BEGIN_ALLOW_THREADS
;
8539 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8541 wxPy_END_ALLOW_THREADS
;
8542 if (PyErr_Occurred()) return NULL
;
8543 } Py_INCREF(Py_None
);
8544 _resultobj
= Py_None
;
8547 o
= PyInt_FromLong((long) (*_arg1
));
8548 _resultobj
= t_output_helper(_resultobj
, o
);
8552 o
= PyInt_FromLong((long) (*_arg2
));
8553 _resultobj
= t_output_helper(_resultobj
, o
);
8558 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8559 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8560 PyObject
* _resultobj
;
8564 PyObject
* _argo0
= 0;
8567 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
8570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
8573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8579 _arg1
= (bool ) tempbool1
;
8580 _arg2
= (bool ) tempbool2
;
8582 wxPy_BEGIN_ALLOW_THREADS
;
8583 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
8585 wxPy_END_ALLOW_THREADS
;
8586 if (PyErr_Occurred()) return NULL
;
8587 } Py_INCREF(Py_None
);
8588 _resultobj
= Py_None
;
8592 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
8593 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8594 PyObject
* _resultobj
;
8598 PyObject
* _argo0
= 0;
8599 char *_kwnames
[] = { "self","x","y", NULL
};
8602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8605 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8606 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8612 wxPy_BEGIN_ALLOW_THREADS
;
8613 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
8615 wxPy_END_ALLOW_THREADS
;
8616 if (PyErr_Occurred()) return NULL
;
8617 } Py_INCREF(Py_None
);
8618 _resultobj
= Py_None
;
8622 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8623 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8624 PyObject
* _resultobj
;
8626 PyObject
* _argo0
= 0;
8627 char *_kwnames
[] = { "self", NULL
};
8630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
8633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8640 wxPy_BEGIN_ALLOW_THREADS
;
8641 wxDC_ResetBoundingBox(_arg0
);
8643 wxPy_END_ALLOW_THREADS
;
8644 if (PyErr_Occurred()) return NULL
;
8645 } Py_INCREF(Py_None
);
8646 _resultobj
= Py_None
;
8650 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8651 PyObject
* _resultobj
;
8661 PyObject
* _argo0
= 0;
8662 char *_kwnames
[] = { "self", NULL
};
8677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
8680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
8687 wxPy_BEGIN_ALLOW_THREADS
;
8688 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8690 wxPy_END_ALLOW_THREADS
;
8691 if (PyErr_Occurred()) return NULL
;
8692 } Py_INCREF(Py_None
);
8693 _resultobj
= Py_None
;
8696 o
= PyInt_FromLong((long) (*_arg1
));
8697 _resultobj
= t_output_helper(_resultobj
, o
);
8701 o
= PyInt_FromLong((long) (*_arg2
));
8702 _resultobj
= t_output_helper(_resultobj
, o
);
8706 o
= PyInt_FromLong((long) (*_arg3
));
8707 _resultobj
= t_output_helper(_resultobj
, o
);
8711 o
= PyInt_FromLong((long) (*_arg4
));
8712 _resultobj
= t_output_helper(_resultobj
, o
);
8717 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
8718 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
8719 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
8727 if (!PySequence_Check(pyPoints
)) {
8730 if (!PySequence_Check(pyPens
)) {
8733 numObjs
= PySequence_Length(pyPoints
);
8734 numPens
= PySequence_Length(pyPens
);
8736 for (i
= 0; i
< numObjs
; i
++) {
8740 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
8743 obj
= PySequence_GetItem(pyPens
, i
);
8745 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
8756 // Get the point coordinants
8758 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
8761 obj
= PySequence_GetItem(pyPoints
, i
);
8763 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
8769 // Now draw the point
8770 self
->DrawPoint(x1
, y1
);
8780 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
8783 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
8786 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8787 PyObject
* _resultobj
;
8792 PyObject
* _argo0
= 0;
8793 PyObject
* _obj1
= 0;
8794 PyObject
* _obj2
= 0;
8795 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
8798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8801 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8802 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
8814 wxPy_BEGIN_ALLOW_THREADS
;
8815 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
8817 wxPy_END_ALLOW_THREADS
;
8818 if (PyErr_Occurred()) return NULL
;
8820 _resultobj
= _result
;
8825 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
8826 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
8827 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
8835 if (!PySequence_Check(pyLines
)) {
8838 if (!PySequence_Check(pyPens
)) {
8841 numObjs
= PySequence_Length(pyLines
);
8842 numPens
= PySequence_Length(pyPens
);
8844 for (i
= 0; i
< numObjs
; i
++) {
8848 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
8851 obj
= PySequence_GetItem(pyPens
, i
);
8853 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
8864 // Get the line coordinants
8866 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
8869 obj
= PySequence_GetItem(pyLines
, i
);
8871 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
8877 // Now draw the line
8878 self
->DrawLine(x1
, y1
, x2
, y2
);
8888 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
8891 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
8894 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8895 PyObject
* _resultobj
;
8900 PyObject
* _argo0
= 0;
8901 PyObject
* _obj1
= 0;
8902 PyObject
* _obj2
= 0;
8903 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
8906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
8922 wxPy_BEGIN_ALLOW_THREADS
;
8923 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
8925 wxPy_END_ALLOW_THREADS
;
8926 if (PyErr_Occurred()) return NULL
;
8928 _resultobj
= _result
;
8933 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
8936 src
= (wxMemoryDC
*) ptr
;
8937 dest
= (wxDC
*) src
;
8938 return (void *) dest
;
8941 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
8944 src
= (wxMemoryDC
*) ptr
;
8945 dest
= (wxObject
*) src
;
8946 return (void *) dest
;
8949 #define new_wxMemoryDC() (new wxMemoryDC())
8950 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8951 PyObject
* _resultobj
;
8952 wxMemoryDC
* _result
;
8953 char *_kwnames
[] = { NULL
};
8957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
8960 wxPy_BEGIN_ALLOW_THREADS
;
8961 _result
= (wxMemoryDC
*)new_wxMemoryDC();
8963 wxPy_END_ALLOW_THREADS
;
8964 if (PyErr_Occurred()) return NULL
;
8966 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
8967 _resultobj
= Py_BuildValue("s",_ptemp
);
8970 _resultobj
= Py_None
;
8975 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
8976 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8977 PyObject
* _resultobj
;
8980 PyObject
* _argo0
= 0;
8981 PyObject
* _argo1
= 0;
8982 char *_kwnames
[] = { "self","bitmap", NULL
};
8985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
8988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
8990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
8995 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8996 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8997 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9002 wxPy_BEGIN_ALLOW_THREADS
;
9003 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
9005 wxPy_END_ALLOW_THREADS
;
9006 if (PyErr_Occurred()) return NULL
;
9007 } Py_INCREF(Py_None
);
9008 _resultobj
= Py_None
;
9012 static void *SwigwxScreenDCTowxDC(void *ptr
) {
9015 src
= (wxScreenDC
*) ptr
;
9016 dest
= (wxDC
*) src
;
9017 return (void *) dest
;
9020 static void *SwigwxScreenDCTowxObject(void *ptr
) {
9023 src
= (wxScreenDC
*) ptr
;
9024 dest
= (wxObject
*) src
;
9025 return (void *) dest
;
9028 #define new_wxScreenDC() (new wxScreenDC())
9029 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9030 PyObject
* _resultobj
;
9031 wxScreenDC
* _result
;
9032 char *_kwnames
[] = { NULL
};
9036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
9039 wxPy_BEGIN_ALLOW_THREADS
;
9040 _result
= (wxScreenDC
*)new_wxScreenDC();
9042 wxPy_END_ALLOW_THREADS
;
9043 if (PyErr_Occurred()) return NULL
;
9045 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
9046 _resultobj
= Py_BuildValue("s",_ptemp
);
9049 _resultobj
= Py_None
;
9054 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9055 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9056 PyObject
* _resultobj
;
9060 PyObject
* _argo0
= 0;
9061 PyObject
* _argo1
= 0;
9062 char *_kwnames
[] = { "self","window", NULL
};
9065 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
9068 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9069 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9070 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9075 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9076 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
9077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9082 wxPy_BEGIN_ALLOW_THREADS
;
9083 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
9085 wxPy_END_ALLOW_THREADS
;
9086 if (PyErr_Occurred()) return NULL
;
9087 } _resultobj
= Py_BuildValue("i",_result
);
9091 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9092 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9093 PyObject
* _resultobj
;
9096 wxRect
* _arg1
= (wxRect
*) NULL
;
9097 PyObject
* _argo0
= 0;
9099 PyObject
* _obj1
= 0;
9100 char *_kwnames
[] = { "self","rect", NULL
};
9103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
9106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9115 if (! wxRect_helper(_obj1
, &_arg1
))
9119 wxPy_BEGIN_ALLOW_THREADS
;
9120 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
9122 wxPy_END_ALLOW_THREADS
;
9123 if (PyErr_Occurred()) return NULL
;
9124 } _resultobj
= Py_BuildValue("i",_result
);
9128 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9129 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9130 PyObject
* _resultobj
;
9133 PyObject
* _argo0
= 0;
9134 char *_kwnames
[] = { "self", NULL
};
9137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
9140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9147 wxPy_BEGIN_ALLOW_THREADS
;
9148 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
9150 wxPy_END_ALLOW_THREADS
;
9151 if (PyErr_Occurred()) return NULL
;
9152 } _resultobj
= Py_BuildValue("i",_result
);
9156 static void *SwigwxClientDCTowxDC(void *ptr
) {
9159 src
= (wxClientDC
*) ptr
;
9160 dest
= (wxDC
*) src
;
9161 return (void *) dest
;
9164 static void *SwigwxClientDCTowxObject(void *ptr
) {
9167 src
= (wxClientDC
*) ptr
;
9168 dest
= (wxObject
*) src
;
9169 return (void *) dest
;
9172 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9173 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9174 PyObject
* _resultobj
;
9175 wxClientDC
* _result
;
9177 PyObject
* _argo0
= 0;
9178 char *_kwnames
[] = { "win", NULL
};
9182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
9185 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9186 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9187 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9192 wxPy_BEGIN_ALLOW_THREADS
;
9193 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
9195 wxPy_END_ALLOW_THREADS
;
9196 if (PyErr_Occurred()) return NULL
;
9198 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
9199 _resultobj
= Py_BuildValue("s",_ptemp
);
9202 _resultobj
= Py_None
;
9207 static void *SwigwxPaintDCTowxDC(void *ptr
) {
9210 src
= (wxPaintDC
*) ptr
;
9211 dest
= (wxDC
*) src
;
9212 return (void *) dest
;
9215 static void *SwigwxPaintDCTowxObject(void *ptr
) {
9218 src
= (wxPaintDC
*) ptr
;
9219 dest
= (wxObject
*) src
;
9220 return (void *) dest
;
9223 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9224 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9225 PyObject
* _resultobj
;
9226 wxPaintDC
* _result
;
9228 PyObject
* _argo0
= 0;
9229 char *_kwnames
[] = { "win", NULL
};
9233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
9236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9243 wxPy_BEGIN_ALLOW_THREADS
;
9244 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
9246 wxPy_END_ALLOW_THREADS
;
9247 if (PyErr_Occurred()) return NULL
;
9249 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
9250 _resultobj
= Py_BuildValue("s",_ptemp
);
9253 _resultobj
= Py_None
;
9258 static void *SwigwxWindowDCTowxDC(void *ptr
) {
9261 src
= (wxWindowDC
*) ptr
;
9262 dest
= (wxDC
*) src
;
9263 return (void *) dest
;
9266 static void *SwigwxWindowDCTowxObject(void *ptr
) {
9269 src
= (wxWindowDC
*) ptr
;
9270 dest
= (wxObject
*) src
;
9271 return (void *) dest
;
9274 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
9275 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9276 PyObject
* _resultobj
;
9277 wxWindowDC
* _result
;
9279 PyObject
* _argo0
= 0;
9280 char *_kwnames
[] = { "win", NULL
};
9284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
9287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9294 wxPy_BEGIN_ALLOW_THREADS
;
9295 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
9297 wxPy_END_ALLOW_THREADS
;
9298 if (PyErr_Occurred()) return NULL
;
9300 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
9301 _resultobj
= Py_BuildValue("s",_ptemp
);
9304 _resultobj
= Py_None
;
9309 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
9312 src
= (wxPalette
*) ptr
;
9313 dest
= (wxGDIObject
*) src
;
9314 return (void *) dest
;
9317 static void *SwigwxPaletteTowxObject(void *ptr
) {
9320 src
= (wxPalette
*) ptr
;
9321 dest
= (wxObject
*) src
;
9322 return (void *) dest
;
9325 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9326 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9327 PyObject
* _resultobj
;
9328 wxPalette
* _result
;
9333 PyObject
* _obj1
= 0;
9334 PyObject
* _obj2
= 0;
9335 PyObject
* _obj3
= 0;
9336 char *_kwnames
[] = { "choices","choices","choices", NULL
};
9340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
9343 _arg1
= byte_LIST_helper(_obj1
);
9344 if (_arg1
== NULL
) {
9349 _arg2
= byte_LIST_helper(_obj2
);
9350 if (_arg2
== NULL
) {
9356 _arg3
= byte_LIST_helper(_obj3
);
9357 if (_arg3
== NULL
) {
9363 _arg0
= PyList_Size(_obj1
);
9370 wxPy_BEGIN_ALLOW_THREADS
;
9371 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
9373 wxPy_END_ALLOW_THREADS
;
9374 if (PyErr_Occurred()) return NULL
;
9376 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
9377 _resultobj
= Py_BuildValue("s",_ptemp
);
9380 _resultobj
= Py_None
;
9394 #define delete_wxPalette(_swigobj) (delete _swigobj)
9395 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9396 PyObject
* _resultobj
;
9398 PyObject
* _argo0
= 0;
9399 char *_kwnames
[] = { "self", NULL
};
9402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
9405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
9412 wxPy_BEGIN_ALLOW_THREADS
;
9413 delete_wxPalette(_arg0
);
9415 wxPy_END_ALLOW_THREADS
;
9416 if (PyErr_Occurred()) return NULL
;
9417 } Py_INCREF(Py_None
);
9418 _resultobj
= Py_None
;
9422 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
9423 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9424 PyObject
* _resultobj
;
9430 PyObject
* _argo0
= 0;
9431 char *_kwnames
[] = { "self","red","green","blue", NULL
};
9434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
9437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
9444 wxPy_BEGIN_ALLOW_THREADS
;
9445 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
9447 wxPy_END_ALLOW_THREADS
;
9448 if (PyErr_Occurred()) return NULL
;
9449 } _resultobj
= Py_BuildValue("i",_result
);
9453 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9454 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9455 PyObject
* _resultobj
;
9462 PyObject
* _argo0
= 0;
9463 PyObject
* _argo2
= 0;
9464 PyObject
* _argo3
= 0;
9465 PyObject
* _argo4
= 0;
9466 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
9469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
9472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
9479 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9480 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
9481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
9486 if (_argo3
== Py_None
) { _arg3
= NULL
; }
9487 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
9488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
9493 if (_argo4
== Py_None
) { _arg4
= NULL
; }
9494 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
9495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
9500 wxPy_BEGIN_ALLOW_THREADS
;
9501 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9503 wxPy_END_ALLOW_THREADS
;
9504 if (PyErr_Occurred()) return NULL
;
9505 } _resultobj
= Py_BuildValue("i",_result
);
9509 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
9510 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9511 PyObject
* _resultobj
;
9514 PyObject
* _argo0
= 0;
9515 char *_kwnames
[] = { "self", NULL
};
9518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
9521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
9528 wxPy_BEGIN_ALLOW_THREADS
;
9529 _result
= (bool )wxPalette_Ok(_arg0
);
9531 wxPy_END_ALLOW_THREADS
;
9532 if (PyErr_Occurred()) return NULL
;
9533 } _resultobj
= Py_BuildValue("i",_result
);
9537 static void *SwigwxImageListTowxObject(void *ptr
) {
9540 src
= (wxImageList
*) ptr
;
9541 dest
= (wxObject
*) src
;
9542 return (void *) dest
;
9545 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9546 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9547 PyObject
* _resultobj
;
9548 wxImageList
* _result
;
9551 int _arg2
= (int ) TRUE
;
9552 int _arg3
= (int ) 1;
9553 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
9557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9560 wxPy_BEGIN_ALLOW_THREADS
;
9561 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
9563 wxPy_END_ALLOW_THREADS
;
9564 if (PyErr_Occurred()) return NULL
;
9566 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
9567 _resultobj
= Py_BuildValue("s",_ptemp
);
9570 _resultobj
= Py_None
;
9575 #define delete_wxImageList(_swigobj) (delete _swigobj)
9576 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9577 PyObject
* _resultobj
;
9578 wxImageList
* _arg0
;
9579 PyObject
* _argo0
= 0;
9580 char *_kwnames
[] = { "self", NULL
};
9583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
9586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
9593 wxPy_BEGIN_ALLOW_THREADS
;
9594 delete_wxImageList(_arg0
);
9596 wxPy_END_ALLOW_THREADS
;
9597 if (PyErr_Occurred()) return NULL
;
9598 } Py_INCREF(Py_None
);
9599 _resultobj
= Py_None
;
9603 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9604 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9605 PyObject
* _resultobj
;
9607 wxImageList
* _arg0
;
9609 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
9610 PyObject
* _argo0
= 0;
9611 PyObject
* _argo1
= 0;
9612 PyObject
* _argo2
= 0;
9613 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
9616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
9619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
9626 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9627 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
9633 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9634 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
9640 wxPy_BEGIN_ALLOW_THREADS
;
9641 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
9643 wxPy_END_ALLOW_THREADS
;
9644 if (PyErr_Occurred()) return NULL
;
9645 } _resultobj
= Py_BuildValue("i",_result
);
9649 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9650 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9651 PyObject
* _resultobj
;
9653 wxImageList
* _arg0
;
9656 PyObject
* _argo0
= 0;
9657 PyObject
* _argo1
= 0;
9659 PyObject
* _obj2
= 0;
9660 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
9663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
9666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
9673 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9674 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
9681 if (! wxColour_helper(_obj2
, &_arg2
))
9685 wxPy_BEGIN_ALLOW_THREADS
;
9686 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
9688 wxPy_END_ALLOW_THREADS
;
9689 if (PyErr_Occurred()) return NULL
;
9690 } _resultobj
= Py_BuildValue("i",_result
);
9694 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
9695 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9696 PyObject
* _resultobj
;
9698 wxImageList
* _arg0
;
9700 PyObject
* _argo0
= 0;
9701 PyObject
* _argo1
= 0;
9702 char *_kwnames
[] = { "self","icon", NULL
};
9705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
9708 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9709 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9710 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
9715 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9716 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
9717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
9722 wxPy_BEGIN_ALLOW_THREADS
;
9723 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
9725 wxPy_END_ALLOW_THREADS
;
9726 if (PyErr_Occurred()) return NULL
;
9727 } _resultobj
= Py_BuildValue("i",_result
);
9731 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
9732 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9733 PyObject
* _resultobj
;
9735 wxImageList
* _arg0
;
9738 PyObject
* _argo0
= 0;
9739 PyObject
* _argo2
= 0;
9740 char *_kwnames
[] = { "self","index","bitmap", NULL
};
9743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
9746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
9753 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9754 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
9760 wxPy_BEGIN_ALLOW_THREADS
;
9761 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
9763 wxPy_END_ALLOW_THREADS
;
9764 if (PyErr_Occurred()) return NULL
;
9765 } _resultobj
= Py_BuildValue("i",_result
);
9769 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9770 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9771 PyObject
* _resultobj
;
9773 wxImageList
* _arg0
;
9778 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
9779 bool _arg6
= (bool ) FALSE
;
9780 PyObject
* _argo0
= 0;
9781 PyObject
* _argo2
= 0;
9782 int tempbool6
= (int) FALSE
;
9783 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
9786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
9789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
9796 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9797 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
9798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
9802 _arg6
= (bool ) tempbool6
;
9804 wxPy_BEGIN_ALLOW_THREADS
;
9805 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
9807 wxPy_END_ALLOW_THREADS
;
9808 if (PyErr_Occurred()) return NULL
;
9809 } _resultobj
= Py_BuildValue("i",_result
);
9813 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
9814 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9815 PyObject
* _resultobj
;
9817 wxImageList
* _arg0
;
9818 PyObject
* _argo0
= 0;
9819 char *_kwnames
[] = { "self", NULL
};
9822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
9825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
9832 wxPy_BEGIN_ALLOW_THREADS
;
9833 _result
= (int )wxImageList_GetImageCount(_arg0
);
9835 wxPy_END_ALLOW_THREADS
;
9836 if (PyErr_Occurred()) return NULL
;
9837 } _resultobj
= Py_BuildValue("i",_result
);
9841 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
9842 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9843 PyObject
* _resultobj
;
9845 wxImageList
* _arg0
;
9847 PyObject
* _argo0
= 0;
9848 char *_kwnames
[] = { "self","index", NULL
};
9851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
9854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
9861 wxPy_BEGIN_ALLOW_THREADS
;
9862 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
9864 wxPy_END_ALLOW_THREADS
;
9865 if (PyErr_Occurred()) return NULL
;
9866 } _resultobj
= Py_BuildValue("i",_result
);
9870 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
9871 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9872 PyObject
* _resultobj
;
9874 wxImageList
* _arg0
;
9875 PyObject
* _argo0
= 0;
9876 char *_kwnames
[] = { "self", NULL
};
9879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
9882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9889 wxPy_BEGIN_ALLOW_THREADS
;
9890 _result
= (bool )wxImageList_RemoveAll(_arg0
);
9892 wxPy_END_ALLOW_THREADS
;
9893 if (PyErr_Occurred()) return NULL
;
9894 } _resultobj
= Py_BuildValue("i",_result
);
9898 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9899 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9900 PyObject
* _resultobj
;
9901 wxImageList
* _arg0
;
9907 PyObject
* _argo0
= 0;
9908 char *_kwnames
[] = { "self","index", NULL
};
9917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
9920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9927 wxPy_BEGIN_ALLOW_THREADS
;
9928 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
9930 wxPy_END_ALLOW_THREADS
;
9931 if (PyErr_Occurred()) return NULL
;
9932 } Py_INCREF(Py_None
);
9933 _resultobj
= Py_None
;
9936 o
= PyInt_FromLong((long) (*_arg2
));
9937 _resultobj
= t_output_helper(_resultobj
, o
);
9941 o
= PyInt_FromLong((long) (*_arg3
));
9942 _resultobj
= t_output_helper(_resultobj
, o
);
9947 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
9950 src
= (wxRegion
*) ptr
;
9951 dest
= (wxGDIObject
*) src
;
9952 return (void *) dest
;
9955 static void *SwigwxRegionTowxObject(void *ptr
) {
9958 src
= (wxRegion
*) ptr
;
9959 dest
= (wxObject
*) src
;
9960 return (void *) dest
;
9963 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9964 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9965 PyObject
* _resultobj
;
9967 long _arg0
= (long ) 0;
9968 long _arg1
= (long ) 0;
9969 long _arg2
= (long ) 0;
9970 long _arg3
= (long ) 0;
9971 char *_kwnames
[] = { "x","y","width","height", NULL
};
9975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9978 wxPy_BEGIN_ALLOW_THREADS
;
9979 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
9981 wxPy_END_ALLOW_THREADS
;
9982 if (PyErr_Occurred()) return NULL
;
9984 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
9985 _resultobj
= Py_BuildValue("s",_ptemp
);
9988 _resultobj
= Py_None
;
9993 #define delete_wxRegion(_swigobj) (delete _swigobj)
9994 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9995 PyObject
* _resultobj
;
9997 PyObject
* _argo0
= 0;
9998 char *_kwnames
[] = { "self", NULL
};
10001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
10004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10011 wxPy_BEGIN_ALLOW_THREADS
;
10012 delete_wxRegion(_arg0
);
10014 wxPy_END_ALLOW_THREADS
;
10015 if (PyErr_Occurred()) return NULL
;
10016 } Py_INCREF(Py_None
);
10017 _resultobj
= Py_None
;
10021 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10022 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10023 PyObject
* _resultobj
;
10025 PyObject
* _argo0
= 0;
10026 char *_kwnames
[] = { "self", NULL
};
10029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
10032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10039 wxPy_BEGIN_ALLOW_THREADS
;
10040 wxRegion_Clear(_arg0
);
10042 wxPy_END_ALLOW_THREADS
;
10043 if (PyErr_Occurred()) return NULL
;
10044 } Py_INCREF(Py_None
);
10045 _resultobj
= Py_None
;
10049 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10050 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10051 PyObject
* _resultobj
;
10052 wxRegionContain _result
;
10056 PyObject
* _argo0
= 0;
10057 char *_kwnames
[] = { "self","x","y", NULL
};
10060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10070 wxPy_BEGIN_ALLOW_THREADS
;
10071 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
10073 wxPy_END_ALLOW_THREADS
;
10074 if (PyErr_Occurred()) return NULL
;
10075 } _resultobj
= Py_BuildValue("i",_result
);
10079 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10080 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10081 PyObject
* _resultobj
;
10082 wxRegionContain _result
;
10085 PyObject
* _argo0
= 0;
10087 PyObject
* _obj1
= 0;
10088 char *_kwnames
[] = { "self","pt", NULL
};
10091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
10094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10102 if (! wxPoint_helper(_obj1
, &_arg1
))
10106 wxPy_BEGIN_ALLOW_THREADS
;
10107 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
10109 wxPy_END_ALLOW_THREADS
;
10110 if (PyErr_Occurred()) return NULL
;
10111 } _resultobj
= Py_BuildValue("i",_result
);
10115 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10116 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10117 PyObject
* _resultobj
;
10118 wxRegionContain _result
;
10121 PyObject
* _argo0
= 0;
10123 PyObject
* _obj1
= 0;
10124 char *_kwnames
[] = { "self","rect", NULL
};
10127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
10130 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10131 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10132 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10138 if (! wxRect_helper(_obj1
, &_arg1
))
10142 wxPy_BEGIN_ALLOW_THREADS
;
10143 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
10145 wxPy_END_ALLOW_THREADS
;
10146 if (PyErr_Occurred()) return NULL
;
10147 } _resultobj
= Py_BuildValue("i",_result
);
10151 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10152 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10153 PyObject
* _resultobj
;
10154 wxRegionContain _result
;
10160 PyObject
* _argo0
= 0;
10161 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
10164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10174 wxPy_BEGIN_ALLOW_THREADS
;
10175 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10177 wxPy_END_ALLOW_THREADS
;
10178 if (PyErr_Occurred()) return NULL
;
10179 } _resultobj
= Py_BuildValue("i",_result
);
10183 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10184 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10185 PyObject
* _resultobj
;
10188 PyObject
* _argo0
= 0;
10189 char *_kwnames
[] = { "self", NULL
};
10193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
10196 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10197 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10203 wxPy_BEGIN_ALLOW_THREADS
;
10204 _result
= new wxRect (wxRegion_GetBox(_arg0
));
10206 wxPy_END_ALLOW_THREADS
;
10207 if (PyErr_Occurred()) return NULL
;
10208 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10209 _resultobj
= Py_BuildValue("s",_ptemp
);
10213 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10214 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10215 PyObject
* _resultobj
;
10222 PyObject
* _argo0
= 0;
10223 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10236 wxPy_BEGIN_ALLOW_THREADS
;
10237 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10239 wxPy_END_ALLOW_THREADS
;
10240 if (PyErr_Occurred()) return NULL
;
10241 } _resultobj
= Py_BuildValue("i",_result
);
10245 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10246 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10247 PyObject
* _resultobj
;
10251 PyObject
* _argo0
= 0;
10253 PyObject
* _obj1
= 0;
10254 char *_kwnames
[] = { "self","rect", NULL
};
10257 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
10260 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10261 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10262 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
10268 if (! wxRect_helper(_obj1
, &_arg1
))
10272 wxPy_BEGIN_ALLOW_THREADS
;
10273 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
10275 wxPy_END_ALLOW_THREADS
;
10276 if (PyErr_Occurred()) return NULL
;
10277 } _resultobj
= Py_BuildValue("i",_result
);
10281 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10282 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10283 PyObject
* _resultobj
;
10287 PyObject
* _argo0
= 0;
10288 PyObject
* _argo1
= 0;
10289 char *_kwnames
[] = { "self","region", NULL
};
10292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
10295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10302 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10303 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10309 wxPy_BEGIN_ALLOW_THREADS
;
10310 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
10312 wxPy_END_ALLOW_THREADS
;
10313 if (PyErr_Occurred()) return NULL
;
10314 } _resultobj
= Py_BuildValue("i",_result
);
10318 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10319 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10320 PyObject
* _resultobj
;
10323 PyObject
* _argo0
= 0;
10324 char *_kwnames
[] = { "self", NULL
};
10327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
10330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
10337 wxPy_BEGIN_ALLOW_THREADS
;
10338 _result
= (bool )wxRegion_IsEmpty(_arg0
);
10340 wxPy_END_ALLOW_THREADS
;
10341 if (PyErr_Occurred()) return NULL
;
10342 } _resultobj
= Py_BuildValue("i",_result
);
10346 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10347 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10348 PyObject
* _resultobj
;
10355 PyObject
* _argo0
= 0;
10356 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
10369 wxPy_BEGIN_ALLOW_THREADS
;
10370 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10372 wxPy_END_ALLOW_THREADS
;
10373 if (PyErr_Occurred()) return NULL
;
10374 } _resultobj
= Py_BuildValue("i",_result
);
10378 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10379 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10380 PyObject
* _resultobj
;
10384 PyObject
* _argo0
= 0;
10386 PyObject
* _obj1
= 0;
10387 char *_kwnames
[] = { "self","rect", NULL
};
10390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
10393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
10401 if (! wxRect_helper(_obj1
, &_arg1
))
10405 wxPy_BEGIN_ALLOW_THREADS
;
10406 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
10408 wxPy_END_ALLOW_THREADS
;
10409 if (PyErr_Occurred()) return NULL
;
10410 } _resultobj
= Py_BuildValue("i",_result
);
10414 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10415 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10416 PyObject
* _resultobj
;
10420 PyObject
* _argo0
= 0;
10421 PyObject
* _argo1
= 0;
10422 char *_kwnames
[] = { "self","region", NULL
};
10425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
10428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10435 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10436 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10437 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10442 wxPy_BEGIN_ALLOW_THREADS
;
10443 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
10445 wxPy_END_ALLOW_THREADS
;
10446 if (PyErr_Occurred()) return NULL
;
10447 } _resultobj
= Py_BuildValue("i",_result
);
10451 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10452 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10453 PyObject
* _resultobj
;
10460 PyObject
* _argo0
= 0;
10461 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
10474 wxPy_BEGIN_ALLOW_THREADS
;
10475 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10477 wxPy_END_ALLOW_THREADS
;
10478 if (PyErr_Occurred()) return NULL
;
10479 } _resultobj
= Py_BuildValue("i",_result
);
10483 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10484 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10485 PyObject
* _resultobj
;
10489 PyObject
* _argo0
= 0;
10491 PyObject
* _obj1
= 0;
10492 char *_kwnames
[] = { "self","rect", NULL
};
10495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
10498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
10506 if (! wxRect_helper(_obj1
, &_arg1
))
10510 wxPy_BEGIN_ALLOW_THREADS
;
10511 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
10513 wxPy_END_ALLOW_THREADS
;
10514 if (PyErr_Occurred()) return NULL
;
10515 } _resultobj
= Py_BuildValue("i",_result
);
10519 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10520 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10521 PyObject
* _resultobj
;
10525 PyObject
* _argo0
= 0;
10526 PyObject
* _argo1
= 0;
10527 char *_kwnames
[] = { "self","region", NULL
};
10530 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
10533 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10534 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10535 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10540 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10541 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10542 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10547 wxPy_BEGIN_ALLOW_THREADS
;
10548 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
10550 wxPy_END_ALLOW_THREADS
;
10551 if (PyErr_Occurred()) return NULL
;
10552 } _resultobj
= Py_BuildValue("i",_result
);
10556 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10557 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10558 PyObject
* _resultobj
;
10565 PyObject
* _argo0
= 0;
10566 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
10579 wxPy_BEGIN_ALLOW_THREADS
;
10580 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10582 wxPy_END_ALLOW_THREADS
;
10583 if (PyErr_Occurred()) return NULL
;
10584 } _resultobj
= Py_BuildValue("i",_result
);
10588 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10589 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10590 PyObject
* _resultobj
;
10594 PyObject
* _argo0
= 0;
10596 PyObject
* _obj1
= 0;
10597 char *_kwnames
[] = { "self","rect", NULL
};
10600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
10603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
10611 if (! wxRect_helper(_obj1
, &_arg1
))
10615 wxPy_BEGIN_ALLOW_THREADS
;
10616 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
10618 wxPy_END_ALLOW_THREADS
;
10619 if (PyErr_Occurred()) return NULL
;
10620 } _resultobj
= Py_BuildValue("i",_result
);
10624 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10625 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10626 PyObject
* _resultobj
;
10630 PyObject
* _argo0
= 0;
10631 PyObject
* _argo1
= 0;
10632 char *_kwnames
[] = { "self","region", NULL
};
10635 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
10638 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10639 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10640 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
10645 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10646 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
10652 wxPy_BEGIN_ALLOW_THREADS
;
10653 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
10655 wxPy_END_ALLOW_THREADS
;
10656 if (PyErr_Occurred()) return NULL
;
10657 } _resultobj
= Py_BuildValue("i",_result
);
10661 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
10662 wxRegionIterator
*src
;
10664 src
= (wxRegionIterator
*) ptr
;
10665 dest
= (wxObject
*) src
;
10666 return (void *) dest
;
10669 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
10670 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10671 PyObject
* _resultobj
;
10672 wxRegionIterator
* _result
;
10674 PyObject
* _argo0
= 0;
10675 char *_kwnames
[] = { "region", NULL
};
10679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
10682 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10683 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
10689 wxPy_BEGIN_ALLOW_THREADS
;
10690 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
10692 wxPy_END_ALLOW_THREADS
;
10693 if (PyErr_Occurred()) return NULL
;
10695 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
10696 _resultobj
= Py_BuildValue("s",_ptemp
);
10698 Py_INCREF(Py_None
);
10699 _resultobj
= Py_None
;
10704 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
10705 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10706 PyObject
* _resultobj
;
10707 wxRegionIterator
* _arg0
;
10708 PyObject
* _argo0
= 0;
10709 char *_kwnames
[] = { "self", NULL
};
10712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
10715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
10722 wxPy_BEGIN_ALLOW_THREADS
;
10723 delete_wxRegionIterator(_arg0
);
10725 wxPy_END_ALLOW_THREADS
;
10726 if (PyErr_Occurred()) return NULL
;
10727 } Py_INCREF(Py_None
);
10728 _resultobj
= Py_None
;
10732 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
10733 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10734 PyObject
* _resultobj
;
10736 wxRegionIterator
* _arg0
;
10737 PyObject
* _argo0
= 0;
10738 char *_kwnames
[] = { "self", NULL
};
10741 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
10744 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10745 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
10751 wxPy_BEGIN_ALLOW_THREADS
;
10752 _result
= (long )wxRegionIterator_GetX(_arg0
);
10754 wxPy_END_ALLOW_THREADS
;
10755 if (PyErr_Occurred()) return NULL
;
10756 } _resultobj
= Py_BuildValue("l",_result
);
10760 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
10761 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10762 PyObject
* _resultobj
;
10764 wxRegionIterator
* _arg0
;
10765 PyObject
* _argo0
= 0;
10766 char *_kwnames
[] = { "self", NULL
};
10769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
10772 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10773 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
10779 wxPy_BEGIN_ALLOW_THREADS
;
10780 _result
= (long )wxRegionIterator_GetY(_arg0
);
10782 wxPy_END_ALLOW_THREADS
;
10783 if (PyErr_Occurred()) return NULL
;
10784 } _resultobj
= Py_BuildValue("l",_result
);
10788 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
10789 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10790 PyObject
* _resultobj
;
10792 wxRegionIterator
* _arg0
;
10793 PyObject
* _argo0
= 0;
10794 char *_kwnames
[] = { "self", NULL
};
10797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
10800 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10801 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
10807 wxPy_BEGIN_ALLOW_THREADS
;
10808 _result
= (long )wxRegionIterator_GetW(_arg0
);
10810 wxPy_END_ALLOW_THREADS
;
10811 if (PyErr_Occurred()) return NULL
;
10812 } _resultobj
= Py_BuildValue("l",_result
);
10816 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
10817 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10818 PyObject
* _resultobj
;
10820 wxRegionIterator
* _arg0
;
10821 PyObject
* _argo0
= 0;
10822 char *_kwnames
[] = { "self", NULL
};
10825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
10828 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10829 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
10835 wxPy_BEGIN_ALLOW_THREADS
;
10836 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
10838 wxPy_END_ALLOW_THREADS
;
10839 if (PyErr_Occurred()) return NULL
;
10840 } _resultobj
= Py_BuildValue("l",_result
);
10844 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
10845 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10846 PyObject
* _resultobj
;
10848 wxRegionIterator
* _arg0
;
10849 PyObject
* _argo0
= 0;
10850 char *_kwnames
[] = { "self", NULL
};
10853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
10856 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10857 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
10863 wxPy_BEGIN_ALLOW_THREADS
;
10864 _result
= (long )wxRegionIterator_GetH(_arg0
);
10866 wxPy_END_ALLOW_THREADS
;
10867 if (PyErr_Occurred()) return NULL
;
10868 } _resultobj
= Py_BuildValue("l",_result
);
10872 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
10873 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10874 PyObject
* _resultobj
;
10876 wxRegionIterator
* _arg0
;
10877 PyObject
* _argo0
= 0;
10878 char *_kwnames
[] = { "self", NULL
};
10881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
10884 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10885 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
10891 wxPy_BEGIN_ALLOW_THREADS
;
10892 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
10894 wxPy_END_ALLOW_THREADS
;
10895 if (PyErr_Occurred()) return NULL
;
10896 } _resultobj
= Py_BuildValue("l",_result
);
10900 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
10901 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10902 PyObject
* _resultobj
;
10904 wxRegionIterator
* _arg0
;
10905 PyObject
* _argo0
= 0;
10906 char *_kwnames
[] = { "self", NULL
};
10910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
10913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
10920 wxPy_BEGIN_ALLOW_THREADS
;
10921 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
10923 wxPy_END_ALLOW_THREADS
;
10924 if (PyErr_Occurred()) return NULL
;
10925 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10926 _resultobj
= Py_BuildValue("s",_ptemp
);
10930 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
10931 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10932 PyObject
* _resultobj
;
10934 wxRegionIterator
* _arg0
;
10935 PyObject
* _argo0
= 0;
10936 char *_kwnames
[] = { "self", NULL
};
10939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
10942 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10943 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10944 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
10949 wxPy_BEGIN_ALLOW_THREADS
;
10950 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
10952 wxPy_END_ALLOW_THREADS
;
10953 if (PyErr_Occurred()) return NULL
;
10954 } _resultobj
= Py_BuildValue("i",_result
);
10958 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
10959 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10960 PyObject
* _resultobj
;
10961 wxRegionIterator
* _arg0
;
10962 PyObject
* _argo0
= 0;
10963 char *_kwnames
[] = { "self", NULL
};
10966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
10969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
10976 wxPy_BEGIN_ALLOW_THREADS
;
10977 wxRegionIterator_Reset(_arg0
);
10979 wxPy_END_ALLOW_THREADS
;
10980 if (PyErr_Occurred()) return NULL
;
10981 } Py_INCREF(Py_None
);
10982 _resultobj
= Py_None
;
10986 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
10989 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10990 PyObject
* _resultobj
;
10991 wxRegionIterator
* _arg0
;
10992 PyObject
* _argo0
= 0;
10993 char *_kwnames
[] = { "self", NULL
};
10996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
10999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11006 wxPy_BEGIN_ALLOW_THREADS
;
11007 wxRegionIterator_Next(_arg0
);
11009 wxPy_END_ALLOW_THREADS
;
11010 if (PyErr_Occurred()) return NULL
;
11011 } Py_INCREF(Py_None
);
11012 _resultobj
= Py_None
;
11016 static PyMethodDef gdicMethods
[] = {
11017 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
11018 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
11019 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
11020 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
11021 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11022 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
11023 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11024 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
11025 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
11026 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
11027 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11028 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11029 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
11030 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
11031 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
11032 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
11033 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
11034 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
11035 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
11036 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
11037 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
11038 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
11039 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
11040 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
11041 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
11042 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
11043 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
11044 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
11045 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
11046 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
11047 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11048 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11049 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11050 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11051 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
11052 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
11053 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
11054 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
11055 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
11056 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
11057 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
11058 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
11059 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11060 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11061 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11062 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
11063 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11064 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11065 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11066 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
11067 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
11068 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
11069 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11070 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11071 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
11072 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
11073 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
11074 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
11075 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
11076 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
11077 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11078 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11079 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11080 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
11081 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11082 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11083 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11084 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
11085 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11086 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11087 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11088 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11089 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
11090 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
11091 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11092 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11093 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11094 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
11095 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11096 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11097 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11098 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11099 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
11100 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11101 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11102 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
11103 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11104 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
11105 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11106 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11107 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11108 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
11109 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
11110 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
11111 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
11112 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
11113 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
11114 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
11115 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
11116 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11117 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11118 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11119 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11120 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11121 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
11122 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11123 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
11124 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11125 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
11126 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11127 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11128 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11129 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11130 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
11131 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
11132 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
11133 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
11134 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11135 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11136 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
11137 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
11138 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11139 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
11140 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
11141 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
11142 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11143 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
11144 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11145 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
11146 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
11147 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
11148 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
11149 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
11150 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
11151 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
11152 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
11153 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
11154 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
11155 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
11156 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
11157 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
11158 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11159 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
11160 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11161 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
11162 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11163 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
11164 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
11165 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
11166 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
11167 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11168 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11169 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11170 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11171 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11172 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11173 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11174 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11175 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11176 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
11177 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
11178 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
11179 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11180 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11181 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11182 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11183 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11184 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11185 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11186 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11187 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
11188 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11189 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11190 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11191 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11192 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11193 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
11194 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11195 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11196 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
11197 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
11198 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
11199 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
11200 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
11201 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11202 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
11203 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
11204 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
11205 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11206 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11207 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
11208 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
11209 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
11210 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11211 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11212 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
11213 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
11214 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
11215 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11216 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11217 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11218 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11219 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11220 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11221 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11222 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11223 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11224 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11225 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11226 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11227 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11228 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11229 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11230 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11231 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11232 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11233 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
11234 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11235 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11236 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11237 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
11238 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
11239 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
11240 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
11241 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
11242 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11243 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
11244 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11245 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11246 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11247 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
11248 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
11249 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
11250 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11251 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
11252 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11253 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11254 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11255 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11256 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11257 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11258 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11259 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11260 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11261 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11262 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11263 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
11264 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
11265 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11266 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11267 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11268 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11269 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11270 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11271 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11272 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11273 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11274 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
11275 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
11276 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11277 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
11278 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11279 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11280 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11281 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
11282 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11283 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11284 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11285 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11286 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
11287 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
11288 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
11289 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11290 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
11291 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
11292 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
11293 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11294 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11295 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11302 * This table is used by the pointer type-checker
11304 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
11305 { "_signed_long","_long",0},
11306 { "_wxPrintQuality","_wxCoord",0},
11307 { "_wxPrintQuality","_int",0},
11308 { "_wxPrintQuality","_signed_int",0},
11309 { "_wxPrintQuality","_unsigned_int",0},
11310 { "_wxPrintQuality","_wxWindowID",0},
11311 { "_wxPrintQuality","_uint",0},
11312 { "_wxPrintQuality","_EBool",0},
11313 { "_wxPrintQuality","_size_t",0},
11314 { "_wxPrintQuality","_time_t",0},
11315 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
11316 { "_byte","_unsigned_char",0},
11317 { "_long","_unsigned_long",0},
11318 { "_long","_signed_long",0},
11319 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
11320 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
11321 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
11322 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
11323 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
11324 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
11325 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
11326 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
11327 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
11328 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
11329 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
11330 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
11331 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
11332 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11333 { "_size_t","_wxCoord",0},
11334 { "_size_t","_wxPrintQuality",0},
11335 { "_size_t","_time_t",0},
11336 { "_size_t","_unsigned_int",0},
11337 { "_size_t","_int",0},
11338 { "_size_t","_wxWindowID",0},
11339 { "_size_t","_uint",0},
11340 { "_uint","_wxCoord",0},
11341 { "_uint","_wxPrintQuality",0},
11342 { "_uint","_time_t",0},
11343 { "_uint","_size_t",0},
11344 { "_uint","_unsigned_int",0},
11345 { "_uint","_int",0},
11346 { "_uint","_wxWindowID",0},
11347 { "_wxChar","_char",0},
11348 { "_char","_wxChar",0},
11349 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
11350 { "_EBool","_wxCoord",0},
11351 { "_EBool","_wxPrintQuality",0},
11352 { "_EBool","_signed_int",0},
11353 { "_EBool","_int",0},
11354 { "_EBool","_wxWindowID",0},
11355 { "_unsigned_long","_long",0},
11356 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
11357 { "_signed_int","_wxCoord",0},
11358 { "_signed_int","_wxPrintQuality",0},
11359 { "_signed_int","_EBool",0},
11360 { "_signed_int","_wxWindowID",0},
11361 { "_signed_int","_int",0},
11362 { "_WXTYPE","_short",0},
11363 { "_WXTYPE","_signed_short",0},
11364 { "_WXTYPE","_unsigned_short",0},
11365 { "_unsigned_short","_WXTYPE",0},
11366 { "_unsigned_short","_short",0},
11367 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11368 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
11369 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
11370 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
11371 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
11372 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
11373 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
11374 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
11375 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11376 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
11377 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
11378 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
11379 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
11380 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
11381 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
11382 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11383 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
11384 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
11385 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
11386 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
11387 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
11388 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
11389 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
11390 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
11391 { "_signed_short","_WXTYPE",0},
11392 { "_signed_short","_short",0},
11393 { "_unsigned_char","_byte",0},
11394 { "_unsigned_int","_wxCoord",0},
11395 { "_unsigned_int","_wxPrintQuality",0},
11396 { "_unsigned_int","_time_t",0},
11397 { "_unsigned_int","_size_t",0},
11398 { "_unsigned_int","_uint",0},
11399 { "_unsigned_int","_wxWindowID",0},
11400 { "_unsigned_int","_int",0},
11401 { "_short","_WXTYPE",0},
11402 { "_short","_unsigned_short",0},
11403 { "_short","_signed_short",0},
11404 { "_wxWindowID","_wxCoord",0},
11405 { "_wxWindowID","_wxPrintQuality",0},
11406 { "_wxWindowID","_time_t",0},
11407 { "_wxWindowID","_size_t",0},
11408 { "_wxWindowID","_EBool",0},
11409 { "_wxWindowID","_uint",0},
11410 { "_wxWindowID","_int",0},
11411 { "_wxWindowID","_signed_int",0},
11412 { "_wxWindowID","_unsigned_int",0},
11413 { "_int","_wxCoord",0},
11414 { "_int","_wxPrintQuality",0},
11415 { "_int","_time_t",0},
11416 { "_int","_size_t",0},
11417 { "_int","_EBool",0},
11418 { "_int","_uint",0},
11419 { "_int","_wxWindowID",0},
11420 { "_int","_unsigned_int",0},
11421 { "_int","_signed_int",0},
11422 { "_time_t","_wxCoord",0},
11423 { "_time_t","_wxPrintQuality",0},
11424 { "_time_t","_unsigned_int",0},
11425 { "_time_t","_int",0},
11426 { "_time_t","_wxWindowID",0},
11427 { "_time_t","_uint",0},
11428 { "_time_t","_size_t",0},
11429 { "_wxCoord","_int",0},
11430 { "_wxCoord","_signed_int",0},
11431 { "_wxCoord","_unsigned_int",0},
11432 { "_wxCoord","_wxWindowID",0},
11433 { "_wxCoord","_uint",0},
11434 { "_wxCoord","_EBool",0},
11435 { "_wxCoord","_size_t",0},
11436 { "_wxCoord","_time_t",0},
11437 { "_wxCoord","_wxPrintQuality",0},
11440 static PyObject
*SWIG_globals
;
11444 SWIGEXPORT(void) initgdic() {
11446 SWIG_globals
= SWIG_newvarlink();
11447 m
= Py_InitModule("gdic", gdicMethods
);
11448 d
= PyModule_GetDict(m
);
11449 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
11450 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
11451 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
11452 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
11453 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
11454 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
11455 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
11456 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
11457 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
11458 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
11459 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
11460 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
11461 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
11462 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
11463 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
11464 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
11465 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
11466 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
11467 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
11468 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
11469 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
11470 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
11471 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
11472 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
11473 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
11474 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
11475 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
11476 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
11477 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
11478 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
11479 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
11480 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
11481 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
11482 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
11483 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
11484 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
11485 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
11486 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
11487 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
11488 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
11489 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
11490 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
11491 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
11492 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
11493 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
11494 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
11495 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
11496 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
11497 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
11498 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
11499 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
11500 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
11501 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
11502 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
11503 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
11504 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
11505 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
11506 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
11507 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
11508 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
11509 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
11510 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
11511 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
11512 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
11513 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
11514 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
11515 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
11516 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
11517 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
11518 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
11519 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
11520 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
11521 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
11522 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
11523 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
11524 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
11525 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
11526 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
11527 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
11528 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
11529 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
11530 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
11531 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
11532 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
11533 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
11534 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
11535 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
11536 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
11537 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
11538 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
11539 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
11540 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
11541 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
11542 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
11543 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
11544 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
11545 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
11546 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
11547 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
11548 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
11549 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
11550 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
11551 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
11552 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
11553 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
11554 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
11555 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
11556 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
11557 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
11558 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
11559 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
11560 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
11561 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
11564 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
11565 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);