2 * FILE : src/msw/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/metafile.h>
60 #include <wx/imaglist.h>
64 #include <wx/fontmap.h>
65 #include <wx/fontenc.h>
66 #include <wx/fontmap.h>
67 #include <wx/fontutil.h>
70 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
76 } else if (target
== Py_None
) {
80 if (!PyTuple_Check(target
)) {
82 target
= PyTuple_New(1);
83 PyTuple_SetItem(target
, 0, o2
);
86 PyTuple_SetItem(o3
, 0, o
);
89 target
= PySequence_Concat(o2
, o3
);
96 #if PYTHON_API_VERSION >= 1009
97 static char* wxStringErrorMsg
= "String or Unicode type required";
99 static char* wxStringErrorMsg
= "String type required";
102 static wxString
wxPyEmptyStr("");
103 // Implementations of some alternate "constructors"
105 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
106 return new wxBitmap(width
, height
, depth
);
109 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
110 char** cArray
= NULL
;
113 if (!PyList_Check(listOfStrings
)) {
114 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
117 count
= PyList_Size(listOfStrings
);
118 cArray
= new char*[count
];
120 for(int x
=0; x
<count
; x
++) {
121 // TODO: Need some validation and error checking here
122 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
128 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
129 char** cArray
= NULL
;
132 cArray
= ConvertListOfStrings(listOfStrings
);
135 bmp
= new wxBitmap(cArray
);
141 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
142 return new wxBitmap(icon
);
146 wxBitmap
* wxBitmapFromBits(char* bits
, int width
, int height
, int depth
= 1 ) {
147 return new wxBitmap(bits
, width
, height
, depth
);
152 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
153 // int width, int height, int depth = 1) {
154 // if (! PyString_Check(data)) {
155 // PyErr_SetString(PyExc_TypeError, "Expected string object");
158 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
162 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
163 return new wxMask(bitmap
, colour
);
165 // Implementations of some alternate "constructors"
166 wxIcon
* wxEmptyIcon() {
170 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
171 char** cArray
= NULL
;
174 cArray
= ConvertListOfStrings(listOfStrings
);
177 icon
= new wxIcon(cArray
);
181 // Alternate 'constructor'
182 wxCursor
* wxPyStockCursor(int id
) {
183 return new wxCursor(id
);
185 // Alternate 'constructor'
186 wxColour
* wxNamedColour(const wxString
& colorName
) {
187 return new wxColour(colorName
);
190 class wxPyPen
: public wxPen
{
192 wxPyPen(wxColour
& colour
, int width
=1, int style
=wxSOLID
)
193 : wxPen(colour
, width
, style
)
200 void SetDashes(int nb_dashes
, const wxDash
*dash
) {
201 m_dash
= new wxDash
[nb_dashes
];
202 for (int i
=0; i
<nb_dashes
; i
++)
204 wxPen::SetDashes(nb_dashes
, m_dash
);
211 static void wxDC_GetBoundingBox(wxDC
* dc
, int* x1
, int* y1
, int* x2
, int* y2
) {
217 // Alternate 'constructor'
218 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
219 return new wxMemoryDC(oldDC
);
223 extern wxFont
* wxNORMAL_FONT
;
224 extern wxFont
* wxSMALL_FONT
;
225 extern wxFont
* wxITALIC_FONT
;
226 extern wxFont
* wxSWISS_FONT
;
227 extern wxPen
* wxRED_PEN
;
228 extern wxPen
* wxCYAN_PEN
;
229 extern wxPen
* wxGREEN_PEN
;
230 extern wxPen
* wxBLACK_PEN
;
231 extern wxPen
* wxWHITE_PEN
;
232 extern wxPen
* wxTRANSPARENT_PEN
;
233 extern wxPen
* wxBLACK_DASHED_PEN
;
234 extern wxPen
* wxGREY_PEN
;
235 extern wxPen
* wxMEDIUM_GREY_PEN
;
236 extern wxPen
* wxLIGHT_GREY_PEN
;
237 extern wxBrush
* wxBLUE_BRUSH
;
238 extern wxBrush
* wxGREEN_BRUSH
;
239 extern wxBrush
* wxWHITE_BRUSH
;
240 extern wxBrush
* wxBLACK_BRUSH
;
241 extern wxBrush
* wxTRANSPARENT_BRUSH
;
242 extern wxBrush
* wxCYAN_BRUSH
;
243 extern wxBrush
* wxRED_BRUSH
;
244 extern wxBrush
* wxGREY_BRUSH
;
245 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
246 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
247 extern wxColour
* wxBLACK
;
248 extern wxColour
* wxWHITE
;
249 extern wxColour
* wxRED
;
250 extern wxColour
* wxBLUE
;
251 extern wxColour
* wxGREEN
;
252 extern wxColour
* wxCYAN
;
253 extern wxColour
* wxLIGHT_GREY
;
254 extern wxCursor
* wxSTANDARD_CURSOR
;
255 extern wxCursor
* wxHOURGLASS_CURSOR
;
256 extern wxCursor
* wxCROSS_CURSOR
;
257 extern wxBitmap wxNullBitmap
;
258 extern wxIcon wxNullIcon
;
259 extern wxCursor wxNullCursor
;
260 extern wxPen wxNullPen
;
261 extern wxBrush wxNullBrush
;
262 extern wxPalette wxNullPalette
;
263 extern wxFont wxNullFont
;
264 extern wxColour wxNullColour
;
265 extern wxFontList
* wxTheFontList
;
266 extern wxPenList
* wxThePenList
;
267 extern wxBrushList
* wxTheBrushList
;
268 extern wxColourDatabase
* wxTheColourDatabase
;
274 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
275 PyObject
* _resultobj
;
279 int _arg2
= (int ) -1;
280 char *_kwnames
[] = { "width","height","depth", NULL
};
284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
287 wxPy_BEGIN_ALLOW_THREADS
;
288 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
290 wxPy_END_ALLOW_THREADS
;
291 if (PyErr_Occurred()) return NULL
;
293 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
294 _resultobj
= Py_BuildValue("s",_ptemp
);
297 _resultobj
= Py_None
;
302 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
303 PyObject
* _resultobj
;
306 PyObject
* _obj0
= 0;
307 char *_kwnames
[] = { "listOfStrings", NULL
};
311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
317 wxPy_BEGIN_ALLOW_THREADS
;
318 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
320 wxPy_END_ALLOW_THREADS
;
321 if (PyErr_Occurred()) return NULL
;
323 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
324 _resultobj
= Py_BuildValue("s",_ptemp
);
327 _resultobj
= Py_None
;
332 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
333 PyObject
* _resultobj
;
336 PyObject
* _argo0
= 0;
337 char *_kwnames
[] = { "icon", NULL
};
341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
351 wxPy_BEGIN_ALLOW_THREADS
;
352 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
354 wxPy_END_ALLOW_THREADS
;
355 if (PyErr_Occurred()) return NULL
;
357 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
358 _resultobj
= Py_BuildValue("s",_ptemp
);
361 _resultobj
= Py_None
;
366 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
367 PyObject
* _resultobj
;
372 int _arg3
= (int ) 1;
373 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"sii|i:wxBitmapFromBits",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
380 wxPy_BEGIN_ALLOW_THREADS
;
381 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
383 wxPy_END_ALLOW_THREADS
;
384 if (PyErr_Occurred()) return NULL
;
386 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
387 _resultobj
= Py_BuildValue("s",_ptemp
);
390 _resultobj
= Py_None
;
395 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
396 PyObject
* _resultobj
;
400 PyObject
* _argo0
= 0;
402 PyObject
* _obj1
= 0;
403 char *_kwnames
[] = { "bitmap","colour", NULL
};
407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
418 if (! wxColour_helper(_obj1
, &_arg1
))
422 wxPy_BEGIN_ALLOW_THREADS
;
423 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
425 wxPy_END_ALLOW_THREADS
;
426 if (PyErr_Occurred()) return NULL
;
428 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
429 _resultobj
= Py_BuildValue("s",_ptemp
);
432 _resultobj
= Py_None
;
437 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
438 PyObject
* _resultobj
;
440 char *_kwnames
[] = { NULL
};
444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
447 wxPy_BEGIN_ALLOW_THREADS
;
448 _result
= (wxIcon
*)wxEmptyIcon();
450 wxPy_END_ALLOW_THREADS
;
451 if (PyErr_Occurred()) return NULL
;
453 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
454 _resultobj
= Py_BuildValue("s",_ptemp
);
457 _resultobj
= Py_None
;
462 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
463 PyObject
* _resultobj
;
466 PyObject
* _obj0
= 0;
467 char *_kwnames
[] = { "listOfStrings", NULL
};
471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
477 wxPy_BEGIN_ALLOW_THREADS
;
478 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
480 wxPy_END_ALLOW_THREADS
;
481 if (PyErr_Occurred()) return NULL
;
483 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
484 _resultobj
= Py_BuildValue("s",_ptemp
);
487 _resultobj
= Py_None
;
492 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
493 PyObject
* _resultobj
;
496 char *_kwnames
[] = { "id", NULL
};
500 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
503 wxPy_BEGIN_ALLOW_THREADS
;
504 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
506 wxPy_END_ALLOW_THREADS
;
507 if (PyErr_Occurred()) return NULL
;
509 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
510 _resultobj
= Py_BuildValue("s",_ptemp
);
513 _resultobj
= Py_None
;
518 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
519 PyObject
* _resultobj
;
522 PyObject
* _obj0
= 0;
523 char *_kwnames
[] = { "colorName", NULL
};
527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
530 #if PYTHON_API_VERSION >= 1009
531 char* tmpPtr
; int tmpSize
;
532 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
533 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
536 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
538 _arg0
= new wxString(tmpPtr
, tmpSize
);
540 if (!PyString_Check(_obj0
)) {
541 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
544 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
548 wxPy_BEGIN_ALLOW_THREADS
;
549 _result
= (wxColour
*)wxNamedColour(*_arg0
);
551 wxPy_END_ALLOW_THREADS
;
552 if (PyErr_Occurred()) return NULL
;
554 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
555 _resultobj
= Py_BuildValue("s",_ptemp
);
558 _resultobj
= Py_None
;
567 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
568 PyObject
* _resultobj
;
569 wxMemoryDC
* _result
;
571 PyObject
* _argo0
= 0;
572 char *_kwnames
[] = { "oldDC", NULL
};
576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
586 wxPy_BEGIN_ALLOW_THREADS
;
587 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
589 wxPy_END_ALLOW_THREADS
;
590 if (PyErr_Occurred()) return NULL
;
592 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
593 _resultobj
= Py_BuildValue("s",_ptemp
);
596 _resultobj
= Py_None
;
601 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
603 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
607 static PyObject
*_wrap_wxNORMAL_FONT_get() {
611 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
612 pyobj
= PyString_FromString(ptemp
);
616 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
618 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
622 static PyObject
*_wrap_wxSMALL_FONT_get() {
626 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
627 pyobj
= PyString_FromString(ptemp
);
631 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
633 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
637 static PyObject
*_wrap_wxITALIC_FONT_get() {
641 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
642 pyobj
= PyString_FromString(ptemp
);
646 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
648 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
652 static PyObject
*_wrap_wxSWISS_FONT_get() {
656 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
657 pyobj
= PyString_FromString(ptemp
);
661 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
663 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
667 static PyObject
*_wrap_wxRED_PEN_get() {
671 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
672 pyobj
= PyString_FromString(ptemp
);
676 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
678 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
682 static PyObject
*_wrap_wxCYAN_PEN_get() {
686 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
687 pyobj
= PyString_FromString(ptemp
);
691 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
693 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
697 static PyObject
*_wrap_wxGREEN_PEN_get() {
701 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
702 pyobj
= PyString_FromString(ptemp
);
706 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
708 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
712 static PyObject
*_wrap_wxBLACK_PEN_get() {
716 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
717 pyobj
= PyString_FromString(ptemp
);
721 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
723 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
727 static PyObject
*_wrap_wxWHITE_PEN_get() {
731 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
732 pyobj
= PyString_FromString(ptemp
);
736 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
738 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
742 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
746 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
747 pyobj
= PyString_FromString(ptemp
);
751 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
753 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
757 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
761 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
762 pyobj
= PyString_FromString(ptemp
);
766 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
768 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
772 static PyObject
*_wrap_wxGREY_PEN_get() {
776 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
777 pyobj
= PyString_FromString(ptemp
);
781 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
783 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
787 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
791 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
792 pyobj
= PyString_FromString(ptemp
);
796 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
798 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
802 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
806 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
807 pyobj
= PyString_FromString(ptemp
);
811 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
813 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
817 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
821 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
822 pyobj
= PyString_FromString(ptemp
);
826 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
828 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
832 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
836 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
837 pyobj
= PyString_FromString(ptemp
);
841 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
843 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
847 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
851 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
852 pyobj
= PyString_FromString(ptemp
);
856 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
858 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
862 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
866 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
867 pyobj
= PyString_FromString(ptemp
);
871 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
873 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
877 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
881 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
882 pyobj
= PyString_FromString(ptemp
);
886 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
888 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
892 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
896 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
897 pyobj
= PyString_FromString(ptemp
);
901 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
903 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
907 static PyObject
*_wrap_wxRED_BRUSH_get() {
911 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
912 pyobj
= PyString_FromString(ptemp
);
916 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
918 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
922 static PyObject
*_wrap_wxGREY_BRUSH_get() {
926 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
927 pyobj
= PyString_FromString(ptemp
);
931 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
933 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
937 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
941 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
942 pyobj
= PyString_FromString(ptemp
);
946 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
948 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
952 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
956 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
957 pyobj
= PyString_FromString(ptemp
);
961 static int _wrap_wxBLACK_set(PyObject
*val
) {
963 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
967 static PyObject
*_wrap_wxBLACK_get() {
971 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
972 pyobj
= PyString_FromString(ptemp
);
976 static int _wrap_wxWHITE_set(PyObject
*val
) {
978 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
982 static PyObject
*_wrap_wxWHITE_get() {
986 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
987 pyobj
= PyString_FromString(ptemp
);
991 static int _wrap_wxRED_set(PyObject
*val
) {
993 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
997 static PyObject
*_wrap_wxRED_get() {
1001 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1002 pyobj
= PyString_FromString(ptemp
);
1006 static int _wrap_wxBLUE_set(PyObject
*val
) {
1008 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1012 static PyObject
*_wrap_wxBLUE_get() {
1016 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1017 pyobj
= PyString_FromString(ptemp
);
1021 static int _wrap_wxGREEN_set(PyObject
*val
) {
1023 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1027 static PyObject
*_wrap_wxGREEN_get() {
1031 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1032 pyobj
= PyString_FromString(ptemp
);
1036 static int _wrap_wxCYAN_set(PyObject
*val
) {
1038 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1042 static PyObject
*_wrap_wxCYAN_get() {
1046 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1047 pyobj
= PyString_FromString(ptemp
);
1051 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1053 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1057 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1061 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1062 pyobj
= PyString_FromString(ptemp
);
1066 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1068 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1072 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1076 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1077 pyobj
= PyString_FromString(ptemp
);
1081 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1083 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1087 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1091 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1092 pyobj
= PyString_FromString(ptemp
);
1096 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1098 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1102 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1106 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1107 pyobj
= PyString_FromString(ptemp
);
1111 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1113 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1117 static PyObject
*_wrap_wxNullBitmap_get() {
1121 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1122 pyobj
= PyString_FromString(ptemp
);
1126 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1128 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1132 static PyObject
*_wrap_wxNullIcon_get() {
1136 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1137 pyobj
= PyString_FromString(ptemp
);
1141 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1143 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1147 static PyObject
*_wrap_wxNullCursor_get() {
1151 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1152 pyobj
= PyString_FromString(ptemp
);
1156 static int _wrap_wxNullPen_set(PyObject
*val
) {
1158 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1162 static PyObject
*_wrap_wxNullPen_get() {
1166 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1167 pyobj
= PyString_FromString(ptemp
);
1171 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1173 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1177 static PyObject
*_wrap_wxNullBrush_get() {
1181 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1182 pyobj
= PyString_FromString(ptemp
);
1186 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1188 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1192 static PyObject
*_wrap_wxNullPalette_get() {
1196 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1197 pyobj
= PyString_FromString(ptemp
);
1201 static int _wrap_wxNullFont_set(PyObject
*val
) {
1203 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1207 static PyObject
*_wrap_wxNullFont_get() {
1211 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1212 pyobj
= PyString_FromString(ptemp
);
1216 static int _wrap_wxNullColour_set(PyObject
*val
) {
1218 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1222 static PyObject
*_wrap_wxNullColour_get() {
1226 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1227 pyobj
= PyString_FromString(ptemp
);
1231 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1233 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1237 static PyObject
*_wrap_wxTheFontList_get() {
1241 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1242 pyobj
= PyString_FromString(ptemp
);
1246 static int _wrap_wxThePenList_set(PyObject
*val
) {
1248 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1252 static PyObject
*_wrap_wxThePenList_get() {
1256 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1257 pyobj
= PyString_FromString(ptemp
);
1261 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1263 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1267 static PyObject
*_wrap_wxTheBrushList_get() {
1271 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1272 pyobj
= PyString_FromString(ptemp
);
1276 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1278 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1282 static PyObject
*_wrap_wxTheColourDatabase_get() {
1286 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1287 pyobj
= PyString_FromString(ptemp
);
1291 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1294 src
= (wxGDIObject
*) ptr
;
1295 dest
= (wxObject
*) src
;
1296 return (void *) dest
;
1299 #define new_wxGDIObject() (new wxGDIObject())
1300 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1301 PyObject
* _resultobj
;
1302 wxGDIObject
* _result
;
1303 char *_kwnames
[] = { NULL
};
1307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1310 wxPy_BEGIN_ALLOW_THREADS
;
1311 _result
= (wxGDIObject
*)new_wxGDIObject();
1313 wxPy_END_ALLOW_THREADS
;
1314 if (PyErr_Occurred()) return NULL
;
1316 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1317 _resultobj
= Py_BuildValue("s",_ptemp
);
1320 _resultobj
= Py_None
;
1325 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1326 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1327 PyObject
* _resultobj
;
1328 wxGDIObject
* _arg0
;
1329 PyObject
* _argo0
= 0;
1330 char *_kwnames
[] = { "self", NULL
};
1333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1336 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1337 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1343 wxPy_BEGIN_ALLOW_THREADS
;
1344 delete_wxGDIObject(_arg0
);
1346 wxPy_END_ALLOW_THREADS
;
1347 if (PyErr_Occurred()) return NULL
;
1348 } Py_INCREF(Py_None
);
1349 _resultobj
= Py_None
;
1353 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1354 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1355 PyObject
* _resultobj
;
1357 wxGDIObject
* _arg0
;
1358 PyObject
* _argo0
= 0;
1359 char *_kwnames
[] = { "self", NULL
};
1362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1372 wxPy_BEGIN_ALLOW_THREADS
;
1373 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1375 wxPy_END_ALLOW_THREADS
;
1376 if (PyErr_Occurred()) return NULL
;
1377 } _resultobj
= Py_BuildValue("i",_result
);
1381 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1382 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1383 PyObject
* _resultobj
;
1384 wxGDIObject
* _arg0
;
1386 PyObject
* _argo0
= 0;
1388 char *_kwnames
[] = { "self","visible", NULL
};
1391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1400 _arg1
= (bool ) tempbool1
;
1402 wxPy_BEGIN_ALLOW_THREADS
;
1403 wxGDIObject_SetVisible(_arg0
,_arg1
);
1405 wxPy_END_ALLOW_THREADS
;
1406 if (PyErr_Occurred()) return NULL
;
1407 } Py_INCREF(Py_None
);
1408 _resultobj
= Py_None
;
1412 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1413 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1414 PyObject
* _resultobj
;
1416 wxGDIObject
* _arg0
;
1417 PyObject
* _argo0
= 0;
1418 char *_kwnames
[] = { "self", NULL
};
1421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1431 wxPy_BEGIN_ALLOW_THREADS
;
1432 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1434 wxPy_END_ALLOW_THREADS
;
1435 if (PyErr_Occurred()) return NULL
;
1436 } _resultobj
= Py_BuildValue("i",_result
);
1440 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1443 src
= (wxBitmap
*) ptr
;
1444 dest
= (wxGDIObject
*) src
;
1445 return (void *) dest
;
1448 static void *SwigwxBitmapTowxObject(void *ptr
) {
1451 src
= (wxBitmap
*) ptr
;
1452 dest
= (wxObject
*) src
;
1453 return (void *) dest
;
1456 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1457 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1458 PyObject
* _resultobj
;
1462 PyObject
* _obj0
= 0;
1463 char *_kwnames
[] = { "name","type", NULL
};
1467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1470 #if PYTHON_API_VERSION >= 1009
1471 char* tmpPtr
; int tmpSize
;
1472 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1473 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1476 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1478 _arg0
= new wxString(tmpPtr
, tmpSize
);
1480 if (!PyString_Check(_obj0
)) {
1481 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1484 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1488 wxPy_BEGIN_ALLOW_THREADS
;
1489 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1491 wxPy_END_ALLOW_THREADS
;
1492 if (PyErr_Occurred()) return NULL
;
1494 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1495 _resultobj
= Py_BuildValue("s",_ptemp
);
1498 _resultobj
= Py_None
;
1507 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1508 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1509 PyObject
* _resultobj
;
1511 PyObject
* _argo0
= 0;
1512 char *_kwnames
[] = { "self", NULL
};
1515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1525 wxPy_BEGIN_ALLOW_THREADS
;
1526 delete_wxBitmap(_arg0
);
1528 wxPy_END_ALLOW_THREADS
;
1529 if (PyErr_Occurred()) return NULL
;
1530 } Py_INCREF(Py_None
);
1531 _resultobj
= Py_None
;
1535 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1536 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1537 PyObject
* _resultobj
;
1538 wxPalette
* _result
;
1540 PyObject
* _argo0
= 0;
1541 char *_kwnames
[] = { "self", NULL
};
1545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1555 wxPy_BEGIN_ALLOW_THREADS
;
1556 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1558 wxPy_END_ALLOW_THREADS
;
1559 if (PyErr_Occurred()) return NULL
;
1561 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1562 _resultobj
= Py_BuildValue("s",_ptemp
);
1565 _resultobj
= Py_None
;
1570 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1571 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1572 PyObject
* _resultobj
;
1575 PyObject
* _argo0
= 0;
1576 char *_kwnames
[] = { "self", NULL
};
1580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1583 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1584 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1585 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1590 wxPy_BEGIN_ALLOW_THREADS
;
1591 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1593 wxPy_END_ALLOW_THREADS
;
1594 if (PyErr_Occurred()) return NULL
;
1596 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1597 _resultobj
= Py_BuildValue("s",_ptemp
);
1600 _resultobj
= Py_None
;
1605 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1606 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1607 PyObject
* _resultobj
;
1612 PyObject
* _argo0
= 0;
1613 PyObject
* _obj1
= 0;
1614 char *_kwnames
[] = { "self","name","flags", NULL
};
1617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1627 #if PYTHON_API_VERSION >= 1009
1628 char* tmpPtr
; int tmpSize
;
1629 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1630 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1633 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1635 _arg1
= new wxString(tmpPtr
, tmpSize
);
1637 if (!PyString_Check(_obj1
)) {
1638 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1641 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1645 wxPy_BEGIN_ALLOW_THREADS
;
1646 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1648 wxPy_END_ALLOW_THREADS
;
1649 if (PyErr_Occurred()) return NULL
;
1650 } _resultobj
= Py_BuildValue("i",_result
);
1658 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1659 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1660 PyObject
* _resultobj
;
1665 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1666 PyObject
* _argo0
= 0;
1667 PyObject
* _obj1
= 0;
1668 PyObject
* _argo3
= 0;
1669 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1682 #if PYTHON_API_VERSION >= 1009
1683 char* tmpPtr
; int tmpSize
;
1684 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1685 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1688 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1690 _arg1
= new wxString(tmpPtr
, tmpSize
);
1692 if (!PyString_Check(_obj1
)) {
1693 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1696 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1700 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1701 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1702 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1707 wxPy_BEGIN_ALLOW_THREADS
;
1708 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1710 wxPy_END_ALLOW_THREADS
;
1711 if (PyErr_Occurred()) return NULL
;
1712 } _resultobj
= Py_BuildValue("i",_result
);
1720 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1721 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1722 PyObject
* _resultobj
;
1725 PyObject
* _argo0
= 0;
1726 PyObject
* _argo1
= 0;
1727 char *_kwnames
[] = { "self","mask", NULL
};
1730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1740 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1741 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1747 wxPy_BEGIN_ALLOW_THREADS
;
1748 wxBitmap_SetMask(_arg0
,_arg1
);
1750 wxPy_END_ALLOW_THREADS
;
1751 if (PyErr_Occurred()) return NULL
;
1752 } Py_INCREF(Py_None
);
1753 _resultobj
= Py_None
;
1757 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1758 static PyObject
*_wrap_wxBitmap_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1759 PyObject
* _resultobj
;
1762 PyObject
* _argo0
= 0;
1763 PyObject
* _argo1
= 0;
1764 char *_kwnames
[] = { "self","palette", NULL
};
1767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetPalette",_kwnames
,&_argo0
,&_argo1
))
1770 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1771 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1777 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1778 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
1779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1784 wxPy_BEGIN_ALLOW_THREADS
;
1785 wxBitmap_SetPalette(_arg0
,*_arg1
);
1787 wxPy_END_ALLOW_THREADS
;
1788 if (PyErr_Occurred()) return NULL
;
1789 } Py_INCREF(Py_None
);
1790 _resultobj
= Py_None
;
1794 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1795 static PyObject
*_wrap_wxBitmap_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1796 PyObject
* _resultobj
;
1799 PyObject
* _argo0
= 0;
1800 char *_kwnames
[] = { "self", NULL
};
1803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHandle",_kwnames
,&_argo0
))
1806 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1807 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1813 wxPy_BEGIN_ALLOW_THREADS
;
1814 _result
= (long )wxBitmap_GetHandle(_arg0
);
1816 wxPy_END_ALLOW_THREADS
;
1817 if (PyErr_Occurred()) return NULL
;
1818 } _resultobj
= Py_BuildValue("l",_result
);
1822 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1823 static PyObject
*_wrap_wxBitmap_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1824 PyObject
* _resultobj
;
1827 PyObject
* _argo0
= 0;
1828 char *_kwnames
[] = { "self","handle", NULL
};
1831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxBitmap_SetHandle",_kwnames
,&_argo0
,&_arg1
))
1834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1841 wxPy_BEGIN_ALLOW_THREADS
;
1842 wxBitmap_SetHandle(_arg0
,_arg1
);
1844 wxPy_END_ALLOW_THREADS
;
1845 if (PyErr_Occurred()) return NULL
;
1846 } Py_INCREF(Py_None
);
1847 _resultobj
= Py_None
;
1851 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1852 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1853 PyObject
* _resultobj
;
1856 PyObject
* _argo0
= 0;
1857 char *_kwnames
[] = { "self", NULL
};
1860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1870 wxPy_BEGIN_ALLOW_THREADS
;
1871 _result
= (bool )wxBitmap_Ok(_arg0
);
1873 wxPy_END_ALLOW_THREADS
;
1874 if (PyErr_Occurred()) return NULL
;
1875 } _resultobj
= Py_BuildValue("i",_result
);
1879 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1880 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1881 PyObject
* _resultobj
;
1884 PyObject
* _argo0
= 0;
1885 char *_kwnames
[] = { "self", NULL
};
1888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1898 wxPy_BEGIN_ALLOW_THREADS
;
1899 _result
= (int )wxBitmap_GetWidth(_arg0
);
1901 wxPy_END_ALLOW_THREADS
;
1902 if (PyErr_Occurred()) return NULL
;
1903 } _resultobj
= Py_BuildValue("i",_result
);
1907 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1908 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1909 PyObject
* _resultobj
;
1912 PyObject
* _argo0
= 0;
1913 char *_kwnames
[] = { "self", NULL
};
1916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1926 wxPy_BEGIN_ALLOW_THREADS
;
1927 _result
= (int )wxBitmap_GetHeight(_arg0
);
1929 wxPy_END_ALLOW_THREADS
;
1930 if (PyErr_Occurred()) return NULL
;
1931 } _resultobj
= Py_BuildValue("i",_result
);
1935 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1936 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1937 PyObject
* _resultobj
;
1940 PyObject
* _argo0
= 0;
1941 char *_kwnames
[] = { "self", NULL
};
1944 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1947 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1948 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1949 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1954 wxPy_BEGIN_ALLOW_THREADS
;
1955 _result
= (int )wxBitmap_GetDepth(_arg0
);
1957 wxPy_END_ALLOW_THREADS
;
1958 if (PyErr_Occurred()) return NULL
;
1959 } _resultobj
= Py_BuildValue("i",_result
);
1963 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1964 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1965 PyObject
* _resultobj
;
1968 PyObject
* _argo0
= 0;
1969 char *_kwnames
[] = { "self","w", NULL
};
1972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1982 wxPy_BEGIN_ALLOW_THREADS
;
1983 wxBitmap_SetWidth(_arg0
,_arg1
);
1985 wxPy_END_ALLOW_THREADS
;
1986 if (PyErr_Occurred()) return NULL
;
1987 } Py_INCREF(Py_None
);
1988 _resultobj
= Py_None
;
1992 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1993 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1994 PyObject
* _resultobj
;
1997 PyObject
* _argo0
= 0;
1998 char *_kwnames
[] = { "self","h", NULL
};
2001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
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_SetHeight. Expected _wxBitmap_p.");
2011 wxPy_BEGIN_ALLOW_THREADS
;
2012 wxBitmap_SetHeight(_arg0
,_arg1
);
2014 wxPy_END_ALLOW_THREADS
;
2015 if (PyErr_Occurred()) return NULL
;
2016 } Py_INCREF(Py_None
);
2017 _resultobj
= Py_None
;
2021 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2022 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2023 PyObject
* _resultobj
;
2026 PyObject
* _argo0
= 0;
2027 char *_kwnames
[] = { "self","d", NULL
};
2030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2033 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2034 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2040 wxPy_BEGIN_ALLOW_THREADS
;
2041 wxBitmap_SetDepth(_arg0
,_arg1
);
2043 wxPy_END_ALLOW_THREADS
;
2044 if (PyErr_Occurred()) return NULL
;
2045 } Py_INCREF(Py_None
);
2046 _resultobj
= Py_None
;
2050 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2051 static PyObject
*_wrap_wxBitmap_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2052 PyObject
* _resultobj
;
2055 PyObject
* _argo0
= 0;
2057 PyObject
* _obj1
= 0;
2058 char *_kwnames
[] = { "self","size", NULL
};
2061 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetSize",_kwnames
,&_argo0
,&_obj1
))
2064 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2065 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2066 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2072 if (! wxSize_helper(_obj1
, &_arg1
))
2076 wxPy_BEGIN_ALLOW_THREADS
;
2077 wxBitmap_SetSize(_arg0
,*_arg1
);
2079 wxPy_END_ALLOW_THREADS
;
2080 if (PyErr_Occurred()) return NULL
;
2081 } Py_INCREF(Py_None
);
2082 _resultobj
= Py_None
;
2086 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2087 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2088 PyObject
* _resultobj
;
2092 PyObject
* _argo0
= 0;
2094 PyObject
* _obj1
= 0;
2095 char *_kwnames
[] = { "self","rect", NULL
};
2099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
2102 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2103 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2104 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2110 if (! wxRect_helper(_obj1
, &_arg1
))
2114 wxPy_BEGIN_ALLOW_THREADS
;
2115 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2117 wxPy_END_ALLOW_THREADS
;
2118 if (PyErr_Occurred()) return NULL
;
2119 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2120 _resultobj
= Py_BuildValue("s",_ptemp
);
2124 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2125 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2126 PyObject
* _resultobj
;
2130 PyObject
* _argo0
= 0;
2131 PyObject
* _argo1
= 0;
2132 char *_kwnames
[] = { "self","icon", NULL
};
2135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2145 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2146 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2147 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2152 wxPy_BEGIN_ALLOW_THREADS
;
2153 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2155 wxPy_END_ALLOW_THREADS
;
2156 if (PyErr_Occurred()) return NULL
;
2157 } _resultobj
= Py_BuildValue("i",_result
);
2161 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2162 static PyObject
*_wrap_wxBitmap_CopyFromCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2163 PyObject
* _resultobj
;
2167 PyObject
* _argo0
= 0;
2168 PyObject
* _argo1
= 0;
2169 char *_kwnames
[] = { "self","cursor", NULL
};
2172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromCursor",_kwnames
,&_argo0
,&_argo1
))
2175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2182 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2183 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2184 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2189 wxPy_BEGIN_ALLOW_THREADS
;
2190 _result
= (bool )wxBitmap_CopyFromCursor(_arg0
,*_arg1
);
2192 wxPy_END_ALLOW_THREADS
;
2193 if (PyErr_Occurred()) return NULL
;
2194 } _resultobj
= Py_BuildValue("i",_result
);
2198 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2199 static PyObject
*_wrap_wxBitmap_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2200 PyObject
* _resultobj
;
2203 PyObject
* _argo0
= 0;
2204 char *_kwnames
[] = { "self", NULL
};
2207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetQuality",_kwnames
,&_argo0
))
2210 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2211 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2217 wxPy_BEGIN_ALLOW_THREADS
;
2218 _result
= (int )wxBitmap_GetQuality(_arg0
);
2220 wxPy_END_ALLOW_THREADS
;
2221 if (PyErr_Occurred()) return NULL
;
2222 } _resultobj
= Py_BuildValue("i",_result
);
2226 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2227 static PyObject
*_wrap_wxBitmap_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2228 PyObject
* _resultobj
;
2231 PyObject
* _argo0
= 0;
2232 char *_kwnames
[] = { "self","q", NULL
};
2235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetQuality",_kwnames
,&_argo0
,&_arg1
))
2238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2245 wxPy_BEGIN_ALLOW_THREADS
;
2246 wxBitmap_SetQuality(_arg0
,_arg1
);
2248 wxPy_END_ALLOW_THREADS
;
2249 if (PyErr_Occurred()) return NULL
;
2250 } Py_INCREF(Py_None
);
2251 _resultobj
= Py_None
;
2255 static void *SwigwxMaskTowxObject(void *ptr
) {
2258 src
= (wxMask
*) ptr
;
2259 dest
= (wxObject
*) src
;
2260 return (void *) dest
;
2263 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2264 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2265 PyObject
* _resultobj
;
2268 PyObject
* _argo0
= 0;
2269 char *_kwnames
[] = { "bitmap", NULL
};
2273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2283 wxPy_BEGIN_ALLOW_THREADS
;
2284 _result
= (wxMask
*)new_wxMask(*_arg0
);
2286 wxPy_END_ALLOW_THREADS
;
2287 if (PyErr_Occurred()) return NULL
;
2289 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2290 _resultobj
= Py_BuildValue("s",_ptemp
);
2293 _resultobj
= Py_None
;
2298 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2299 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2300 PyObject
* _resultobj
;
2302 PyObject
* _argo0
= 0;
2303 char *_kwnames
[] = { "self", NULL
};
2306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2309 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2310 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2316 wxPy_BEGIN_ALLOW_THREADS
;
2317 wxMask_Destroy(_arg0
);
2319 wxPy_END_ALLOW_THREADS
;
2320 if (PyErr_Occurred()) return NULL
;
2321 } Py_INCREF(Py_None
);
2322 _resultobj
= Py_None
;
2326 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2329 src
= (wxIcon
*) ptr
;
2330 dest
= (wxGDIObject
*) src
;
2331 return (void *) dest
;
2334 static void *SwigwxIconTowxObject(void *ptr
) {
2337 src
= (wxIcon
*) ptr
;
2338 dest
= (wxObject
*) src
;
2339 return (void *) dest
;
2342 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2343 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2344 PyObject
* _resultobj
;
2348 int _arg2
= (int ) -1;
2349 int _arg3
= (int ) -1;
2350 PyObject
* _obj0
= 0;
2351 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2358 #if PYTHON_API_VERSION >= 1009
2359 char* tmpPtr
; int tmpSize
;
2360 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2361 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2364 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2366 _arg0
= new wxString(tmpPtr
, tmpSize
);
2368 if (!PyString_Check(_obj0
)) {
2369 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2372 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2376 wxPy_BEGIN_ALLOW_THREADS
;
2377 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2379 wxPy_END_ALLOW_THREADS
;
2380 if (PyErr_Occurred()) return NULL
;
2382 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2383 _resultobj
= Py_BuildValue("s",_ptemp
);
2386 _resultobj
= Py_None
;
2395 #define delete_wxIcon(_swigobj) (delete _swigobj)
2396 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2397 PyObject
* _resultobj
;
2399 PyObject
* _argo0
= 0;
2400 char *_kwnames
[] = { "self", NULL
};
2403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2413 wxPy_BEGIN_ALLOW_THREADS
;
2414 delete_wxIcon(_arg0
);
2416 wxPy_END_ALLOW_THREADS
;
2417 if (PyErr_Occurred()) return NULL
;
2418 } Py_INCREF(Py_None
);
2419 _resultobj
= Py_None
;
2423 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2424 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2425 PyObject
* _resultobj
;
2430 PyObject
* _argo0
= 0;
2431 PyObject
* _obj1
= 0;
2432 char *_kwnames
[] = { "self","name","flags", NULL
};
2435 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2438 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2439 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2445 #if PYTHON_API_VERSION >= 1009
2446 char* tmpPtr
; int tmpSize
;
2447 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2448 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2451 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2453 _arg1
= new wxString(tmpPtr
, tmpSize
);
2455 if (!PyString_Check(_obj1
)) {
2456 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2459 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2463 wxPy_BEGIN_ALLOW_THREADS
;
2464 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2466 wxPy_END_ALLOW_THREADS
;
2467 if (PyErr_Occurred()) return NULL
;
2468 } _resultobj
= Py_BuildValue("i",_result
);
2476 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2477 static PyObject
*_wrap_wxIcon_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2478 PyObject
* _resultobj
;
2481 PyObject
* _argo0
= 0;
2482 char *_kwnames
[] = { "self", NULL
};
2485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHandle",_kwnames
,&_argo0
))
2488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2495 wxPy_BEGIN_ALLOW_THREADS
;
2496 _result
= (long )wxIcon_GetHandle(_arg0
);
2498 wxPy_END_ALLOW_THREADS
;
2499 if (PyErr_Occurred()) return NULL
;
2500 } _resultobj
= Py_BuildValue("l",_result
);
2504 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2505 static PyObject
*_wrap_wxIcon_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2506 PyObject
* _resultobj
;
2509 PyObject
* _argo0
= 0;
2510 char *_kwnames
[] = { "self","handle", NULL
};
2513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxIcon_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2523 wxPy_BEGIN_ALLOW_THREADS
;
2524 wxIcon_SetHandle(_arg0
,_arg1
);
2526 wxPy_END_ALLOW_THREADS
;
2527 if (PyErr_Occurred()) return NULL
;
2528 } Py_INCREF(Py_None
);
2529 _resultobj
= Py_None
;
2533 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2534 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2535 PyObject
* _resultobj
;
2538 PyObject
* _argo0
= 0;
2539 char *_kwnames
[] = { "self", NULL
};
2542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2552 wxPy_BEGIN_ALLOW_THREADS
;
2553 _result
= (bool )wxIcon_Ok(_arg0
);
2555 wxPy_END_ALLOW_THREADS
;
2556 if (PyErr_Occurred()) return NULL
;
2557 } _resultobj
= Py_BuildValue("i",_result
);
2561 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2562 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2563 PyObject
* _resultobj
;
2566 PyObject
* _argo0
= 0;
2567 char *_kwnames
[] = { "self", NULL
};
2570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2580 wxPy_BEGIN_ALLOW_THREADS
;
2581 _result
= (int )wxIcon_GetWidth(_arg0
);
2583 wxPy_END_ALLOW_THREADS
;
2584 if (PyErr_Occurred()) return NULL
;
2585 } _resultobj
= Py_BuildValue("i",_result
);
2589 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2590 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2591 PyObject
* _resultobj
;
2594 PyObject
* _argo0
= 0;
2595 char *_kwnames
[] = { "self", NULL
};
2598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2608 wxPy_BEGIN_ALLOW_THREADS
;
2609 _result
= (int )wxIcon_GetHeight(_arg0
);
2611 wxPy_END_ALLOW_THREADS
;
2612 if (PyErr_Occurred()) return NULL
;
2613 } _resultobj
= Py_BuildValue("i",_result
);
2617 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2618 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2619 PyObject
* _resultobj
;
2622 PyObject
* _argo0
= 0;
2623 char *_kwnames
[] = { "self", NULL
};
2626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2636 wxPy_BEGIN_ALLOW_THREADS
;
2637 _result
= (int )wxIcon_GetDepth(_arg0
);
2639 wxPy_END_ALLOW_THREADS
;
2640 if (PyErr_Occurred()) return NULL
;
2641 } _resultobj
= Py_BuildValue("i",_result
);
2645 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2646 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2647 PyObject
* _resultobj
;
2650 PyObject
* _argo0
= 0;
2651 char *_kwnames
[] = { "self","w", NULL
};
2654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2664 wxPy_BEGIN_ALLOW_THREADS
;
2665 wxIcon_SetWidth(_arg0
,_arg1
);
2667 wxPy_END_ALLOW_THREADS
;
2668 if (PyErr_Occurred()) return NULL
;
2669 } Py_INCREF(Py_None
);
2670 _resultobj
= Py_None
;
2674 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2675 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2676 PyObject
* _resultobj
;
2679 PyObject
* _argo0
= 0;
2680 char *_kwnames
[] = { "self","h", NULL
};
2683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2686 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2687 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2688 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2693 wxPy_BEGIN_ALLOW_THREADS
;
2694 wxIcon_SetHeight(_arg0
,_arg1
);
2696 wxPy_END_ALLOW_THREADS
;
2697 if (PyErr_Occurred()) return NULL
;
2698 } Py_INCREF(Py_None
);
2699 _resultobj
= Py_None
;
2703 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2704 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2705 PyObject
* _resultobj
;
2708 PyObject
* _argo0
= 0;
2709 char *_kwnames
[] = { "self","d", NULL
};
2712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2722 wxPy_BEGIN_ALLOW_THREADS
;
2723 wxIcon_SetDepth(_arg0
,_arg1
);
2725 wxPy_END_ALLOW_THREADS
;
2726 if (PyErr_Occurred()) return NULL
;
2727 } Py_INCREF(Py_None
);
2728 _resultobj
= Py_None
;
2732 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2733 static PyObject
*_wrap_wxIcon_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2734 PyObject
* _resultobj
;
2737 PyObject
* _argo0
= 0;
2739 PyObject
* _obj1
= 0;
2740 char *_kwnames
[] = { "self","size", NULL
};
2743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_SetSize",_kwnames
,&_argo0
,&_obj1
))
2746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2754 if (! wxSize_helper(_obj1
, &_arg1
))
2758 wxPy_BEGIN_ALLOW_THREADS
;
2759 wxIcon_SetSize(_arg0
,*_arg1
);
2761 wxPy_END_ALLOW_THREADS
;
2762 if (PyErr_Occurred()) return NULL
;
2763 } Py_INCREF(Py_None
);
2764 _resultobj
= Py_None
;
2768 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2769 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2770 PyObject
* _resultobj
;
2773 PyObject
* _argo0
= 0;
2774 PyObject
* _argo1
= 0;
2775 char *_kwnames
[] = { "self","bmp", NULL
};
2778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2788 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2789 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2795 wxPy_BEGIN_ALLOW_THREADS
;
2796 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2798 wxPy_END_ALLOW_THREADS
;
2799 if (PyErr_Occurred()) return NULL
;
2800 } Py_INCREF(Py_None
);
2801 _resultobj
= Py_None
;
2805 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2808 src
= (wxCursor
*) ptr
;
2809 dest
= (wxGDIObject
*) src
;
2810 return (void *) dest
;
2813 static void *SwigwxCursorTowxObject(void *ptr
) {
2816 src
= (wxCursor
*) ptr
;
2817 dest
= (wxObject
*) src
;
2818 return (void *) dest
;
2821 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2822 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2823 PyObject
* _resultobj
;
2827 int _arg2
= (int ) 0;
2828 int _arg3
= (int ) 0;
2829 PyObject
* _obj0
= 0;
2830 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
2834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2837 #if PYTHON_API_VERSION >= 1009
2838 char* tmpPtr
; int tmpSize
;
2839 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2840 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2843 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2845 _arg0
= new wxString(tmpPtr
, tmpSize
);
2847 if (!PyString_Check(_obj0
)) {
2848 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2851 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2855 wxPy_BEGIN_ALLOW_THREADS
;
2856 _result
= (wxCursor
*)new_wxCursor(*_arg0
,_arg1
,_arg2
,_arg3
);
2858 wxPy_END_ALLOW_THREADS
;
2859 if (PyErr_Occurred()) return NULL
;
2861 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
2862 _resultobj
= Py_BuildValue("s",_ptemp
);
2865 _resultobj
= Py_None
;
2874 #define delete_wxCursor(_swigobj) (delete _swigobj)
2875 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2876 PyObject
* _resultobj
;
2878 PyObject
* _argo0
= 0;
2879 char *_kwnames
[] = { "self", NULL
};
2882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2885 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2886 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2887 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2892 wxPy_BEGIN_ALLOW_THREADS
;
2893 delete_wxCursor(_arg0
);
2895 wxPy_END_ALLOW_THREADS
;
2896 if (PyErr_Occurred()) return NULL
;
2897 } Py_INCREF(Py_None
);
2898 _resultobj
= Py_None
;
2902 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2903 static PyObject
*_wrap_wxCursor_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2904 PyObject
* _resultobj
;
2907 PyObject
* _argo0
= 0;
2908 char *_kwnames
[] = { "self", NULL
};
2911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHandle",_kwnames
,&_argo0
))
2914 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2915 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2916 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2921 wxPy_BEGIN_ALLOW_THREADS
;
2922 _result
= (long )wxCursor_GetHandle(_arg0
);
2924 wxPy_END_ALLOW_THREADS
;
2925 if (PyErr_Occurred()) return NULL
;
2926 } _resultobj
= Py_BuildValue("l",_result
);
2930 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2931 static PyObject
*_wrap_wxCursor_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2932 PyObject
* _resultobj
;
2935 PyObject
* _argo0
= 0;
2936 char *_kwnames
[] = { "self","handle", NULL
};
2939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxCursor_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2942 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2943 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2944 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2949 wxPy_BEGIN_ALLOW_THREADS
;
2950 wxCursor_SetHandle(_arg0
,_arg1
);
2952 wxPy_END_ALLOW_THREADS
;
2953 if (PyErr_Occurred()) return NULL
;
2954 } Py_INCREF(Py_None
);
2955 _resultobj
= Py_None
;
2959 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2960 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2961 PyObject
* _resultobj
;
2964 PyObject
* _argo0
= 0;
2965 char *_kwnames
[] = { "self", NULL
};
2968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2978 wxPy_BEGIN_ALLOW_THREADS
;
2979 _result
= (bool )wxCursor_Ok(_arg0
);
2981 wxPy_END_ALLOW_THREADS
;
2982 if (PyErr_Occurred()) return NULL
;
2983 } _resultobj
= Py_BuildValue("i",_result
);
2987 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2988 static PyObject
*_wrap_wxCursor_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2989 PyObject
* _resultobj
;
2992 PyObject
* _argo0
= 0;
2993 char *_kwnames
[] = { "self", NULL
};
2996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetWidth",_kwnames
,&_argo0
))
2999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3006 wxPy_BEGIN_ALLOW_THREADS
;
3007 _result
= (int )wxCursor_GetWidth(_arg0
);
3009 wxPy_END_ALLOW_THREADS
;
3010 if (PyErr_Occurred()) return NULL
;
3011 } _resultobj
= Py_BuildValue("i",_result
);
3015 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3016 static PyObject
*_wrap_wxCursor_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3017 PyObject
* _resultobj
;
3020 PyObject
* _argo0
= 0;
3021 char *_kwnames
[] = { "self", NULL
};
3024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHeight",_kwnames
,&_argo0
))
3027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3034 wxPy_BEGIN_ALLOW_THREADS
;
3035 _result
= (int )wxCursor_GetHeight(_arg0
);
3037 wxPy_END_ALLOW_THREADS
;
3038 if (PyErr_Occurred()) return NULL
;
3039 } _resultobj
= Py_BuildValue("i",_result
);
3043 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3044 static PyObject
*_wrap_wxCursor_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3045 PyObject
* _resultobj
;
3048 PyObject
* _argo0
= 0;
3049 char *_kwnames
[] = { "self", NULL
};
3052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetDepth",_kwnames
,&_argo0
))
3055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3062 wxPy_BEGIN_ALLOW_THREADS
;
3063 _result
= (int )wxCursor_GetDepth(_arg0
);
3065 wxPy_END_ALLOW_THREADS
;
3066 if (PyErr_Occurred()) return NULL
;
3067 } _resultobj
= Py_BuildValue("i",_result
);
3071 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3072 static PyObject
*_wrap_wxCursor_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3073 PyObject
* _resultobj
;
3076 PyObject
* _argo0
= 0;
3077 char *_kwnames
[] = { "self","w", NULL
};
3080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3083 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3084 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3090 wxPy_BEGIN_ALLOW_THREADS
;
3091 wxCursor_SetWidth(_arg0
,_arg1
);
3093 wxPy_END_ALLOW_THREADS
;
3094 if (PyErr_Occurred()) return NULL
;
3095 } Py_INCREF(Py_None
);
3096 _resultobj
= Py_None
;
3100 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3101 static PyObject
*_wrap_wxCursor_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3102 PyObject
* _resultobj
;
3105 PyObject
* _argo0
= 0;
3106 char *_kwnames
[] = { "self","h", NULL
};
3109 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetHeight",_kwnames
,&_argo0
,&_arg1
))
3112 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3113 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3119 wxPy_BEGIN_ALLOW_THREADS
;
3120 wxCursor_SetHeight(_arg0
,_arg1
);
3122 wxPy_END_ALLOW_THREADS
;
3123 if (PyErr_Occurred()) return NULL
;
3124 } Py_INCREF(Py_None
);
3125 _resultobj
= Py_None
;
3129 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3130 static PyObject
*_wrap_wxCursor_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3131 PyObject
* _resultobj
;
3134 PyObject
* _argo0
= 0;
3135 char *_kwnames
[] = { "self","d", NULL
};
3138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetDepth",_kwnames
,&_argo0
,&_arg1
))
3141 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3142 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3148 wxPy_BEGIN_ALLOW_THREADS
;
3149 wxCursor_SetDepth(_arg0
,_arg1
);
3151 wxPy_END_ALLOW_THREADS
;
3152 if (PyErr_Occurred()) return NULL
;
3153 } Py_INCREF(Py_None
);
3154 _resultobj
= Py_None
;
3158 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3159 static PyObject
*_wrap_wxCursor_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3160 PyObject
* _resultobj
;
3163 PyObject
* _argo0
= 0;
3165 PyObject
* _obj1
= 0;
3166 char *_kwnames
[] = { "self","size", NULL
};
3169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCursor_SetSize",_kwnames
,&_argo0
,&_obj1
))
3172 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3173 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3180 if (! wxSize_helper(_obj1
, &_arg1
))
3184 wxPy_BEGIN_ALLOW_THREADS
;
3185 wxCursor_SetSize(_arg0
,*_arg1
);
3187 wxPy_END_ALLOW_THREADS
;
3188 if (PyErr_Occurred()) return NULL
;
3189 } Py_INCREF(Py_None
);
3190 _resultobj
= Py_None
;
3194 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
3195 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3196 PyObject
* _resultobj
;
3198 wxNativeFontInfo
* _arg0
;
3200 PyObject
* _argo0
= 0;
3201 PyObject
* _obj1
= 0;
3202 char *_kwnames
[] = { "self","s", NULL
};
3205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
3208 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3209 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3215 #if PYTHON_API_VERSION >= 1009
3216 char* tmpPtr
; int tmpSize
;
3217 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3218 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3221 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3223 _arg1
= new wxString(tmpPtr
, tmpSize
);
3225 if (!PyString_Check(_obj1
)) {
3226 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3229 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3233 wxPy_BEGIN_ALLOW_THREADS
;
3234 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
3236 wxPy_END_ALLOW_THREADS
;
3237 if (PyErr_Occurred()) return NULL
;
3238 } _resultobj
= Py_BuildValue("i",_result
);
3246 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3247 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3248 PyObject
* _resultobj
;
3250 wxNativeFontInfo
* _arg0
;
3251 PyObject
* _argo0
= 0;
3252 char *_kwnames
[] = { "self", NULL
};
3255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
3258 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3259 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3265 wxPy_BEGIN_ALLOW_THREADS
;
3266 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
3268 wxPy_END_ALLOW_THREADS
;
3269 if (PyErr_Occurred()) return NULL
;
3271 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3279 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
3280 return self
->ToString();
3282 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3283 PyObject
* _resultobj
;
3285 wxNativeFontInfo
* _arg0
;
3286 PyObject
* _argo0
= 0;
3287 char *_kwnames
[] = { "self", NULL
};
3290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
3293 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3294 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3300 wxPy_BEGIN_ALLOW_THREADS
;
3301 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
3303 wxPy_END_ALLOW_THREADS
;
3304 if (PyErr_Occurred()) return NULL
;
3306 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3314 #define new_wxFontMapper() (new wxFontMapper())
3315 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3316 PyObject
* _resultobj
;
3317 wxFontMapper
* _result
;
3318 char *_kwnames
[] = { NULL
};
3322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
3325 wxPy_BEGIN_ALLOW_THREADS
;
3326 _result
= (wxFontMapper
*)new_wxFontMapper();
3328 wxPy_END_ALLOW_THREADS
;
3329 if (PyErr_Occurred()) return NULL
;
3331 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
3332 _resultobj
= Py_BuildValue("s",_ptemp
);
3335 _resultobj
= Py_None
;
3340 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3341 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3342 PyObject
* _resultobj
;
3343 wxFontMapper
* _arg0
;
3344 PyObject
* _argo0
= 0;
3345 char *_kwnames
[] = { "self", NULL
};
3348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
3351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3358 wxPy_BEGIN_ALLOW_THREADS
;
3359 delete_wxFontMapper(_arg0
);
3361 wxPy_END_ALLOW_THREADS
;
3362 if (PyErr_Occurred()) return NULL
;
3363 } Py_INCREF(Py_None
);
3364 _resultobj
= Py_None
;
3368 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
3369 wxFontEncoding alt_enc
;
3370 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
3371 return PyInt_FromLong(alt_enc
);
3377 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3378 PyObject
* _resultobj
;
3380 wxFontMapper
* _arg0
;
3381 wxFontEncoding _arg1
;
3382 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3383 bool _arg3
= (bool ) TRUE
;
3384 PyObject
* _argo0
= 0;
3385 PyObject
* _obj2
= 0;
3386 int tempbool3
= (int) TRUE
;
3387 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
3390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
3393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3401 #if PYTHON_API_VERSION >= 1009
3402 char* tmpPtr
; int tmpSize
;
3403 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3404 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3407 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3409 _arg2
= new wxString(tmpPtr
, tmpSize
);
3411 if (!PyString_Check(_obj2
)) {
3412 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3415 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3418 _arg3
= (bool ) tempbool3
;
3420 wxPy_BEGIN_ALLOW_THREADS
;
3421 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
3423 wxPy_END_ALLOW_THREADS
;
3424 if (PyErr_Occurred()) return NULL
;
3426 _resultobj
= _result
;
3435 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3436 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3437 PyObject
* _resultobj
;
3439 wxFontMapper
* _arg0
;
3440 wxFontEncoding _arg1
;
3441 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3442 PyObject
* _argo0
= 0;
3443 PyObject
* _obj2
= 0;
3444 char *_kwnames
[] = { "self","encoding","facename", NULL
};
3447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
3450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
3458 #if PYTHON_API_VERSION >= 1009
3459 char* tmpPtr
; int tmpSize
;
3460 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3461 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3464 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3466 _arg2
= new wxString(tmpPtr
, tmpSize
);
3468 if (!PyString_Check(_obj2
)) {
3469 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3472 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3476 wxPy_BEGIN_ALLOW_THREADS
;
3477 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
3479 wxPy_END_ALLOW_THREADS
;
3480 if (PyErr_Occurred()) return NULL
;
3481 } _resultobj
= Py_BuildValue("i",_result
);
3489 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3490 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3491 PyObject
* _resultobj
;
3492 wxFontEncoding _result
;
3493 wxFontMapper
* _arg0
;
3495 bool _arg2
= (bool ) TRUE
;
3496 PyObject
* _argo0
= 0;
3497 PyObject
* _obj1
= 0;
3498 int tempbool2
= (int) TRUE
;
3499 char *_kwnames
[] = { "self","charset","interactive", NULL
};
3502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
3505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
3512 #if PYTHON_API_VERSION >= 1009
3513 char* tmpPtr
; int tmpSize
;
3514 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3515 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3518 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3520 _arg1
= new wxString(tmpPtr
, tmpSize
);
3522 if (!PyString_Check(_obj1
)) {
3523 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3526 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3529 _arg2
= (bool ) tempbool2
;
3531 wxPy_BEGIN_ALLOW_THREADS
;
3532 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
3534 wxPy_END_ALLOW_THREADS
;
3535 if (PyErr_Occurred()) return NULL
;
3536 } _resultobj
= Py_BuildValue("i",_result
);
3544 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3545 PyObject
* _resultobj
;
3547 wxFontEncoding _arg0
;
3548 char *_kwnames
[] = { "encoding", NULL
};
3551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
3554 wxPy_BEGIN_ALLOW_THREADS
;
3555 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
3557 wxPy_END_ALLOW_THREADS
;
3558 if (PyErr_Occurred()) return NULL
;
3560 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3568 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3569 PyObject
* _resultobj
;
3571 wxFontEncoding _arg0
;
3572 char *_kwnames
[] = { "encoding", NULL
};
3575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
3578 wxPy_BEGIN_ALLOW_THREADS
;
3579 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
3581 wxPy_END_ALLOW_THREADS
;
3582 if (PyErr_Occurred()) return NULL
;
3584 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3592 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3593 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3594 PyObject
* _resultobj
;
3595 wxFontMapper
* _arg0
;
3597 PyObject
* _argo0
= 0;
3598 PyObject
* _argo1
= 0;
3599 char *_kwnames
[] = { "self","parent", NULL
};
3602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
3605 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3606 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3612 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3613 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3614 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3619 wxPy_BEGIN_ALLOW_THREADS
;
3620 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
3622 wxPy_END_ALLOW_THREADS
;
3623 if (PyErr_Occurred()) return NULL
;
3624 } Py_INCREF(Py_None
);
3625 _resultobj
= Py_None
;
3629 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3630 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3631 PyObject
* _resultobj
;
3632 wxFontMapper
* _arg0
;
3634 PyObject
* _argo0
= 0;
3635 PyObject
* _obj1
= 0;
3636 char *_kwnames
[] = { "self","title", NULL
};
3639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
3642 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3643 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3644 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3649 #if PYTHON_API_VERSION >= 1009
3650 char* tmpPtr
; int tmpSize
;
3651 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3652 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3655 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3657 _arg1
= new wxString(tmpPtr
, tmpSize
);
3659 if (!PyString_Check(_obj1
)) {
3660 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3663 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3667 wxPy_BEGIN_ALLOW_THREADS
;
3668 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
3670 wxPy_END_ALLOW_THREADS
;
3671 if (PyErr_Occurred()) return NULL
;
3672 } Py_INCREF(Py_None
);
3673 _resultobj
= Py_None
;
3681 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3682 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3683 PyObject
* _resultobj
;
3684 wxFontMapper
* _arg0
;
3685 wxConfigBase
* _arg1
;
3686 PyObject
* _argo0
= 0;
3687 PyObject
* _argo1
= 0;
3688 char *_kwnames
[] = { "self","config", NULL
};
3691 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
3694 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3695 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3701 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3702 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
3703 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3708 wxPy_BEGIN_ALLOW_THREADS
;
3709 wxFontMapper_SetConfig(_arg0
,_arg1
);
3711 wxPy_END_ALLOW_THREADS
;
3712 if (PyErr_Occurred()) return NULL
;
3713 } Py_INCREF(Py_None
);
3714 _resultobj
= Py_None
;
3718 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3719 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3720 PyObject
* _resultobj
;
3721 wxFontMapper
* _arg0
;
3723 PyObject
* _argo0
= 0;
3724 PyObject
* _obj1
= 0;
3725 char *_kwnames
[] = { "self","prefix", NULL
};
3728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
3731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3738 #if PYTHON_API_VERSION >= 1009
3739 char* tmpPtr
; int tmpSize
;
3740 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3741 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3744 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3746 _arg1
= new wxString(tmpPtr
, tmpSize
);
3748 if (!PyString_Check(_obj1
)) {
3749 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3752 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3756 wxPy_BEGIN_ALLOW_THREADS
;
3757 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
3759 wxPy_END_ALLOW_THREADS
;
3760 if (PyErr_Occurred()) return NULL
;
3761 } Py_INCREF(Py_None
);
3762 _resultobj
= Py_None
;
3770 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3771 PyObject
* _resultobj
;
3773 char *_kwnames
[] = { NULL
};
3776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
3779 wxPy_BEGIN_ALLOW_THREADS
;
3780 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
3782 wxPy_END_ALLOW_THREADS
;
3783 if (PyErr_Occurred()) return NULL
;
3784 } _resultobj
= Py_BuildValue("s", _result
);
3788 static void *SwigwxFontTowxGDIObject(void *ptr
) {
3791 src
= (wxFont
*) ptr
;
3792 dest
= (wxGDIObject
*) src
;
3793 return (void *) dest
;
3796 static void *SwigwxFontTowxObject(void *ptr
) {
3799 src
= (wxFont
*) ptr
;
3800 dest
= (wxObject
*) src
;
3801 return (void *) dest
;
3804 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3805 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3806 PyObject
* _resultobj
;
3812 int _arg4
= (int ) FALSE
;
3813 char * _arg5
= (char *) "";
3814 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3815 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
3819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3822 wxPy_BEGIN_ALLOW_THREADS
;
3823 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3825 wxPy_END_ALLOW_THREADS
;
3826 if (PyErr_Occurred()) return NULL
;
3828 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3829 _resultobj
= Py_BuildValue("s",_ptemp
);
3832 _resultobj
= Py_None
;
3837 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3838 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3839 PyObject
* _resultobj
;
3841 wxNativeFontInfo
* _arg0
;
3842 PyObject
* _argo0
= 0;
3843 char *_kwnames
[] = { "info", NULL
};
3847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
3850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3857 wxPy_BEGIN_ALLOW_THREADS
;
3858 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
3860 wxPy_END_ALLOW_THREADS
;
3861 if (PyErr_Occurred()) return NULL
;
3863 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3864 _resultobj
= Py_BuildValue("s",_ptemp
);
3867 _resultobj
= Py_None
;
3872 #define delete_wxFont(_swigobj) (delete _swigobj)
3873 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3874 PyObject
* _resultobj
;
3876 PyObject
* _argo0
= 0;
3877 char *_kwnames
[] = { "self", NULL
};
3880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3883 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3884 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3890 wxPy_BEGIN_ALLOW_THREADS
;
3891 delete_wxFont(_arg0
);
3893 wxPy_END_ALLOW_THREADS
;
3894 if (PyErr_Occurred()) return NULL
;
3895 } Py_INCREF(Py_None
);
3896 _resultobj
= Py_None
;
3900 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3901 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3902 PyObject
* _resultobj
;
3905 PyObject
* _argo0
= 0;
3906 char *_kwnames
[] = { "self", NULL
};
3909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3919 wxPy_BEGIN_ALLOW_THREADS
;
3920 _result
= (bool )wxFont_Ok(_arg0
);
3922 wxPy_END_ALLOW_THREADS
;
3923 if (PyErr_Occurred()) return NULL
;
3924 } _resultobj
= Py_BuildValue("i",_result
);
3928 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3929 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3930 PyObject
* _resultobj
;
3933 PyObject
* _argo0
= 0;
3934 char *_kwnames
[] = { "self", NULL
};
3937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3947 wxPy_BEGIN_ALLOW_THREADS
;
3948 _result
= (int )wxFont_GetPointSize(_arg0
);
3950 wxPy_END_ALLOW_THREADS
;
3951 if (PyErr_Occurred()) return NULL
;
3952 } _resultobj
= Py_BuildValue("i",_result
);
3956 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3957 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3958 PyObject
* _resultobj
;
3961 PyObject
* _argo0
= 0;
3962 char *_kwnames
[] = { "self", NULL
};
3965 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3968 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3969 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3970 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3975 wxPy_BEGIN_ALLOW_THREADS
;
3976 _result
= (int )wxFont_GetFamily(_arg0
);
3978 wxPy_END_ALLOW_THREADS
;
3979 if (PyErr_Occurred()) return NULL
;
3980 } _resultobj
= Py_BuildValue("i",_result
);
3984 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3985 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3986 PyObject
* _resultobj
;
3989 PyObject
* _argo0
= 0;
3990 char *_kwnames
[] = { "self", NULL
};
3993 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3996 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3997 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3998 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
4003 wxPy_BEGIN_ALLOW_THREADS
;
4004 _result
= (int )wxFont_GetStyle(_arg0
);
4006 wxPy_END_ALLOW_THREADS
;
4007 if (PyErr_Occurred()) return NULL
;
4008 } _resultobj
= Py_BuildValue("i",_result
);
4012 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
4013 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4014 PyObject
* _resultobj
;
4017 PyObject
* _argo0
= 0;
4018 char *_kwnames
[] = { "self", NULL
};
4021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
4024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
4031 wxPy_BEGIN_ALLOW_THREADS
;
4032 _result
= (int )wxFont_GetWeight(_arg0
);
4034 wxPy_END_ALLOW_THREADS
;
4035 if (PyErr_Occurred()) return NULL
;
4036 } _resultobj
= Py_BuildValue("i",_result
);
4040 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
4041 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4042 PyObject
* _resultobj
;
4045 PyObject
* _argo0
= 0;
4046 char *_kwnames
[] = { "self", NULL
};
4049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
4052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
4059 wxPy_BEGIN_ALLOW_THREADS
;
4060 _result
= (bool )wxFont_GetUnderlined(_arg0
);
4062 wxPy_END_ALLOW_THREADS
;
4063 if (PyErr_Occurred()) return NULL
;
4064 } _resultobj
= Py_BuildValue("i",_result
);
4068 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
4069 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4070 PyObject
* _resultobj
;
4073 PyObject
* _argo0
= 0;
4074 char *_kwnames
[] = { "self", NULL
};
4077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
4080 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4081 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
4087 wxPy_BEGIN_ALLOW_THREADS
;
4088 _result
= new wxString (wxFont_GetFaceName(_arg0
));
4090 wxPy_END_ALLOW_THREADS
;
4091 if (PyErr_Occurred()) return NULL
;
4093 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4101 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
4102 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4103 PyObject
* _resultobj
;
4104 wxFontEncoding _result
;
4106 PyObject
* _argo0
= 0;
4107 char *_kwnames
[] = { "self", NULL
};
4110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
4113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4120 wxPy_BEGIN_ALLOW_THREADS
;
4121 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
4123 wxPy_END_ALLOW_THREADS
;
4124 if (PyErr_Occurred()) return NULL
;
4125 } _resultobj
= Py_BuildValue("i",_result
);
4129 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4130 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4131 PyObject
* _resultobj
;
4132 wxNativeFontInfo
* _result
;
4134 PyObject
* _argo0
= 0;
4135 char *_kwnames
[] = { "self", NULL
};
4139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
4142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4149 wxPy_BEGIN_ALLOW_THREADS
;
4150 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
4152 wxPy_END_ALLOW_THREADS
;
4153 if (PyErr_Occurred()) return NULL
;
4155 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
4156 _resultobj
= Py_BuildValue("s",_ptemp
);
4159 _resultobj
= Py_None
;
4164 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4165 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4166 PyObject
* _resultobj
;
4169 PyObject
* _argo0
= 0;
4170 char *_kwnames
[] = { "self","pointSize", NULL
};
4173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
4176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4183 wxPy_BEGIN_ALLOW_THREADS
;
4184 wxFont_SetPointSize(_arg0
,_arg1
);
4186 wxPy_END_ALLOW_THREADS
;
4187 if (PyErr_Occurred()) return NULL
;
4188 } Py_INCREF(Py_None
);
4189 _resultobj
= Py_None
;
4193 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4194 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4195 PyObject
* _resultobj
;
4198 PyObject
* _argo0
= 0;
4199 char *_kwnames
[] = { "self","family", NULL
};
4202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
4205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4212 wxPy_BEGIN_ALLOW_THREADS
;
4213 wxFont_SetFamily(_arg0
,_arg1
);
4215 wxPy_END_ALLOW_THREADS
;
4216 if (PyErr_Occurred()) return NULL
;
4217 } Py_INCREF(Py_None
);
4218 _resultobj
= Py_None
;
4222 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4223 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4224 PyObject
* _resultobj
;
4227 PyObject
* _argo0
= 0;
4228 char *_kwnames
[] = { "self","style", NULL
};
4231 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4234 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4235 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4236 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4241 wxPy_BEGIN_ALLOW_THREADS
;
4242 wxFont_SetStyle(_arg0
,_arg1
);
4244 wxPy_END_ALLOW_THREADS
;
4245 if (PyErr_Occurred()) return NULL
;
4246 } Py_INCREF(Py_None
);
4247 _resultobj
= Py_None
;
4251 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4252 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4253 PyObject
* _resultobj
;
4256 PyObject
* _argo0
= 0;
4257 char *_kwnames
[] = { "self","weight", NULL
};
4260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
4263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4270 wxPy_BEGIN_ALLOW_THREADS
;
4271 wxFont_SetWeight(_arg0
,_arg1
);
4273 wxPy_END_ALLOW_THREADS
;
4274 if (PyErr_Occurred()) return NULL
;
4275 } Py_INCREF(Py_None
);
4276 _resultobj
= Py_None
;
4280 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4281 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4282 PyObject
* _resultobj
;
4285 PyObject
* _argo0
= 0;
4286 PyObject
* _obj1
= 0;
4287 char *_kwnames
[] = { "self","faceName", NULL
};
4290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
4293 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4294 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4300 #if PYTHON_API_VERSION >= 1009
4301 char* tmpPtr
; int tmpSize
;
4302 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4303 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4306 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4308 _arg1
= new wxString(tmpPtr
, tmpSize
);
4310 if (!PyString_Check(_obj1
)) {
4311 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4314 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4318 wxPy_BEGIN_ALLOW_THREADS
;
4319 wxFont_SetFaceName(_arg0
,*_arg1
);
4321 wxPy_END_ALLOW_THREADS
;
4322 if (PyErr_Occurred()) return NULL
;
4323 } Py_INCREF(Py_None
);
4324 _resultobj
= Py_None
;
4332 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4333 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4334 PyObject
* _resultobj
;
4337 PyObject
* _argo0
= 0;
4339 char *_kwnames
[] = { "self","underlined", NULL
};
4342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
4345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4351 _arg1
= (bool ) tempbool1
;
4353 wxPy_BEGIN_ALLOW_THREADS
;
4354 wxFont_SetUnderlined(_arg0
,_arg1
);
4356 wxPy_END_ALLOW_THREADS
;
4357 if (PyErr_Occurred()) return NULL
;
4358 } Py_INCREF(Py_None
);
4359 _resultobj
= Py_None
;
4363 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4364 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4365 PyObject
* _resultobj
;
4367 wxFontEncoding _arg1
;
4368 PyObject
* _argo0
= 0;
4369 char *_kwnames
[] = { "self","encoding", NULL
};
4372 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
4375 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4376 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4377 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
4382 wxPy_BEGIN_ALLOW_THREADS
;
4383 wxFont_SetEncoding(_arg0
,_arg1
);
4385 wxPy_END_ALLOW_THREADS
;
4386 if (PyErr_Occurred()) return NULL
;
4387 } Py_INCREF(Py_None
);
4388 _resultobj
= Py_None
;
4392 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4393 static PyObject
*_wrap_wxFont_SetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4394 PyObject
* _resultobj
;
4396 wxNativeFontInfo
* _arg1
;
4397 PyObject
* _argo0
= 0;
4398 PyObject
* _argo1
= 0;
4399 char *_kwnames
[] = { "self","info", NULL
};
4402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfo",_kwnames
,&_argo0
,&_argo1
))
4405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4412 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4413 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxNativeFontInfo_p")) {
4414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
4419 wxPy_BEGIN_ALLOW_THREADS
;
4420 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
4422 wxPy_END_ALLOW_THREADS
;
4423 if (PyErr_Occurred()) return NULL
;
4424 } Py_INCREF(Py_None
);
4425 _resultobj
= Py_None
;
4429 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4430 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4431 PyObject
* _resultobj
;
4434 PyObject
* _argo0
= 0;
4435 char *_kwnames
[] = { "self", NULL
};
4438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
4441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4448 wxPy_BEGIN_ALLOW_THREADS
;
4449 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
4451 wxPy_END_ALLOW_THREADS
;
4452 if (PyErr_Occurred()) return NULL
;
4454 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4462 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4463 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4464 PyObject
* _resultobj
;
4467 PyObject
* _argo0
= 0;
4468 char *_kwnames
[] = { "self", NULL
};
4471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
4474 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4475 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4481 wxPy_BEGIN_ALLOW_THREADS
;
4482 _result
= new wxString (wxFont_GetStyleString(_arg0
));
4484 wxPy_END_ALLOW_THREADS
;
4485 if (PyErr_Occurred()) return NULL
;
4487 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4495 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4496 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4497 PyObject
* _resultobj
;
4500 PyObject
* _argo0
= 0;
4501 char *_kwnames
[] = { "self", NULL
};
4504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
4507 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4508 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4514 wxPy_BEGIN_ALLOW_THREADS
;
4515 _result
= new wxString (wxFont_GetWeightString(_arg0
));
4517 wxPy_END_ALLOW_THREADS
;
4518 if (PyErr_Occurred()) return NULL
;
4520 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4528 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4529 PyObject
* _resultobj
;
4530 wxFontEncoding _result
;
4531 char *_kwnames
[] = { NULL
};
4534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
4537 wxPy_BEGIN_ALLOW_THREADS
;
4538 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
4540 wxPy_END_ALLOW_THREADS
;
4541 if (PyErr_Occurred()) return NULL
;
4542 } _resultobj
= Py_BuildValue("i",_result
);
4546 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4547 PyObject
* _resultobj
;
4548 wxFontEncoding _arg0
;
4549 char *_kwnames
[] = { "encoding", NULL
};
4552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
4555 wxPy_BEGIN_ALLOW_THREADS
;
4556 wxFont::SetDefaultEncoding(_arg0
);
4558 wxPy_END_ALLOW_THREADS
;
4559 if (PyErr_Occurred()) return NULL
;
4560 } Py_INCREF(Py_None
);
4561 _resultobj
= Py_None
;
4565 static void *SwigwxFontListTowxObject(void *ptr
) {
4568 src
= (wxFontList
*) ptr
;
4569 dest
= (wxObject
*) src
;
4570 return (void *) dest
;
4573 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4574 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4575 PyObject
* _resultobj
;
4578 PyObject
* _argo0
= 0;
4579 PyObject
* _argo1
= 0;
4580 char *_kwnames
[] = { "self","font", NULL
};
4583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
4586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4593 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4594 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4600 wxPy_BEGIN_ALLOW_THREADS
;
4601 wxFontList_AddFont(_arg0
,_arg1
);
4603 wxPy_END_ALLOW_THREADS
;
4604 if (PyErr_Occurred()) return NULL
;
4605 } Py_INCREF(Py_None
);
4606 _resultobj
= Py_None
;
4610 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4611 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4612 PyObject
* _resultobj
;
4619 bool _arg5
= (bool ) FALSE
;
4620 char * _arg6
= (char *) NULL
;
4621 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
4622 PyObject
* _argo0
= 0;
4623 int tempbool5
= (int) FALSE
;
4624 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
4628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
4631 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4632 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4637 _arg5
= (bool ) tempbool5
;
4639 wxPy_BEGIN_ALLOW_THREADS
;
4640 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
4642 wxPy_END_ALLOW_THREADS
;
4643 if (PyErr_Occurred()) return NULL
;
4645 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4646 _resultobj
= Py_BuildValue("s",_ptemp
);
4649 _resultobj
= Py_None
;
4654 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4655 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4656 PyObject
* _resultobj
;
4659 PyObject
* _argo0
= 0;
4660 PyObject
* _argo1
= 0;
4661 char *_kwnames
[] = { "self","font", NULL
};
4664 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
4667 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4668 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4669 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4674 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4675 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4681 wxPy_BEGIN_ALLOW_THREADS
;
4682 wxFontList_RemoveFont(_arg0
,_arg1
);
4684 wxPy_END_ALLOW_THREADS
;
4685 if (PyErr_Occurred()) return NULL
;
4686 } Py_INCREF(Py_None
);
4687 _resultobj
= Py_None
;
4691 static void *SwigwxColourTowxObject(void *ptr
) {
4694 src
= (wxColour
*) ptr
;
4695 dest
= (wxObject
*) src
;
4696 return (void *) dest
;
4699 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4700 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4701 PyObject
* _resultobj
;
4703 unsigned char _arg0
= (unsigned char ) 0;
4704 unsigned char _arg1
= (unsigned char ) 0;
4705 unsigned char _arg2
= (unsigned char ) 0;
4706 char *_kwnames
[] = { "red","green","blue", NULL
};
4710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
4713 wxPy_BEGIN_ALLOW_THREADS
;
4714 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
4716 wxPy_END_ALLOW_THREADS
;
4717 if (PyErr_Occurred()) return NULL
;
4719 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4720 _resultobj
= Py_BuildValue("s",_ptemp
);
4723 _resultobj
= Py_None
;
4728 #define delete_wxColour(_swigobj) (delete _swigobj)
4729 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4730 PyObject
* _resultobj
;
4733 PyObject
* _obj0
= 0;
4734 char *_kwnames
[] = { "self", NULL
};
4737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
4741 if (! wxColour_helper(_obj0
, &_arg0
))
4745 wxPy_BEGIN_ALLOW_THREADS
;
4746 delete_wxColour(_arg0
);
4748 wxPy_END_ALLOW_THREADS
;
4749 if (PyErr_Occurred()) return NULL
;
4750 } Py_INCREF(Py_None
);
4751 _resultobj
= Py_None
;
4755 #define wxColour_Red(_swigobj) (_swigobj->Red())
4756 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4757 PyObject
* _resultobj
;
4758 unsigned char _result
;
4761 PyObject
* _obj0
= 0;
4762 char *_kwnames
[] = { "self", NULL
};
4765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
4769 if (! wxColour_helper(_obj0
, &_arg0
))
4773 wxPy_BEGIN_ALLOW_THREADS
;
4774 _result
= (unsigned char )wxColour_Red(_arg0
);
4776 wxPy_END_ALLOW_THREADS
;
4777 if (PyErr_Occurred()) return NULL
;
4778 } _resultobj
= Py_BuildValue("b",_result
);
4782 #define wxColour_Green(_swigobj) (_swigobj->Green())
4783 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4784 PyObject
* _resultobj
;
4785 unsigned char _result
;
4788 PyObject
* _obj0
= 0;
4789 char *_kwnames
[] = { "self", NULL
};
4792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
4796 if (! wxColour_helper(_obj0
, &_arg0
))
4800 wxPy_BEGIN_ALLOW_THREADS
;
4801 _result
= (unsigned char )wxColour_Green(_arg0
);
4803 wxPy_END_ALLOW_THREADS
;
4804 if (PyErr_Occurred()) return NULL
;
4805 } _resultobj
= Py_BuildValue("b",_result
);
4809 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4810 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4811 PyObject
* _resultobj
;
4812 unsigned char _result
;
4815 PyObject
* _obj0
= 0;
4816 char *_kwnames
[] = { "self", NULL
};
4819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
4823 if (! wxColour_helper(_obj0
, &_arg0
))
4827 wxPy_BEGIN_ALLOW_THREADS
;
4828 _result
= (unsigned char )wxColour_Blue(_arg0
);
4830 wxPy_END_ALLOW_THREADS
;
4831 if (PyErr_Occurred()) return NULL
;
4832 } _resultobj
= Py_BuildValue("b",_result
);
4836 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4837 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4838 PyObject
* _resultobj
;
4842 PyObject
* _obj0
= 0;
4843 char *_kwnames
[] = { "self", NULL
};
4846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
4850 if (! wxColour_helper(_obj0
, &_arg0
))
4854 wxPy_BEGIN_ALLOW_THREADS
;
4855 _result
= (bool )wxColour_Ok(_arg0
);
4857 wxPy_END_ALLOW_THREADS
;
4858 if (PyErr_Occurred()) return NULL
;
4859 } _resultobj
= Py_BuildValue("i",_result
);
4863 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4864 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4865 PyObject
* _resultobj
;
4867 unsigned char _arg1
;
4868 unsigned char _arg2
;
4869 unsigned char _arg3
;
4871 PyObject
* _obj0
= 0;
4872 char *_kwnames
[] = { "self","red","green","blue", NULL
};
4875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
4879 if (! wxColour_helper(_obj0
, &_arg0
))
4883 wxPy_BEGIN_ALLOW_THREADS
;
4884 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
4886 wxPy_END_ALLOW_THREADS
;
4887 if (PyErr_Occurred()) return NULL
;
4888 } Py_INCREF(Py_None
);
4889 _resultobj
= Py_None
;
4893 static PyObject
* wxColour_Get(wxColour
*self
) {
4894 PyObject
* rv
= PyTuple_New(3);
4895 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
4896 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
4897 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
4900 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4901 PyObject
* _resultobj
;
4905 PyObject
* _obj0
= 0;
4906 char *_kwnames
[] = { "self", NULL
};
4909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
4913 if (! wxColour_helper(_obj0
, &_arg0
))
4917 wxPy_BEGIN_ALLOW_THREADS
;
4918 _result
= (PyObject
*)wxColour_Get(_arg0
);
4920 wxPy_END_ALLOW_THREADS
;
4921 if (PyErr_Occurred()) return NULL
;
4923 _resultobj
= _result
;
4928 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4929 wxColourDatabase
*src
;
4931 src
= (wxColourDatabase
*) ptr
;
4932 dest
= (wxObject
*) src
;
4933 return (void *) dest
;
4936 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4937 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4938 PyObject
* _resultobj
;
4940 wxColourDatabase
* _arg0
;
4942 PyObject
* _argo0
= 0;
4943 PyObject
* _obj1
= 0;
4944 char *_kwnames
[] = { "self","colour", NULL
};
4948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
4951 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4952 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4958 #if PYTHON_API_VERSION >= 1009
4959 char* tmpPtr
; int tmpSize
;
4960 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4961 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4964 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4966 _arg1
= new wxString(tmpPtr
, tmpSize
);
4968 if (!PyString_Check(_obj1
)) {
4969 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4972 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4976 wxPy_BEGIN_ALLOW_THREADS
;
4977 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
4979 wxPy_END_ALLOW_THREADS
;
4980 if (PyErr_Occurred()) return NULL
;
4982 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4983 _resultobj
= Py_BuildValue("s",_ptemp
);
4986 _resultobj
= Py_None
;
4995 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4996 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4997 PyObject
* _resultobj
;
4999 wxColourDatabase
* _arg0
;
5001 PyObject
* _argo0
= 0;
5003 PyObject
* _obj1
= 0;
5004 char *_kwnames
[] = { "self","colour", NULL
};
5007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
5010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5018 if (! wxColour_helper(_obj1
, &_arg1
))
5022 wxPy_BEGIN_ALLOW_THREADS
;
5023 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
5025 wxPy_END_ALLOW_THREADS
;
5026 if (PyErr_Occurred()) return NULL
;
5028 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5036 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
5037 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
5039 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5040 PyObject
* _resultobj
;
5041 wxColourDatabase
* _arg0
;
5046 PyObject
* _argo0
= 0;
5047 PyObject
* _obj1
= 0;
5048 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
5051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5054 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5055 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5061 #if PYTHON_API_VERSION >= 1009
5062 char* tmpPtr
; int tmpSize
;
5063 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5064 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5067 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5069 _arg1
= new wxString(tmpPtr
, tmpSize
);
5071 if (!PyString_Check(_obj1
)) {
5072 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5075 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5079 wxPy_BEGIN_ALLOW_THREADS
;
5080 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5082 wxPy_END_ALLOW_THREADS
;
5083 if (PyErr_Occurred()) return NULL
;
5084 } Py_INCREF(Py_None
);
5085 _resultobj
= Py_None
;
5093 static void *SwigwxPenTowxGDIObject(void *ptr
) {
5096 src
= (wxPen
*) ptr
;
5097 dest
= (wxGDIObject
*) src
;
5098 return (void *) dest
;
5101 static void *SwigwxPenTowxObject(void *ptr
) {
5104 src
= (wxPen
*) ptr
;
5105 dest
= (wxObject
*) src
;
5106 return (void *) dest
;
5109 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5110 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5111 PyObject
* _resultobj
;
5114 int _arg1
= (int ) 1;
5115 int _arg2
= (int ) wxSOLID
;
5117 PyObject
* _obj0
= 0;
5118 char *_kwnames
[] = { "colour","width","style", NULL
};
5122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5126 if (! wxColour_helper(_obj0
, &_arg0
))
5130 wxPy_BEGIN_ALLOW_THREADS
;
5131 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
5133 wxPy_END_ALLOW_THREADS
;
5134 if (PyErr_Occurred()) return NULL
;
5136 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5137 _resultobj
= Py_BuildValue("s",_ptemp
);
5140 _resultobj
= Py_None
;
5145 #define delete_wxPen(_swigobj) (delete _swigobj)
5146 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5147 PyObject
* _resultobj
;
5149 PyObject
* _argo0
= 0;
5150 char *_kwnames
[] = { "self", NULL
};
5153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
5156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5163 wxPy_BEGIN_ALLOW_THREADS
;
5164 delete_wxPen(_arg0
);
5166 wxPy_END_ALLOW_THREADS
;
5167 if (PyErr_Occurred()) return NULL
;
5168 } Py_INCREF(Py_None
);
5169 _resultobj
= Py_None
;
5173 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5174 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5175 PyObject
* _resultobj
;
5178 PyObject
* _argo0
= 0;
5179 char *_kwnames
[] = { "self", NULL
};
5182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
5185 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5186 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5187 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5192 wxPy_BEGIN_ALLOW_THREADS
;
5193 _result
= (int )wxPen_GetCap(_arg0
);
5195 wxPy_END_ALLOW_THREADS
;
5196 if (PyErr_Occurred()) return NULL
;
5197 } _resultobj
= Py_BuildValue("i",_result
);
5201 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5202 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5203 PyObject
* _resultobj
;
5206 PyObject
* _argo0
= 0;
5207 char *_kwnames
[] = { "self", NULL
};
5211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
5214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5221 wxPy_BEGIN_ALLOW_THREADS
;
5222 _result
= new wxColour (wxPen_GetColour(_arg0
));
5224 wxPy_END_ALLOW_THREADS
;
5225 if (PyErr_Occurred()) return NULL
;
5226 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5227 _resultobj
= Py_BuildValue("s",_ptemp
);
5231 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5232 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5233 PyObject
* _resultobj
;
5236 PyObject
* _argo0
= 0;
5237 char *_kwnames
[] = { "self", NULL
};
5240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
5243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5250 wxPy_BEGIN_ALLOW_THREADS
;
5251 _result
= (int )wxPen_GetJoin(_arg0
);
5253 wxPy_END_ALLOW_THREADS
;
5254 if (PyErr_Occurred()) return NULL
;
5255 } _resultobj
= Py_BuildValue("i",_result
);
5259 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5260 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5261 PyObject
* _resultobj
;
5264 PyObject
* _argo0
= 0;
5265 char *_kwnames
[] = { "self", NULL
};
5268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
5271 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5272 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5278 wxPy_BEGIN_ALLOW_THREADS
;
5279 _result
= (int )wxPen_GetStyle(_arg0
);
5281 wxPy_END_ALLOW_THREADS
;
5282 if (PyErr_Occurred()) return NULL
;
5283 } _resultobj
= Py_BuildValue("i",_result
);
5287 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5288 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5289 PyObject
* _resultobj
;
5292 PyObject
* _argo0
= 0;
5293 char *_kwnames
[] = { "self", NULL
};
5296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
5299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5306 wxPy_BEGIN_ALLOW_THREADS
;
5307 _result
= (int )wxPen_GetWidth(_arg0
);
5309 wxPy_END_ALLOW_THREADS
;
5310 if (PyErr_Occurred()) return NULL
;
5311 } _resultobj
= Py_BuildValue("i",_result
);
5315 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5316 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5317 PyObject
* _resultobj
;
5320 PyObject
* _argo0
= 0;
5321 char *_kwnames
[] = { "self", NULL
};
5324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
5327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5334 wxPy_BEGIN_ALLOW_THREADS
;
5335 _result
= (bool )wxPen_Ok(_arg0
);
5337 wxPy_END_ALLOW_THREADS
;
5338 if (PyErr_Occurred()) return NULL
;
5339 } _resultobj
= Py_BuildValue("i",_result
);
5343 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5344 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5345 PyObject
* _resultobj
;
5348 PyObject
* _argo0
= 0;
5349 char *_kwnames
[] = { "self","cap_style", NULL
};
5352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
5355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5362 wxPy_BEGIN_ALLOW_THREADS
;
5363 wxPen_SetCap(_arg0
,_arg1
);
5365 wxPy_END_ALLOW_THREADS
;
5366 if (PyErr_Occurred()) return NULL
;
5367 } Py_INCREF(Py_None
);
5368 _resultobj
= Py_None
;
5372 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5373 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5374 PyObject
* _resultobj
;
5377 PyObject
* _argo0
= 0;
5379 PyObject
* _obj1
= 0;
5380 char *_kwnames
[] = { "self","colour", NULL
};
5383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
5386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5394 if (! wxColour_helper(_obj1
, &_arg1
))
5398 wxPy_BEGIN_ALLOW_THREADS
;
5399 wxPen_SetColour(_arg0
,*_arg1
);
5401 wxPy_END_ALLOW_THREADS
;
5402 if (PyErr_Occurred()) return NULL
;
5403 } Py_INCREF(Py_None
);
5404 _resultobj
= Py_None
;
5408 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5409 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5410 PyObject
* _resultobj
;
5413 PyObject
* _argo0
= 0;
5414 char *_kwnames
[] = { "self","join_style", NULL
};
5417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
5420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5427 wxPy_BEGIN_ALLOW_THREADS
;
5428 wxPen_SetJoin(_arg0
,_arg1
);
5430 wxPy_END_ALLOW_THREADS
;
5431 if (PyErr_Occurred()) return NULL
;
5432 } Py_INCREF(Py_None
);
5433 _resultobj
= Py_None
;
5437 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5438 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5439 PyObject
* _resultobj
;
5442 PyObject
* _argo0
= 0;
5443 char *_kwnames
[] = { "self","style", NULL
};
5446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5456 wxPy_BEGIN_ALLOW_THREADS
;
5457 wxPen_SetStyle(_arg0
,_arg1
);
5459 wxPy_END_ALLOW_THREADS
;
5460 if (PyErr_Occurred()) return NULL
;
5461 } Py_INCREF(Py_None
);
5462 _resultobj
= Py_None
;
5466 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5467 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5468 PyObject
* _resultobj
;
5471 PyObject
* _argo0
= 0;
5472 char *_kwnames
[] = { "self","width", NULL
};
5475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
5478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5485 wxPy_BEGIN_ALLOW_THREADS
;
5486 wxPen_SetWidth(_arg0
,_arg1
);
5488 wxPy_END_ALLOW_THREADS
;
5489 if (PyErr_Occurred()) return NULL
;
5490 } Py_INCREF(Py_None
);
5491 _resultobj
= Py_None
;
5495 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5496 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5497 PyObject
* _resultobj
;
5501 PyObject
* _argo0
= 0;
5502 PyObject
* _obj2
= 0;
5503 char *_kwnames
[] = { "self","choices", NULL
};
5506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5509 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5510 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5517 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5518 if (_arg2
== NULL
) {
5524 _arg1
= PyList_Size(_obj2
);
5531 wxPy_BEGIN_ALLOW_THREADS
;
5532 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
5534 wxPy_END_ALLOW_THREADS
;
5535 if (PyErr_Occurred()) return NULL
;
5536 } Py_INCREF(Py_None
);
5537 _resultobj
= Py_None
;
5544 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
5545 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5546 PyObject
* _resultobj
;
5549 PyObject
* _argo0
= 0;
5550 char *_kwnames
[] = { "self", NULL
};
5554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
5557 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5558 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
5564 wxPy_BEGIN_ALLOW_THREADS
;
5565 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
5567 wxPy_END_ALLOW_THREADS
;
5568 if (PyErr_Occurred()) return NULL
;
5570 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5571 _resultobj
= Py_BuildValue("s",_ptemp
);
5574 _resultobj
= Py_None
;
5579 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5580 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5581 PyObject
* _resultobj
;
5584 PyObject
* _argo0
= 0;
5585 PyObject
* _argo1
= 0;
5586 char *_kwnames
[] = { "self","stipple", NULL
};
5589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
5599 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5600 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
5606 wxPy_BEGIN_ALLOW_THREADS
;
5607 wxPen_SetStipple(_arg0
,*_arg1
);
5609 wxPy_END_ALLOW_THREADS
;
5610 if (PyErr_Occurred()) return NULL
;
5611 } Py_INCREF(Py_None
);
5612 _resultobj
= Py_None
;
5616 static void *SwigwxPyPenTowxPen(void *ptr
) {
5619 src
= (wxPyPen
*) ptr
;
5620 dest
= (wxPen
*) src
;
5621 return (void *) dest
;
5624 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
5627 src
= (wxPyPen
*) ptr
;
5628 dest
= (wxGDIObject
*) src
;
5629 return (void *) dest
;
5632 static void *SwigwxPyPenTowxObject(void *ptr
) {
5635 src
= (wxPyPen
*) ptr
;
5636 dest
= (wxObject
*) src
;
5637 return (void *) dest
;
5640 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5641 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5642 PyObject
* _resultobj
;
5645 int _arg1
= (int ) 1;
5646 int _arg2
= (int ) wxSOLID
;
5648 PyObject
* _obj0
= 0;
5649 char *_kwnames
[] = { "colour","width","style", NULL
};
5653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5657 if (! wxColour_helper(_obj0
, &_arg0
))
5661 wxPy_BEGIN_ALLOW_THREADS
;
5662 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
5664 wxPy_END_ALLOW_THREADS
;
5665 if (PyErr_Occurred()) return NULL
;
5667 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
5668 _resultobj
= Py_BuildValue("s",_ptemp
);
5671 _resultobj
= Py_None
;
5676 #define delete_wxPyPen(_swigobj) (delete _swigobj)
5677 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5678 PyObject
* _resultobj
;
5680 PyObject
* _argo0
= 0;
5681 char *_kwnames
[] = { "self", NULL
};
5684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
5687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
5694 wxPy_BEGIN_ALLOW_THREADS
;
5695 delete_wxPyPen(_arg0
);
5697 wxPy_END_ALLOW_THREADS
;
5698 if (PyErr_Occurred()) return NULL
;
5699 } Py_INCREF(Py_None
);
5700 _resultobj
= Py_None
;
5704 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5705 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5706 PyObject
* _resultobj
;
5710 PyObject
* _argo0
= 0;
5711 PyObject
* _obj2
= 0;
5712 char *_kwnames
[] = { "self","choices", NULL
};
5715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5726 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5727 if (_arg2
== NULL
) {
5733 _arg1
= PyList_Size(_obj2
);
5740 wxPy_BEGIN_ALLOW_THREADS
;
5741 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
5743 wxPy_END_ALLOW_THREADS
;
5744 if (PyErr_Occurred()) return NULL
;
5745 } Py_INCREF(Py_None
);
5746 _resultobj
= Py_None
;
5753 static void *SwigwxPenListTowxObject(void *ptr
) {
5756 src
= (wxPenList
*) ptr
;
5757 dest
= (wxObject
*) src
;
5758 return (void *) dest
;
5761 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5762 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5763 PyObject
* _resultobj
;
5766 PyObject
* _argo0
= 0;
5767 PyObject
* _argo1
= 0;
5768 char *_kwnames
[] = { "self","pen", NULL
};
5771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
5774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5781 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5782 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5788 wxPy_BEGIN_ALLOW_THREADS
;
5789 wxPenList_AddPen(_arg0
,_arg1
);
5791 wxPy_END_ALLOW_THREADS
;
5792 if (PyErr_Occurred()) return NULL
;
5793 } Py_INCREF(Py_None
);
5794 _resultobj
= Py_None
;
5798 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5799 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5800 PyObject
* _resultobj
;
5806 PyObject
* _argo0
= 0;
5808 PyObject
* _obj1
= 0;
5809 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5813 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5816 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5817 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5824 if (! wxColour_helper(_obj1
, &_arg1
))
5828 wxPy_BEGIN_ALLOW_THREADS
;
5829 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5831 wxPy_END_ALLOW_THREADS
;
5832 if (PyErr_Occurred()) return NULL
;
5834 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5835 _resultobj
= Py_BuildValue("s",_ptemp
);
5838 _resultobj
= Py_None
;
5843 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5844 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5845 PyObject
* _resultobj
;
5848 PyObject
* _argo0
= 0;
5849 PyObject
* _argo1
= 0;
5850 char *_kwnames
[] = { "self","pen", NULL
};
5853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5856 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5857 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5863 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5864 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5870 wxPy_BEGIN_ALLOW_THREADS
;
5871 wxPenList_RemovePen(_arg0
,_arg1
);
5873 wxPy_END_ALLOW_THREADS
;
5874 if (PyErr_Occurred()) return NULL
;
5875 } Py_INCREF(Py_None
);
5876 _resultobj
= Py_None
;
5880 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5883 src
= (wxBrush
*) ptr
;
5884 dest
= (wxGDIObject
*) src
;
5885 return (void *) dest
;
5888 static void *SwigwxBrushTowxObject(void *ptr
) {
5891 src
= (wxBrush
*) ptr
;
5892 dest
= (wxObject
*) src
;
5893 return (void *) dest
;
5896 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5897 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5898 PyObject
* _resultobj
;
5901 int _arg1
= (int ) wxSOLID
;
5903 PyObject
* _obj0
= 0;
5904 char *_kwnames
[] = { "colour","style", NULL
};
5908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5912 if (! wxColour_helper(_obj0
, &_arg0
))
5916 wxPy_BEGIN_ALLOW_THREADS
;
5917 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5919 wxPy_END_ALLOW_THREADS
;
5920 if (PyErr_Occurred()) return NULL
;
5922 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5923 _resultobj
= Py_BuildValue("s",_ptemp
);
5926 _resultobj
= Py_None
;
5931 #define delete_wxBrush(_swigobj) (delete _swigobj)
5932 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5933 PyObject
* _resultobj
;
5935 PyObject
* _argo0
= 0;
5936 char *_kwnames
[] = { "self", NULL
};
5939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5942 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5943 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5944 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5949 wxPy_BEGIN_ALLOW_THREADS
;
5950 delete_wxBrush(_arg0
);
5952 wxPy_END_ALLOW_THREADS
;
5953 if (PyErr_Occurred()) return NULL
;
5954 } Py_INCREF(Py_None
);
5955 _resultobj
= Py_None
;
5959 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5960 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5961 PyObject
* _resultobj
;
5964 PyObject
* _argo0
= 0;
5965 char *_kwnames
[] = { "self", NULL
};
5969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5979 wxPy_BEGIN_ALLOW_THREADS
;
5980 _result
= new wxColour (wxBrush_GetColour(_arg0
));
5982 wxPy_END_ALLOW_THREADS
;
5983 if (PyErr_Occurred()) return NULL
;
5984 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5985 _resultobj
= Py_BuildValue("s",_ptemp
);
5989 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5990 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5991 PyObject
* _resultobj
;
5994 PyObject
* _argo0
= 0;
5995 char *_kwnames
[] = { "self", NULL
};
5999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
6002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6009 wxPy_BEGIN_ALLOW_THREADS
;
6010 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
6012 wxPy_END_ALLOW_THREADS
;
6013 if (PyErr_Occurred()) return NULL
;
6015 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
6016 _resultobj
= Py_BuildValue("s",_ptemp
);
6019 _resultobj
= Py_None
;
6024 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6025 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6026 PyObject
* _resultobj
;
6029 PyObject
* _argo0
= 0;
6030 char *_kwnames
[] = { "self", NULL
};
6033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
6036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6043 wxPy_BEGIN_ALLOW_THREADS
;
6044 _result
= (int )wxBrush_GetStyle(_arg0
);
6046 wxPy_END_ALLOW_THREADS
;
6047 if (PyErr_Occurred()) return NULL
;
6048 } _resultobj
= Py_BuildValue("i",_result
);
6052 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6053 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6054 PyObject
* _resultobj
;
6057 PyObject
* _argo0
= 0;
6058 char *_kwnames
[] = { "self", NULL
};
6061 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
6064 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6065 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6066 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6071 wxPy_BEGIN_ALLOW_THREADS
;
6072 _result
= (bool )wxBrush_Ok(_arg0
);
6074 wxPy_END_ALLOW_THREADS
;
6075 if (PyErr_Occurred()) return NULL
;
6076 } _resultobj
= Py_BuildValue("i",_result
);
6080 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6081 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6082 PyObject
* _resultobj
;
6085 PyObject
* _argo0
= 0;
6087 PyObject
* _obj1
= 0;
6088 char *_kwnames
[] = { "self","colour", NULL
};
6091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
6094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6102 if (! wxColour_helper(_obj1
, &_arg1
))
6106 wxPy_BEGIN_ALLOW_THREADS
;
6107 wxBrush_SetColour(_arg0
,*_arg1
);
6109 wxPy_END_ALLOW_THREADS
;
6110 if (PyErr_Occurred()) return NULL
;
6111 } Py_INCREF(Py_None
);
6112 _resultobj
= Py_None
;
6116 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6117 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6118 PyObject
* _resultobj
;
6121 PyObject
* _argo0
= 0;
6122 PyObject
* _argo1
= 0;
6123 char *_kwnames
[] = { "self","bitmap", NULL
};
6126 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
6129 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6130 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6136 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6137 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6143 wxPy_BEGIN_ALLOW_THREADS
;
6144 wxBrush_SetStipple(_arg0
,*_arg1
);
6146 wxPy_END_ALLOW_THREADS
;
6147 if (PyErr_Occurred()) return NULL
;
6148 } Py_INCREF(Py_None
);
6149 _resultobj
= Py_None
;
6153 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6154 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6155 PyObject
* _resultobj
;
6158 PyObject
* _argo0
= 0;
6159 char *_kwnames
[] = { "self","style", NULL
};
6162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
6165 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6166 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6172 wxPy_BEGIN_ALLOW_THREADS
;
6173 wxBrush_SetStyle(_arg0
,_arg1
);
6175 wxPy_END_ALLOW_THREADS
;
6176 if (PyErr_Occurred()) return NULL
;
6177 } Py_INCREF(Py_None
);
6178 _resultobj
= Py_None
;
6182 static void *SwigwxBrushListTowxObject(void *ptr
) {
6185 src
= (wxBrushList
*) ptr
;
6186 dest
= (wxObject
*) src
;
6187 return (void *) dest
;
6190 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6191 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6192 PyObject
* _resultobj
;
6193 wxBrushList
* _arg0
;
6195 PyObject
* _argo0
= 0;
6196 PyObject
* _argo1
= 0;
6197 char *_kwnames
[] = { "self","brush", NULL
};
6200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
6203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6210 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6211 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6217 wxPy_BEGIN_ALLOW_THREADS
;
6218 wxBrushList_AddBrush(_arg0
,_arg1
);
6220 wxPy_END_ALLOW_THREADS
;
6221 if (PyErr_Occurred()) return NULL
;
6222 } Py_INCREF(Py_None
);
6223 _resultobj
= Py_None
;
6227 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6228 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6229 PyObject
* _resultobj
;
6231 wxBrushList
* _arg0
;
6234 PyObject
* _argo0
= 0;
6236 PyObject
* _obj1
= 0;
6237 char *_kwnames
[] = { "self","colour","style", NULL
};
6241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
6244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6252 if (! wxColour_helper(_obj1
, &_arg1
))
6256 wxPy_BEGIN_ALLOW_THREADS
;
6257 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
6259 wxPy_END_ALLOW_THREADS
;
6260 if (PyErr_Occurred()) return NULL
;
6262 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6263 _resultobj
= Py_BuildValue("s",_ptemp
);
6266 _resultobj
= Py_None
;
6271 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6272 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6273 PyObject
* _resultobj
;
6274 wxBrushList
* _arg0
;
6276 PyObject
* _argo0
= 0;
6277 PyObject
* _argo1
= 0;
6278 char *_kwnames
[] = { "self","brush", NULL
};
6281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
6284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6291 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6292 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6298 wxPy_BEGIN_ALLOW_THREADS
;
6299 wxBrushList_RemoveBrush(_arg0
,_arg1
);
6301 wxPy_END_ALLOW_THREADS
;
6302 if (PyErr_Occurred()) return NULL
;
6303 } Py_INCREF(Py_None
);
6304 _resultobj
= Py_None
;
6308 static void *SwigwxDCTowxObject(void *ptr
) {
6312 dest
= (wxObject
*) src
;
6313 return (void *) dest
;
6316 #define delete_wxDC(_swigobj) (delete _swigobj)
6317 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6318 PyObject
* _resultobj
;
6320 PyObject
* _argo0
= 0;
6321 char *_kwnames
[] = { "self", NULL
};
6324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
6327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6334 wxPy_BEGIN_ALLOW_THREADS
;
6337 wxPy_END_ALLOW_THREADS
;
6338 if (PyErr_Occurred()) return NULL
;
6339 } Py_INCREF(Py_None
);
6340 _resultobj
= Py_None
;
6344 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6345 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6346 PyObject
* _resultobj
;
6348 PyObject
* _argo0
= 0;
6349 char *_kwnames
[] = { "self", NULL
};
6352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
6355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6362 wxPy_BEGIN_ALLOW_THREADS
;
6363 wxDC_BeginDrawing(_arg0
);
6365 wxPy_END_ALLOW_THREADS
;
6366 if (PyErr_Occurred()) return NULL
;
6367 } Py_INCREF(Py_None
);
6368 _resultobj
= Py_None
;
6372 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6373 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6374 PyObject
* _resultobj
;
6384 int _arg8
= (int ) wxCOPY
;
6385 int _arg9
= (int ) FALSE
;
6386 PyObject
* _argo0
= 0;
6387 PyObject
* _argo5
= 0;
6388 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
6391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
6394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6401 if (_argo5
== Py_None
) { _arg5
= NULL
; }
6402 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
6403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6408 wxPy_BEGIN_ALLOW_THREADS
;
6409 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
6411 wxPy_END_ALLOW_THREADS
;
6412 if (PyErr_Occurred()) return NULL
;
6413 } _resultobj
= Py_BuildValue("i",_result
);
6417 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6418 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6419 PyObject
* _resultobj
;
6421 PyObject
* _argo0
= 0;
6422 char *_kwnames
[] = { "self", NULL
};
6425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
6428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6435 wxPy_BEGIN_ALLOW_THREADS
;
6438 wxPy_END_ALLOW_THREADS
;
6439 if (PyErr_Occurred()) return NULL
;
6440 } Py_INCREF(Py_None
);
6441 _resultobj
= Py_None
;
6445 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6446 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6447 PyObject
* _resultobj
;
6451 PyObject
* _argo0
= 0;
6452 char *_kwnames
[] = { "self","x","y", NULL
};
6455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6458 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6459 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6465 wxPy_BEGIN_ALLOW_THREADS
;
6466 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
6468 wxPy_END_ALLOW_THREADS
;
6469 if (PyErr_Occurred()) return NULL
;
6470 } Py_INCREF(Py_None
);
6471 _resultobj
= Py_None
;
6475 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6476 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6477 PyObject
* _resultobj
;
6479 PyObject
* _argo0
= 0;
6480 char *_kwnames
[] = { "self", NULL
};
6483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
6486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6493 wxPy_BEGIN_ALLOW_THREADS
;
6494 wxDC_DestroyClippingRegion(_arg0
);
6496 wxPy_END_ALLOW_THREADS
;
6497 if (PyErr_Occurred()) return NULL
;
6498 } Py_INCREF(Py_None
);
6499 _resultobj
= Py_None
;
6503 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6504 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6505 PyObject
* _resultobj
;
6509 PyObject
* _argo0
= 0;
6510 char *_kwnames
[] = { "self","x", NULL
};
6513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
6516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6523 wxPy_BEGIN_ALLOW_THREADS
;
6524 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
6526 wxPy_END_ALLOW_THREADS
;
6527 if (PyErr_Occurred()) return NULL
;
6528 } _resultobj
= Py_BuildValue("l",_result
);
6532 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6533 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6534 PyObject
* _resultobj
;
6538 PyObject
* _argo0
= 0;
6539 char *_kwnames
[] = { "self","x", NULL
};
6542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
6545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6552 wxPy_BEGIN_ALLOW_THREADS
;
6553 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
6555 wxPy_END_ALLOW_THREADS
;
6556 if (PyErr_Occurred()) return NULL
;
6557 } _resultobj
= Py_BuildValue("l",_result
);
6561 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6562 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6563 PyObject
* _resultobj
;
6567 PyObject
* _argo0
= 0;
6568 char *_kwnames
[] = { "self","y", NULL
};
6571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
6574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6581 wxPy_BEGIN_ALLOW_THREADS
;
6582 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
6584 wxPy_END_ALLOW_THREADS
;
6585 if (PyErr_Occurred()) return NULL
;
6586 } _resultobj
= Py_BuildValue("l",_result
);
6590 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6591 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6592 PyObject
* _resultobj
;
6596 PyObject
* _argo0
= 0;
6597 char *_kwnames
[] = { "self","y", NULL
};
6600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
6603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6610 wxPy_BEGIN_ALLOW_THREADS
;
6611 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
6613 wxPy_END_ALLOW_THREADS
;
6614 if (PyErr_Occurred()) return NULL
;
6615 } _resultobj
= Py_BuildValue("l",_result
);
6619 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6620 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6621 PyObject
* _resultobj
;
6629 PyObject
* _argo0
= 0;
6630 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
6633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6643 wxPy_BEGIN_ALLOW_THREADS
;
6644 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6646 wxPy_END_ALLOW_THREADS
;
6647 if (PyErr_Occurred()) return NULL
;
6648 } Py_INCREF(Py_None
);
6649 _resultobj
= Py_None
;
6653 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6654 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6655 PyObject
* _resultobj
;
6660 PyObject
* _argo0
= 0;
6661 char *_kwnames
[] = { "self","x","y","radius", NULL
};
6664 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
6667 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6668 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6669 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6674 wxPy_BEGIN_ALLOW_THREADS
;
6675 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
6677 wxPy_END_ALLOW_THREADS
;
6678 if (PyErr_Occurred()) return NULL
;
6679 } Py_INCREF(Py_None
);
6680 _resultobj
= Py_None
;
6684 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6685 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6686 PyObject
* _resultobj
;
6692 PyObject
* _argo0
= 0;
6693 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6706 wxPy_BEGIN_ALLOW_THREADS
;
6707 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6709 wxPy_END_ALLOW_THREADS
;
6710 if (PyErr_Occurred()) return NULL
;
6711 } Py_INCREF(Py_None
);
6712 _resultobj
= Py_None
;
6716 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6717 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6718 PyObject
* _resultobj
;
6726 PyObject
* _argo0
= 0;
6727 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
6730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6740 wxPy_BEGIN_ALLOW_THREADS
;
6741 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6743 wxPy_END_ALLOW_THREADS
;
6744 if (PyErr_Occurred()) return NULL
;
6745 } Py_INCREF(Py_None
);
6746 _resultobj
= Py_None
;
6750 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6751 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6752 PyObject
* _resultobj
;
6757 PyObject
* _argo0
= 0;
6758 PyObject
* _argo1
= 0;
6759 char *_kwnames
[] = { "self","icon","x","y", NULL
};
6762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
6765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6772 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6773 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
6774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6779 wxPy_BEGIN_ALLOW_THREADS
;
6780 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
6782 wxPy_END_ALLOW_THREADS
;
6783 if (PyErr_Occurred()) return NULL
;
6784 } Py_INCREF(Py_None
);
6785 _resultobj
= Py_None
;
6789 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6790 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6791 PyObject
* _resultobj
;
6797 PyObject
* _argo0
= 0;
6798 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
6801 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6804 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6805 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6806 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6811 wxPy_BEGIN_ALLOW_THREADS
;
6812 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6814 wxPy_END_ALLOW_THREADS
;
6815 if (PyErr_Occurred()) return NULL
;
6816 } Py_INCREF(Py_None
);
6817 _resultobj
= Py_None
;
6821 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6822 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6823 PyObject
* _resultobj
;
6827 long _arg3
= (long ) 0;
6828 long _arg4
= (long ) 0;
6829 PyObject
* _argo0
= 0;
6831 PyObject
* _obj2
= 0;
6832 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
6835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
6838 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6839 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6846 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6847 if (_arg2
== NULL
) {
6855 wxPy_BEGIN_ALLOW_THREADS
;
6856 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6858 wxPy_END_ALLOW_THREADS
;
6859 if (PyErr_Occurred()) return NULL
;
6860 } Py_INCREF(Py_None
);
6861 _resultobj
= Py_None
;
6868 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6869 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6870 PyObject
* _resultobj
;
6874 long _arg3
= (long ) 0;
6875 long _arg4
= (long ) 0;
6876 int _arg5
= (int ) wxODDEVEN_RULE
;
6877 PyObject
* _argo0
= 0;
6879 PyObject
* _obj2
= 0;
6880 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6894 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6895 if (_arg2
== NULL
) {
6903 wxPy_BEGIN_ALLOW_THREADS
;
6904 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6906 wxPy_END_ALLOW_THREADS
;
6907 if (PyErr_Occurred()) return NULL
;
6908 } Py_INCREF(Py_None
);
6909 _resultobj
= Py_None
;
6916 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6917 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6918 PyObject
* _resultobj
;
6922 PyObject
* _argo0
= 0;
6923 char *_kwnames
[] = { "self","x","y", NULL
};
6926 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6929 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6930 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6931 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6936 wxPy_BEGIN_ALLOW_THREADS
;
6937 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6939 wxPy_END_ALLOW_THREADS
;
6940 if (PyErr_Occurred()) return NULL
;
6941 } Py_INCREF(Py_None
);
6942 _resultobj
= Py_None
;
6946 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6947 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6948 PyObject
* _resultobj
;
6954 PyObject
* _argo0
= 0;
6955 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6961 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6962 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6968 wxPy_BEGIN_ALLOW_THREADS
;
6969 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6971 wxPy_END_ALLOW_THREADS
;
6972 if (PyErr_Occurred()) return NULL
;
6973 } Py_INCREF(Py_None
);
6974 _resultobj
= Py_None
;
6978 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6979 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6980 PyObject
* _resultobj
;
6986 PyObject
* _argo0
= 0;
6987 PyObject
* _obj1
= 0;
6988 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6994 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6995 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
7001 #if PYTHON_API_VERSION >= 1009
7002 char* tmpPtr
; int tmpSize
;
7003 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7004 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7007 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7009 _arg1
= new wxString(tmpPtr
, tmpSize
);
7011 if (!PyString_Check(_obj1
)) {
7012 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7015 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7019 wxPy_BEGIN_ALLOW_THREADS
;
7020 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7022 wxPy_END_ALLOW_THREADS
;
7023 if (PyErr_Occurred()) return NULL
;
7024 } Py_INCREF(Py_None
);
7025 _resultobj
= Py_None
;
7033 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7034 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7035 PyObject
* _resultobj
;
7041 long _arg5
= (long ) 20;
7042 PyObject
* _argo0
= 0;
7043 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
7046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
7049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7056 wxPy_BEGIN_ALLOW_THREADS
;
7057 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7059 wxPy_END_ALLOW_THREADS
;
7060 if (PyErr_Occurred()) return NULL
;
7061 } Py_INCREF(Py_None
);
7062 _resultobj
= Py_None
;
7066 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7067 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7068 PyObject
* _resultobj
;
7072 PyObject
* _argo0
= 0;
7074 PyObject
* _obj2
= 0;
7075 char *_kwnames
[] = { "self","points", NULL
};
7078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
7081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7089 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7090 if (_arg2
== NULL
) {
7098 wxPy_BEGIN_ALLOW_THREADS
;
7099 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
7101 wxPy_END_ALLOW_THREADS
;
7102 if (PyErr_Occurred()) return NULL
;
7103 } Py_INCREF(Py_None
);
7104 _resultobj
= Py_None
;
7111 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7112 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7113 PyObject
* _resultobj
;
7118 PyObject
* _argo0
= 0;
7119 PyObject
* _obj1
= 0;
7120 char *_kwnames
[] = { "self","text","x","y", NULL
};
7123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
7126 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7127 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7133 #if PYTHON_API_VERSION >= 1009
7134 char* tmpPtr
; int tmpSize
;
7135 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7136 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7139 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7141 _arg1
= new wxString(tmpPtr
, tmpSize
);
7143 if (!PyString_Check(_obj1
)) {
7144 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7147 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7151 wxPy_BEGIN_ALLOW_THREADS
;
7152 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
7154 wxPy_END_ALLOW_THREADS
;
7155 if (PyErr_Occurred()) return NULL
;
7156 } Py_INCREF(Py_None
);
7157 _resultobj
= Py_None
;
7165 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7166 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7167 PyObject
* _resultobj
;
7169 PyObject
* _argo0
= 0;
7170 char *_kwnames
[] = { "self", NULL
};
7173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
7176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7183 wxPy_BEGIN_ALLOW_THREADS
;
7186 wxPy_END_ALLOW_THREADS
;
7187 if (PyErr_Occurred()) return NULL
;
7188 } Py_INCREF(Py_None
);
7189 _resultobj
= Py_None
;
7193 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7194 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7195 PyObject
* _resultobj
;
7197 PyObject
* _argo0
= 0;
7198 char *_kwnames
[] = { "self", NULL
};
7201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
7204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7211 wxPy_BEGIN_ALLOW_THREADS
;
7212 wxDC_EndDrawing(_arg0
);
7214 wxPy_END_ALLOW_THREADS
;
7215 if (PyErr_Occurred()) return NULL
;
7216 } Py_INCREF(Py_None
);
7217 _resultobj
= Py_None
;
7221 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7222 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7223 PyObject
* _resultobj
;
7225 PyObject
* _argo0
= 0;
7226 char *_kwnames
[] = { "self", NULL
};
7229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
7232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7239 wxPy_BEGIN_ALLOW_THREADS
;
7240 wxDC_EndPage(_arg0
);
7242 wxPy_END_ALLOW_THREADS
;
7243 if (PyErr_Occurred()) return NULL
;
7244 } Py_INCREF(Py_None
);
7245 _resultobj
= Py_None
;
7249 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7250 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7251 PyObject
* _resultobj
;
7256 int _arg4
= (int ) wxFLOOD_SURFACE
;
7257 PyObject
* _argo0
= 0;
7259 PyObject
* _obj3
= 0;
7260 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
7263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
7266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7274 if (! wxColour_helper(_obj3
, &_arg3
))
7278 wxPy_BEGIN_ALLOW_THREADS
;
7279 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
7281 wxPy_END_ALLOW_THREADS
;
7282 if (PyErr_Occurred()) return NULL
;
7283 } Py_INCREF(Py_None
);
7284 _resultobj
= Py_None
;
7288 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7289 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7290 PyObject
* _resultobj
;
7293 PyObject
* _argo0
= 0;
7294 char *_kwnames
[] = { "self", NULL
};
7298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
7301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7308 wxPy_BEGIN_ALLOW_THREADS
;
7309 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
7310 _result
= (wxBrush
*) &_result_ref
;
7312 wxPy_END_ALLOW_THREADS
;
7313 if (PyErr_Occurred()) return NULL
;
7315 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
7316 _resultobj
= Py_BuildValue("s",_ptemp
);
7319 _resultobj
= Py_None
;
7324 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7325 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7326 PyObject
* _resultobj
;
7329 PyObject
* _argo0
= 0;
7330 char *_kwnames
[] = { "self", NULL
};
7334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
7337 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7338 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7339 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7344 wxPy_BEGIN_ALLOW_THREADS
;
7345 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
7346 _result
= (wxBrush
*) &_result_ref
;
7348 wxPy_END_ALLOW_THREADS
;
7349 if (PyErr_Occurred()) return NULL
;
7351 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
7352 _resultobj
= Py_BuildValue("s",_ptemp
);
7355 _resultobj
= Py_None
;
7360 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7361 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7362 PyObject
* _resultobj
;
7365 PyObject
* _argo0
= 0;
7366 char *_kwnames
[] = { "self", NULL
};
7369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
7372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7379 wxPy_BEGIN_ALLOW_THREADS
;
7380 _result
= (long )wxDC_GetCharHeight(_arg0
);
7382 wxPy_END_ALLOW_THREADS
;
7383 if (PyErr_Occurred()) return NULL
;
7384 } _resultobj
= Py_BuildValue("l",_result
);
7388 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7389 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7390 PyObject
* _resultobj
;
7393 PyObject
* _argo0
= 0;
7394 char *_kwnames
[] = { "self", NULL
};
7397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
7400 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7401 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7407 wxPy_BEGIN_ALLOW_THREADS
;
7408 _result
= (long )wxDC_GetCharWidth(_arg0
);
7410 wxPy_END_ALLOW_THREADS
;
7411 if (PyErr_Occurred()) return NULL
;
7412 } _resultobj
= Py_BuildValue("l",_result
);
7416 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7417 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7418 PyObject
* _resultobj
;
7428 PyObject
* _argo0
= 0;
7429 char *_kwnames
[] = { "self", NULL
};
7444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
7447 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7448 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7454 wxPy_BEGIN_ALLOW_THREADS
;
7455 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7457 wxPy_END_ALLOW_THREADS
;
7458 if (PyErr_Occurred()) return NULL
;
7459 } Py_INCREF(Py_None
);
7460 _resultobj
= Py_None
;
7463 o
= PyInt_FromLong((long) (*_arg1
));
7464 _resultobj
= t_output_helper(_resultobj
, o
);
7468 o
= PyInt_FromLong((long) (*_arg2
));
7469 _resultobj
= t_output_helper(_resultobj
, o
);
7473 o
= PyInt_FromLong((long) (*_arg3
));
7474 _resultobj
= t_output_helper(_resultobj
, o
);
7478 o
= PyInt_FromLong((long) (*_arg4
));
7479 _resultobj
= t_output_helper(_resultobj
, o
);
7484 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7485 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7486 PyObject
* _resultobj
;
7489 PyObject
* _argo0
= 0;
7490 char *_kwnames
[] = { "self", NULL
};
7494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
7497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7504 wxPy_BEGIN_ALLOW_THREADS
;
7505 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
7506 _result
= (wxFont
*) &_result_ref
;
7508 wxPy_END_ALLOW_THREADS
;
7509 if (PyErr_Occurred()) return NULL
;
7511 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
7512 _resultobj
= Py_BuildValue("s",_ptemp
);
7515 _resultobj
= Py_None
;
7520 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7521 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7522 PyObject
* _resultobj
;
7525 PyObject
* _argo0
= 0;
7526 char *_kwnames
[] = { "self", NULL
};
7529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
7532 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7533 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7534 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7539 wxPy_BEGIN_ALLOW_THREADS
;
7540 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
7542 wxPy_END_ALLOW_THREADS
;
7543 if (PyErr_Occurred()) return NULL
;
7544 } _resultobj
= Py_BuildValue("i",_result
);
7548 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7549 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7550 PyObject
* _resultobj
;
7556 PyObject
* _argo0
= 0;
7557 char *_kwnames
[] = { "self", NULL
};
7566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
7569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7576 wxPy_BEGIN_ALLOW_THREADS
;
7577 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
7579 wxPy_END_ALLOW_THREADS
;
7580 if (PyErr_Occurred()) return NULL
;
7581 } Py_INCREF(Py_None
);
7582 _resultobj
= Py_None
;
7585 o
= PyFloat_FromDouble((double) (*_arg1
));
7586 _resultobj
= t_output_helper(_resultobj
, o
);
7590 o
= PyFloat_FromDouble((double) (*_arg2
));
7591 _resultobj
= t_output_helper(_resultobj
, o
);
7596 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7597 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7598 PyObject
* _resultobj
;
7601 PyObject
* _argo0
= 0;
7602 char *_kwnames
[] = { "self", NULL
};
7605 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
7608 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7609 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7615 wxPy_BEGIN_ALLOW_THREADS
;
7616 _result
= (int )wxDC_GetMapMode(_arg0
);
7618 wxPy_END_ALLOW_THREADS
;
7619 if (PyErr_Occurred()) return NULL
;
7620 } _resultobj
= Py_BuildValue("i",_result
);
7624 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7625 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7626 PyObject
* _resultobj
;
7629 PyObject
* _argo0
= 0;
7630 char *_kwnames
[] = { "self", NULL
};
7633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
7636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7643 wxPy_BEGIN_ALLOW_THREADS
;
7644 _result
= (bool )wxDC_GetOptimization(_arg0
);
7646 wxPy_END_ALLOW_THREADS
;
7647 if (PyErr_Occurred()) return NULL
;
7648 } _resultobj
= Py_BuildValue("i",_result
);
7652 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7653 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7654 PyObject
* _resultobj
;
7657 PyObject
* _argo0
= 0;
7658 char *_kwnames
[] = { "self", NULL
};
7662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
7665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7672 wxPy_BEGIN_ALLOW_THREADS
;
7673 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
7674 _result
= (wxPen
*) &_result_ref
;
7676 wxPy_END_ALLOW_THREADS
;
7677 if (PyErr_Occurred()) return NULL
;
7679 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
7680 _resultobj
= Py_BuildValue("s",_ptemp
);
7683 _resultobj
= Py_None
;
7688 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
7689 wxColour
* wc
= new wxColour();
7690 self
->GetPixel(x
, y
, wc
);
7693 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7694 PyObject
* _resultobj
;
7699 PyObject
* _argo0
= 0;
7700 char *_kwnames
[] = { "self","x","y", NULL
};
7704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
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_GetPixel. Expected _wxDC_p.");
7714 wxPy_BEGIN_ALLOW_THREADS
;
7715 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
7717 wxPy_END_ALLOW_THREADS
;
7718 if (PyErr_Occurred()) return NULL
;
7720 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7721 _resultobj
= Py_BuildValue("s",_ptemp
);
7724 _resultobj
= Py_None
;
7729 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7730 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7731 PyObject
* _resultobj
;
7737 PyObject
* _argo0
= 0;
7738 char *_kwnames
[] = { "self", NULL
};
7747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
7750 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7751 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7757 wxPy_BEGIN_ALLOW_THREADS
;
7758 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
7760 wxPy_END_ALLOW_THREADS
;
7761 if (PyErr_Occurred()) return NULL
;
7762 } Py_INCREF(Py_None
);
7763 _resultobj
= Py_None
;
7766 o
= PyInt_FromLong((long) (*_arg1
));
7767 _resultobj
= t_output_helper(_resultobj
, o
);
7771 o
= PyInt_FromLong((long) (*_arg2
));
7772 _resultobj
= t_output_helper(_resultobj
, o
);
7777 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7778 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7779 PyObject
* _resultobj
;
7782 PyObject
* _argo0
= 0;
7783 char *_kwnames
[] = { "self", NULL
};
7787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
7790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7797 wxPy_BEGIN_ALLOW_THREADS
;
7798 _result
= new wxSize (wxDC_GetSize(_arg0
));
7800 wxPy_END_ALLOW_THREADS
;
7801 if (PyErr_Occurred()) return NULL
;
7802 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7803 _resultobj
= Py_BuildValue("s",_ptemp
);
7807 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7808 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7809 PyObject
* _resultobj
;
7812 PyObject
* _argo0
= 0;
7813 char *_kwnames
[] = { "self", NULL
};
7817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7827 wxPy_BEGIN_ALLOW_THREADS
;
7828 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
7830 wxPy_END_ALLOW_THREADS
;
7831 if (PyErr_Occurred()) return NULL
;
7832 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7833 _resultobj
= Py_BuildValue("s",_ptemp
);
7837 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7838 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7839 PyObject
* _resultobj
;
7842 PyObject
* _argo0
= 0;
7843 char *_kwnames
[] = { "self", NULL
};
7847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
7850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7857 wxPy_BEGIN_ALLOW_THREADS
;
7858 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
7860 wxPy_END_ALLOW_THREADS
;
7861 if (PyErr_Occurred()) return NULL
;
7862 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7863 _resultobj
= Py_BuildValue("s",_ptemp
);
7867 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7868 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7869 PyObject
* _resultobj
;
7876 PyObject
* _argo0
= 0;
7877 PyObject
* _obj1
= 0;
7878 char *_kwnames
[] = { "self","string", NULL
};
7887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7897 #if PYTHON_API_VERSION >= 1009
7898 char* tmpPtr
; int tmpSize
;
7899 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7900 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7903 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7905 _arg1
= new wxString(tmpPtr
, tmpSize
);
7907 if (!PyString_Check(_obj1
)) {
7908 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7911 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7915 wxPy_BEGIN_ALLOW_THREADS
;
7916 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7918 wxPy_END_ALLOW_THREADS
;
7919 if (PyErr_Occurred()) return NULL
;
7920 } Py_INCREF(Py_None
);
7921 _resultobj
= Py_None
;
7924 o
= PyInt_FromLong((long) (*_arg2
));
7925 _resultobj
= t_output_helper(_resultobj
, o
);
7929 o
= PyInt_FromLong((long) (*_arg3
));
7930 _resultobj
= t_output_helper(_resultobj
, o
);
7939 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7940 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7941 PyObject
* _resultobj
;
7952 wxFont
* _arg6
= (wxFont
*) NULL
;
7953 PyObject
* _argo0
= 0;
7954 PyObject
* _obj1
= 0;
7955 PyObject
* _argo6
= 0;
7956 char *_kwnames
[] = { "self","string","font", NULL
};
7971 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7974 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7975 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7976 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7981 #if PYTHON_API_VERSION >= 1009
7982 char* tmpPtr
; int tmpSize
;
7983 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7984 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7987 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7989 _arg1
= new wxString(tmpPtr
, tmpSize
);
7991 if (!PyString_Check(_obj1
)) {
7992 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7995 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7999 if (_argo6
== Py_None
) { _arg6
= NULL
; }
8000 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
8001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8006 wxPy_BEGIN_ALLOW_THREADS
;
8007 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8009 wxPy_END_ALLOW_THREADS
;
8010 if (PyErr_Occurred()) return NULL
;
8011 } Py_INCREF(Py_None
);
8012 _resultobj
= Py_None
;
8015 o
= PyInt_FromLong((long) (*_arg2
));
8016 _resultobj
= t_output_helper(_resultobj
, o
);
8020 o
= PyInt_FromLong((long) (*_arg3
));
8021 _resultobj
= t_output_helper(_resultobj
, o
);
8025 o
= PyInt_FromLong((long) (*_arg4
));
8026 _resultobj
= t_output_helper(_resultobj
, o
);
8030 o
= PyInt_FromLong((long) (*_arg5
));
8031 _resultobj
= t_output_helper(_resultobj
, o
);
8040 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8041 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8042 PyObject
* _resultobj
;
8045 PyObject
* _argo0
= 0;
8046 char *_kwnames
[] = { "self", NULL
};
8050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
8053 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8054 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8060 wxPy_BEGIN_ALLOW_THREADS
;
8061 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
8063 wxPy_END_ALLOW_THREADS
;
8064 if (PyErr_Occurred()) return NULL
;
8065 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8066 _resultobj
= Py_BuildValue("s",_ptemp
);
8070 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8071 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8072 PyObject
* _resultobj
;
8078 PyObject
* _argo0
= 0;
8079 char *_kwnames
[] = { "self", NULL
};
8088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
8091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8098 wxPy_BEGIN_ALLOW_THREADS
;
8099 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
8101 wxPy_END_ALLOW_THREADS
;
8102 if (PyErr_Occurred()) return NULL
;
8103 } Py_INCREF(Py_None
);
8104 _resultobj
= Py_None
;
8107 o
= PyFloat_FromDouble((double) (*_arg1
));
8108 _resultobj
= t_output_helper(_resultobj
, o
);
8112 o
= PyFloat_FromDouble((double) (*_arg2
));
8113 _resultobj
= t_output_helper(_resultobj
, o
);
8118 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8119 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8120 PyObject
* _resultobj
;
8124 PyObject
* _argo0
= 0;
8125 char *_kwnames
[] = { "self","x", NULL
};
8128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
8131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8138 wxPy_BEGIN_ALLOW_THREADS
;
8139 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
8141 wxPy_END_ALLOW_THREADS
;
8142 if (PyErr_Occurred()) return NULL
;
8143 } _resultobj
= Py_BuildValue("l",_result
);
8147 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8148 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8149 PyObject
* _resultobj
;
8153 PyObject
* _argo0
= 0;
8154 char *_kwnames
[] = { "self","x", NULL
};
8157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
8160 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8161 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8162 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8167 wxPy_BEGIN_ALLOW_THREADS
;
8168 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
8170 wxPy_END_ALLOW_THREADS
;
8171 if (PyErr_Occurred()) return NULL
;
8172 } _resultobj
= Py_BuildValue("l",_result
);
8176 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8177 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8178 PyObject
* _resultobj
;
8182 PyObject
* _argo0
= 0;
8183 char *_kwnames
[] = { "self","y", NULL
};
8186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
8189 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8190 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8196 wxPy_BEGIN_ALLOW_THREADS
;
8197 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
8199 wxPy_END_ALLOW_THREADS
;
8200 if (PyErr_Occurred()) return NULL
;
8201 } _resultobj
= Py_BuildValue("l",_result
);
8205 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8206 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8207 PyObject
* _resultobj
;
8211 PyObject
* _argo0
= 0;
8212 char *_kwnames
[] = { "self","y", NULL
};
8215 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
8218 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8219 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8220 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8225 wxPy_BEGIN_ALLOW_THREADS
;
8226 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
8228 wxPy_END_ALLOW_THREADS
;
8229 if (PyErr_Occurred()) return NULL
;
8230 } _resultobj
= Py_BuildValue("l",_result
);
8234 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8235 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8236 PyObject
* _resultobj
;
8239 PyObject
* _argo0
= 0;
8240 char *_kwnames
[] = { "self", NULL
};
8243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
8246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8253 wxPy_BEGIN_ALLOW_THREADS
;
8254 _result
= (long )wxDC_MaxX(_arg0
);
8256 wxPy_END_ALLOW_THREADS
;
8257 if (PyErr_Occurred()) return NULL
;
8258 } _resultobj
= Py_BuildValue("l",_result
);
8262 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8263 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8264 PyObject
* _resultobj
;
8267 PyObject
* _argo0
= 0;
8268 char *_kwnames
[] = { "self", NULL
};
8271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
8274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8281 wxPy_BEGIN_ALLOW_THREADS
;
8282 _result
= (long )wxDC_MaxY(_arg0
);
8284 wxPy_END_ALLOW_THREADS
;
8285 if (PyErr_Occurred()) return NULL
;
8286 } _resultobj
= Py_BuildValue("l",_result
);
8290 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
8291 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8292 PyObject
* _resultobj
;
8295 PyObject
* _argo0
= 0;
8296 char *_kwnames
[] = { "self", NULL
};
8299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
8302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8309 wxPy_BEGIN_ALLOW_THREADS
;
8310 _result
= (long )wxDC_MinX(_arg0
);
8312 wxPy_END_ALLOW_THREADS
;
8313 if (PyErr_Occurred()) return NULL
;
8314 } _resultobj
= Py_BuildValue("l",_result
);
8318 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8319 static PyObject
*_wrap_wxDC_MinY(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_MinY",_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_MinY. Expected _wxDC_p.");
8337 wxPy_BEGIN_ALLOW_THREADS
;
8338 _result
= (long )wxDC_MinY(_arg0
);
8340 wxPy_END_ALLOW_THREADS
;
8341 if (PyErr_Occurred()) return NULL
;
8342 } _resultobj
= Py_BuildValue("l",_result
);
8346 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8347 static PyObject
*_wrap_wxDC_Ok(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_Ok",_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_Ok. Expected _wxDC_p.");
8365 wxPy_BEGIN_ALLOW_THREADS
;
8366 _result
= (bool )wxDC_Ok(_arg0
);
8368 wxPy_END_ALLOW_THREADS
;
8369 if (PyErr_Occurred()) return NULL
;
8370 } _resultobj
= Py_BuildValue("i",_result
);
8374 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8375 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8376 PyObject
* _resultobj
;
8380 PyObject
* _argo0
= 0;
8381 char *_kwnames
[] = { "self","x","y", NULL
};
8384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8394 wxPy_BEGIN_ALLOW_THREADS
;
8395 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8397 wxPy_END_ALLOW_THREADS
;
8398 if (PyErr_Occurred()) return NULL
;
8399 } Py_INCREF(Py_None
);
8400 _resultobj
= Py_None
;
8404 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8405 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8406 PyObject
* _resultobj
;
8409 PyObject
* _argo0
= 0;
8410 PyObject
* _argo1
= 0;
8411 char *_kwnames
[] = { "self","brush", NULL
};
8414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
8417 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8418 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8424 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8425 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8431 wxPy_BEGIN_ALLOW_THREADS
;
8432 wxDC_SetBackground(_arg0
,*_arg1
);
8434 wxPy_END_ALLOW_THREADS
;
8435 if (PyErr_Occurred()) return NULL
;
8436 } Py_INCREF(Py_None
);
8437 _resultobj
= Py_None
;
8441 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8442 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8443 PyObject
* _resultobj
;
8446 PyObject
* _argo0
= 0;
8447 char *_kwnames
[] = { "self","mode", NULL
};
8450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
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_SetBackgroundMode. Expected _wxDC_p.");
8460 wxPy_BEGIN_ALLOW_THREADS
;
8461 wxDC_SetBackgroundMode(_arg0
,_arg1
);
8463 wxPy_END_ALLOW_THREADS
;
8464 if (PyErr_Occurred()) return NULL
;
8465 } Py_INCREF(Py_None
);
8466 _resultobj
= Py_None
;
8470 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8471 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8472 PyObject
* _resultobj
;
8478 PyObject
* _argo0
= 0;
8479 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
8482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
8485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8492 wxPy_BEGIN_ALLOW_THREADS
;
8493 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8495 wxPy_END_ALLOW_THREADS
;
8496 if (PyErr_Occurred()) return NULL
;
8497 } Py_INCREF(Py_None
);
8498 _resultobj
= Py_None
;
8502 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8503 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8504 PyObject
* _resultobj
;
8507 PyObject
* _argo0
= 0;
8508 PyObject
* _argo1
= 0;
8509 char *_kwnames
[] = { "self","region", NULL
};
8512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
8515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8522 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8523 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
8524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8529 wxPy_BEGIN_ALLOW_THREADS
;
8530 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
8532 wxPy_END_ALLOW_THREADS
;
8533 if (PyErr_Occurred()) return NULL
;
8534 } Py_INCREF(Py_None
);
8535 _resultobj
= Py_None
;
8539 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8540 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8541 PyObject
* _resultobj
;
8544 PyObject
* _argo0
= 0;
8545 PyObject
* _argo1
= 0;
8546 char *_kwnames
[] = { "self","colourMap", NULL
};
8549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
8552 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8553 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8559 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8560 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
8561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8566 wxPy_BEGIN_ALLOW_THREADS
;
8567 wxDC_SetPalette(_arg0
,*_arg1
);
8569 wxPy_END_ALLOW_THREADS
;
8570 if (PyErr_Occurred()) return NULL
;
8571 } Py_INCREF(Py_None
);
8572 _resultobj
= Py_None
;
8576 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8577 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8578 PyObject
* _resultobj
;
8581 PyObject
* _argo0
= 0;
8582 PyObject
* _argo1
= 0;
8583 char *_kwnames
[] = { "self","brush", NULL
};
8586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
8589 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8590 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8591 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8596 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8597 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8603 wxPy_BEGIN_ALLOW_THREADS
;
8604 wxDC_SetBrush(_arg0
,*_arg1
);
8606 wxPy_END_ALLOW_THREADS
;
8607 if (PyErr_Occurred()) return NULL
;
8608 } Py_INCREF(Py_None
);
8609 _resultobj
= Py_None
;
8613 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8614 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8615 PyObject
* _resultobj
;
8618 PyObject
* _argo0
= 0;
8619 PyObject
* _argo1
= 0;
8620 char *_kwnames
[] = { "self","font", NULL
};
8623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
8626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8633 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8634 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
8635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8640 wxPy_BEGIN_ALLOW_THREADS
;
8641 wxDC_SetFont(_arg0
,*_arg1
);
8643 wxPy_END_ALLOW_THREADS
;
8644 if (PyErr_Occurred()) return NULL
;
8645 } Py_INCREF(Py_None
);
8646 _resultobj
= Py_None
;
8650 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8651 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8652 PyObject
* _resultobj
;
8655 PyObject
* _argo0
= 0;
8656 char *_kwnames
[] = { "self","function", NULL
};
8659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
8662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8669 wxPy_BEGIN_ALLOW_THREADS
;
8670 wxDC_SetLogicalFunction(_arg0
,_arg1
);
8672 wxPy_END_ALLOW_THREADS
;
8673 if (PyErr_Occurred()) return NULL
;
8674 } Py_INCREF(Py_None
);
8675 _resultobj
= Py_None
;
8679 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8680 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8681 PyObject
* _resultobj
;
8685 PyObject
* _argo0
= 0;
8686 char *_kwnames
[] = { "self","x","y", NULL
};
8689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8699 wxPy_BEGIN_ALLOW_THREADS
;
8700 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
8702 wxPy_END_ALLOW_THREADS
;
8703 if (PyErr_Occurred()) return NULL
;
8704 } Py_INCREF(Py_None
);
8705 _resultobj
= Py_None
;
8709 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8710 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8711 PyObject
* _resultobj
;
8714 PyObject
* _argo0
= 0;
8715 char *_kwnames
[] = { "self","mode", NULL
};
8718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
8721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8728 wxPy_BEGIN_ALLOW_THREADS
;
8729 wxDC_SetMapMode(_arg0
,_arg1
);
8731 wxPy_END_ALLOW_THREADS
;
8732 if (PyErr_Occurred()) return NULL
;
8733 } Py_INCREF(Py_None
);
8734 _resultobj
= Py_None
;
8738 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8739 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8740 PyObject
* _resultobj
;
8743 PyObject
* _argo0
= 0;
8745 char *_kwnames
[] = { "self","optimize", NULL
};
8748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
8751 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8752 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8757 _arg1
= (bool ) tempbool1
;
8759 wxPy_BEGIN_ALLOW_THREADS
;
8760 wxDC_SetOptimization(_arg0
,_arg1
);
8762 wxPy_END_ALLOW_THREADS
;
8763 if (PyErr_Occurred()) return NULL
;
8764 } Py_INCREF(Py_None
);
8765 _resultobj
= Py_None
;
8769 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8770 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8771 PyObject
* _resultobj
;
8774 PyObject
* _argo0
= 0;
8775 PyObject
* _argo1
= 0;
8776 char *_kwnames
[] = { "self","pen", NULL
};
8779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
8782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8789 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8790 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
8791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8796 wxPy_BEGIN_ALLOW_THREADS
;
8797 wxDC_SetPen(_arg0
,*_arg1
);
8799 wxPy_END_ALLOW_THREADS
;
8800 if (PyErr_Occurred()) return NULL
;
8801 } Py_INCREF(Py_None
);
8802 _resultobj
= Py_None
;
8806 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8807 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8808 PyObject
* _resultobj
;
8811 PyObject
* _argo0
= 0;
8813 PyObject
* _obj1
= 0;
8814 char *_kwnames
[] = { "self","colour", NULL
};
8817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
8820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8828 if (! wxColour_helper(_obj1
, &_arg1
))
8832 wxPy_BEGIN_ALLOW_THREADS
;
8833 wxDC_SetTextBackground(_arg0
,*_arg1
);
8835 wxPy_END_ALLOW_THREADS
;
8836 if (PyErr_Occurred()) return NULL
;
8837 } Py_INCREF(Py_None
);
8838 _resultobj
= Py_None
;
8842 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8843 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8844 PyObject
* _resultobj
;
8847 PyObject
* _argo0
= 0;
8849 PyObject
* _obj1
= 0;
8850 char *_kwnames
[] = { "self","colour", NULL
};
8853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
8856 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8857 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8864 if (! wxColour_helper(_obj1
, &_arg1
))
8868 wxPy_BEGIN_ALLOW_THREADS
;
8869 wxDC_SetTextForeground(_arg0
,*_arg1
);
8871 wxPy_END_ALLOW_THREADS
;
8872 if (PyErr_Occurred()) return NULL
;
8873 } Py_INCREF(Py_None
);
8874 _resultobj
= Py_None
;
8878 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8879 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8880 PyObject
* _resultobj
;
8884 PyObject
* _argo0
= 0;
8885 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8898 wxPy_BEGIN_ALLOW_THREADS
;
8899 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8901 wxPy_END_ALLOW_THREADS
;
8902 if (PyErr_Occurred()) return NULL
;
8903 } Py_INCREF(Py_None
);
8904 _resultobj
= Py_None
;
8908 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8909 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8910 PyObject
* _resultobj
;
8914 PyObject
* _argo0
= 0;
8915 PyObject
* _obj1
= 0;
8916 char *_kwnames
[] = { "self","message", NULL
};
8919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8929 #if PYTHON_API_VERSION >= 1009
8930 char* tmpPtr
; int tmpSize
;
8931 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8932 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8935 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8937 _arg1
= new wxString(tmpPtr
, tmpSize
);
8939 if (!PyString_Check(_obj1
)) {
8940 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8943 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8947 wxPy_BEGIN_ALLOW_THREADS
;
8948 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8950 wxPy_END_ALLOW_THREADS
;
8951 if (PyErr_Occurred()) return NULL
;
8952 } _resultobj
= Py_BuildValue("i",_result
);
8960 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8961 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8962 PyObject
* _resultobj
;
8964 PyObject
* _argo0
= 0;
8965 char *_kwnames
[] = { "self", NULL
};
8968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8978 wxPy_BEGIN_ALLOW_THREADS
;
8979 wxDC_StartPage(_arg0
);
8981 wxPy_END_ALLOW_THREADS
;
8982 if (PyErr_Occurred()) return NULL
;
8983 } Py_INCREF(Py_None
);
8984 _resultobj
= Py_None
;
8988 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8989 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8990 PyObject
* _resultobj
;
8995 int _arg4
= (int ) FALSE
;
8996 PyObject
* _argo0
= 0;
8997 PyObject
* _argo1
= 0;
8998 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
9001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
9004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9011 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9012 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9018 wxPy_BEGIN_ALLOW_THREADS
;
9019 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
9021 wxPy_END_ALLOW_THREADS
;
9022 if (PyErr_Occurred()) return NULL
;
9023 } Py_INCREF(Py_None
);
9024 _resultobj
= Py_None
;
9028 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9029 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9030 PyObject
* _resultobj
;
9033 PyObject
* _argo0
= 0;
9034 char *_kwnames
[] = { "self", NULL
};
9037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
9040 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9041 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9042 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9047 wxPy_BEGIN_ALLOW_THREADS
;
9048 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
9050 wxPy_END_ALLOW_THREADS
;
9051 if (PyErr_Occurred()) return NULL
;
9052 } _resultobj
= Py_BuildValue("i",_result
);
9056 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9057 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9058 PyObject
* _resultobj
;
9061 PyObject
* _argo0
= 0;
9062 char *_kwnames
[] = { "self", NULL
};
9065 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
9068 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9069 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9070 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9075 wxPy_BEGIN_ALLOW_THREADS
;
9076 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
9078 wxPy_END_ALLOW_THREADS
;
9079 if (PyErr_Occurred()) return NULL
;
9080 } _resultobj
= Py_BuildValue("i",_result
);
9084 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9085 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9086 PyObject
* _resultobj
;
9089 PyObject
* _argo0
= 0;
9090 char *_kwnames
[] = { "self", NULL
};
9093 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
9096 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9097 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9098 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9103 wxPy_BEGIN_ALLOW_THREADS
;
9104 _result
= (int )wxDC_GetDepth(_arg0
);
9106 wxPy_END_ALLOW_THREADS
;
9107 if (PyErr_Occurred()) return NULL
;
9108 } _resultobj
= Py_BuildValue("i",_result
);
9112 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9113 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9114 PyObject
* _resultobj
;
9117 PyObject
* _argo0
= 0;
9118 char *_kwnames
[] = { "self", NULL
};
9122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
9125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9132 wxPy_BEGIN_ALLOW_THREADS
;
9133 _result
= new wxSize (wxDC_GetPPI(_arg0
));
9135 wxPy_END_ALLOW_THREADS
;
9136 if (PyErr_Occurred()) return NULL
;
9137 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
9138 _resultobj
= Py_BuildValue("s",_ptemp
);
9142 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9143 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9144 PyObject
* _resultobj
;
9150 PyObject
* _argo0
= 0;
9151 char *_kwnames
[] = { "self", NULL
};
9160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
9163 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9164 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9170 wxPy_BEGIN_ALLOW_THREADS
;
9171 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9173 wxPy_END_ALLOW_THREADS
;
9174 if (PyErr_Occurred()) return NULL
;
9175 } Py_INCREF(Py_None
);
9176 _resultobj
= Py_None
;
9179 o
= PyInt_FromLong((long) (*_arg1
));
9180 _resultobj
= t_output_helper(_resultobj
, o
);
9184 o
= PyInt_FromLong((long) (*_arg2
));
9185 _resultobj
= t_output_helper(_resultobj
, o
);
9190 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9191 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9192 PyObject
* _resultobj
;
9196 PyObject
* _argo0
= 0;
9197 char *_kwnames
[] = { "self","x","y", NULL
};
9200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9210 wxPy_BEGIN_ALLOW_THREADS
;
9211 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9213 wxPy_END_ALLOW_THREADS
;
9214 if (PyErr_Occurred()) return NULL
;
9215 } Py_INCREF(Py_None
);
9216 _resultobj
= Py_None
;
9220 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9221 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9222 PyObject
* _resultobj
;
9228 PyObject
* _argo0
= 0;
9229 char *_kwnames
[] = { "self", NULL
};
9238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
9241 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9242 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9243 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9248 wxPy_BEGIN_ALLOW_THREADS
;
9249 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
9251 wxPy_END_ALLOW_THREADS
;
9252 if (PyErr_Occurred()) return NULL
;
9253 } Py_INCREF(Py_None
);
9254 _resultobj
= Py_None
;
9257 o
= PyInt_FromLong((long) (*_arg1
));
9258 _resultobj
= t_output_helper(_resultobj
, o
);
9262 o
= PyInt_FromLong((long) (*_arg2
));
9263 _resultobj
= t_output_helper(_resultobj
, o
);
9268 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9269 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9270 PyObject
* _resultobj
;
9274 PyObject
* _argo0
= 0;
9277 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
9280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
9283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9289 _arg1
= (bool ) tempbool1
;
9290 _arg2
= (bool ) tempbool2
;
9292 wxPy_BEGIN_ALLOW_THREADS
;
9293 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
9295 wxPy_END_ALLOW_THREADS
;
9296 if (PyErr_Occurred()) return NULL
;
9297 } Py_INCREF(Py_None
);
9298 _resultobj
= Py_None
;
9302 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9303 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9304 PyObject
* _resultobj
;
9308 PyObject
* _argo0
= 0;
9309 char *_kwnames
[] = { "self","x","y", NULL
};
9312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9315 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9316 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9322 wxPy_BEGIN_ALLOW_THREADS
;
9323 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
9325 wxPy_END_ALLOW_THREADS
;
9326 if (PyErr_Occurred()) return NULL
;
9327 } Py_INCREF(Py_None
);
9328 _resultobj
= Py_None
;
9332 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9333 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9334 PyObject
* _resultobj
;
9336 PyObject
* _argo0
= 0;
9337 char *_kwnames
[] = { "self", NULL
};
9340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
9343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9350 wxPy_BEGIN_ALLOW_THREADS
;
9351 wxDC_ResetBoundingBox(_arg0
);
9353 wxPy_END_ALLOW_THREADS
;
9354 if (PyErr_Occurred()) return NULL
;
9355 } Py_INCREF(Py_None
);
9356 _resultobj
= Py_None
;
9360 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9361 PyObject
* _resultobj
;
9371 PyObject
* _argo0
= 0;
9372 char *_kwnames
[] = { "self", NULL
};
9387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
9390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9397 wxPy_BEGIN_ALLOW_THREADS
;
9398 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9400 wxPy_END_ALLOW_THREADS
;
9401 if (PyErr_Occurred()) return NULL
;
9402 } Py_INCREF(Py_None
);
9403 _resultobj
= Py_None
;
9406 o
= PyInt_FromLong((long) (*_arg1
));
9407 _resultobj
= t_output_helper(_resultobj
, o
);
9411 o
= PyInt_FromLong((long) (*_arg2
));
9412 _resultobj
= t_output_helper(_resultobj
, o
);
9416 o
= PyInt_FromLong((long) (*_arg3
));
9417 _resultobj
= t_output_helper(_resultobj
, o
);
9421 o
= PyInt_FromLong((long) (*_arg4
));
9422 _resultobj
= t_output_helper(_resultobj
, o
);
9427 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
9428 static PyObject
*_wrap_wxDC_GetHDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9429 PyObject
* _resultobj
;
9432 PyObject
* _argo0
= 0;
9433 char *_kwnames
[] = { "self", NULL
};
9436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetHDC",_kwnames
,&_argo0
))
9439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
9446 wxPy_BEGIN_ALLOW_THREADS
;
9447 _result
= (long )wxDC_GetHDC(_arg0
);
9449 wxPy_END_ALLOW_THREADS
;
9450 if (PyErr_Occurred()) return NULL
;
9451 } _resultobj
= Py_BuildValue("l",_result
);
9455 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
9456 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
9457 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9465 if (!PySequence_Check(pyPoints
)) {
9468 if (!PySequence_Check(pyPens
)) {
9471 numObjs
= PySequence_Length(pyPoints
);
9472 numPens
= PySequence_Length(pyPens
);
9474 for (i
= 0; i
< numObjs
; i
++) {
9478 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9481 obj
= PySequence_GetItem(pyPens
, i
);
9483 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9494 // Get the point coordinants
9496 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
9499 obj
= PySequence_GetItem(pyPoints
, i
);
9501 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
9507 // Now draw the point
9508 self
->DrawPoint(x1
, y1
);
9518 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9521 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
9524 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9525 PyObject
* _resultobj
;
9530 PyObject
* _argo0
= 0;
9531 PyObject
* _obj1
= 0;
9532 PyObject
* _obj2
= 0;
9533 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
9536 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9539 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9540 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9541 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9552 wxPy_BEGIN_ALLOW_THREADS
;
9553 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
9555 wxPy_END_ALLOW_THREADS
;
9556 if (PyErr_Occurred()) return NULL
;
9558 _resultobj
= _result
;
9563 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
9564 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
9565 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9573 if (!PySequence_Check(pyLines
)) {
9576 if (!PySequence_Check(pyPens
)) {
9579 numObjs
= PySequence_Length(pyLines
);
9580 numPens
= PySequence_Length(pyPens
);
9582 for (i
= 0; i
< numObjs
; i
++) {
9586 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9589 obj
= PySequence_GetItem(pyPens
, i
);
9591 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9602 // Get the line coordinants
9604 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
9607 obj
= PySequence_GetItem(pyLines
, i
);
9609 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
9615 // Now draw the line
9616 self
->DrawLine(x1
, y1
, x2
, y2
);
9626 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9629 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9632 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9633 PyObject
* _resultobj
;
9638 PyObject
* _argo0
= 0;
9639 PyObject
* _obj1
= 0;
9640 PyObject
* _obj2
= 0;
9641 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
9644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9660 wxPy_BEGIN_ALLOW_THREADS
;
9661 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
9663 wxPy_END_ALLOW_THREADS
;
9664 if (PyErr_Occurred()) return NULL
;
9666 _resultobj
= _result
;
9671 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
9674 src
= (wxMemoryDC
*) ptr
;
9675 dest
= (wxDC
*) src
;
9676 return (void *) dest
;
9679 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
9682 src
= (wxMemoryDC
*) ptr
;
9683 dest
= (wxObject
*) src
;
9684 return (void *) dest
;
9687 #define new_wxMemoryDC() (new wxMemoryDC())
9688 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9689 PyObject
* _resultobj
;
9690 wxMemoryDC
* _result
;
9691 char *_kwnames
[] = { NULL
};
9695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
9698 wxPy_BEGIN_ALLOW_THREADS
;
9699 _result
= (wxMemoryDC
*)new_wxMemoryDC();
9701 wxPy_END_ALLOW_THREADS
;
9702 if (PyErr_Occurred()) return NULL
;
9704 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
9705 _resultobj
= Py_BuildValue("s",_ptemp
);
9708 _resultobj
= Py_None
;
9713 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9714 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9715 PyObject
* _resultobj
;
9718 PyObject
* _argo0
= 0;
9719 PyObject
* _argo1
= 0;
9720 char *_kwnames
[] = { "self","bitmap", NULL
};
9723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
9726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
9728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9733 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9734 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9740 wxPy_BEGIN_ALLOW_THREADS
;
9741 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
9743 wxPy_END_ALLOW_THREADS
;
9744 if (PyErr_Occurred()) return NULL
;
9745 } Py_INCREF(Py_None
);
9746 _resultobj
= Py_None
;
9750 static void *SwigwxScreenDCTowxDC(void *ptr
) {
9753 src
= (wxScreenDC
*) ptr
;
9754 dest
= (wxDC
*) src
;
9755 return (void *) dest
;
9758 static void *SwigwxScreenDCTowxObject(void *ptr
) {
9761 src
= (wxScreenDC
*) ptr
;
9762 dest
= (wxObject
*) src
;
9763 return (void *) dest
;
9766 #define new_wxScreenDC() (new wxScreenDC())
9767 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9768 PyObject
* _resultobj
;
9769 wxScreenDC
* _result
;
9770 char *_kwnames
[] = { NULL
};
9774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
9777 wxPy_BEGIN_ALLOW_THREADS
;
9778 _result
= (wxScreenDC
*)new_wxScreenDC();
9780 wxPy_END_ALLOW_THREADS
;
9781 if (PyErr_Occurred()) return NULL
;
9783 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
9784 _resultobj
= Py_BuildValue("s",_ptemp
);
9787 _resultobj
= Py_None
;
9792 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9793 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9794 PyObject
* _resultobj
;
9798 PyObject
* _argo0
= 0;
9799 PyObject
* _argo1
= 0;
9800 char *_kwnames
[] = { "self","window", NULL
};
9803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
9806 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9807 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9813 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9814 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
9815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9820 wxPy_BEGIN_ALLOW_THREADS
;
9821 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
9823 wxPy_END_ALLOW_THREADS
;
9824 if (PyErr_Occurred()) return NULL
;
9825 } _resultobj
= Py_BuildValue("i",_result
);
9829 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9830 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9831 PyObject
* _resultobj
;
9834 wxRect
* _arg1
= (wxRect
*) NULL
;
9835 PyObject
* _argo0
= 0;
9837 PyObject
* _obj1
= 0;
9838 char *_kwnames
[] = { "self","rect", NULL
};
9841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
9844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9853 if (! wxRect_helper(_obj1
, &_arg1
))
9857 wxPy_BEGIN_ALLOW_THREADS
;
9858 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
9860 wxPy_END_ALLOW_THREADS
;
9861 if (PyErr_Occurred()) return NULL
;
9862 } _resultobj
= Py_BuildValue("i",_result
);
9866 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9867 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9868 PyObject
* _resultobj
;
9871 PyObject
* _argo0
= 0;
9872 char *_kwnames
[] = { "self", NULL
};
9875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
9878 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9879 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9880 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9885 wxPy_BEGIN_ALLOW_THREADS
;
9886 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
9888 wxPy_END_ALLOW_THREADS
;
9889 if (PyErr_Occurred()) return NULL
;
9890 } _resultobj
= Py_BuildValue("i",_result
);
9894 static void *SwigwxClientDCTowxDC(void *ptr
) {
9897 src
= (wxClientDC
*) ptr
;
9898 dest
= (wxDC
*) src
;
9899 return (void *) dest
;
9902 static void *SwigwxClientDCTowxObject(void *ptr
) {
9905 src
= (wxClientDC
*) ptr
;
9906 dest
= (wxObject
*) src
;
9907 return (void *) dest
;
9910 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9911 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9912 PyObject
* _resultobj
;
9913 wxClientDC
* _result
;
9915 PyObject
* _argo0
= 0;
9916 char *_kwnames
[] = { "win", NULL
};
9920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
9923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9930 wxPy_BEGIN_ALLOW_THREADS
;
9931 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
9933 wxPy_END_ALLOW_THREADS
;
9934 if (PyErr_Occurred()) return NULL
;
9936 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
9937 _resultobj
= Py_BuildValue("s",_ptemp
);
9940 _resultobj
= Py_None
;
9945 static void *SwigwxPaintDCTowxDC(void *ptr
) {
9948 src
= (wxPaintDC
*) ptr
;
9949 dest
= (wxDC
*) src
;
9950 return (void *) dest
;
9953 static void *SwigwxPaintDCTowxObject(void *ptr
) {
9956 src
= (wxPaintDC
*) ptr
;
9957 dest
= (wxObject
*) src
;
9958 return (void *) dest
;
9961 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9962 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9963 PyObject
* _resultobj
;
9964 wxPaintDC
* _result
;
9966 PyObject
* _argo0
= 0;
9967 char *_kwnames
[] = { "win", NULL
};
9971 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
9974 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9975 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9976 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9981 wxPy_BEGIN_ALLOW_THREADS
;
9982 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
9984 wxPy_END_ALLOW_THREADS
;
9985 if (PyErr_Occurred()) return NULL
;
9987 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
9988 _resultobj
= Py_BuildValue("s",_ptemp
);
9991 _resultobj
= Py_None
;
9996 static void *SwigwxWindowDCTowxDC(void *ptr
) {
9999 src
= (wxWindowDC
*) ptr
;
10000 dest
= (wxDC
*) src
;
10001 return (void *) dest
;
10004 static void *SwigwxWindowDCTowxObject(void *ptr
) {
10007 src
= (wxWindowDC
*) ptr
;
10008 dest
= (wxObject
*) src
;
10009 return (void *) dest
;
10012 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
10013 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10014 PyObject
* _resultobj
;
10015 wxWindowDC
* _result
;
10017 PyObject
* _argo0
= 0;
10018 char *_kwnames
[] = { "win", NULL
};
10022 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
10025 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10026 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10027 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10032 wxPy_BEGIN_ALLOW_THREADS
;
10033 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
10035 wxPy_END_ALLOW_THREADS
;
10036 if (PyErr_Occurred()) return NULL
;
10038 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
10039 _resultobj
= Py_BuildValue("s",_ptemp
);
10041 Py_INCREF(Py_None
);
10042 _resultobj
= Py_None
;
10047 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
10050 src
= (wxMetaFileDC
*) ptr
;
10051 dest
= (wxDC
*) src
;
10052 return (void *) dest
;
10055 static void *SwigwxMetaFileDCTowxObject(void *ptr
) {
10058 src
= (wxMetaFileDC
*) ptr
;
10059 dest
= (wxObject
*) src
;
10060 return (void *) dest
;
10063 #define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0))
10064 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10065 PyObject
* _resultobj
;
10066 wxMetaFileDC
* _result
;
10067 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
10068 PyObject
* _obj0
= 0;
10069 char *_kwnames
[] = { "filename", NULL
};
10073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFileDC",_kwnames
,&_obj0
))
10077 #if PYTHON_API_VERSION >= 1009
10078 char* tmpPtr
; int tmpSize
;
10079 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
10080 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10083 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
10085 _arg0
= new wxString(tmpPtr
, tmpSize
);
10087 if (!PyString_Check(_obj0
)) {
10088 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10091 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
10095 wxPy_BEGIN_ALLOW_THREADS
;
10096 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
);
10098 wxPy_END_ALLOW_THREADS
;
10099 if (PyErr_Occurred()) return NULL
;
10101 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
10102 _resultobj
= Py_BuildValue("s",_ptemp
);
10104 Py_INCREF(Py_None
);
10105 _resultobj
= Py_None
;
10114 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
10115 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10116 PyObject
* _resultobj
;
10117 wxMetaFile
* _result
;
10118 wxMetaFileDC
* _arg0
;
10119 PyObject
* _argo0
= 0;
10120 char *_kwnames
[] = { "self", NULL
};
10124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
10127 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10128 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
10129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
10134 wxPy_BEGIN_ALLOW_THREADS
;
10135 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
10137 wxPy_END_ALLOW_THREADS
;
10138 if (PyErr_Occurred()) return NULL
;
10140 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
10141 _resultobj
= Py_BuildValue("s",_ptemp
);
10143 Py_INCREF(Py_None
);
10144 _resultobj
= Py_None
;
10149 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
10152 src
= (wxPalette
*) ptr
;
10153 dest
= (wxGDIObject
*) src
;
10154 return (void *) dest
;
10157 static void *SwigwxPaletteTowxObject(void *ptr
) {
10160 src
= (wxPalette
*) ptr
;
10161 dest
= (wxObject
*) src
;
10162 return (void *) dest
;
10165 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10166 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10167 PyObject
* _resultobj
;
10168 wxPalette
* _result
;
10173 PyObject
* _obj1
= 0;
10174 PyObject
* _obj2
= 0;
10175 PyObject
* _obj3
= 0;
10176 char *_kwnames
[] = { "choices","choices","choices", NULL
};
10180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
10183 _arg1
= byte_LIST_helper(_obj1
);
10184 if (_arg1
== NULL
) {
10189 _arg2
= byte_LIST_helper(_obj2
);
10190 if (_arg2
== NULL
) {
10196 _arg3
= byte_LIST_helper(_obj3
);
10197 if (_arg3
== NULL
) {
10203 _arg0
= PyList_Size(_obj1
);
10210 wxPy_BEGIN_ALLOW_THREADS
;
10211 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
10213 wxPy_END_ALLOW_THREADS
;
10214 if (PyErr_Occurred()) return NULL
;
10216 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
10217 _resultobj
= Py_BuildValue("s",_ptemp
);
10219 Py_INCREF(Py_None
);
10220 _resultobj
= Py_None
;
10234 #define delete_wxPalette(_swigobj) (delete _swigobj)
10235 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10236 PyObject
* _resultobj
;
10238 PyObject
* _argo0
= 0;
10239 char *_kwnames
[] = { "self", NULL
};
10242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
10245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10252 wxPy_BEGIN_ALLOW_THREADS
;
10253 delete_wxPalette(_arg0
);
10255 wxPy_END_ALLOW_THREADS
;
10256 if (PyErr_Occurred()) return NULL
;
10257 } Py_INCREF(Py_None
);
10258 _resultobj
= Py_None
;
10262 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10263 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10264 PyObject
* _resultobj
;
10270 PyObject
* _argo0
= 0;
10271 char *_kwnames
[] = { "self","red","green","blue", NULL
};
10274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
10277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10284 wxPy_BEGIN_ALLOW_THREADS
;
10285 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
10287 wxPy_END_ALLOW_THREADS
;
10288 if (PyErr_Occurred()) return NULL
;
10289 } _resultobj
= Py_BuildValue("i",_result
);
10293 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10294 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10295 PyObject
* _resultobj
;
10302 PyObject
* _argo0
= 0;
10303 PyObject
* _argo2
= 0;
10304 PyObject
* _argo3
= 0;
10305 PyObject
* _argo4
= 0;
10306 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
10309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
10312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10319 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10320 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
10321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
10326 if (_argo3
== Py_None
) { _arg3
= NULL
; }
10327 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
10328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
10333 if (_argo4
== Py_None
) { _arg4
= NULL
; }
10334 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
10335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
10340 wxPy_BEGIN_ALLOW_THREADS
;
10341 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10343 wxPy_END_ALLOW_THREADS
;
10344 if (PyErr_Occurred()) return NULL
;
10345 } _resultobj
= Py_BuildValue("i",_result
);
10349 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10350 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10351 PyObject
* _resultobj
;
10354 PyObject
* _argo0
= 0;
10355 char *_kwnames
[] = { "self", NULL
};
10358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
10361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10368 wxPy_BEGIN_ALLOW_THREADS
;
10369 _result
= (bool )wxPalette_Ok(_arg0
);
10371 wxPy_END_ALLOW_THREADS
;
10372 if (PyErr_Occurred()) return NULL
;
10373 } _resultobj
= Py_BuildValue("i",_result
);
10377 static void *SwigwxImageListTowxObject(void *ptr
) {
10380 src
= (wxImageList
*) ptr
;
10381 dest
= (wxObject
*) src
;
10382 return (void *) dest
;
10385 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10386 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10387 PyObject
* _resultobj
;
10388 wxImageList
* _result
;
10391 int _arg2
= (int ) TRUE
;
10392 int _arg3
= (int ) 1;
10393 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
10397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10400 wxPy_BEGIN_ALLOW_THREADS
;
10401 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
10403 wxPy_END_ALLOW_THREADS
;
10404 if (PyErr_Occurred()) return NULL
;
10406 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
10407 _resultobj
= Py_BuildValue("s",_ptemp
);
10409 Py_INCREF(Py_None
);
10410 _resultobj
= Py_None
;
10415 #define delete_wxImageList(_swigobj) (delete _swigobj)
10416 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10417 PyObject
* _resultobj
;
10418 wxImageList
* _arg0
;
10419 PyObject
* _argo0
= 0;
10420 char *_kwnames
[] = { "self", NULL
};
10423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
10426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10433 wxPy_BEGIN_ALLOW_THREADS
;
10434 delete_wxImageList(_arg0
);
10436 wxPy_END_ALLOW_THREADS
;
10437 if (PyErr_Occurred()) return NULL
;
10438 } Py_INCREF(Py_None
);
10439 _resultobj
= Py_None
;
10443 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10444 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10445 PyObject
* _resultobj
;
10447 wxImageList
* _arg0
;
10449 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10450 PyObject
* _argo0
= 0;
10451 PyObject
* _argo1
= 0;
10452 PyObject
* _argo2
= 0;
10453 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
10456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10466 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10467 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10473 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10474 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10480 wxPy_BEGIN_ALLOW_THREADS
;
10481 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
10483 wxPy_END_ALLOW_THREADS
;
10484 if (PyErr_Occurred()) return NULL
;
10485 } _resultobj
= Py_BuildValue("i",_result
);
10489 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10490 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10491 PyObject
* _resultobj
;
10493 wxImageList
* _arg0
;
10496 PyObject
* _argo0
= 0;
10497 PyObject
* _argo1
= 0;
10499 PyObject
* _obj2
= 0;
10500 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
10503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
10506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10513 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10514 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10521 if (! wxColour_helper(_obj2
, &_arg2
))
10525 wxPy_BEGIN_ALLOW_THREADS
;
10526 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
10528 wxPy_END_ALLOW_THREADS
;
10529 if (PyErr_Occurred()) return NULL
;
10530 } _resultobj
= Py_BuildValue("i",_result
);
10534 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10535 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10536 PyObject
* _resultobj
;
10538 wxImageList
* _arg0
;
10540 PyObject
* _argo0
= 0;
10541 PyObject
* _argo1
= 0;
10542 char *_kwnames
[] = { "self","icon", NULL
};
10545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
10548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10555 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10556 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
10557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10562 wxPy_BEGIN_ALLOW_THREADS
;
10563 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
10565 wxPy_END_ALLOW_THREADS
;
10566 if (PyErr_Occurred()) return NULL
;
10567 } _resultobj
= Py_BuildValue("i",_result
);
10571 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
10572 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10573 PyObject
* _resultobj
;
10575 wxImageList
* _arg0
;
10578 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
10579 PyObject
* _argo0
= 0;
10580 PyObject
* _argo2
= 0;
10581 PyObject
* _argo3
= 0;
10582 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
10585 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
10588 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10589 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10595 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10596 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10602 if (_argo3
== Py_None
) { _arg3
= NULL
; }
10603 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
10604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
10609 wxPy_BEGIN_ALLOW_THREADS
;
10610 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
10612 wxPy_END_ALLOW_THREADS
;
10613 if (PyErr_Occurred()) return NULL
;
10614 } _resultobj
= Py_BuildValue("i",_result
);
10618 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10619 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10620 PyObject
* _resultobj
;
10622 wxImageList
* _arg0
;
10627 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
10628 bool _arg6
= (bool ) FALSE
;
10629 PyObject
* _argo0
= 0;
10630 PyObject
* _argo2
= 0;
10631 int tempbool6
= (int) FALSE
;
10632 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
10635 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
10638 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10639 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10640 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10645 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10646 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
10647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10651 _arg6
= (bool ) tempbool6
;
10653 wxPy_BEGIN_ALLOW_THREADS
;
10654 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
10656 wxPy_END_ALLOW_THREADS
;
10657 if (PyErr_Occurred()) return NULL
;
10658 } _resultobj
= Py_BuildValue("i",_result
);
10662 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10663 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10664 PyObject
* _resultobj
;
10666 wxImageList
* _arg0
;
10667 PyObject
* _argo0
= 0;
10668 char *_kwnames
[] = { "self", NULL
};
10671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
10674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10681 wxPy_BEGIN_ALLOW_THREADS
;
10682 _result
= (int )wxImageList_GetImageCount(_arg0
);
10684 wxPy_END_ALLOW_THREADS
;
10685 if (PyErr_Occurred()) return NULL
;
10686 } _resultobj
= Py_BuildValue("i",_result
);
10690 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10691 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10692 PyObject
* _resultobj
;
10694 wxImageList
* _arg0
;
10696 PyObject
* _argo0
= 0;
10697 char *_kwnames
[] = { "self","index", NULL
};
10700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
10703 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10704 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10705 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10710 wxPy_BEGIN_ALLOW_THREADS
;
10711 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
10713 wxPy_END_ALLOW_THREADS
;
10714 if (PyErr_Occurred()) return NULL
;
10715 } _resultobj
= Py_BuildValue("i",_result
);
10719 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
10720 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10721 PyObject
* _resultobj
;
10723 wxImageList
* _arg0
;
10724 PyObject
* _argo0
= 0;
10725 char *_kwnames
[] = { "self", NULL
};
10728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
10731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10738 wxPy_BEGIN_ALLOW_THREADS
;
10739 _result
= (bool )wxImageList_RemoveAll(_arg0
);
10741 wxPy_END_ALLOW_THREADS
;
10742 if (PyErr_Occurred()) return NULL
;
10743 } _resultobj
= Py_BuildValue("i",_result
);
10747 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10748 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10749 PyObject
* _resultobj
;
10750 wxImageList
* _arg0
;
10756 PyObject
* _argo0
= 0;
10757 char *_kwnames
[] = { "self","index", NULL
};
10766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
10769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10776 wxPy_BEGIN_ALLOW_THREADS
;
10777 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
10779 wxPy_END_ALLOW_THREADS
;
10780 if (PyErr_Occurred()) return NULL
;
10781 } Py_INCREF(Py_None
);
10782 _resultobj
= Py_None
;
10785 o
= PyInt_FromLong((long) (*_arg2
));
10786 _resultobj
= t_output_helper(_resultobj
, o
);
10790 o
= PyInt_FromLong((long) (*_arg3
));
10791 _resultobj
= t_output_helper(_resultobj
, o
);
10796 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
10799 src
= (wxRegion
*) ptr
;
10800 dest
= (wxGDIObject
*) src
;
10801 return (void *) dest
;
10804 static void *SwigwxRegionTowxObject(void *ptr
) {
10807 src
= (wxRegion
*) ptr
;
10808 dest
= (wxObject
*) src
;
10809 return (void *) dest
;
10812 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10813 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10814 PyObject
* _resultobj
;
10815 wxRegion
* _result
;
10816 long _arg0
= (long ) 0;
10817 long _arg1
= (long ) 0;
10818 long _arg2
= (long ) 0;
10819 long _arg3
= (long ) 0;
10820 char *_kwnames
[] = { "x","y","width","height", NULL
};
10824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10827 wxPy_BEGIN_ALLOW_THREADS
;
10828 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
10830 wxPy_END_ALLOW_THREADS
;
10831 if (PyErr_Occurred()) return NULL
;
10833 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
10834 _resultobj
= Py_BuildValue("s",_ptemp
);
10836 Py_INCREF(Py_None
);
10837 _resultobj
= Py_None
;
10842 #define delete_wxRegion(_swigobj) (delete _swigobj)
10843 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10844 PyObject
* _resultobj
;
10846 PyObject
* _argo0
= 0;
10847 char *_kwnames
[] = { "self", NULL
};
10850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
10853 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10854 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10860 wxPy_BEGIN_ALLOW_THREADS
;
10861 delete_wxRegion(_arg0
);
10863 wxPy_END_ALLOW_THREADS
;
10864 if (PyErr_Occurred()) return NULL
;
10865 } Py_INCREF(Py_None
);
10866 _resultobj
= Py_None
;
10870 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10871 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10872 PyObject
* _resultobj
;
10874 PyObject
* _argo0
= 0;
10875 char *_kwnames
[] = { "self", NULL
};
10878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
10881 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10882 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10883 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10888 wxPy_BEGIN_ALLOW_THREADS
;
10889 wxRegion_Clear(_arg0
);
10891 wxPy_END_ALLOW_THREADS
;
10892 if (PyErr_Occurred()) return NULL
;
10893 } Py_INCREF(Py_None
);
10894 _resultobj
= Py_None
;
10898 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10899 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10900 PyObject
* _resultobj
;
10901 wxRegionContain _result
;
10905 PyObject
* _argo0
= 0;
10906 char *_kwnames
[] = { "self","x","y", NULL
};
10909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10919 wxPy_BEGIN_ALLOW_THREADS
;
10920 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
10922 wxPy_END_ALLOW_THREADS
;
10923 if (PyErr_Occurred()) return NULL
;
10924 } _resultobj
= Py_BuildValue("i",_result
);
10928 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10929 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10930 PyObject
* _resultobj
;
10931 wxRegionContain _result
;
10934 PyObject
* _argo0
= 0;
10936 PyObject
* _obj1
= 0;
10937 char *_kwnames
[] = { "self","pt", NULL
};
10940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
10943 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10944 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10951 if (! wxPoint_helper(_obj1
, &_arg1
))
10955 wxPy_BEGIN_ALLOW_THREADS
;
10956 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
10958 wxPy_END_ALLOW_THREADS
;
10959 if (PyErr_Occurred()) return NULL
;
10960 } _resultobj
= Py_BuildValue("i",_result
);
10964 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10965 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10966 PyObject
* _resultobj
;
10967 wxRegionContain _result
;
10970 PyObject
* _argo0
= 0;
10972 PyObject
* _obj1
= 0;
10973 char *_kwnames
[] = { "self","rect", NULL
};
10976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
10979 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10980 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10987 if (! wxRect_helper(_obj1
, &_arg1
))
10991 wxPy_BEGIN_ALLOW_THREADS
;
10992 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
10994 wxPy_END_ALLOW_THREADS
;
10995 if (PyErr_Occurred()) return NULL
;
10996 } _resultobj
= Py_BuildValue("i",_result
);
11000 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11001 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11002 PyObject
* _resultobj
;
11003 wxRegionContain _result
;
11009 PyObject
* _argo0
= 0;
11010 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
11013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
11023 wxPy_BEGIN_ALLOW_THREADS
;
11024 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11026 wxPy_END_ALLOW_THREADS
;
11027 if (PyErr_Occurred()) return NULL
;
11028 } _resultobj
= Py_BuildValue("i",_result
);
11032 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
11033 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11034 PyObject
* _resultobj
;
11037 PyObject
* _argo0
= 0;
11038 char *_kwnames
[] = { "self", NULL
};
11042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
11045 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11046 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
11052 wxPy_BEGIN_ALLOW_THREADS
;
11053 _result
= new wxRect (wxRegion_GetBox(_arg0
));
11055 wxPy_END_ALLOW_THREADS
;
11056 if (PyErr_Occurred()) return NULL
;
11057 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
11058 _resultobj
= Py_BuildValue("s",_ptemp
);
11062 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11063 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11064 PyObject
* _resultobj
;
11071 PyObject
* _argo0
= 0;
11072 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11078 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11079 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
11085 wxPy_BEGIN_ALLOW_THREADS
;
11086 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11088 wxPy_END_ALLOW_THREADS
;
11089 if (PyErr_Occurred()) return NULL
;
11090 } _resultobj
= Py_BuildValue("i",_result
);
11094 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11095 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11096 PyObject
* _resultobj
;
11100 PyObject
* _argo0
= 0;
11102 PyObject
* _obj1
= 0;
11103 char *_kwnames
[] = { "self","rect", NULL
};
11106 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
11109 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11110 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11111 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
11117 if (! wxRect_helper(_obj1
, &_arg1
))
11121 wxPy_BEGIN_ALLOW_THREADS
;
11122 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
11124 wxPy_END_ALLOW_THREADS
;
11125 if (PyErr_Occurred()) return NULL
;
11126 } _resultobj
= Py_BuildValue("i",_result
);
11130 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11131 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11132 PyObject
* _resultobj
;
11136 PyObject
* _argo0
= 0;
11137 PyObject
* _argo1
= 0;
11138 char *_kwnames
[] = { "self","region", NULL
};
11141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
11144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11151 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11152 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11153 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11158 wxPy_BEGIN_ALLOW_THREADS
;
11159 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
11161 wxPy_END_ALLOW_THREADS
;
11162 if (PyErr_Occurred()) return NULL
;
11163 } _resultobj
= Py_BuildValue("i",_result
);
11167 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
11168 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11169 PyObject
* _resultobj
;
11172 PyObject
* _argo0
= 0;
11173 char *_kwnames
[] = { "self", NULL
};
11176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
11179 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11180 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11181 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11186 wxPy_BEGIN_ALLOW_THREADS
;
11187 _result
= (bool )wxRegion_IsEmpty(_arg0
);
11189 wxPy_END_ALLOW_THREADS
;
11190 if (PyErr_Occurred()) return NULL
;
11191 } _resultobj
= Py_BuildValue("i",_result
);
11195 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11196 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11197 PyObject
* _resultobj
;
11204 PyObject
* _argo0
= 0;
11205 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11218 wxPy_BEGIN_ALLOW_THREADS
;
11219 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11221 wxPy_END_ALLOW_THREADS
;
11222 if (PyErr_Occurred()) return NULL
;
11223 } _resultobj
= Py_BuildValue("i",_result
);
11227 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11228 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11229 PyObject
* _resultobj
;
11233 PyObject
* _argo0
= 0;
11235 PyObject
* _obj1
= 0;
11236 char *_kwnames
[] = { "self","rect", NULL
};
11239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
11242 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11243 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11250 if (! wxRect_helper(_obj1
, &_arg1
))
11254 wxPy_BEGIN_ALLOW_THREADS
;
11255 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
11257 wxPy_END_ALLOW_THREADS
;
11258 if (PyErr_Occurred()) return NULL
;
11259 } _resultobj
= Py_BuildValue("i",_result
);
11263 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11264 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11265 PyObject
* _resultobj
;
11269 PyObject
* _argo0
= 0;
11270 PyObject
* _argo1
= 0;
11271 char *_kwnames
[] = { "self","region", NULL
};
11274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
11277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11284 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11285 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11291 wxPy_BEGIN_ALLOW_THREADS
;
11292 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
11294 wxPy_END_ALLOW_THREADS
;
11295 if (PyErr_Occurred()) return NULL
;
11296 } _resultobj
= Py_BuildValue("i",_result
);
11300 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11301 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11302 PyObject
* _resultobj
;
11309 PyObject
* _argo0
= 0;
11310 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11323 wxPy_BEGIN_ALLOW_THREADS
;
11324 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11326 wxPy_END_ALLOW_THREADS
;
11327 if (PyErr_Occurred()) return NULL
;
11328 } _resultobj
= Py_BuildValue("i",_result
);
11332 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11333 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11334 PyObject
* _resultobj
;
11338 PyObject
* _argo0
= 0;
11340 PyObject
* _obj1
= 0;
11341 char *_kwnames
[] = { "self","rect", NULL
};
11344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
11347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11355 if (! wxRect_helper(_obj1
, &_arg1
))
11359 wxPy_BEGIN_ALLOW_THREADS
;
11360 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
11362 wxPy_END_ALLOW_THREADS
;
11363 if (PyErr_Occurred()) return NULL
;
11364 } _resultobj
= Py_BuildValue("i",_result
);
11368 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11369 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11370 PyObject
* _resultobj
;
11374 PyObject
* _argo0
= 0;
11375 PyObject
* _argo1
= 0;
11376 char *_kwnames
[] = { "self","region", NULL
};
11379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
11382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11389 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11390 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11396 wxPy_BEGIN_ALLOW_THREADS
;
11397 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
11399 wxPy_END_ALLOW_THREADS
;
11400 if (PyErr_Occurred()) return NULL
;
11401 } _resultobj
= Py_BuildValue("i",_result
);
11405 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11406 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11407 PyObject
* _resultobj
;
11414 PyObject
* _argo0
= 0;
11415 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11418 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11421 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11422 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11423 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11428 wxPy_BEGIN_ALLOW_THREADS
;
11429 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11431 wxPy_END_ALLOW_THREADS
;
11432 if (PyErr_Occurred()) return NULL
;
11433 } _resultobj
= Py_BuildValue("i",_result
);
11437 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11438 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11439 PyObject
* _resultobj
;
11443 PyObject
* _argo0
= 0;
11445 PyObject
* _obj1
= 0;
11446 char *_kwnames
[] = { "self","rect", NULL
};
11449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
11452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11460 if (! wxRect_helper(_obj1
, &_arg1
))
11464 wxPy_BEGIN_ALLOW_THREADS
;
11465 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
11467 wxPy_END_ALLOW_THREADS
;
11468 if (PyErr_Occurred()) return NULL
;
11469 } _resultobj
= Py_BuildValue("i",_result
);
11473 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11474 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11475 PyObject
* _resultobj
;
11479 PyObject
* _argo0
= 0;
11480 PyObject
* _argo1
= 0;
11481 char *_kwnames
[] = { "self","region", NULL
};
11484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
11487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11494 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11495 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11501 wxPy_BEGIN_ALLOW_THREADS
;
11502 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
11504 wxPy_END_ALLOW_THREADS
;
11505 if (PyErr_Occurred()) return NULL
;
11506 } _resultobj
= Py_BuildValue("i",_result
);
11510 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
11511 wxRegionIterator
*src
;
11513 src
= (wxRegionIterator
*) ptr
;
11514 dest
= (wxObject
*) src
;
11515 return (void *) dest
;
11518 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11519 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11520 PyObject
* _resultobj
;
11521 wxRegionIterator
* _result
;
11523 PyObject
* _argo0
= 0;
11524 char *_kwnames
[] = { "region", NULL
};
11528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
11531 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11532 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11538 wxPy_BEGIN_ALLOW_THREADS
;
11539 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
11541 wxPy_END_ALLOW_THREADS
;
11542 if (PyErr_Occurred()) return NULL
;
11544 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
11545 _resultobj
= Py_BuildValue("s",_ptemp
);
11547 Py_INCREF(Py_None
);
11548 _resultobj
= Py_None
;
11553 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11554 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11555 PyObject
* _resultobj
;
11556 wxRegionIterator
* _arg0
;
11557 PyObject
* _argo0
= 0;
11558 char *_kwnames
[] = { "self", NULL
};
11561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
11564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11571 wxPy_BEGIN_ALLOW_THREADS
;
11572 delete_wxRegionIterator(_arg0
);
11574 wxPy_END_ALLOW_THREADS
;
11575 if (PyErr_Occurred()) return NULL
;
11576 } Py_INCREF(Py_None
);
11577 _resultobj
= Py_None
;
11581 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11582 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11583 PyObject
* _resultobj
;
11585 wxRegionIterator
* _arg0
;
11586 PyObject
* _argo0
= 0;
11587 char *_kwnames
[] = { "self", NULL
};
11590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
11593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11600 wxPy_BEGIN_ALLOW_THREADS
;
11601 _result
= (long )wxRegionIterator_GetX(_arg0
);
11603 wxPy_END_ALLOW_THREADS
;
11604 if (PyErr_Occurred()) return NULL
;
11605 } _resultobj
= Py_BuildValue("l",_result
);
11609 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11610 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11611 PyObject
* _resultobj
;
11613 wxRegionIterator
* _arg0
;
11614 PyObject
* _argo0
= 0;
11615 char *_kwnames
[] = { "self", NULL
};
11618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
11621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11628 wxPy_BEGIN_ALLOW_THREADS
;
11629 _result
= (long )wxRegionIterator_GetY(_arg0
);
11631 wxPy_END_ALLOW_THREADS
;
11632 if (PyErr_Occurred()) return NULL
;
11633 } _resultobj
= Py_BuildValue("l",_result
);
11637 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11638 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11639 PyObject
* _resultobj
;
11641 wxRegionIterator
* _arg0
;
11642 PyObject
* _argo0
= 0;
11643 char *_kwnames
[] = { "self", NULL
};
11646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
11649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11656 wxPy_BEGIN_ALLOW_THREADS
;
11657 _result
= (long )wxRegionIterator_GetW(_arg0
);
11659 wxPy_END_ALLOW_THREADS
;
11660 if (PyErr_Occurred()) return NULL
;
11661 } _resultobj
= Py_BuildValue("l",_result
);
11665 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11666 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11667 PyObject
* _resultobj
;
11669 wxRegionIterator
* _arg0
;
11670 PyObject
* _argo0
= 0;
11671 char *_kwnames
[] = { "self", NULL
};
11674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
11677 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11678 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11684 wxPy_BEGIN_ALLOW_THREADS
;
11685 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
11687 wxPy_END_ALLOW_THREADS
;
11688 if (PyErr_Occurred()) return NULL
;
11689 } _resultobj
= Py_BuildValue("l",_result
);
11693 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11694 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11695 PyObject
* _resultobj
;
11697 wxRegionIterator
* _arg0
;
11698 PyObject
* _argo0
= 0;
11699 char *_kwnames
[] = { "self", NULL
};
11702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
11705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11712 wxPy_BEGIN_ALLOW_THREADS
;
11713 _result
= (long )wxRegionIterator_GetH(_arg0
);
11715 wxPy_END_ALLOW_THREADS
;
11716 if (PyErr_Occurred()) return NULL
;
11717 } _resultobj
= Py_BuildValue("l",_result
);
11721 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11722 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11723 PyObject
* _resultobj
;
11725 wxRegionIterator
* _arg0
;
11726 PyObject
* _argo0
= 0;
11727 char *_kwnames
[] = { "self", NULL
};
11730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
11733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
11740 wxPy_BEGIN_ALLOW_THREADS
;
11741 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
11743 wxPy_END_ALLOW_THREADS
;
11744 if (PyErr_Occurred()) return NULL
;
11745 } _resultobj
= Py_BuildValue("l",_result
);
11749 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
11750 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11751 PyObject
* _resultobj
;
11753 wxRegionIterator
* _arg0
;
11754 PyObject
* _argo0
= 0;
11755 char *_kwnames
[] = { "self", NULL
};
11759 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
11762 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11763 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11764 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
11769 wxPy_BEGIN_ALLOW_THREADS
;
11770 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
11772 wxPy_END_ALLOW_THREADS
;
11773 if (PyErr_Occurred()) return NULL
;
11774 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
11775 _resultobj
= Py_BuildValue("s",_ptemp
);
11779 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11780 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11781 PyObject
* _resultobj
;
11783 wxRegionIterator
* _arg0
;
11784 PyObject
* _argo0
= 0;
11785 char *_kwnames
[] = { "self", NULL
};
11788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
11791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11798 wxPy_BEGIN_ALLOW_THREADS
;
11799 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
11801 wxPy_END_ALLOW_THREADS
;
11802 if (PyErr_Occurred()) return NULL
;
11803 } _resultobj
= Py_BuildValue("i",_result
);
11807 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11808 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11809 PyObject
* _resultobj
;
11810 wxRegionIterator
* _arg0
;
11811 PyObject
* _argo0
= 0;
11812 char *_kwnames
[] = { "self", NULL
};
11815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
11818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11825 wxPy_BEGIN_ALLOW_THREADS
;
11826 wxRegionIterator_Reset(_arg0
);
11828 wxPy_END_ALLOW_THREADS
;
11829 if (PyErr_Occurred()) return NULL
;
11830 } Py_INCREF(Py_None
);
11831 _resultobj
= Py_None
;
11835 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
11838 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11839 PyObject
* _resultobj
;
11840 wxRegionIterator
* _arg0
;
11841 PyObject
* _argo0
= 0;
11842 char *_kwnames
[] = { "self", NULL
};
11845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
11848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11855 wxPy_BEGIN_ALLOW_THREADS
;
11856 wxRegionIterator_Next(_arg0
);
11858 wxPy_END_ALLOW_THREADS
;
11859 if (PyErr_Occurred()) return NULL
;
11860 } Py_INCREF(Py_None
);
11861 _resultobj
= Py_None
;
11865 static PyMethodDef gdicMethods
[] = {
11866 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
11867 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
11868 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
11869 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
11870 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11871 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
11872 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11873 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
11874 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
11875 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
11876 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11877 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11878 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
11879 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
11880 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
11881 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
11882 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
11883 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
11884 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
11885 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
11886 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
11887 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
11888 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
11889 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
11890 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
11891 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
11892 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
11893 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
11894 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
11895 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
11896 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11897 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11898 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11899 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11900 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
11901 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
11902 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
11903 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
11904 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
11905 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
11906 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
11907 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
11908 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11909 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11910 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11911 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
11912 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11913 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11914 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11915 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
11916 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
11917 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
11918 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
11919 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
11920 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11921 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11922 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
11923 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
11924 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
11925 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
11926 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
11927 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
11928 { "wxDC_GetHDC", (PyCFunction
) _wrap_wxDC_GetHDC
, METH_VARARGS
| METH_KEYWORDS
},
11929 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11930 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11931 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11932 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
11933 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11934 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11935 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11936 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
11937 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11938 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11939 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11940 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11941 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
11942 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
11943 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11944 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11945 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11946 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
11947 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11948 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11949 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11950 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11951 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
11952 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11953 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11954 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
11955 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11956 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
11957 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11958 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11959 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11960 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
11961 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
11962 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
11963 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
11964 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
11965 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
11966 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
11967 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
11968 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11969 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11970 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11971 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11972 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11973 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
11974 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11975 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
11976 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11977 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
11978 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11979 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11980 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11981 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11982 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
11983 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
11984 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
11985 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
11986 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11987 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11988 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
11989 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
11990 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11991 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
11992 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
11993 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
11994 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11995 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
11996 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11997 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
11998 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
11999 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
12000 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
12001 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
12002 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
12003 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
12004 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
12005 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
12006 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
12007 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
12008 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
12009 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
12010 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
12011 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
12012 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
12013 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
12014 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
12015 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
12016 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
12017 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
12018 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
12019 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12020 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12021 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
12022 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12023 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12024 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12025 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
12026 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
12027 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
12028 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
12029 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
12030 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
12031 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
12032 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
12033 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
12034 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12035 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12036 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
12037 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12038 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12039 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
12040 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
12041 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
12042 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12043 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12044 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12045 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
12046 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
12047 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
12048 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
12049 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
12050 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
12051 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
12052 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
12053 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
12054 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
12055 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12056 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
12057 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
12058 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
12059 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
12060 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
12061 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
12062 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
12063 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
12064 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12065 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12066 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
12067 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
12068 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
12069 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
12070 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12071 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
12072 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
12073 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
12074 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12075 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
12076 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
12077 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
12078 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12079 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
12080 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
12081 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
12082 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12083 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
12084 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
12085 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12086 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
12087 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
12088 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
12089 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
12090 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
12091 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
12092 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
12093 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
12094 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
12095 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
12096 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12097 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
12098 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12099 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
12100 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
12101 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
12102 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
12103 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
12104 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
12105 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12106 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12107 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12108 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12109 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12110 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12111 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12112 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12113 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12114 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
12115 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
12116 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12117 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
12118 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12119 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12120 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12121 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12122 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12123 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12124 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12125 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12126 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12127 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
12128 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
12129 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
12130 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
12131 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
12132 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
12133 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
12134 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
12135 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
12136 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12137 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
12138 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12139 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12140 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12141 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12142 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12143 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12144 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12145 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12146 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12147 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
12148 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
12149 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
12150 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
12151 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
12152 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
12153 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12154 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12155 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
12156 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
12157 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
12158 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
12159 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
12160 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
12161 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
12162 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
12163 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
12164 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
12165 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
12166 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
12167 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
12168 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
12169 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12176 * This table is used by the pointer type-checker
12178 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
12179 { "_signed_long","_long",0},
12180 { "_wxPrintQuality","_wxCoord",0},
12181 { "_wxPrintQuality","_int",0},
12182 { "_wxPrintQuality","_signed_int",0},
12183 { "_wxPrintQuality","_unsigned_int",0},
12184 { "_wxPrintQuality","_wxWindowID",0},
12185 { "_wxPrintQuality","_uint",0},
12186 { "_wxPrintQuality","_EBool",0},
12187 { "_wxPrintQuality","_size_t",0},
12188 { "_wxPrintQuality","_time_t",0},
12189 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
12190 { "_byte","_unsigned_char",0},
12191 { "_long","_unsigned_long",0},
12192 { "_long","_signed_long",0},
12193 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
12194 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
12195 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
12196 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
12197 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
12198 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
12199 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
12200 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
12201 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
12202 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
12203 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
12204 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
12205 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
12206 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
12207 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
12208 { "_size_t","_wxCoord",0},
12209 { "_size_t","_wxPrintQuality",0},
12210 { "_size_t","_time_t",0},
12211 { "_size_t","_unsigned_int",0},
12212 { "_size_t","_int",0},
12213 { "_size_t","_wxWindowID",0},
12214 { "_size_t","_uint",0},
12215 { "_uint","_wxCoord",0},
12216 { "_uint","_wxPrintQuality",0},
12217 { "_uint","_time_t",0},
12218 { "_uint","_size_t",0},
12219 { "_uint","_unsigned_int",0},
12220 { "_uint","_int",0},
12221 { "_uint","_wxWindowID",0},
12222 { "_wxChar","_char",0},
12223 { "_char","_wxChar",0},
12224 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12225 { "_EBool","_wxCoord",0},
12226 { "_EBool","_wxPrintQuality",0},
12227 { "_EBool","_signed_int",0},
12228 { "_EBool","_int",0},
12229 { "_EBool","_wxWindowID",0},
12230 { "_unsigned_long","_long",0},
12231 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12232 { "_signed_int","_wxCoord",0},
12233 { "_signed_int","_wxPrintQuality",0},
12234 { "_signed_int","_EBool",0},
12235 { "_signed_int","_wxWindowID",0},
12236 { "_signed_int","_int",0},
12237 { "_WXTYPE","_short",0},
12238 { "_WXTYPE","_signed_short",0},
12239 { "_WXTYPE","_unsigned_short",0},
12240 { "_unsigned_short","_WXTYPE",0},
12241 { "_unsigned_short","_short",0},
12242 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
12243 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
12244 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
12245 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
12246 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject
},
12247 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
12248 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
12249 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
12250 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
12251 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
12252 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
12253 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
12254 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
12255 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
12256 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
12257 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
12258 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
12259 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
12260 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
12261 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
12262 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
12263 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
12264 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
12265 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
12266 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
12267 { "_signed_short","_WXTYPE",0},
12268 { "_signed_short","_short",0},
12269 { "_unsigned_char","_byte",0},
12270 { "_unsigned_int","_wxCoord",0},
12271 { "_unsigned_int","_wxPrintQuality",0},
12272 { "_unsigned_int","_time_t",0},
12273 { "_unsigned_int","_size_t",0},
12274 { "_unsigned_int","_uint",0},
12275 { "_unsigned_int","_wxWindowID",0},
12276 { "_unsigned_int","_int",0},
12277 { "_short","_WXTYPE",0},
12278 { "_short","_unsigned_short",0},
12279 { "_short","_signed_short",0},
12280 { "_wxWindowID","_wxCoord",0},
12281 { "_wxWindowID","_wxPrintQuality",0},
12282 { "_wxWindowID","_time_t",0},
12283 { "_wxWindowID","_size_t",0},
12284 { "_wxWindowID","_EBool",0},
12285 { "_wxWindowID","_uint",0},
12286 { "_wxWindowID","_int",0},
12287 { "_wxWindowID","_signed_int",0},
12288 { "_wxWindowID","_unsigned_int",0},
12289 { "_int","_wxCoord",0},
12290 { "_int","_wxPrintQuality",0},
12291 { "_int","_time_t",0},
12292 { "_int","_size_t",0},
12293 { "_int","_EBool",0},
12294 { "_int","_uint",0},
12295 { "_int","_wxWindowID",0},
12296 { "_int","_unsigned_int",0},
12297 { "_int","_signed_int",0},
12298 { "_time_t","_wxCoord",0},
12299 { "_time_t","_wxPrintQuality",0},
12300 { "_time_t","_unsigned_int",0},
12301 { "_time_t","_int",0},
12302 { "_time_t","_wxWindowID",0},
12303 { "_time_t","_uint",0},
12304 { "_time_t","_size_t",0},
12305 { "_wxCoord","_int",0},
12306 { "_wxCoord","_signed_int",0},
12307 { "_wxCoord","_unsigned_int",0},
12308 { "_wxCoord","_wxWindowID",0},
12309 { "_wxCoord","_uint",0},
12310 { "_wxCoord","_EBool",0},
12311 { "_wxCoord","_size_t",0},
12312 { "_wxCoord","_time_t",0},
12313 { "_wxCoord","_wxPrintQuality",0},
12316 static PyObject
*SWIG_globals
;
12320 SWIGEXPORT(void) initgdic() {
12322 SWIG_globals
= SWIG_newvarlink();
12323 m
= Py_InitModule("gdic", gdicMethods
);
12324 d
= PyModule_GetDict(m
);
12325 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
12326 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
12327 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
12328 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
12329 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
12330 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
12331 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
12332 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
12333 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
12334 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
12335 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
12336 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
12337 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
12338 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
12339 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
12340 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
12341 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
12342 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
12343 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
12344 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
12345 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
12346 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
12347 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
12348 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
12349 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
12350 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
12351 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
12352 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
12353 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
12354 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
12355 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
12356 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
12357 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
12358 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
12359 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
12360 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
12361 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
12362 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
12363 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
12364 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
12365 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
12366 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
12367 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
12368 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
12369 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
12370 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
12371 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
12372 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
12373 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
12374 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
12375 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
12376 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
12377 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
12378 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
12379 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
12380 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
12381 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
12382 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
12383 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
12384 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
12385 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
12386 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
12387 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
12388 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
12389 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
12390 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
12391 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
12392 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
12393 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
12394 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
12395 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
12396 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
12397 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
12398 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
12399 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
12400 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
12401 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
12402 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
12403 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
12404 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
12405 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
12406 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
12407 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
12408 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
12409 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
12410 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
12411 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
12412 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
12413 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
12414 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
12415 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
12416 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
12417 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
12418 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
12419 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
12420 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
12421 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
12422 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
12423 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
12424 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
12425 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
12426 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
12427 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
12428 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
12429 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
12430 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
12431 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
12432 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
12433 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
12434 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
12435 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
12436 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
12437 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
12440 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
12441 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);