2 * FILE : src/gtk/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/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 is required for parameter";
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
);
210 // Alternate 'constructor'
211 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
212 return new wxMemoryDC(oldDC
);
216 extern wxFont
* wxNORMAL_FONT
;
217 extern wxFont
* wxSMALL_FONT
;
218 extern wxFont
* wxITALIC_FONT
;
219 extern wxFont
* wxSWISS_FONT
;
220 extern wxPen
* wxRED_PEN
;
221 extern wxPen
* wxCYAN_PEN
;
222 extern wxPen
* wxGREEN_PEN
;
223 extern wxPen
* wxBLACK_PEN
;
224 extern wxPen
* wxWHITE_PEN
;
225 extern wxPen
* wxTRANSPARENT_PEN
;
226 extern wxPen
* wxBLACK_DASHED_PEN
;
227 extern wxPen
* wxGREY_PEN
;
228 extern wxPen
* wxMEDIUM_GREY_PEN
;
229 extern wxPen
* wxLIGHT_GREY_PEN
;
230 extern wxBrush
* wxBLUE_BRUSH
;
231 extern wxBrush
* wxGREEN_BRUSH
;
232 extern wxBrush
* wxWHITE_BRUSH
;
233 extern wxBrush
* wxBLACK_BRUSH
;
234 extern wxBrush
* wxTRANSPARENT_BRUSH
;
235 extern wxBrush
* wxCYAN_BRUSH
;
236 extern wxBrush
* wxRED_BRUSH
;
237 extern wxBrush
* wxGREY_BRUSH
;
238 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
239 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
240 extern wxColour
* wxBLACK
;
241 extern wxColour
* wxWHITE
;
242 extern wxColour
* wxRED
;
243 extern wxColour
* wxBLUE
;
244 extern wxColour
* wxGREEN
;
245 extern wxColour
* wxCYAN
;
246 extern wxColour
* wxLIGHT_GREY
;
247 extern wxCursor
* wxSTANDARD_CURSOR
;
248 extern wxCursor
* wxHOURGLASS_CURSOR
;
249 extern wxCursor
* wxCROSS_CURSOR
;
250 extern wxBitmap wxNullBitmap
;
251 extern wxIcon wxNullIcon
;
252 extern wxCursor wxNullCursor
;
253 extern wxPen wxNullPen
;
254 extern wxBrush wxNullBrush
;
255 extern wxPalette wxNullPalette
;
256 extern wxFont wxNullFont
;
257 extern wxColour wxNullColour
;
258 extern wxFontList
* wxTheFontList
;
259 extern wxPenList
* wxThePenList
;
260 extern wxBrushList
* wxTheBrushList
;
261 extern wxColourDatabase
* wxTheColourDatabase
;
267 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
268 PyObject
* _resultobj
;
272 int _arg2
= (int ) -1;
273 char *_kwnames
[] = { "width","height","depth", NULL
};
277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
280 wxPy_BEGIN_ALLOW_THREADS
;
281 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
283 wxPy_END_ALLOW_THREADS
;
284 if (PyErr_Occurred()) return NULL
;
286 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
287 _resultobj
= Py_BuildValue("s",_ptemp
);
290 _resultobj
= Py_None
;
295 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
296 PyObject
* _resultobj
;
299 PyObject
* _obj0
= 0;
300 char *_kwnames
[] = { "listOfStrings", NULL
};
304 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
310 wxPy_BEGIN_ALLOW_THREADS
;
311 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
313 wxPy_END_ALLOW_THREADS
;
314 if (PyErr_Occurred()) return NULL
;
316 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
317 _resultobj
= Py_BuildValue("s",_ptemp
);
320 _resultobj
= Py_None
;
325 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
326 PyObject
* _resultobj
;
329 PyObject
* _argo0
= 0;
330 char *_kwnames
[] = { "icon", NULL
};
334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
337 if (_argo0
== Py_None
) { _arg0
= NULL
; }
338 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
339 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
344 wxPy_BEGIN_ALLOW_THREADS
;
345 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
347 wxPy_END_ALLOW_THREADS
;
348 if (PyErr_Occurred()) return NULL
;
350 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
351 _resultobj
= Py_BuildValue("s",_ptemp
);
354 _resultobj
= Py_None
;
359 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
360 PyObject
* _resultobj
;
365 int _arg3
= (int ) 1;
366 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"sii|i:wxBitmapFromBits",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
373 wxPy_BEGIN_ALLOW_THREADS
;
374 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
376 wxPy_END_ALLOW_THREADS
;
377 if (PyErr_Occurred()) return NULL
;
379 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
380 _resultobj
= Py_BuildValue("s",_ptemp
);
383 _resultobj
= Py_None
;
388 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
389 PyObject
* _resultobj
;
393 PyObject
* _argo0
= 0;
395 PyObject
* _obj1
= 0;
396 char *_kwnames
[] = { "bitmap","colour", NULL
};
400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
403 if (_argo0
== Py_None
) { _arg0
= NULL
; }
404 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
411 if (! wxColour_helper(_obj1
, &_arg1
))
415 wxPy_BEGIN_ALLOW_THREADS
;
416 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
418 wxPy_END_ALLOW_THREADS
;
419 if (PyErr_Occurred()) return NULL
;
421 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
422 _resultobj
= Py_BuildValue("s",_ptemp
);
425 _resultobj
= Py_None
;
430 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
431 PyObject
* _resultobj
;
433 char *_kwnames
[] = { NULL
};
437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
440 wxPy_BEGIN_ALLOW_THREADS
;
441 _result
= (wxIcon
*)wxEmptyIcon();
443 wxPy_END_ALLOW_THREADS
;
444 if (PyErr_Occurred()) return NULL
;
446 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
447 _resultobj
= Py_BuildValue("s",_ptemp
);
450 _resultobj
= Py_None
;
455 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
456 PyObject
* _resultobj
;
459 PyObject
* _obj0
= 0;
460 char *_kwnames
[] = { "listOfStrings", NULL
};
464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
470 wxPy_BEGIN_ALLOW_THREADS
;
471 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
473 wxPy_END_ALLOW_THREADS
;
474 if (PyErr_Occurred()) return NULL
;
476 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
477 _resultobj
= Py_BuildValue("s",_ptemp
);
480 _resultobj
= Py_None
;
485 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
486 PyObject
* _resultobj
;
489 char *_kwnames
[] = { "id", NULL
};
493 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
496 wxPy_BEGIN_ALLOW_THREADS
;
497 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
499 wxPy_END_ALLOW_THREADS
;
500 if (PyErr_Occurred()) return NULL
;
502 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
503 _resultobj
= Py_BuildValue("s",_ptemp
);
506 _resultobj
= Py_None
;
511 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
512 PyObject
* _resultobj
;
515 PyObject
* _obj0
= 0;
516 char *_kwnames
[] = { "colorName", NULL
};
520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
523 #if PYTHON_API_VERSION >= 1009
524 char* tmpPtr
; int tmpSize
;
525 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
526 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
529 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
531 _arg0
= new wxString(tmpPtr
, tmpSize
);
533 if (!PyString_Check(_obj0
)) {
534 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
537 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
541 wxPy_BEGIN_ALLOW_THREADS
;
542 _result
= (wxColour
*)wxNamedColour(*_arg0
);
544 wxPy_END_ALLOW_THREADS
;
545 if (PyErr_Occurred()) return NULL
;
547 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
548 _resultobj
= Py_BuildValue("s",_ptemp
);
551 _resultobj
= Py_None
;
560 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
561 PyObject
* _resultobj
;
562 wxMemoryDC
* _result
;
564 PyObject
* _argo0
= 0;
565 char *_kwnames
[] = { "oldDC", NULL
};
569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
579 wxPy_BEGIN_ALLOW_THREADS
;
580 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
582 wxPy_END_ALLOW_THREADS
;
583 if (PyErr_Occurred()) return NULL
;
585 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
586 _resultobj
= Py_BuildValue("s",_ptemp
);
589 _resultobj
= Py_None
;
594 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
596 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
600 static PyObject
*_wrap_wxNORMAL_FONT_get() {
604 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
605 pyobj
= PyString_FromString(ptemp
);
609 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
611 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
615 static PyObject
*_wrap_wxSMALL_FONT_get() {
619 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
620 pyobj
= PyString_FromString(ptemp
);
624 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
626 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
630 static PyObject
*_wrap_wxITALIC_FONT_get() {
634 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
635 pyobj
= PyString_FromString(ptemp
);
639 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
641 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
645 static PyObject
*_wrap_wxSWISS_FONT_get() {
649 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
650 pyobj
= PyString_FromString(ptemp
);
654 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
656 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
660 static PyObject
*_wrap_wxRED_PEN_get() {
664 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
665 pyobj
= PyString_FromString(ptemp
);
669 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
671 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
675 static PyObject
*_wrap_wxCYAN_PEN_get() {
679 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
680 pyobj
= PyString_FromString(ptemp
);
684 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
686 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
690 static PyObject
*_wrap_wxGREEN_PEN_get() {
694 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
695 pyobj
= PyString_FromString(ptemp
);
699 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
701 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
705 static PyObject
*_wrap_wxBLACK_PEN_get() {
709 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
710 pyobj
= PyString_FromString(ptemp
);
714 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
716 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
720 static PyObject
*_wrap_wxWHITE_PEN_get() {
724 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
725 pyobj
= PyString_FromString(ptemp
);
729 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
731 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
735 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
739 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
740 pyobj
= PyString_FromString(ptemp
);
744 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
746 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
750 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
754 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
755 pyobj
= PyString_FromString(ptemp
);
759 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
761 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
765 static PyObject
*_wrap_wxGREY_PEN_get() {
769 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
770 pyobj
= PyString_FromString(ptemp
);
774 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
776 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
780 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
784 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
785 pyobj
= PyString_FromString(ptemp
);
789 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
791 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
795 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
799 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
800 pyobj
= PyString_FromString(ptemp
);
804 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
806 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
810 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
814 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
815 pyobj
= PyString_FromString(ptemp
);
819 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
821 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
825 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
829 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
830 pyobj
= PyString_FromString(ptemp
);
834 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
836 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
840 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
844 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
845 pyobj
= PyString_FromString(ptemp
);
849 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
851 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
855 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
859 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
860 pyobj
= PyString_FromString(ptemp
);
864 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
866 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
870 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
874 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
875 pyobj
= PyString_FromString(ptemp
);
879 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
881 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
885 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
889 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
890 pyobj
= PyString_FromString(ptemp
);
894 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
896 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
900 static PyObject
*_wrap_wxRED_BRUSH_get() {
904 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
905 pyobj
= PyString_FromString(ptemp
);
909 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
911 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
915 static PyObject
*_wrap_wxGREY_BRUSH_get() {
919 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
920 pyobj
= PyString_FromString(ptemp
);
924 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
926 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
930 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
934 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
935 pyobj
= PyString_FromString(ptemp
);
939 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
941 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
945 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
949 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
950 pyobj
= PyString_FromString(ptemp
);
954 static int _wrap_wxBLACK_set(PyObject
*val
) {
956 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
960 static PyObject
*_wrap_wxBLACK_get() {
964 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
965 pyobj
= PyString_FromString(ptemp
);
969 static int _wrap_wxWHITE_set(PyObject
*val
) {
971 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
975 static PyObject
*_wrap_wxWHITE_get() {
979 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
980 pyobj
= PyString_FromString(ptemp
);
984 static int _wrap_wxRED_set(PyObject
*val
) {
986 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
990 static PyObject
*_wrap_wxRED_get() {
994 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
995 pyobj
= PyString_FromString(ptemp
);
999 static int _wrap_wxBLUE_set(PyObject
*val
) {
1001 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1005 static PyObject
*_wrap_wxBLUE_get() {
1009 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1010 pyobj
= PyString_FromString(ptemp
);
1014 static int _wrap_wxGREEN_set(PyObject
*val
) {
1016 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1020 static PyObject
*_wrap_wxGREEN_get() {
1024 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1025 pyobj
= PyString_FromString(ptemp
);
1029 static int _wrap_wxCYAN_set(PyObject
*val
) {
1031 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1035 static PyObject
*_wrap_wxCYAN_get() {
1039 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1040 pyobj
= PyString_FromString(ptemp
);
1044 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1046 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1050 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1054 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1055 pyobj
= PyString_FromString(ptemp
);
1059 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1061 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1065 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1069 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1070 pyobj
= PyString_FromString(ptemp
);
1074 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1076 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1080 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1084 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1085 pyobj
= PyString_FromString(ptemp
);
1089 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1091 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1095 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1099 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1100 pyobj
= PyString_FromString(ptemp
);
1104 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1106 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1110 static PyObject
*_wrap_wxNullBitmap_get() {
1114 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1115 pyobj
= PyString_FromString(ptemp
);
1119 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1121 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1125 static PyObject
*_wrap_wxNullIcon_get() {
1129 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1130 pyobj
= PyString_FromString(ptemp
);
1134 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1136 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1140 static PyObject
*_wrap_wxNullCursor_get() {
1144 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1145 pyobj
= PyString_FromString(ptemp
);
1149 static int _wrap_wxNullPen_set(PyObject
*val
) {
1151 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1155 static PyObject
*_wrap_wxNullPen_get() {
1159 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1160 pyobj
= PyString_FromString(ptemp
);
1164 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1166 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1170 static PyObject
*_wrap_wxNullBrush_get() {
1174 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1175 pyobj
= PyString_FromString(ptemp
);
1179 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1181 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1185 static PyObject
*_wrap_wxNullPalette_get() {
1189 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1190 pyobj
= PyString_FromString(ptemp
);
1194 static int _wrap_wxNullFont_set(PyObject
*val
) {
1196 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1200 static PyObject
*_wrap_wxNullFont_get() {
1204 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1205 pyobj
= PyString_FromString(ptemp
);
1209 static int _wrap_wxNullColour_set(PyObject
*val
) {
1211 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1215 static PyObject
*_wrap_wxNullColour_get() {
1219 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1220 pyobj
= PyString_FromString(ptemp
);
1224 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1226 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1230 static PyObject
*_wrap_wxTheFontList_get() {
1234 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1235 pyobj
= PyString_FromString(ptemp
);
1239 static int _wrap_wxThePenList_set(PyObject
*val
) {
1241 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1245 static PyObject
*_wrap_wxThePenList_get() {
1249 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1250 pyobj
= PyString_FromString(ptemp
);
1254 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1256 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1260 static PyObject
*_wrap_wxTheBrushList_get() {
1264 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1265 pyobj
= PyString_FromString(ptemp
);
1269 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1271 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1275 static PyObject
*_wrap_wxTheColourDatabase_get() {
1279 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1280 pyobj
= PyString_FromString(ptemp
);
1284 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1287 src
= (wxGDIObject
*) ptr
;
1288 dest
= (wxObject
*) src
;
1289 return (void *) dest
;
1292 #define new_wxGDIObject() (new wxGDIObject())
1293 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1294 PyObject
* _resultobj
;
1295 wxGDIObject
* _result
;
1296 char *_kwnames
[] = { NULL
};
1300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1303 wxPy_BEGIN_ALLOW_THREADS
;
1304 _result
= (wxGDIObject
*)new_wxGDIObject();
1306 wxPy_END_ALLOW_THREADS
;
1307 if (PyErr_Occurred()) return NULL
;
1309 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1310 _resultobj
= Py_BuildValue("s",_ptemp
);
1313 _resultobj
= Py_None
;
1318 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1319 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1320 PyObject
* _resultobj
;
1321 wxGDIObject
* _arg0
;
1322 PyObject
* _argo0
= 0;
1323 char *_kwnames
[] = { "self", NULL
};
1326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1336 wxPy_BEGIN_ALLOW_THREADS
;
1337 delete_wxGDIObject(_arg0
);
1339 wxPy_END_ALLOW_THREADS
;
1340 if (PyErr_Occurred()) return NULL
;
1341 } Py_INCREF(Py_None
);
1342 _resultobj
= Py_None
;
1346 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1347 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1348 PyObject
* _resultobj
;
1350 wxGDIObject
* _arg0
;
1351 PyObject
* _argo0
= 0;
1352 char *_kwnames
[] = { "self", NULL
};
1355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1365 wxPy_BEGIN_ALLOW_THREADS
;
1366 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1368 wxPy_END_ALLOW_THREADS
;
1369 if (PyErr_Occurred()) return NULL
;
1370 } _resultobj
= Py_BuildValue("i",_result
);
1374 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1375 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1376 PyObject
* _resultobj
;
1377 wxGDIObject
* _arg0
;
1379 PyObject
* _argo0
= 0;
1381 char *_kwnames
[] = { "self","visible", NULL
};
1384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1393 _arg1
= (bool ) tempbool1
;
1395 wxPy_BEGIN_ALLOW_THREADS
;
1396 wxGDIObject_SetVisible(_arg0
,_arg1
);
1398 wxPy_END_ALLOW_THREADS
;
1399 if (PyErr_Occurred()) return NULL
;
1400 } Py_INCREF(Py_None
);
1401 _resultobj
= Py_None
;
1405 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1406 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1407 PyObject
* _resultobj
;
1409 wxGDIObject
* _arg0
;
1410 PyObject
* _argo0
= 0;
1411 char *_kwnames
[] = { "self", NULL
};
1414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1417 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1418 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1424 wxPy_BEGIN_ALLOW_THREADS
;
1425 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1427 wxPy_END_ALLOW_THREADS
;
1428 if (PyErr_Occurred()) return NULL
;
1429 } _resultobj
= Py_BuildValue("i",_result
);
1433 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1436 src
= (wxBitmap
*) ptr
;
1437 dest
= (wxGDIObject
*) src
;
1438 return (void *) dest
;
1441 static void *SwigwxBitmapTowxObject(void *ptr
) {
1444 src
= (wxBitmap
*) ptr
;
1445 dest
= (wxObject
*) src
;
1446 return (void *) dest
;
1449 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1450 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1451 PyObject
* _resultobj
;
1455 PyObject
* _obj0
= 0;
1456 char *_kwnames
[] = { "name","type", NULL
};
1460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1463 #if PYTHON_API_VERSION >= 1009
1464 char* tmpPtr
; int tmpSize
;
1465 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1466 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1469 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1471 _arg0
= new wxString(tmpPtr
, tmpSize
);
1473 if (!PyString_Check(_obj0
)) {
1474 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1477 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1481 wxPy_BEGIN_ALLOW_THREADS
;
1482 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1484 wxPy_END_ALLOW_THREADS
;
1485 if (PyErr_Occurred()) return NULL
;
1487 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1488 _resultobj
= Py_BuildValue("s",_ptemp
);
1491 _resultobj
= Py_None
;
1500 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1501 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1502 PyObject
* _resultobj
;
1504 PyObject
* _argo0
= 0;
1505 char *_kwnames
[] = { "self", NULL
};
1508 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1511 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1512 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1513 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1518 wxPy_BEGIN_ALLOW_THREADS
;
1519 delete_wxBitmap(_arg0
);
1521 wxPy_END_ALLOW_THREADS
;
1522 if (PyErr_Occurred()) return NULL
;
1523 } Py_INCREF(Py_None
);
1524 _resultobj
= Py_None
;
1528 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1529 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1530 PyObject
* _resultobj
;
1531 wxPalette
* _result
;
1533 PyObject
* _argo0
= 0;
1534 char *_kwnames
[] = { "self", NULL
};
1538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1548 wxPy_BEGIN_ALLOW_THREADS
;
1549 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1551 wxPy_END_ALLOW_THREADS
;
1552 if (PyErr_Occurred()) return NULL
;
1554 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1555 _resultobj
= Py_BuildValue("s",_ptemp
);
1558 _resultobj
= Py_None
;
1563 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1564 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1565 PyObject
* _resultobj
;
1568 PyObject
* _argo0
= 0;
1569 char *_kwnames
[] = { "self", NULL
};
1573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1576 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1577 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1583 wxPy_BEGIN_ALLOW_THREADS
;
1584 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1586 wxPy_END_ALLOW_THREADS
;
1587 if (PyErr_Occurred()) return NULL
;
1589 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1590 _resultobj
= Py_BuildValue("s",_ptemp
);
1593 _resultobj
= Py_None
;
1598 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1599 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1600 PyObject
* _resultobj
;
1605 PyObject
* _argo0
= 0;
1606 PyObject
* _obj1
= 0;
1607 char *_kwnames
[] = { "self","name","flags", NULL
};
1610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1613 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1614 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1620 #if PYTHON_API_VERSION >= 1009
1621 char* tmpPtr
; int tmpSize
;
1622 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1623 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1626 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1628 _arg1
= new wxString(tmpPtr
, tmpSize
);
1630 if (!PyString_Check(_obj1
)) {
1631 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1634 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1638 wxPy_BEGIN_ALLOW_THREADS
;
1639 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1641 wxPy_END_ALLOW_THREADS
;
1642 if (PyErr_Occurred()) return NULL
;
1643 } _resultobj
= Py_BuildValue("i",_result
);
1651 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1652 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1653 PyObject
* _resultobj
;
1658 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1659 PyObject
* _argo0
= 0;
1660 PyObject
* _obj1
= 0;
1661 PyObject
* _argo3
= 0;
1662 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1668 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1669 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1670 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1675 #if PYTHON_API_VERSION >= 1009
1676 char* tmpPtr
; int tmpSize
;
1677 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1678 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1681 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1683 _arg1
= new wxString(tmpPtr
, tmpSize
);
1685 if (!PyString_Check(_obj1
)) {
1686 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1689 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1693 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1694 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1700 wxPy_BEGIN_ALLOW_THREADS
;
1701 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1703 wxPy_END_ALLOW_THREADS
;
1704 if (PyErr_Occurred()) return NULL
;
1705 } _resultobj
= Py_BuildValue("i",_result
);
1713 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1714 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1715 PyObject
* _resultobj
;
1718 PyObject
* _argo0
= 0;
1719 PyObject
* _argo1
= 0;
1720 char *_kwnames
[] = { "self","mask", NULL
};
1723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1733 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1734 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1740 wxPy_BEGIN_ALLOW_THREADS
;
1741 wxBitmap_SetMask(_arg0
,_arg1
);
1743 wxPy_END_ALLOW_THREADS
;
1744 if (PyErr_Occurred()) return NULL
;
1745 } Py_INCREF(Py_None
);
1746 _resultobj
= Py_None
;
1750 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1751 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1752 PyObject
* _resultobj
;
1755 PyObject
* _argo0
= 0;
1756 char *_kwnames
[] = { "self", NULL
};
1759 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1762 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1763 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1764 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1769 wxPy_BEGIN_ALLOW_THREADS
;
1770 _result
= (bool )wxBitmap_Ok(_arg0
);
1772 wxPy_END_ALLOW_THREADS
;
1773 if (PyErr_Occurred()) return NULL
;
1774 } _resultobj
= Py_BuildValue("i",_result
);
1778 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1779 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1780 PyObject
* _resultobj
;
1783 PyObject
* _argo0
= 0;
1784 char *_kwnames
[] = { "self", NULL
};
1787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1797 wxPy_BEGIN_ALLOW_THREADS
;
1798 _result
= (int )wxBitmap_GetWidth(_arg0
);
1800 wxPy_END_ALLOW_THREADS
;
1801 if (PyErr_Occurred()) return NULL
;
1802 } _resultobj
= Py_BuildValue("i",_result
);
1806 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1807 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1808 PyObject
* _resultobj
;
1811 PyObject
* _argo0
= 0;
1812 char *_kwnames
[] = { "self", NULL
};
1815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1825 wxPy_BEGIN_ALLOW_THREADS
;
1826 _result
= (int )wxBitmap_GetHeight(_arg0
);
1828 wxPy_END_ALLOW_THREADS
;
1829 if (PyErr_Occurred()) return NULL
;
1830 } _resultobj
= Py_BuildValue("i",_result
);
1834 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1835 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1836 PyObject
* _resultobj
;
1839 PyObject
* _argo0
= 0;
1840 char *_kwnames
[] = { "self", NULL
};
1843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1853 wxPy_BEGIN_ALLOW_THREADS
;
1854 _result
= (int )wxBitmap_GetDepth(_arg0
);
1856 wxPy_END_ALLOW_THREADS
;
1857 if (PyErr_Occurred()) return NULL
;
1858 } _resultobj
= Py_BuildValue("i",_result
);
1862 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1863 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1864 PyObject
* _resultobj
;
1867 PyObject
* _argo0
= 0;
1868 char *_kwnames
[] = { "self","w", NULL
};
1871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1874 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1875 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1881 wxPy_BEGIN_ALLOW_THREADS
;
1882 wxBitmap_SetWidth(_arg0
,_arg1
);
1884 wxPy_END_ALLOW_THREADS
;
1885 if (PyErr_Occurred()) return NULL
;
1886 } Py_INCREF(Py_None
);
1887 _resultobj
= Py_None
;
1891 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1892 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1893 PyObject
* _resultobj
;
1896 PyObject
* _argo0
= 0;
1897 char *_kwnames
[] = { "self","h", NULL
};
1900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1910 wxPy_BEGIN_ALLOW_THREADS
;
1911 wxBitmap_SetHeight(_arg0
,_arg1
);
1913 wxPy_END_ALLOW_THREADS
;
1914 if (PyErr_Occurred()) return NULL
;
1915 } Py_INCREF(Py_None
);
1916 _resultobj
= Py_None
;
1920 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1921 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1922 PyObject
* _resultobj
;
1925 PyObject
* _argo0
= 0;
1926 char *_kwnames
[] = { "self","d", NULL
};
1929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1932 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1933 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1939 wxPy_BEGIN_ALLOW_THREADS
;
1940 wxBitmap_SetDepth(_arg0
,_arg1
);
1942 wxPy_END_ALLOW_THREADS
;
1943 if (PyErr_Occurred()) return NULL
;
1944 } Py_INCREF(Py_None
);
1945 _resultobj
= Py_None
;
1949 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1950 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1951 PyObject
* _resultobj
;
1955 PyObject
* _argo0
= 0;
1957 PyObject
* _obj1
= 0;
1958 char *_kwnames
[] = { "self","rect", NULL
};
1962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1965 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1966 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1973 if (! wxRect_helper(_obj1
, &_arg1
))
1977 wxPy_BEGIN_ALLOW_THREADS
;
1978 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
1980 wxPy_END_ALLOW_THREADS
;
1981 if (PyErr_Occurred()) return NULL
;
1982 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1983 _resultobj
= Py_BuildValue("s",_ptemp
);
1987 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
1988 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1989 PyObject
* _resultobj
;
1993 PyObject
* _argo0
= 0;
1994 PyObject
* _argo1
= 0;
1995 char *_kwnames
[] = { "self","icon", NULL
};
1998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2001 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2002 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2008 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2009 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2010 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2015 wxPy_BEGIN_ALLOW_THREADS
;
2016 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2018 wxPy_END_ALLOW_THREADS
;
2019 if (PyErr_Occurred()) return NULL
;
2020 } _resultobj
= Py_BuildValue("i",_result
);
2024 static void *SwigwxMaskTowxObject(void *ptr
) {
2027 src
= (wxMask
*) ptr
;
2028 dest
= (wxObject
*) src
;
2029 return (void *) dest
;
2032 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2033 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2034 PyObject
* _resultobj
;
2037 PyObject
* _argo0
= 0;
2038 char *_kwnames
[] = { "bitmap", NULL
};
2042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2045 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2046 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2052 wxPy_BEGIN_ALLOW_THREADS
;
2053 _result
= (wxMask
*)new_wxMask(*_arg0
);
2055 wxPy_END_ALLOW_THREADS
;
2056 if (PyErr_Occurred()) return NULL
;
2058 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2059 _resultobj
= Py_BuildValue("s",_ptemp
);
2062 _resultobj
= Py_None
;
2067 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2068 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2069 PyObject
* _resultobj
;
2071 PyObject
* _argo0
= 0;
2072 char *_kwnames
[] = { "self", NULL
};
2075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2078 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2079 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2085 wxPy_BEGIN_ALLOW_THREADS
;
2086 wxMask_Destroy(_arg0
);
2088 wxPy_END_ALLOW_THREADS
;
2089 if (PyErr_Occurred()) return NULL
;
2090 } Py_INCREF(Py_None
);
2091 _resultobj
= Py_None
;
2095 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2098 src
= (wxIcon
*) ptr
;
2099 dest
= (wxGDIObject
*) src
;
2100 return (void *) dest
;
2103 static void *SwigwxIconTowxObject(void *ptr
) {
2106 src
= (wxIcon
*) ptr
;
2107 dest
= (wxObject
*) src
;
2108 return (void *) dest
;
2111 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2112 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2113 PyObject
* _resultobj
;
2117 int _arg2
= (int ) -1;
2118 int _arg3
= (int ) -1;
2119 PyObject
* _obj0
= 0;
2120 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2127 #if PYTHON_API_VERSION >= 1009
2128 char* tmpPtr
; int tmpSize
;
2129 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2130 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2133 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2135 _arg0
= new wxString(tmpPtr
, tmpSize
);
2137 if (!PyString_Check(_obj0
)) {
2138 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2141 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2145 wxPy_BEGIN_ALLOW_THREADS
;
2146 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2148 wxPy_END_ALLOW_THREADS
;
2149 if (PyErr_Occurred()) return NULL
;
2151 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2152 _resultobj
= Py_BuildValue("s",_ptemp
);
2155 _resultobj
= Py_None
;
2164 #define delete_wxIcon(_swigobj) (delete _swigobj)
2165 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2166 PyObject
* _resultobj
;
2168 PyObject
* _argo0
= 0;
2169 char *_kwnames
[] = { "self", NULL
};
2172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2182 wxPy_BEGIN_ALLOW_THREADS
;
2183 delete_wxIcon(_arg0
);
2185 wxPy_END_ALLOW_THREADS
;
2186 if (PyErr_Occurred()) return NULL
;
2187 } Py_INCREF(Py_None
);
2188 _resultobj
= Py_None
;
2192 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2193 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2194 PyObject
* _resultobj
;
2199 PyObject
* _argo0
= 0;
2200 PyObject
* _obj1
= 0;
2201 char *_kwnames
[] = { "self","name","flags", NULL
};
2204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2214 #if PYTHON_API_VERSION >= 1009
2215 char* tmpPtr
; int tmpSize
;
2216 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2217 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2220 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2222 _arg1
= new wxString(tmpPtr
, tmpSize
);
2224 if (!PyString_Check(_obj1
)) {
2225 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2228 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2232 wxPy_BEGIN_ALLOW_THREADS
;
2233 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2235 wxPy_END_ALLOW_THREADS
;
2236 if (PyErr_Occurred()) return NULL
;
2237 } _resultobj
= Py_BuildValue("i",_result
);
2245 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2246 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2247 PyObject
* _resultobj
;
2250 PyObject
* _argo0
= 0;
2251 char *_kwnames
[] = { "self", NULL
};
2254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2257 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2258 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2264 wxPy_BEGIN_ALLOW_THREADS
;
2265 _result
= (bool )wxIcon_Ok(_arg0
);
2267 wxPy_END_ALLOW_THREADS
;
2268 if (PyErr_Occurred()) return NULL
;
2269 } _resultobj
= Py_BuildValue("i",_result
);
2273 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2274 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2275 PyObject
* _resultobj
;
2278 PyObject
* _argo0
= 0;
2279 char *_kwnames
[] = { "self", NULL
};
2282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2292 wxPy_BEGIN_ALLOW_THREADS
;
2293 _result
= (int )wxIcon_GetWidth(_arg0
);
2295 wxPy_END_ALLOW_THREADS
;
2296 if (PyErr_Occurred()) return NULL
;
2297 } _resultobj
= Py_BuildValue("i",_result
);
2301 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2302 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2303 PyObject
* _resultobj
;
2306 PyObject
* _argo0
= 0;
2307 char *_kwnames
[] = { "self", NULL
};
2310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2320 wxPy_BEGIN_ALLOW_THREADS
;
2321 _result
= (int )wxIcon_GetHeight(_arg0
);
2323 wxPy_END_ALLOW_THREADS
;
2324 if (PyErr_Occurred()) return NULL
;
2325 } _resultobj
= Py_BuildValue("i",_result
);
2329 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2330 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2331 PyObject
* _resultobj
;
2334 PyObject
* _argo0
= 0;
2335 char *_kwnames
[] = { "self", NULL
};
2338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2348 wxPy_BEGIN_ALLOW_THREADS
;
2349 _result
= (int )wxIcon_GetDepth(_arg0
);
2351 wxPy_END_ALLOW_THREADS
;
2352 if (PyErr_Occurred()) return NULL
;
2353 } _resultobj
= Py_BuildValue("i",_result
);
2357 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2358 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2359 PyObject
* _resultobj
;
2362 PyObject
* _argo0
= 0;
2363 char *_kwnames
[] = { "self","w", NULL
};
2366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2376 wxPy_BEGIN_ALLOW_THREADS
;
2377 wxIcon_SetWidth(_arg0
,_arg1
);
2379 wxPy_END_ALLOW_THREADS
;
2380 if (PyErr_Occurred()) return NULL
;
2381 } Py_INCREF(Py_None
);
2382 _resultobj
= Py_None
;
2386 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2387 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2388 PyObject
* _resultobj
;
2391 PyObject
* _argo0
= 0;
2392 char *_kwnames
[] = { "self","h", NULL
};
2395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2405 wxPy_BEGIN_ALLOW_THREADS
;
2406 wxIcon_SetHeight(_arg0
,_arg1
);
2408 wxPy_END_ALLOW_THREADS
;
2409 if (PyErr_Occurred()) return NULL
;
2410 } Py_INCREF(Py_None
);
2411 _resultobj
= Py_None
;
2415 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2416 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2417 PyObject
* _resultobj
;
2420 PyObject
* _argo0
= 0;
2421 char *_kwnames
[] = { "self","d", NULL
};
2424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2427 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2428 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2434 wxPy_BEGIN_ALLOW_THREADS
;
2435 wxIcon_SetDepth(_arg0
,_arg1
);
2437 wxPy_END_ALLOW_THREADS
;
2438 if (PyErr_Occurred()) return NULL
;
2439 } Py_INCREF(Py_None
);
2440 _resultobj
= Py_None
;
2444 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2445 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2446 PyObject
* _resultobj
;
2449 PyObject
* _argo0
= 0;
2450 PyObject
* _argo1
= 0;
2451 char *_kwnames
[] = { "self","bmp", NULL
};
2454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2464 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2465 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2466 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2471 wxPy_BEGIN_ALLOW_THREADS
;
2472 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2474 wxPy_END_ALLOW_THREADS
;
2475 if (PyErr_Occurred()) return NULL
;
2476 } Py_INCREF(Py_None
);
2477 _resultobj
= Py_None
;
2481 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2484 src
= (wxCursor
*) ptr
;
2485 dest
= (wxGDIObject
*) src
;
2486 return (void *) dest
;
2489 static void *SwigwxCursorTowxObject(void *ptr
) {
2492 src
= (wxCursor
*) ptr
;
2493 dest
= (wxObject
*) src
;
2494 return (void *) dest
;
2497 #define delete_wxCursor(_swigobj) (delete _swigobj)
2498 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2499 PyObject
* _resultobj
;
2501 PyObject
* _argo0
= 0;
2502 char *_kwnames
[] = { "self", NULL
};
2505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2515 wxPy_BEGIN_ALLOW_THREADS
;
2516 delete_wxCursor(_arg0
);
2518 wxPy_END_ALLOW_THREADS
;
2519 if (PyErr_Occurred()) return NULL
;
2520 } Py_INCREF(Py_None
);
2521 _resultobj
= Py_None
;
2525 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2526 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2527 PyObject
* _resultobj
;
2530 PyObject
* _argo0
= 0;
2531 char *_kwnames
[] = { "self", NULL
};
2534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2544 wxPy_BEGIN_ALLOW_THREADS
;
2545 _result
= (bool )wxCursor_Ok(_arg0
);
2547 wxPy_END_ALLOW_THREADS
;
2548 if (PyErr_Occurred()) return NULL
;
2549 } _resultobj
= Py_BuildValue("i",_result
);
2553 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
2554 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2555 PyObject
* _resultobj
;
2557 wxNativeFontInfo
* _arg0
;
2559 PyObject
* _argo0
= 0;
2560 PyObject
* _obj1
= 0;
2561 char *_kwnames
[] = { "self","s", NULL
};
2564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
2567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
2574 #if PYTHON_API_VERSION >= 1009
2575 char* tmpPtr
; int tmpSize
;
2576 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2577 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2580 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2582 _arg1
= new wxString(tmpPtr
, tmpSize
);
2584 if (!PyString_Check(_obj1
)) {
2585 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2588 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2592 wxPy_BEGIN_ALLOW_THREADS
;
2593 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
2595 wxPy_END_ALLOW_THREADS
;
2596 if (PyErr_Occurred()) return NULL
;
2597 } _resultobj
= Py_BuildValue("i",_result
);
2605 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
2606 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2607 PyObject
* _resultobj
;
2609 wxNativeFontInfo
* _arg0
;
2610 PyObject
* _argo0
= 0;
2611 char *_kwnames
[] = { "self", NULL
};
2614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
2617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
2624 wxPy_BEGIN_ALLOW_THREADS
;
2625 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
2627 wxPy_END_ALLOW_THREADS
;
2628 if (PyErr_Occurred()) return NULL
;
2630 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2638 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
2639 return self
->ToString();
2641 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2642 PyObject
* _resultobj
;
2644 wxNativeFontInfo
* _arg0
;
2645 PyObject
* _argo0
= 0;
2646 char *_kwnames
[] = { "self", NULL
};
2649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
2652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
2659 wxPy_BEGIN_ALLOW_THREADS
;
2660 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
2662 wxPy_END_ALLOW_THREADS
;
2663 if (PyErr_Occurred()) return NULL
;
2665 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2673 #define new_wxFontMapper() (new wxFontMapper())
2674 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2675 PyObject
* _resultobj
;
2676 wxFontMapper
* _result
;
2677 char *_kwnames
[] = { NULL
};
2681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
2684 wxPy_BEGIN_ALLOW_THREADS
;
2685 _result
= (wxFontMapper
*)new_wxFontMapper();
2687 wxPy_END_ALLOW_THREADS
;
2688 if (PyErr_Occurred()) return NULL
;
2690 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
2691 _resultobj
= Py_BuildValue("s",_ptemp
);
2694 _resultobj
= Py_None
;
2699 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
2700 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2701 PyObject
* _resultobj
;
2702 wxFontMapper
* _arg0
;
2703 PyObject
* _argo0
= 0;
2704 char *_kwnames
[] = { "self", NULL
};
2707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
2710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
2717 wxPy_BEGIN_ALLOW_THREADS
;
2718 delete_wxFontMapper(_arg0
);
2720 wxPy_END_ALLOW_THREADS
;
2721 if (PyErr_Occurred()) return NULL
;
2722 } Py_INCREF(Py_None
);
2723 _resultobj
= Py_None
;
2727 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
2728 wxFontEncoding alt_enc
;
2729 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
2730 return PyInt_FromLong(alt_enc
);
2736 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2737 PyObject
* _resultobj
;
2739 wxFontMapper
* _arg0
;
2740 wxFontEncoding _arg1
;
2741 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
2742 bool _arg3
= (bool ) TRUE
;
2743 PyObject
* _argo0
= 0;
2744 PyObject
* _obj2
= 0;
2745 int tempbool3
= (int) TRUE
;
2746 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
2749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
2752 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2753 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
2760 #if PYTHON_API_VERSION >= 1009
2761 char* tmpPtr
; int tmpSize
;
2762 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2763 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2766 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2768 _arg2
= new wxString(tmpPtr
, tmpSize
);
2770 if (!PyString_Check(_obj2
)) {
2771 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2774 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2777 _arg3
= (bool ) tempbool3
;
2779 wxPy_BEGIN_ALLOW_THREADS
;
2780 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
2782 wxPy_END_ALLOW_THREADS
;
2783 if (PyErr_Occurred()) return NULL
;
2785 _resultobj
= _result
;
2794 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
2795 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2796 PyObject
* _resultobj
;
2798 wxFontMapper
* _arg0
;
2799 wxFontEncoding _arg1
;
2800 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
2801 PyObject
* _argo0
= 0;
2802 PyObject
* _obj2
= 0;
2803 char *_kwnames
[] = { "self","encoding","facename", NULL
};
2806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
2817 #if PYTHON_API_VERSION >= 1009
2818 char* tmpPtr
; int tmpSize
;
2819 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2820 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2823 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2825 _arg2
= new wxString(tmpPtr
, tmpSize
);
2827 if (!PyString_Check(_obj2
)) {
2828 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2831 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2835 wxPy_BEGIN_ALLOW_THREADS
;
2836 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
2838 wxPy_END_ALLOW_THREADS
;
2839 if (PyErr_Occurred()) return NULL
;
2840 } _resultobj
= Py_BuildValue("i",_result
);
2848 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
2849 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2850 PyObject
* _resultobj
;
2851 wxFontEncoding _result
;
2852 wxFontMapper
* _arg0
;
2854 bool _arg2
= (bool ) TRUE
;
2855 PyObject
* _argo0
= 0;
2856 PyObject
* _obj1
= 0;
2857 int tempbool2
= (int) TRUE
;
2858 char *_kwnames
[] = { "self","charset","interactive", NULL
};
2861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
2864 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2865 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
2871 #if PYTHON_API_VERSION >= 1009
2872 char* tmpPtr
; int tmpSize
;
2873 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2874 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2877 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2879 _arg1
= new wxString(tmpPtr
, tmpSize
);
2881 if (!PyString_Check(_obj1
)) {
2882 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2885 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2888 _arg2
= (bool ) tempbool2
;
2890 wxPy_BEGIN_ALLOW_THREADS
;
2891 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
2893 wxPy_END_ALLOW_THREADS
;
2894 if (PyErr_Occurred()) return NULL
;
2895 } _resultobj
= Py_BuildValue("i",_result
);
2903 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2904 PyObject
* _resultobj
;
2906 wxFontEncoding _arg0
;
2907 char *_kwnames
[] = { "encoding", NULL
};
2910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
2913 wxPy_BEGIN_ALLOW_THREADS
;
2914 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
2916 wxPy_END_ALLOW_THREADS
;
2917 if (PyErr_Occurred()) return NULL
;
2919 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2927 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2928 PyObject
* _resultobj
;
2930 wxFontEncoding _arg0
;
2931 char *_kwnames
[] = { "encoding", NULL
};
2934 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
2937 wxPy_BEGIN_ALLOW_THREADS
;
2938 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
2940 wxPy_END_ALLOW_THREADS
;
2941 if (PyErr_Occurred()) return NULL
;
2943 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2951 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
2952 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2953 PyObject
* _resultobj
;
2954 wxFontMapper
* _arg0
;
2956 PyObject
* _argo0
= 0;
2957 PyObject
* _argo1
= 0;
2958 char *_kwnames
[] = { "self","parent", NULL
};
2961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
2964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
2971 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2972 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
2973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
2978 wxPy_BEGIN_ALLOW_THREADS
;
2979 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
2981 wxPy_END_ALLOW_THREADS
;
2982 if (PyErr_Occurred()) return NULL
;
2983 } Py_INCREF(Py_None
);
2984 _resultobj
= Py_None
;
2988 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
2989 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2990 PyObject
* _resultobj
;
2991 wxFontMapper
* _arg0
;
2993 PyObject
* _argo0
= 0;
2994 PyObject
* _obj1
= 0;
2995 char *_kwnames
[] = { "self","title", NULL
};
2998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
3001 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3002 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3008 #if PYTHON_API_VERSION >= 1009
3009 char* tmpPtr
; int tmpSize
;
3010 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3011 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3014 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3016 _arg1
= new wxString(tmpPtr
, tmpSize
);
3018 if (!PyString_Check(_obj1
)) {
3019 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3022 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3026 wxPy_BEGIN_ALLOW_THREADS
;
3027 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
3029 wxPy_END_ALLOW_THREADS
;
3030 if (PyErr_Occurred()) return NULL
;
3031 } Py_INCREF(Py_None
);
3032 _resultobj
= Py_None
;
3040 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3041 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3042 PyObject
* _resultobj
;
3043 wxFontMapper
* _arg0
;
3044 wxConfigBase
* _arg1
;
3045 PyObject
* _argo0
= 0;
3046 PyObject
* _argo1
= 0;
3047 char *_kwnames
[] = { "self","config", NULL
};
3050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
3053 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3054 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3060 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3061 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
3062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3067 wxPy_BEGIN_ALLOW_THREADS
;
3068 wxFontMapper_SetConfig(_arg0
,_arg1
);
3070 wxPy_END_ALLOW_THREADS
;
3071 if (PyErr_Occurred()) return NULL
;
3072 } Py_INCREF(Py_None
);
3073 _resultobj
= Py_None
;
3077 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3078 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3079 PyObject
* _resultobj
;
3080 wxFontMapper
* _arg0
;
3082 PyObject
* _argo0
= 0;
3083 PyObject
* _obj1
= 0;
3084 char *_kwnames
[] = { "self","prefix", NULL
};
3087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
3090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3097 #if PYTHON_API_VERSION >= 1009
3098 char* tmpPtr
; int tmpSize
;
3099 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3100 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3103 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3105 _arg1
= new wxString(tmpPtr
, tmpSize
);
3107 if (!PyString_Check(_obj1
)) {
3108 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3111 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3115 wxPy_BEGIN_ALLOW_THREADS
;
3116 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
3118 wxPy_END_ALLOW_THREADS
;
3119 if (PyErr_Occurred()) return NULL
;
3120 } Py_INCREF(Py_None
);
3121 _resultobj
= Py_None
;
3129 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3130 PyObject
* _resultobj
;
3132 char *_kwnames
[] = { NULL
};
3135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
3138 wxPy_BEGIN_ALLOW_THREADS
;
3139 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
3141 wxPy_END_ALLOW_THREADS
;
3142 if (PyErr_Occurred()) return NULL
;
3143 } _resultobj
= Py_BuildValue("s", _result
);
3147 static void *SwigwxFontTowxGDIObject(void *ptr
) {
3150 src
= (wxFont
*) ptr
;
3151 dest
= (wxGDIObject
*) src
;
3152 return (void *) dest
;
3155 static void *SwigwxFontTowxObject(void *ptr
) {
3158 src
= (wxFont
*) ptr
;
3159 dest
= (wxObject
*) src
;
3160 return (void *) dest
;
3163 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3164 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3165 PyObject
* _resultobj
;
3171 int _arg4
= (int ) FALSE
;
3172 char * _arg5
= (char *) "";
3173 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3174 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
3178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3181 wxPy_BEGIN_ALLOW_THREADS
;
3182 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3184 wxPy_END_ALLOW_THREADS
;
3185 if (PyErr_Occurred()) return NULL
;
3187 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3188 _resultobj
= Py_BuildValue("s",_ptemp
);
3191 _resultobj
= Py_None
;
3196 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3197 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3198 PyObject
* _resultobj
;
3200 wxNativeFontInfo
* _arg0
;
3201 PyObject
* _argo0
= 0;
3202 char *_kwnames
[] = { "info", NULL
};
3206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
3209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3216 wxPy_BEGIN_ALLOW_THREADS
;
3217 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
3219 wxPy_END_ALLOW_THREADS
;
3220 if (PyErr_Occurred()) return NULL
;
3222 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3223 _resultobj
= Py_BuildValue("s",_ptemp
);
3226 _resultobj
= Py_None
;
3231 #define delete_wxFont(_swigobj) (delete _swigobj)
3232 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3233 PyObject
* _resultobj
;
3235 PyObject
* _argo0
= 0;
3236 char *_kwnames
[] = { "self", NULL
};
3239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3242 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3243 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3249 wxPy_BEGIN_ALLOW_THREADS
;
3250 delete_wxFont(_arg0
);
3252 wxPy_END_ALLOW_THREADS
;
3253 if (PyErr_Occurred()) return NULL
;
3254 } Py_INCREF(Py_None
);
3255 _resultobj
= Py_None
;
3259 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3260 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3261 PyObject
* _resultobj
;
3264 PyObject
* _argo0
= 0;
3265 char *_kwnames
[] = { "self", NULL
};
3268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3271 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3272 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3278 wxPy_BEGIN_ALLOW_THREADS
;
3279 _result
= (bool )wxFont_Ok(_arg0
);
3281 wxPy_END_ALLOW_THREADS
;
3282 if (PyErr_Occurred()) return NULL
;
3283 } _resultobj
= Py_BuildValue("i",_result
);
3287 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3288 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3289 PyObject
* _resultobj
;
3292 PyObject
* _argo0
= 0;
3293 char *_kwnames
[] = { "self", NULL
};
3296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3306 wxPy_BEGIN_ALLOW_THREADS
;
3307 _result
= (int )wxFont_GetPointSize(_arg0
);
3309 wxPy_END_ALLOW_THREADS
;
3310 if (PyErr_Occurred()) return NULL
;
3311 } _resultobj
= Py_BuildValue("i",_result
);
3315 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3316 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3317 PyObject
* _resultobj
;
3320 PyObject
* _argo0
= 0;
3321 char *_kwnames
[] = { "self", NULL
};
3324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3334 wxPy_BEGIN_ALLOW_THREADS
;
3335 _result
= (int )wxFont_GetFamily(_arg0
);
3337 wxPy_END_ALLOW_THREADS
;
3338 if (PyErr_Occurred()) return NULL
;
3339 } _resultobj
= Py_BuildValue("i",_result
);
3343 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3344 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3345 PyObject
* _resultobj
;
3348 PyObject
* _argo0
= 0;
3349 char *_kwnames
[] = { "self", NULL
};
3352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3362 wxPy_BEGIN_ALLOW_THREADS
;
3363 _result
= (int )wxFont_GetStyle(_arg0
);
3365 wxPy_END_ALLOW_THREADS
;
3366 if (PyErr_Occurred()) return NULL
;
3367 } _resultobj
= Py_BuildValue("i",_result
);
3371 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3372 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3373 PyObject
* _resultobj
;
3376 PyObject
* _argo0
= 0;
3377 char *_kwnames
[] = { "self", NULL
};
3380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
3383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3390 wxPy_BEGIN_ALLOW_THREADS
;
3391 _result
= (int )wxFont_GetWeight(_arg0
);
3393 wxPy_END_ALLOW_THREADS
;
3394 if (PyErr_Occurred()) return NULL
;
3395 } _resultobj
= Py_BuildValue("i",_result
);
3399 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3400 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3401 PyObject
* _resultobj
;
3404 PyObject
* _argo0
= 0;
3405 char *_kwnames
[] = { "self", NULL
};
3408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
3411 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3412 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3413 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3418 wxPy_BEGIN_ALLOW_THREADS
;
3419 _result
= (bool )wxFont_GetUnderlined(_arg0
);
3421 wxPy_END_ALLOW_THREADS
;
3422 if (PyErr_Occurred()) return NULL
;
3423 } _resultobj
= Py_BuildValue("i",_result
);
3427 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3428 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3429 PyObject
* _resultobj
;
3432 PyObject
* _argo0
= 0;
3433 char *_kwnames
[] = { "self", NULL
};
3436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
3439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3446 wxPy_BEGIN_ALLOW_THREADS
;
3447 _result
= new wxString (wxFont_GetFaceName(_arg0
));
3449 wxPy_END_ALLOW_THREADS
;
3450 if (PyErr_Occurred()) return NULL
;
3452 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3460 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3461 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3462 PyObject
* _resultobj
;
3463 wxFontEncoding _result
;
3465 PyObject
* _argo0
= 0;
3466 char *_kwnames
[] = { "self", NULL
};
3469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
3472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3479 wxPy_BEGIN_ALLOW_THREADS
;
3480 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
3482 wxPy_END_ALLOW_THREADS
;
3483 if (PyErr_Occurred()) return NULL
;
3484 } _resultobj
= Py_BuildValue("i",_result
);
3488 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
3489 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3490 PyObject
* _resultobj
;
3491 wxNativeFontInfo
* _result
;
3493 PyObject
* _argo0
= 0;
3494 char *_kwnames
[] = { "self", NULL
};
3498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
3501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
3508 wxPy_BEGIN_ALLOW_THREADS
;
3509 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
3511 wxPy_END_ALLOW_THREADS
;
3512 if (PyErr_Occurred()) return NULL
;
3514 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
3515 _resultobj
= Py_BuildValue("s",_ptemp
);
3518 _resultobj
= Py_None
;
3523 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3524 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3525 PyObject
* _resultobj
;
3528 PyObject
* _argo0
= 0;
3529 char *_kwnames
[] = { "self","pointSize", NULL
};
3532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
3535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
3542 wxPy_BEGIN_ALLOW_THREADS
;
3543 wxFont_SetPointSize(_arg0
,_arg1
);
3545 wxPy_END_ALLOW_THREADS
;
3546 if (PyErr_Occurred()) return NULL
;
3547 } Py_INCREF(Py_None
);
3548 _resultobj
= Py_None
;
3552 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3553 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3554 PyObject
* _resultobj
;
3557 PyObject
* _argo0
= 0;
3558 char *_kwnames
[] = { "self","family", NULL
};
3561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
3564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
3571 wxPy_BEGIN_ALLOW_THREADS
;
3572 wxFont_SetFamily(_arg0
,_arg1
);
3574 wxPy_END_ALLOW_THREADS
;
3575 if (PyErr_Occurred()) return NULL
;
3576 } Py_INCREF(Py_None
);
3577 _resultobj
= Py_None
;
3581 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3582 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3583 PyObject
* _resultobj
;
3586 PyObject
* _argo0
= 0;
3587 char *_kwnames
[] = { "self","style", NULL
};
3590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
3600 wxPy_BEGIN_ALLOW_THREADS
;
3601 wxFont_SetStyle(_arg0
,_arg1
);
3603 wxPy_END_ALLOW_THREADS
;
3604 if (PyErr_Occurred()) return NULL
;
3605 } Py_INCREF(Py_None
);
3606 _resultobj
= Py_None
;
3610 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3611 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3612 PyObject
* _resultobj
;
3615 PyObject
* _argo0
= 0;
3616 char *_kwnames
[] = { "self","weight", NULL
};
3619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
3622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
3629 wxPy_BEGIN_ALLOW_THREADS
;
3630 wxFont_SetWeight(_arg0
,_arg1
);
3632 wxPy_END_ALLOW_THREADS
;
3633 if (PyErr_Occurred()) return NULL
;
3634 } Py_INCREF(Py_None
);
3635 _resultobj
= Py_None
;
3639 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3640 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3641 PyObject
* _resultobj
;
3644 PyObject
* _argo0
= 0;
3645 PyObject
* _obj1
= 0;
3646 char *_kwnames
[] = { "self","faceName", NULL
};
3649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
3652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
3659 #if PYTHON_API_VERSION >= 1009
3660 char* tmpPtr
; int tmpSize
;
3661 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3662 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3665 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3667 _arg1
= new wxString(tmpPtr
, tmpSize
);
3669 if (!PyString_Check(_obj1
)) {
3670 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3673 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3677 wxPy_BEGIN_ALLOW_THREADS
;
3678 wxFont_SetFaceName(_arg0
,*_arg1
);
3680 wxPy_END_ALLOW_THREADS
;
3681 if (PyErr_Occurred()) return NULL
;
3682 } Py_INCREF(Py_None
);
3683 _resultobj
= Py_None
;
3691 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3692 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3693 PyObject
* _resultobj
;
3696 PyObject
* _argo0
= 0;
3698 char *_kwnames
[] = { "self","underlined", NULL
};
3701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
3704 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3705 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
3710 _arg1
= (bool ) tempbool1
;
3712 wxPy_BEGIN_ALLOW_THREADS
;
3713 wxFont_SetUnderlined(_arg0
,_arg1
);
3715 wxPy_END_ALLOW_THREADS
;
3716 if (PyErr_Occurred()) return NULL
;
3717 } Py_INCREF(Py_None
);
3718 _resultobj
= Py_None
;
3722 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3723 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3724 PyObject
* _resultobj
;
3726 wxFontEncoding _arg1
;
3727 PyObject
* _argo0
= 0;
3728 char *_kwnames
[] = { "self","encoding", NULL
};
3731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
3734 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3735 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3736 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
3741 wxPy_BEGIN_ALLOW_THREADS
;
3742 wxFont_SetEncoding(_arg0
,_arg1
);
3744 wxPy_END_ALLOW_THREADS
;
3745 if (PyErr_Occurred()) return NULL
;
3746 } Py_INCREF(Py_None
);
3747 _resultobj
= Py_None
;
3751 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
3752 static PyObject
*_wrap_wxFont_SetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3753 PyObject
* _resultobj
;
3755 wxNativeFontInfo
* _arg1
;
3756 PyObject
* _argo0
= 0;
3757 PyObject
* _argo1
= 0;
3758 char *_kwnames
[] = { "self","info", NULL
};
3761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfo",_kwnames
,&_argo0
,&_argo1
))
3764 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3765 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3766 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
3771 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3772 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxNativeFontInfo_p")) {
3773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
3778 wxPy_BEGIN_ALLOW_THREADS
;
3779 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
3781 wxPy_END_ALLOW_THREADS
;
3782 if (PyErr_Occurred()) return NULL
;
3783 } Py_INCREF(Py_None
);
3784 _resultobj
= Py_None
;
3788 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
3789 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3790 PyObject
* _resultobj
;
3793 PyObject
* _argo0
= 0;
3794 char *_kwnames
[] = { "self", NULL
};
3797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
3800 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3801 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
3807 wxPy_BEGIN_ALLOW_THREADS
;
3808 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
3810 wxPy_END_ALLOW_THREADS
;
3811 if (PyErr_Occurred()) return NULL
;
3813 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3821 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
3822 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3823 PyObject
* _resultobj
;
3826 PyObject
* _argo0
= 0;
3827 char *_kwnames
[] = { "self", NULL
};
3830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
3833 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3834 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
3840 wxPy_BEGIN_ALLOW_THREADS
;
3841 _result
= new wxString (wxFont_GetStyleString(_arg0
));
3843 wxPy_END_ALLOW_THREADS
;
3844 if (PyErr_Occurred()) return NULL
;
3846 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3854 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
3855 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3856 PyObject
* _resultobj
;
3859 PyObject
* _argo0
= 0;
3860 char *_kwnames
[] = { "self", NULL
};
3863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
3866 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3867 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3868 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
3873 wxPy_BEGIN_ALLOW_THREADS
;
3874 _result
= new wxString (wxFont_GetWeightString(_arg0
));
3876 wxPy_END_ALLOW_THREADS
;
3877 if (PyErr_Occurred()) return NULL
;
3879 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3887 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3888 PyObject
* _resultobj
;
3889 wxFontEncoding _result
;
3890 char *_kwnames
[] = { NULL
};
3893 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
3896 wxPy_BEGIN_ALLOW_THREADS
;
3897 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
3899 wxPy_END_ALLOW_THREADS
;
3900 if (PyErr_Occurred()) return NULL
;
3901 } _resultobj
= Py_BuildValue("i",_result
);
3905 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3906 PyObject
* _resultobj
;
3907 wxFontEncoding _arg0
;
3908 char *_kwnames
[] = { "encoding", NULL
};
3911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
3914 wxPy_BEGIN_ALLOW_THREADS
;
3915 wxFont::SetDefaultEncoding(_arg0
);
3917 wxPy_END_ALLOW_THREADS
;
3918 if (PyErr_Occurred()) return NULL
;
3919 } Py_INCREF(Py_None
);
3920 _resultobj
= Py_None
;
3924 static void *SwigwxFontListTowxObject(void *ptr
) {
3927 src
= (wxFontList
*) ptr
;
3928 dest
= (wxObject
*) src
;
3929 return (void *) dest
;
3932 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
3933 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3934 PyObject
* _resultobj
;
3937 PyObject
* _argo0
= 0;
3938 PyObject
* _argo1
= 0;
3939 char *_kwnames
[] = { "self","font", NULL
};
3942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
3945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
3952 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3953 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
3959 wxPy_BEGIN_ALLOW_THREADS
;
3960 wxFontList_AddFont(_arg0
,_arg1
);
3962 wxPy_END_ALLOW_THREADS
;
3963 if (PyErr_Occurred()) return NULL
;
3964 } Py_INCREF(Py_None
);
3965 _resultobj
= Py_None
;
3969 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3970 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3971 PyObject
* _resultobj
;
3978 bool _arg5
= (bool ) FALSE
;
3979 char * _arg6
= (char *) NULL
;
3980 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3981 PyObject
* _argo0
= 0;
3982 int tempbool5
= (int) FALSE
;
3983 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
3987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
3990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
3996 _arg5
= (bool ) tempbool5
;
3998 wxPy_BEGIN_ALLOW_THREADS
;
3999 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
4001 wxPy_END_ALLOW_THREADS
;
4002 if (PyErr_Occurred()) return NULL
;
4004 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4005 _resultobj
= Py_BuildValue("s",_ptemp
);
4008 _resultobj
= Py_None
;
4013 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4014 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4015 PyObject
* _resultobj
;
4018 PyObject
* _argo0
= 0;
4019 PyObject
* _argo1
= 0;
4020 char *_kwnames
[] = { "self","font", NULL
};
4023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
4026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4033 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4034 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4040 wxPy_BEGIN_ALLOW_THREADS
;
4041 wxFontList_RemoveFont(_arg0
,_arg1
);
4043 wxPy_END_ALLOW_THREADS
;
4044 if (PyErr_Occurred()) return NULL
;
4045 } Py_INCREF(Py_None
);
4046 _resultobj
= Py_None
;
4050 static void *SwigwxColourTowxObject(void *ptr
) {
4053 src
= (wxColour
*) ptr
;
4054 dest
= (wxObject
*) src
;
4055 return (void *) dest
;
4058 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4059 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4060 PyObject
* _resultobj
;
4062 unsigned char _arg0
= (unsigned char ) 0;
4063 unsigned char _arg1
= (unsigned char ) 0;
4064 unsigned char _arg2
= (unsigned char ) 0;
4065 char *_kwnames
[] = { "red","green","blue", NULL
};
4069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
4072 wxPy_BEGIN_ALLOW_THREADS
;
4073 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
4075 wxPy_END_ALLOW_THREADS
;
4076 if (PyErr_Occurred()) return NULL
;
4078 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4079 _resultobj
= Py_BuildValue("s",_ptemp
);
4082 _resultobj
= Py_None
;
4087 #define delete_wxColour(_swigobj) (delete _swigobj)
4088 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4089 PyObject
* _resultobj
;
4092 PyObject
* _obj0
= 0;
4093 char *_kwnames
[] = { "self", NULL
};
4096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
4100 if (! wxColour_helper(_obj0
, &_arg0
))
4104 wxPy_BEGIN_ALLOW_THREADS
;
4105 delete_wxColour(_arg0
);
4107 wxPy_END_ALLOW_THREADS
;
4108 if (PyErr_Occurred()) return NULL
;
4109 } Py_INCREF(Py_None
);
4110 _resultobj
= Py_None
;
4114 #define wxColour_Red(_swigobj) (_swigobj->Red())
4115 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4116 PyObject
* _resultobj
;
4117 unsigned char _result
;
4120 PyObject
* _obj0
= 0;
4121 char *_kwnames
[] = { "self", NULL
};
4124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
4128 if (! wxColour_helper(_obj0
, &_arg0
))
4132 wxPy_BEGIN_ALLOW_THREADS
;
4133 _result
= (unsigned char )wxColour_Red(_arg0
);
4135 wxPy_END_ALLOW_THREADS
;
4136 if (PyErr_Occurred()) return NULL
;
4137 } _resultobj
= Py_BuildValue("b",_result
);
4141 #define wxColour_Green(_swigobj) (_swigobj->Green())
4142 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4143 PyObject
* _resultobj
;
4144 unsigned char _result
;
4147 PyObject
* _obj0
= 0;
4148 char *_kwnames
[] = { "self", NULL
};
4151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
4155 if (! wxColour_helper(_obj0
, &_arg0
))
4159 wxPy_BEGIN_ALLOW_THREADS
;
4160 _result
= (unsigned char )wxColour_Green(_arg0
);
4162 wxPy_END_ALLOW_THREADS
;
4163 if (PyErr_Occurred()) return NULL
;
4164 } _resultobj
= Py_BuildValue("b",_result
);
4168 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4169 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4170 PyObject
* _resultobj
;
4171 unsigned char _result
;
4174 PyObject
* _obj0
= 0;
4175 char *_kwnames
[] = { "self", NULL
};
4178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
4182 if (! wxColour_helper(_obj0
, &_arg0
))
4186 wxPy_BEGIN_ALLOW_THREADS
;
4187 _result
= (unsigned char )wxColour_Blue(_arg0
);
4189 wxPy_END_ALLOW_THREADS
;
4190 if (PyErr_Occurred()) return NULL
;
4191 } _resultobj
= Py_BuildValue("b",_result
);
4195 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4196 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4197 PyObject
* _resultobj
;
4201 PyObject
* _obj0
= 0;
4202 char *_kwnames
[] = { "self", NULL
};
4205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
4209 if (! wxColour_helper(_obj0
, &_arg0
))
4213 wxPy_BEGIN_ALLOW_THREADS
;
4214 _result
= (bool )wxColour_Ok(_arg0
);
4216 wxPy_END_ALLOW_THREADS
;
4217 if (PyErr_Occurred()) return NULL
;
4218 } _resultobj
= Py_BuildValue("i",_result
);
4222 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4223 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4224 PyObject
* _resultobj
;
4226 unsigned char _arg1
;
4227 unsigned char _arg2
;
4228 unsigned char _arg3
;
4230 PyObject
* _obj0
= 0;
4231 char *_kwnames
[] = { "self","red","green","blue", NULL
};
4234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
4238 if (! wxColour_helper(_obj0
, &_arg0
))
4242 wxPy_BEGIN_ALLOW_THREADS
;
4243 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
4245 wxPy_END_ALLOW_THREADS
;
4246 if (PyErr_Occurred()) return NULL
;
4247 } Py_INCREF(Py_None
);
4248 _resultobj
= Py_None
;
4252 static PyObject
* wxColour_Get(wxColour
*self
) {
4253 PyObject
* rv
= PyTuple_New(3);
4254 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
4255 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
4256 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
4259 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4260 PyObject
* _resultobj
;
4264 PyObject
* _obj0
= 0;
4265 char *_kwnames
[] = { "self", NULL
};
4268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
4272 if (! wxColour_helper(_obj0
, &_arg0
))
4276 wxPy_BEGIN_ALLOW_THREADS
;
4277 _result
= (PyObject
*)wxColour_Get(_arg0
);
4279 wxPy_END_ALLOW_THREADS
;
4280 if (PyErr_Occurred()) return NULL
;
4282 _resultobj
= _result
;
4287 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4288 wxColourDatabase
*src
;
4290 src
= (wxColourDatabase
*) ptr
;
4291 dest
= (wxObject
*) src
;
4292 return (void *) dest
;
4295 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4296 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4297 PyObject
* _resultobj
;
4299 wxColourDatabase
* _arg0
;
4301 PyObject
* _argo0
= 0;
4302 PyObject
* _obj1
= 0;
4303 char *_kwnames
[] = { "self","colour", NULL
};
4307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
4310 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4311 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4312 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4317 #if PYTHON_API_VERSION >= 1009
4318 char* tmpPtr
; int tmpSize
;
4319 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4320 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4323 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4325 _arg1
= new wxString(tmpPtr
, tmpSize
);
4327 if (!PyString_Check(_obj1
)) {
4328 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4331 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4335 wxPy_BEGIN_ALLOW_THREADS
;
4336 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
4338 wxPy_END_ALLOW_THREADS
;
4339 if (PyErr_Occurred()) return NULL
;
4341 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4342 _resultobj
= Py_BuildValue("s",_ptemp
);
4345 _resultobj
= Py_None
;
4354 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4355 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4356 PyObject
* _resultobj
;
4358 wxColourDatabase
* _arg0
;
4360 PyObject
* _argo0
= 0;
4362 PyObject
* _obj1
= 0;
4363 char *_kwnames
[] = { "self","colour", NULL
};
4366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
4369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
4377 if (! wxColour_helper(_obj1
, &_arg1
))
4381 wxPy_BEGIN_ALLOW_THREADS
;
4382 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
4384 wxPy_END_ALLOW_THREADS
;
4385 if (PyErr_Occurred()) return NULL
;
4387 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4395 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
4396 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
4398 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4399 PyObject
* _resultobj
;
4400 wxColourDatabase
* _arg0
;
4405 PyObject
* _argo0
= 0;
4406 PyObject
* _obj1
= 0;
4407 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
4410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4420 #if PYTHON_API_VERSION >= 1009
4421 char* tmpPtr
; int tmpSize
;
4422 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4423 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4426 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4428 _arg1
= new wxString(tmpPtr
, tmpSize
);
4430 if (!PyString_Check(_obj1
)) {
4431 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4434 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4438 wxPy_BEGIN_ALLOW_THREADS
;
4439 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
4441 wxPy_END_ALLOW_THREADS
;
4442 if (PyErr_Occurred()) return NULL
;
4443 } Py_INCREF(Py_None
);
4444 _resultobj
= Py_None
;
4452 static void *SwigwxPenTowxGDIObject(void *ptr
) {
4455 src
= (wxPen
*) ptr
;
4456 dest
= (wxGDIObject
*) src
;
4457 return (void *) dest
;
4460 static void *SwigwxPenTowxObject(void *ptr
) {
4463 src
= (wxPen
*) ptr
;
4464 dest
= (wxObject
*) src
;
4465 return (void *) dest
;
4468 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4469 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4470 PyObject
* _resultobj
;
4473 int _arg1
= (int ) 1;
4474 int _arg2
= (int ) wxSOLID
;
4476 PyObject
* _obj0
= 0;
4477 char *_kwnames
[] = { "colour","width","style", NULL
};
4481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4485 if (! wxColour_helper(_obj0
, &_arg0
))
4489 wxPy_BEGIN_ALLOW_THREADS
;
4490 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
4492 wxPy_END_ALLOW_THREADS
;
4493 if (PyErr_Occurred()) return NULL
;
4495 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4496 _resultobj
= Py_BuildValue("s",_ptemp
);
4499 _resultobj
= Py_None
;
4504 #define delete_wxPen(_swigobj) (delete _swigobj)
4505 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4506 PyObject
* _resultobj
;
4508 PyObject
* _argo0
= 0;
4509 char *_kwnames
[] = { "self", NULL
};
4512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
4515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4522 wxPy_BEGIN_ALLOW_THREADS
;
4523 delete_wxPen(_arg0
);
4525 wxPy_END_ALLOW_THREADS
;
4526 if (PyErr_Occurred()) return NULL
;
4527 } Py_INCREF(Py_None
);
4528 _resultobj
= Py_None
;
4532 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4533 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4534 PyObject
* _resultobj
;
4537 PyObject
* _argo0
= 0;
4538 char *_kwnames
[] = { "self", NULL
};
4541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
4544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4551 wxPy_BEGIN_ALLOW_THREADS
;
4552 _result
= (int )wxPen_GetCap(_arg0
);
4554 wxPy_END_ALLOW_THREADS
;
4555 if (PyErr_Occurred()) return NULL
;
4556 } _resultobj
= Py_BuildValue("i",_result
);
4560 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4561 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4562 PyObject
* _resultobj
;
4565 PyObject
* _argo0
= 0;
4566 char *_kwnames
[] = { "self", NULL
};
4570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
4573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4580 wxPy_BEGIN_ALLOW_THREADS
;
4581 _result
= new wxColour (wxPen_GetColour(_arg0
));
4583 wxPy_END_ALLOW_THREADS
;
4584 if (PyErr_Occurred()) return NULL
;
4585 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4586 _resultobj
= Py_BuildValue("s",_ptemp
);
4590 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
4591 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4592 PyObject
* _resultobj
;
4595 PyObject
* _argo0
= 0;
4596 char *_kwnames
[] = { "self", NULL
};
4599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
4602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4609 wxPy_BEGIN_ALLOW_THREADS
;
4610 _result
= (int )wxPen_GetJoin(_arg0
);
4612 wxPy_END_ALLOW_THREADS
;
4613 if (PyErr_Occurred()) return NULL
;
4614 } _resultobj
= Py_BuildValue("i",_result
);
4618 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
4619 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4620 PyObject
* _resultobj
;
4623 PyObject
* _argo0
= 0;
4624 char *_kwnames
[] = { "self", NULL
};
4627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
4630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4637 wxPy_BEGIN_ALLOW_THREADS
;
4638 _result
= (int )wxPen_GetStyle(_arg0
);
4640 wxPy_END_ALLOW_THREADS
;
4641 if (PyErr_Occurred()) return NULL
;
4642 } _resultobj
= Py_BuildValue("i",_result
);
4646 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
4647 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4648 PyObject
* _resultobj
;
4651 PyObject
* _argo0
= 0;
4652 char *_kwnames
[] = { "self", NULL
};
4655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
4658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
4665 wxPy_BEGIN_ALLOW_THREADS
;
4666 _result
= (int )wxPen_GetWidth(_arg0
);
4668 wxPy_END_ALLOW_THREADS
;
4669 if (PyErr_Occurred()) return NULL
;
4670 } _resultobj
= Py_BuildValue("i",_result
);
4674 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
4675 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4676 PyObject
* _resultobj
;
4679 PyObject
* _argo0
= 0;
4680 char *_kwnames
[] = { "self", NULL
};
4683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
4686 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4687 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4688 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
4693 wxPy_BEGIN_ALLOW_THREADS
;
4694 _result
= (bool )wxPen_Ok(_arg0
);
4696 wxPy_END_ALLOW_THREADS
;
4697 if (PyErr_Occurred()) return NULL
;
4698 } _resultobj
= Py_BuildValue("i",_result
);
4702 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
4703 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4704 PyObject
* _resultobj
;
4707 PyObject
* _argo0
= 0;
4708 char *_kwnames
[] = { "self","cap_style", NULL
};
4711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
4714 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4715 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4721 wxPy_BEGIN_ALLOW_THREADS
;
4722 wxPen_SetCap(_arg0
,_arg1
);
4724 wxPy_END_ALLOW_THREADS
;
4725 if (PyErr_Occurred()) return NULL
;
4726 } Py_INCREF(Py_None
);
4727 _resultobj
= Py_None
;
4731 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4732 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4733 PyObject
* _resultobj
;
4736 PyObject
* _argo0
= 0;
4738 PyObject
* _obj1
= 0;
4739 char *_kwnames
[] = { "self","colour", NULL
};
4742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
4745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4753 if (! wxColour_helper(_obj1
, &_arg1
))
4757 wxPy_BEGIN_ALLOW_THREADS
;
4758 wxPen_SetColour(_arg0
,*_arg1
);
4760 wxPy_END_ALLOW_THREADS
;
4761 if (PyErr_Occurred()) return NULL
;
4762 } Py_INCREF(Py_None
);
4763 _resultobj
= Py_None
;
4767 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4768 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4769 PyObject
* _resultobj
;
4772 PyObject
* _argo0
= 0;
4773 char *_kwnames
[] = { "self","join_style", NULL
};
4776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
4779 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4780 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4786 wxPy_BEGIN_ALLOW_THREADS
;
4787 wxPen_SetJoin(_arg0
,_arg1
);
4789 wxPy_END_ALLOW_THREADS
;
4790 if (PyErr_Occurred()) return NULL
;
4791 } Py_INCREF(Py_None
);
4792 _resultobj
= Py_None
;
4796 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4797 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4798 PyObject
* _resultobj
;
4801 PyObject
* _argo0
= 0;
4802 char *_kwnames
[] = { "self","style", NULL
};
4805 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4808 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4809 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4810 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4815 wxPy_BEGIN_ALLOW_THREADS
;
4816 wxPen_SetStyle(_arg0
,_arg1
);
4818 wxPy_END_ALLOW_THREADS
;
4819 if (PyErr_Occurred()) return NULL
;
4820 } Py_INCREF(Py_None
);
4821 _resultobj
= Py_None
;
4825 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4826 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4827 PyObject
* _resultobj
;
4830 PyObject
* _argo0
= 0;
4831 char *_kwnames
[] = { "self","width", NULL
};
4834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4837 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4838 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4839 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4844 wxPy_BEGIN_ALLOW_THREADS
;
4845 wxPen_SetWidth(_arg0
,_arg1
);
4847 wxPy_END_ALLOW_THREADS
;
4848 if (PyErr_Occurred()) return NULL
;
4849 } Py_INCREF(Py_None
);
4850 _resultobj
= Py_None
;
4854 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4855 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4856 PyObject
* _resultobj
;
4860 PyObject
* _argo0
= 0;
4861 PyObject
* _obj2
= 0;
4862 char *_kwnames
[] = { "self","choices", NULL
};
4865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4868 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4869 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4876 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4877 if (_arg2
== NULL
) {
4883 _arg1
= PyList_Size(_obj2
);
4890 wxPy_BEGIN_ALLOW_THREADS
;
4891 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4893 wxPy_END_ALLOW_THREADS
;
4894 if (PyErr_Occurred()) return NULL
;
4895 } Py_INCREF(Py_None
);
4896 _resultobj
= Py_None
;
4903 static void *SwigwxPyPenTowxPen(void *ptr
) {
4906 src
= (wxPyPen
*) ptr
;
4907 dest
= (wxPen
*) src
;
4908 return (void *) dest
;
4911 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
4914 src
= (wxPyPen
*) ptr
;
4915 dest
= (wxGDIObject
*) src
;
4916 return (void *) dest
;
4919 static void *SwigwxPyPenTowxObject(void *ptr
) {
4922 src
= (wxPyPen
*) ptr
;
4923 dest
= (wxObject
*) src
;
4924 return (void *) dest
;
4927 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
4928 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4929 PyObject
* _resultobj
;
4932 int _arg1
= (int ) 1;
4933 int _arg2
= (int ) wxSOLID
;
4935 PyObject
* _obj0
= 0;
4936 char *_kwnames
[] = { "colour","width","style", NULL
};
4940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4944 if (! wxColour_helper(_obj0
, &_arg0
))
4948 wxPy_BEGIN_ALLOW_THREADS
;
4949 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
4951 wxPy_END_ALLOW_THREADS
;
4952 if (PyErr_Occurred()) return NULL
;
4954 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
4955 _resultobj
= Py_BuildValue("s",_ptemp
);
4958 _resultobj
= Py_None
;
4963 #define delete_wxPyPen(_swigobj) (delete _swigobj)
4964 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4965 PyObject
* _resultobj
;
4967 PyObject
* _argo0
= 0;
4968 char *_kwnames
[] = { "self", NULL
};
4971 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
4974 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4975 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
4976 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
4981 wxPy_BEGIN_ALLOW_THREADS
;
4982 delete_wxPyPen(_arg0
);
4984 wxPy_END_ALLOW_THREADS
;
4985 if (PyErr_Occurred()) return NULL
;
4986 } Py_INCREF(Py_None
);
4987 _resultobj
= Py_None
;
4991 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4992 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4993 PyObject
* _resultobj
;
4997 PyObject
* _argo0
= 0;
4998 PyObject
* _obj2
= 0;
4999 char *_kwnames
[] = { "self","choices", NULL
};
5002 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5005 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5006 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5007 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5013 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5014 if (_arg2
== NULL
) {
5020 _arg1
= PyList_Size(_obj2
);
5027 wxPy_BEGIN_ALLOW_THREADS
;
5028 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
5030 wxPy_END_ALLOW_THREADS
;
5031 if (PyErr_Occurred()) return NULL
;
5032 } Py_INCREF(Py_None
);
5033 _resultobj
= Py_None
;
5040 static void *SwigwxPenListTowxObject(void *ptr
) {
5043 src
= (wxPenList
*) ptr
;
5044 dest
= (wxObject
*) src
;
5045 return (void *) dest
;
5048 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5049 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5050 PyObject
* _resultobj
;
5053 PyObject
* _argo0
= 0;
5054 PyObject
* _argo1
= 0;
5055 char *_kwnames
[] = { "self","pen", NULL
};
5058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
5061 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5062 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5068 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5069 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5070 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5075 wxPy_BEGIN_ALLOW_THREADS
;
5076 wxPenList_AddPen(_arg0
,_arg1
);
5078 wxPy_END_ALLOW_THREADS
;
5079 if (PyErr_Occurred()) return NULL
;
5080 } Py_INCREF(Py_None
);
5081 _resultobj
= Py_None
;
5085 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5086 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5087 PyObject
* _resultobj
;
5093 PyObject
* _argo0
= 0;
5095 PyObject
* _obj1
= 0;
5096 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5103 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5104 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5105 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5111 if (! wxColour_helper(_obj1
, &_arg1
))
5115 wxPy_BEGIN_ALLOW_THREADS
;
5116 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5118 wxPy_END_ALLOW_THREADS
;
5119 if (PyErr_Occurred()) return NULL
;
5121 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5122 _resultobj
= Py_BuildValue("s",_ptemp
);
5125 _resultobj
= Py_None
;
5130 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5131 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5132 PyObject
* _resultobj
;
5135 PyObject
* _argo0
= 0;
5136 PyObject
* _argo1
= 0;
5137 char *_kwnames
[] = { "self","pen", NULL
};
5140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5150 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5151 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5157 wxPy_BEGIN_ALLOW_THREADS
;
5158 wxPenList_RemovePen(_arg0
,_arg1
);
5160 wxPy_END_ALLOW_THREADS
;
5161 if (PyErr_Occurred()) return NULL
;
5162 } Py_INCREF(Py_None
);
5163 _resultobj
= Py_None
;
5167 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5170 src
= (wxBrush
*) ptr
;
5171 dest
= (wxGDIObject
*) src
;
5172 return (void *) dest
;
5175 static void *SwigwxBrushTowxObject(void *ptr
) {
5178 src
= (wxBrush
*) ptr
;
5179 dest
= (wxObject
*) src
;
5180 return (void *) dest
;
5183 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5184 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5185 PyObject
* _resultobj
;
5188 int _arg1
= (int ) wxSOLID
;
5190 PyObject
* _obj0
= 0;
5191 char *_kwnames
[] = { "colour","style", NULL
};
5195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5199 if (! wxColour_helper(_obj0
, &_arg0
))
5203 wxPy_BEGIN_ALLOW_THREADS
;
5204 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5206 wxPy_END_ALLOW_THREADS
;
5207 if (PyErr_Occurred()) return NULL
;
5209 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5210 _resultobj
= Py_BuildValue("s",_ptemp
);
5213 _resultobj
= Py_None
;
5218 #define delete_wxBrush(_swigobj) (delete _swigobj)
5219 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5220 PyObject
* _resultobj
;
5222 PyObject
* _argo0
= 0;
5223 char *_kwnames
[] = { "self", NULL
};
5226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5236 wxPy_BEGIN_ALLOW_THREADS
;
5237 delete_wxBrush(_arg0
);
5239 wxPy_END_ALLOW_THREADS
;
5240 if (PyErr_Occurred()) return NULL
;
5241 } Py_INCREF(Py_None
);
5242 _resultobj
= Py_None
;
5246 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5247 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5248 PyObject
* _resultobj
;
5251 PyObject
* _argo0
= 0;
5252 char *_kwnames
[] = { "self", NULL
};
5256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5266 wxPy_BEGIN_ALLOW_THREADS
;
5267 _result
= new wxColour (wxBrush_GetColour(_arg0
));
5269 wxPy_END_ALLOW_THREADS
;
5270 if (PyErr_Occurred()) return NULL
;
5271 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5272 _resultobj
= Py_BuildValue("s",_ptemp
);
5276 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5277 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5278 PyObject
* _resultobj
;
5281 PyObject
* _argo0
= 0;
5282 char *_kwnames
[] = { "self", NULL
};
5286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
5289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5296 wxPy_BEGIN_ALLOW_THREADS
;
5297 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
5299 wxPy_END_ALLOW_THREADS
;
5300 if (PyErr_Occurred()) return NULL
;
5302 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5303 _resultobj
= Py_BuildValue("s",_ptemp
);
5306 _resultobj
= Py_None
;
5311 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5312 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5313 PyObject
* _resultobj
;
5316 PyObject
* _argo0
= 0;
5317 char *_kwnames
[] = { "self", NULL
};
5320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
5323 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5324 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5330 wxPy_BEGIN_ALLOW_THREADS
;
5331 _result
= (int )wxBrush_GetStyle(_arg0
);
5333 wxPy_END_ALLOW_THREADS
;
5334 if (PyErr_Occurred()) return NULL
;
5335 } _resultobj
= Py_BuildValue("i",_result
);
5339 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5340 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5341 PyObject
* _resultobj
;
5344 PyObject
* _argo0
= 0;
5345 char *_kwnames
[] = { "self", NULL
};
5348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
5351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5358 wxPy_BEGIN_ALLOW_THREADS
;
5359 _result
= (bool )wxBrush_Ok(_arg0
);
5361 wxPy_END_ALLOW_THREADS
;
5362 if (PyErr_Occurred()) return NULL
;
5363 } _resultobj
= Py_BuildValue("i",_result
);
5367 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5368 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5369 PyObject
* _resultobj
;
5372 PyObject
* _argo0
= 0;
5374 PyObject
* _obj1
= 0;
5375 char *_kwnames
[] = { "self","colour", NULL
};
5378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
5381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5389 if (! wxColour_helper(_obj1
, &_arg1
))
5393 wxPy_BEGIN_ALLOW_THREADS
;
5394 wxBrush_SetColour(_arg0
,*_arg1
);
5396 wxPy_END_ALLOW_THREADS
;
5397 if (PyErr_Occurred()) return NULL
;
5398 } Py_INCREF(Py_None
);
5399 _resultobj
= Py_None
;
5403 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5404 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5405 PyObject
* _resultobj
;
5408 PyObject
* _argo0
= 0;
5409 PyObject
* _argo1
= 0;
5410 char *_kwnames
[] = { "self","bitmap", NULL
};
5413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5423 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5424 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5430 wxPy_BEGIN_ALLOW_THREADS
;
5431 wxBrush_SetStipple(_arg0
,*_arg1
);
5433 wxPy_END_ALLOW_THREADS
;
5434 if (PyErr_Occurred()) return NULL
;
5435 } Py_INCREF(Py_None
);
5436 _resultobj
= Py_None
;
5440 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5441 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5442 PyObject
* _resultobj
;
5445 PyObject
* _argo0
= 0;
5446 char *_kwnames
[] = { "self","style", NULL
};
5449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5459 wxPy_BEGIN_ALLOW_THREADS
;
5460 wxBrush_SetStyle(_arg0
,_arg1
);
5462 wxPy_END_ALLOW_THREADS
;
5463 if (PyErr_Occurred()) return NULL
;
5464 } Py_INCREF(Py_None
);
5465 _resultobj
= Py_None
;
5469 static void *SwigwxBrushListTowxObject(void *ptr
) {
5472 src
= (wxBrushList
*) ptr
;
5473 dest
= (wxObject
*) src
;
5474 return (void *) dest
;
5477 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5478 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5479 PyObject
* _resultobj
;
5480 wxBrushList
* _arg0
;
5482 PyObject
* _argo0
= 0;
5483 PyObject
* _argo1
= 0;
5484 char *_kwnames
[] = { "self","brush", NULL
};
5487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
5490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5497 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5498 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5504 wxPy_BEGIN_ALLOW_THREADS
;
5505 wxBrushList_AddBrush(_arg0
,_arg1
);
5507 wxPy_END_ALLOW_THREADS
;
5508 if (PyErr_Occurred()) return NULL
;
5509 } Py_INCREF(Py_None
);
5510 _resultobj
= Py_None
;
5514 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5515 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5516 PyObject
* _resultobj
;
5518 wxBrushList
* _arg0
;
5521 PyObject
* _argo0
= 0;
5523 PyObject
* _obj1
= 0;
5524 char *_kwnames
[] = { "self","colour","style", NULL
};
5528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
5531 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5532 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5539 if (! wxColour_helper(_obj1
, &_arg1
))
5543 wxPy_BEGIN_ALLOW_THREADS
;
5544 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
5546 wxPy_END_ALLOW_THREADS
;
5547 if (PyErr_Occurred()) return NULL
;
5549 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5550 _resultobj
= Py_BuildValue("s",_ptemp
);
5553 _resultobj
= Py_None
;
5558 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5559 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5560 PyObject
* _resultobj
;
5561 wxBrushList
* _arg0
;
5563 PyObject
* _argo0
= 0;
5564 PyObject
* _argo1
= 0;
5565 char *_kwnames
[] = { "self","brush", NULL
};
5568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
5571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5578 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5579 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5585 wxPy_BEGIN_ALLOW_THREADS
;
5586 wxBrushList_RemoveBrush(_arg0
,_arg1
);
5588 wxPy_END_ALLOW_THREADS
;
5589 if (PyErr_Occurred()) return NULL
;
5590 } Py_INCREF(Py_None
);
5591 _resultobj
= Py_None
;
5595 static void *SwigwxDCTowxObject(void *ptr
) {
5599 dest
= (wxObject
*) src
;
5600 return (void *) dest
;
5603 #define delete_wxDC(_swigobj) (delete _swigobj)
5604 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5605 PyObject
* _resultobj
;
5607 PyObject
* _argo0
= 0;
5608 char *_kwnames
[] = { "self", NULL
};
5611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
5614 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5615 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5616 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5621 wxPy_BEGIN_ALLOW_THREADS
;
5624 wxPy_END_ALLOW_THREADS
;
5625 if (PyErr_Occurred()) return NULL
;
5626 } Py_INCREF(Py_None
);
5627 _resultobj
= Py_None
;
5631 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
5632 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5633 PyObject
* _resultobj
;
5635 PyObject
* _argo0
= 0;
5636 char *_kwnames
[] = { "self", NULL
};
5639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
5642 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5643 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5644 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5649 wxPy_BEGIN_ALLOW_THREADS
;
5650 wxDC_BeginDrawing(_arg0
);
5652 wxPy_END_ALLOW_THREADS
;
5653 if (PyErr_Occurred()) return NULL
;
5654 } Py_INCREF(Py_None
);
5655 _resultobj
= Py_None
;
5659 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5660 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5661 PyObject
* _resultobj
;
5671 int _arg8
= (int ) wxCOPY
;
5672 int _arg9
= (int ) FALSE
;
5673 PyObject
* _argo0
= 0;
5674 PyObject
* _argo5
= 0;
5675 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
5678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
5681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5688 if (_argo5
== Py_None
) { _arg5
= NULL
; }
5689 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
5690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5695 wxPy_BEGIN_ALLOW_THREADS
;
5696 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
5698 wxPy_END_ALLOW_THREADS
;
5699 if (PyErr_Occurred()) return NULL
;
5700 } _resultobj
= Py_BuildValue("i",_result
);
5704 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
5705 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5706 PyObject
* _resultobj
;
5708 PyObject
* _argo0
= 0;
5709 char *_kwnames
[] = { "self", NULL
};
5712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
5715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5722 wxPy_BEGIN_ALLOW_THREADS
;
5725 wxPy_END_ALLOW_THREADS
;
5726 if (PyErr_Occurred()) return NULL
;
5727 } Py_INCREF(Py_None
);
5728 _resultobj
= Py_None
;
5732 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5733 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5734 PyObject
* _resultobj
;
5738 PyObject
* _argo0
= 0;
5739 char *_kwnames
[] = { "self","x","y", NULL
};
5742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5752 wxPy_BEGIN_ALLOW_THREADS
;
5753 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
5755 wxPy_END_ALLOW_THREADS
;
5756 if (PyErr_Occurred()) return NULL
;
5757 } Py_INCREF(Py_None
);
5758 _resultobj
= Py_None
;
5762 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5763 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5764 PyObject
* _resultobj
;
5766 PyObject
* _argo0
= 0;
5767 char *_kwnames
[] = { "self", NULL
};
5770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
5773 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5774 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5775 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5780 wxPy_BEGIN_ALLOW_THREADS
;
5781 wxDC_DestroyClippingRegion(_arg0
);
5783 wxPy_END_ALLOW_THREADS
;
5784 if (PyErr_Occurred()) return NULL
;
5785 } Py_INCREF(Py_None
);
5786 _resultobj
= Py_None
;
5790 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5791 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5792 PyObject
* _resultobj
;
5796 PyObject
* _argo0
= 0;
5797 char *_kwnames
[] = { "self","x", NULL
};
5800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
5803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5810 wxPy_BEGIN_ALLOW_THREADS
;
5811 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
5813 wxPy_END_ALLOW_THREADS
;
5814 if (PyErr_Occurred()) return NULL
;
5815 } _resultobj
= Py_BuildValue("l",_result
);
5819 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5820 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5821 PyObject
* _resultobj
;
5825 PyObject
* _argo0
= 0;
5826 char *_kwnames
[] = { "self","x", NULL
};
5829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
5832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5839 wxPy_BEGIN_ALLOW_THREADS
;
5840 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
5842 wxPy_END_ALLOW_THREADS
;
5843 if (PyErr_Occurred()) return NULL
;
5844 } _resultobj
= Py_BuildValue("l",_result
);
5848 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5849 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5850 PyObject
* _resultobj
;
5854 PyObject
* _argo0
= 0;
5855 char *_kwnames
[] = { "self","y", NULL
};
5858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
5861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5868 wxPy_BEGIN_ALLOW_THREADS
;
5869 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
5871 wxPy_END_ALLOW_THREADS
;
5872 if (PyErr_Occurred()) return NULL
;
5873 } _resultobj
= Py_BuildValue("l",_result
);
5877 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5878 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5879 PyObject
* _resultobj
;
5883 PyObject
* _argo0
= 0;
5884 char *_kwnames
[] = { "self","y", NULL
};
5887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
5890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5897 wxPy_BEGIN_ALLOW_THREADS
;
5898 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5900 wxPy_END_ALLOW_THREADS
;
5901 if (PyErr_Occurred()) return NULL
;
5902 } _resultobj
= Py_BuildValue("l",_result
);
5906 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5907 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5908 PyObject
* _resultobj
;
5916 PyObject
* _argo0
= 0;
5917 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5930 wxPy_BEGIN_ALLOW_THREADS
;
5931 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5933 wxPy_END_ALLOW_THREADS
;
5934 if (PyErr_Occurred()) return NULL
;
5935 } Py_INCREF(Py_None
);
5936 _resultobj
= Py_None
;
5940 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5941 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5942 PyObject
* _resultobj
;
5947 PyObject
* _argo0
= 0;
5948 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5954 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5955 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5961 wxPy_BEGIN_ALLOW_THREADS
;
5962 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
5964 wxPy_END_ALLOW_THREADS
;
5965 if (PyErr_Occurred()) return NULL
;
5966 } Py_INCREF(Py_None
);
5967 _resultobj
= Py_None
;
5971 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5972 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5973 PyObject
* _resultobj
;
5979 PyObject
* _argo0
= 0;
5980 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5993 wxPy_BEGIN_ALLOW_THREADS
;
5994 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5996 wxPy_END_ALLOW_THREADS
;
5997 if (PyErr_Occurred()) return NULL
;
5998 } Py_INCREF(Py_None
);
5999 _resultobj
= Py_None
;
6003 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6004 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6005 PyObject
* _resultobj
;
6013 PyObject
* _argo0
= 0;
6014 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
6017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6027 wxPy_BEGIN_ALLOW_THREADS
;
6028 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6030 wxPy_END_ALLOW_THREADS
;
6031 if (PyErr_Occurred()) return NULL
;
6032 } Py_INCREF(Py_None
);
6033 _resultobj
= Py_None
;
6037 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6038 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6039 PyObject
* _resultobj
;
6044 PyObject
* _argo0
= 0;
6045 PyObject
* _argo1
= 0;
6046 char *_kwnames
[] = { "self","icon","x","y", NULL
};
6049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
6052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6059 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6060 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
6061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6066 wxPy_BEGIN_ALLOW_THREADS
;
6067 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
6069 wxPy_END_ALLOW_THREADS
;
6070 if (PyErr_Occurred()) return NULL
;
6071 } Py_INCREF(Py_None
);
6072 _resultobj
= Py_None
;
6076 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6077 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6078 PyObject
* _resultobj
;
6084 PyObject
* _argo0
= 0;
6085 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
6088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6098 wxPy_BEGIN_ALLOW_THREADS
;
6099 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6101 wxPy_END_ALLOW_THREADS
;
6102 if (PyErr_Occurred()) return NULL
;
6103 } Py_INCREF(Py_None
);
6104 _resultobj
= Py_None
;
6108 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6109 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6110 PyObject
* _resultobj
;
6114 long _arg3
= (long ) 0;
6115 long _arg4
= (long ) 0;
6116 PyObject
* _argo0
= 0;
6118 PyObject
* _obj2
= 0;
6119 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
6122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
6125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6133 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6134 if (_arg2
== NULL
) {
6142 wxPy_BEGIN_ALLOW_THREADS
;
6143 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6145 wxPy_END_ALLOW_THREADS
;
6146 if (PyErr_Occurred()) return NULL
;
6147 } Py_INCREF(Py_None
);
6148 _resultobj
= Py_None
;
6155 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6156 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6157 PyObject
* _resultobj
;
6161 long _arg3
= (long ) 0;
6162 long _arg4
= (long ) 0;
6163 int _arg5
= (int ) wxODDEVEN_RULE
;
6164 PyObject
* _argo0
= 0;
6166 PyObject
* _obj2
= 0;
6167 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6181 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6182 if (_arg2
== NULL
) {
6190 wxPy_BEGIN_ALLOW_THREADS
;
6191 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6193 wxPy_END_ALLOW_THREADS
;
6194 if (PyErr_Occurred()) return NULL
;
6195 } Py_INCREF(Py_None
);
6196 _resultobj
= Py_None
;
6203 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6204 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6205 PyObject
* _resultobj
;
6209 PyObject
* _argo0
= 0;
6210 char *_kwnames
[] = { "self","x","y", NULL
};
6213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6223 wxPy_BEGIN_ALLOW_THREADS
;
6224 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6226 wxPy_END_ALLOW_THREADS
;
6227 if (PyErr_Occurred()) return NULL
;
6228 } Py_INCREF(Py_None
);
6229 _resultobj
= Py_None
;
6233 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6234 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6235 PyObject
* _resultobj
;
6241 PyObject
* _argo0
= 0;
6242 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6245 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6248 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6249 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6250 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6255 wxPy_BEGIN_ALLOW_THREADS
;
6256 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6258 wxPy_END_ALLOW_THREADS
;
6259 if (PyErr_Occurred()) return NULL
;
6260 } Py_INCREF(Py_None
);
6261 _resultobj
= Py_None
;
6265 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6266 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6267 PyObject
* _resultobj
;
6273 PyObject
* _argo0
= 0;
6274 PyObject
* _obj1
= 0;
6275 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6281 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6282 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6288 #if PYTHON_API_VERSION >= 1009
6289 char* tmpPtr
; int tmpSize
;
6290 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6291 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6294 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6296 _arg1
= new wxString(tmpPtr
, tmpSize
);
6298 if (!PyString_Check(_obj1
)) {
6299 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6302 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6306 wxPy_BEGIN_ALLOW_THREADS
;
6307 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
6309 wxPy_END_ALLOW_THREADS
;
6310 if (PyErr_Occurred()) return NULL
;
6311 } Py_INCREF(Py_None
);
6312 _resultobj
= Py_None
;
6320 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6321 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6322 PyObject
* _resultobj
;
6328 long _arg5
= (long ) 20;
6329 PyObject
* _argo0
= 0;
6330 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
6333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
6336 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6337 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6343 wxPy_BEGIN_ALLOW_THREADS
;
6344 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6346 wxPy_END_ALLOW_THREADS
;
6347 if (PyErr_Occurred()) return NULL
;
6348 } Py_INCREF(Py_None
);
6349 _resultobj
= Py_None
;
6353 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
6354 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6355 PyObject
* _resultobj
;
6359 PyObject
* _argo0
= 0;
6361 PyObject
* _obj2
= 0;
6362 char *_kwnames
[] = { "self","points", NULL
};
6365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
6368 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6369 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6370 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6376 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6377 if (_arg2
== NULL
) {
6385 wxPy_BEGIN_ALLOW_THREADS
;
6386 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
6388 wxPy_END_ALLOW_THREADS
;
6389 if (PyErr_Occurred()) return NULL
;
6390 } Py_INCREF(Py_None
);
6391 _resultobj
= Py_None
;
6398 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
6399 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6400 PyObject
* _resultobj
;
6405 PyObject
* _argo0
= 0;
6406 PyObject
* _obj1
= 0;
6407 char *_kwnames
[] = { "self","text","x","y", NULL
};
6410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
6413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6420 #if PYTHON_API_VERSION >= 1009
6421 char* tmpPtr
; int tmpSize
;
6422 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6423 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6426 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6428 _arg1
= new wxString(tmpPtr
, tmpSize
);
6430 if (!PyString_Check(_obj1
)) {
6431 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6434 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6438 wxPy_BEGIN_ALLOW_THREADS
;
6439 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
6441 wxPy_END_ALLOW_THREADS
;
6442 if (PyErr_Occurred()) return NULL
;
6443 } Py_INCREF(Py_None
);
6444 _resultobj
= Py_None
;
6452 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
6453 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6454 PyObject
* _resultobj
;
6456 PyObject
* _argo0
= 0;
6457 char *_kwnames
[] = { "self", NULL
};
6460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
6463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6470 wxPy_BEGIN_ALLOW_THREADS
;
6473 wxPy_END_ALLOW_THREADS
;
6474 if (PyErr_Occurred()) return NULL
;
6475 } Py_INCREF(Py_None
);
6476 _resultobj
= Py_None
;
6480 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
6481 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6482 PyObject
* _resultobj
;
6484 PyObject
* _argo0
= 0;
6485 char *_kwnames
[] = { "self", NULL
};
6488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
6491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6498 wxPy_BEGIN_ALLOW_THREADS
;
6499 wxDC_EndDrawing(_arg0
);
6501 wxPy_END_ALLOW_THREADS
;
6502 if (PyErr_Occurred()) return NULL
;
6503 } Py_INCREF(Py_None
);
6504 _resultobj
= Py_None
;
6508 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
6509 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6510 PyObject
* _resultobj
;
6512 PyObject
* _argo0
= 0;
6513 char *_kwnames
[] = { "self", NULL
};
6516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
6519 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6520 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6526 wxPy_BEGIN_ALLOW_THREADS
;
6527 wxDC_EndPage(_arg0
);
6529 wxPy_END_ALLOW_THREADS
;
6530 if (PyErr_Occurred()) return NULL
;
6531 } Py_INCREF(Py_None
);
6532 _resultobj
= Py_None
;
6536 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6537 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6538 PyObject
* _resultobj
;
6543 int _arg4
= (int ) wxFLOOD_SURFACE
;
6544 PyObject
* _argo0
= 0;
6546 PyObject
* _obj3
= 0;
6547 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
6550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
6553 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6554 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6561 if (! wxColour_helper(_obj3
, &_arg3
))
6565 wxPy_BEGIN_ALLOW_THREADS
;
6566 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
6568 wxPy_END_ALLOW_THREADS
;
6569 if (PyErr_Occurred()) return NULL
;
6570 } Py_INCREF(Py_None
);
6571 _resultobj
= Py_None
;
6575 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
6576 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6577 PyObject
* _resultobj
;
6580 PyObject
* _argo0
= 0;
6581 char *_kwnames
[] = { "self", NULL
};
6585 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
6588 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6589 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6595 wxPy_BEGIN_ALLOW_THREADS
;
6596 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
6597 _result
= (wxBrush
*) &_result_ref
;
6599 wxPy_END_ALLOW_THREADS
;
6600 if (PyErr_Occurred()) return NULL
;
6602 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6603 _resultobj
= Py_BuildValue("s",_ptemp
);
6606 _resultobj
= Py_None
;
6611 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
6612 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6613 PyObject
* _resultobj
;
6616 PyObject
* _argo0
= 0;
6617 char *_kwnames
[] = { "self", NULL
};
6621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
6624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6631 wxPy_BEGIN_ALLOW_THREADS
;
6632 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
6633 _result
= (wxBrush
*) &_result_ref
;
6635 wxPy_END_ALLOW_THREADS
;
6636 if (PyErr_Occurred()) return NULL
;
6638 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6639 _resultobj
= Py_BuildValue("s",_ptemp
);
6642 _resultobj
= Py_None
;
6647 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
6648 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6649 PyObject
* _resultobj
;
6652 PyObject
* _argo0
= 0;
6653 char *_kwnames
[] = { "self", NULL
};
6656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
6659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6666 wxPy_BEGIN_ALLOW_THREADS
;
6667 _result
= (long )wxDC_GetCharHeight(_arg0
);
6669 wxPy_END_ALLOW_THREADS
;
6670 if (PyErr_Occurred()) return NULL
;
6671 } _resultobj
= Py_BuildValue("l",_result
);
6675 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
6676 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6677 PyObject
* _resultobj
;
6680 PyObject
* _argo0
= 0;
6681 char *_kwnames
[] = { "self", NULL
};
6684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
6687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6694 wxPy_BEGIN_ALLOW_THREADS
;
6695 _result
= (long )wxDC_GetCharWidth(_arg0
);
6697 wxPy_END_ALLOW_THREADS
;
6698 if (PyErr_Occurred()) return NULL
;
6699 } _resultobj
= Py_BuildValue("l",_result
);
6703 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6704 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6705 PyObject
* _resultobj
;
6715 PyObject
* _argo0
= 0;
6716 char *_kwnames
[] = { "self", NULL
};
6731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
6734 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6735 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6736 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6741 wxPy_BEGIN_ALLOW_THREADS
;
6742 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6744 wxPy_END_ALLOW_THREADS
;
6745 if (PyErr_Occurred()) return NULL
;
6746 } Py_INCREF(Py_None
);
6747 _resultobj
= Py_None
;
6750 o
= PyInt_FromLong((long) (*_arg1
));
6751 _resultobj
= t_output_helper(_resultobj
, o
);
6755 o
= PyInt_FromLong((long) (*_arg2
));
6756 _resultobj
= t_output_helper(_resultobj
, o
);
6760 o
= PyInt_FromLong((long) (*_arg3
));
6761 _resultobj
= t_output_helper(_resultobj
, o
);
6765 o
= PyInt_FromLong((long) (*_arg4
));
6766 _resultobj
= t_output_helper(_resultobj
, o
);
6771 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6772 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6773 PyObject
* _resultobj
;
6776 PyObject
* _argo0
= 0;
6777 char *_kwnames
[] = { "self", NULL
};
6781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
6784 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6785 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6786 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6791 wxPy_BEGIN_ALLOW_THREADS
;
6792 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
6793 _result
= (wxFont
*) &_result_ref
;
6795 wxPy_END_ALLOW_THREADS
;
6796 if (PyErr_Occurred()) return NULL
;
6798 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
6799 _resultobj
= Py_BuildValue("s",_ptemp
);
6802 _resultobj
= Py_None
;
6807 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6808 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6809 PyObject
* _resultobj
;
6812 PyObject
* _argo0
= 0;
6813 char *_kwnames
[] = { "self", NULL
};
6816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
6819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6826 wxPy_BEGIN_ALLOW_THREADS
;
6827 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
6829 wxPy_END_ALLOW_THREADS
;
6830 if (PyErr_Occurred()) return NULL
;
6831 } _resultobj
= Py_BuildValue("i",_result
);
6835 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6836 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6837 PyObject
* _resultobj
;
6843 PyObject
* _argo0
= 0;
6844 char *_kwnames
[] = { "self", NULL
};
6853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
6856 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6857 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
6863 wxPy_BEGIN_ALLOW_THREADS
;
6864 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
6866 wxPy_END_ALLOW_THREADS
;
6867 if (PyErr_Occurred()) return NULL
;
6868 } Py_INCREF(Py_None
);
6869 _resultobj
= Py_None
;
6872 o
= PyFloat_FromDouble((double) (*_arg1
));
6873 _resultobj
= t_output_helper(_resultobj
, o
);
6877 o
= PyFloat_FromDouble((double) (*_arg2
));
6878 _resultobj
= t_output_helper(_resultobj
, o
);
6883 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6884 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6885 PyObject
* _resultobj
;
6888 PyObject
* _argo0
= 0;
6889 char *_kwnames
[] = { "self", NULL
};
6892 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
6895 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6896 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6902 wxPy_BEGIN_ALLOW_THREADS
;
6903 _result
= (int )wxDC_GetMapMode(_arg0
);
6905 wxPy_END_ALLOW_THREADS
;
6906 if (PyErr_Occurred()) return NULL
;
6907 } _resultobj
= Py_BuildValue("i",_result
);
6911 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6912 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6913 PyObject
* _resultobj
;
6916 PyObject
* _argo0
= 0;
6917 char *_kwnames
[] = { "self", NULL
};
6920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
6923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6930 wxPy_BEGIN_ALLOW_THREADS
;
6931 _result
= (bool )wxDC_GetOptimization(_arg0
);
6933 wxPy_END_ALLOW_THREADS
;
6934 if (PyErr_Occurred()) return NULL
;
6935 } _resultobj
= Py_BuildValue("i",_result
);
6939 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6940 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6941 PyObject
* _resultobj
;
6944 PyObject
* _argo0
= 0;
6945 char *_kwnames
[] = { "self", NULL
};
6949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
6952 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6953 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6959 wxPy_BEGIN_ALLOW_THREADS
;
6960 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
6961 _result
= (wxPen
*) &_result_ref
;
6963 wxPy_END_ALLOW_THREADS
;
6964 if (PyErr_Occurred()) return NULL
;
6966 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6967 _resultobj
= Py_BuildValue("s",_ptemp
);
6970 _resultobj
= Py_None
;
6975 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
6976 wxColour
* wc
= new wxColour();
6977 self
->GetPixel(x
, y
, wc
);
6980 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6981 PyObject
* _resultobj
;
6986 PyObject
* _argo0
= 0;
6987 char *_kwnames
[] = { "self","x","y", NULL
};
6991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
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_GetPixel. Expected _wxDC_p.");
7001 wxPy_BEGIN_ALLOW_THREADS
;
7002 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
7004 wxPy_END_ALLOW_THREADS
;
7005 if (PyErr_Occurred()) return NULL
;
7007 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7008 _resultobj
= Py_BuildValue("s",_ptemp
);
7011 _resultobj
= Py_None
;
7016 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7017 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7018 PyObject
* _resultobj
;
7024 PyObject
* _argo0
= 0;
7025 char *_kwnames
[] = { "self", NULL
};
7034 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
7037 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7038 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7039 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7044 wxPy_BEGIN_ALLOW_THREADS
;
7045 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
7047 wxPy_END_ALLOW_THREADS
;
7048 if (PyErr_Occurred()) return NULL
;
7049 } Py_INCREF(Py_None
);
7050 _resultobj
= Py_None
;
7053 o
= PyInt_FromLong((long) (*_arg1
));
7054 _resultobj
= t_output_helper(_resultobj
, o
);
7058 o
= PyInt_FromLong((long) (*_arg2
));
7059 _resultobj
= t_output_helper(_resultobj
, o
);
7064 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7065 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7066 PyObject
* _resultobj
;
7069 PyObject
* _argo0
= 0;
7070 char *_kwnames
[] = { "self", NULL
};
7074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
7077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7084 wxPy_BEGIN_ALLOW_THREADS
;
7085 _result
= new wxSize (wxDC_GetSize(_arg0
));
7087 wxPy_END_ALLOW_THREADS
;
7088 if (PyErr_Occurred()) return NULL
;
7089 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7090 _resultobj
= Py_BuildValue("s",_ptemp
);
7094 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7095 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7096 PyObject
* _resultobj
;
7099 PyObject
* _argo0
= 0;
7100 char *_kwnames
[] = { "self", NULL
};
7104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7114 wxPy_BEGIN_ALLOW_THREADS
;
7115 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
7117 wxPy_END_ALLOW_THREADS
;
7118 if (PyErr_Occurred()) return NULL
;
7119 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7120 _resultobj
= Py_BuildValue("s",_ptemp
);
7124 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7125 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7126 PyObject
* _resultobj
;
7129 PyObject
* _argo0
= 0;
7130 char *_kwnames
[] = { "self", NULL
};
7134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
7137 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7138 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7144 wxPy_BEGIN_ALLOW_THREADS
;
7145 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
7147 wxPy_END_ALLOW_THREADS
;
7148 if (PyErr_Occurred()) return NULL
;
7149 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7150 _resultobj
= Py_BuildValue("s",_ptemp
);
7154 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7155 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7156 PyObject
* _resultobj
;
7163 PyObject
* _argo0
= 0;
7164 PyObject
* _obj1
= 0;
7165 char *_kwnames
[] = { "self","string", NULL
};
7174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7184 #if PYTHON_API_VERSION >= 1009
7185 char* tmpPtr
; int tmpSize
;
7186 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7187 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7190 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7192 _arg1
= new wxString(tmpPtr
, tmpSize
);
7194 if (!PyString_Check(_obj1
)) {
7195 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7198 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7202 wxPy_BEGIN_ALLOW_THREADS
;
7203 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7205 wxPy_END_ALLOW_THREADS
;
7206 if (PyErr_Occurred()) return NULL
;
7207 } Py_INCREF(Py_None
);
7208 _resultobj
= Py_None
;
7211 o
= PyInt_FromLong((long) (*_arg2
));
7212 _resultobj
= t_output_helper(_resultobj
, o
);
7216 o
= PyInt_FromLong((long) (*_arg3
));
7217 _resultobj
= t_output_helper(_resultobj
, o
);
7226 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7227 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7228 PyObject
* _resultobj
;
7239 wxFont
* _arg6
= (wxFont
*) NULL
;
7240 PyObject
* _argo0
= 0;
7241 PyObject
* _obj1
= 0;
7242 PyObject
* _argo6
= 0;
7243 char *_kwnames
[] = { "self","string","font", NULL
};
7258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7268 #if PYTHON_API_VERSION >= 1009
7269 char* tmpPtr
; int tmpSize
;
7270 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7271 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7274 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7276 _arg1
= new wxString(tmpPtr
, tmpSize
);
7278 if (!PyString_Check(_obj1
)) {
7279 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7282 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7286 if (_argo6
== Py_None
) { _arg6
= NULL
; }
7287 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
7288 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7293 wxPy_BEGIN_ALLOW_THREADS
;
7294 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7296 wxPy_END_ALLOW_THREADS
;
7297 if (PyErr_Occurred()) return NULL
;
7298 } Py_INCREF(Py_None
);
7299 _resultobj
= Py_None
;
7302 o
= PyInt_FromLong((long) (*_arg2
));
7303 _resultobj
= t_output_helper(_resultobj
, o
);
7307 o
= PyInt_FromLong((long) (*_arg3
));
7308 _resultobj
= t_output_helper(_resultobj
, o
);
7312 o
= PyInt_FromLong((long) (*_arg4
));
7313 _resultobj
= t_output_helper(_resultobj
, o
);
7317 o
= PyInt_FromLong((long) (*_arg5
));
7318 _resultobj
= t_output_helper(_resultobj
, o
);
7327 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
7328 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7329 PyObject
* _resultobj
;
7332 PyObject
* _argo0
= 0;
7333 char *_kwnames
[] = { "self", NULL
};
7337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
7340 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7341 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7342 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7347 wxPy_BEGIN_ALLOW_THREADS
;
7348 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
7350 wxPy_END_ALLOW_THREADS
;
7351 if (PyErr_Occurred()) return NULL
;
7352 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7353 _resultobj
= Py_BuildValue("s",_ptemp
);
7357 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7358 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7359 PyObject
* _resultobj
;
7365 PyObject
* _argo0
= 0;
7366 char *_kwnames
[] = { "self", NULL
};
7375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
7378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7385 wxPy_BEGIN_ALLOW_THREADS
;
7386 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
7388 wxPy_END_ALLOW_THREADS
;
7389 if (PyErr_Occurred()) return NULL
;
7390 } Py_INCREF(Py_None
);
7391 _resultobj
= Py_None
;
7394 o
= PyFloat_FromDouble((double) (*_arg1
));
7395 _resultobj
= t_output_helper(_resultobj
, o
);
7399 o
= PyFloat_FromDouble((double) (*_arg2
));
7400 _resultobj
= t_output_helper(_resultobj
, o
);
7405 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
7406 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7407 PyObject
* _resultobj
;
7411 PyObject
* _argo0
= 0;
7412 char *_kwnames
[] = { "self","x", NULL
};
7415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
7418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7425 wxPy_BEGIN_ALLOW_THREADS
;
7426 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
7428 wxPy_END_ALLOW_THREADS
;
7429 if (PyErr_Occurred()) return NULL
;
7430 } _resultobj
= Py_BuildValue("l",_result
);
7434 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
7435 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7436 PyObject
* _resultobj
;
7440 PyObject
* _argo0
= 0;
7441 char *_kwnames
[] = { "self","x", NULL
};
7444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
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_LogicalToDeviceXRel. Expected _wxDC_p.");
7454 wxPy_BEGIN_ALLOW_THREADS
;
7455 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
7457 wxPy_END_ALLOW_THREADS
;
7458 if (PyErr_Occurred()) return NULL
;
7459 } _resultobj
= Py_BuildValue("l",_result
);
7463 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
7464 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7465 PyObject
* _resultobj
;
7469 PyObject
* _argo0
= 0;
7470 char *_kwnames
[] = { "self","y", NULL
};
7473 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
7476 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7477 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7478 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7483 wxPy_BEGIN_ALLOW_THREADS
;
7484 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
7486 wxPy_END_ALLOW_THREADS
;
7487 if (PyErr_Occurred()) return NULL
;
7488 } _resultobj
= Py_BuildValue("l",_result
);
7492 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
7493 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7494 PyObject
* _resultobj
;
7498 PyObject
* _argo0
= 0;
7499 char *_kwnames
[] = { "self","y", NULL
};
7502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
7505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7512 wxPy_BEGIN_ALLOW_THREADS
;
7513 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
7515 wxPy_END_ALLOW_THREADS
;
7516 if (PyErr_Occurred()) return NULL
;
7517 } _resultobj
= Py_BuildValue("l",_result
);
7521 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
7522 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7523 PyObject
* _resultobj
;
7526 PyObject
* _argo0
= 0;
7527 char *_kwnames
[] = { "self", NULL
};
7530 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
7533 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7534 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7535 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7540 wxPy_BEGIN_ALLOW_THREADS
;
7541 _result
= (long )wxDC_MaxX(_arg0
);
7543 wxPy_END_ALLOW_THREADS
;
7544 if (PyErr_Occurred()) return NULL
;
7545 } _resultobj
= Py_BuildValue("l",_result
);
7549 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7550 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7551 PyObject
* _resultobj
;
7554 PyObject
* _argo0
= 0;
7555 char *_kwnames
[] = { "self", NULL
};
7558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
7561 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7562 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7563 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7568 wxPy_BEGIN_ALLOW_THREADS
;
7569 _result
= (long )wxDC_MaxY(_arg0
);
7571 wxPy_END_ALLOW_THREADS
;
7572 if (PyErr_Occurred()) return NULL
;
7573 } _resultobj
= Py_BuildValue("l",_result
);
7577 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
7578 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7579 PyObject
* _resultobj
;
7582 PyObject
* _argo0
= 0;
7583 char *_kwnames
[] = { "self", NULL
};
7586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
7589 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7590 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7591 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7596 wxPy_BEGIN_ALLOW_THREADS
;
7597 _result
= (long )wxDC_MinX(_arg0
);
7599 wxPy_END_ALLOW_THREADS
;
7600 if (PyErr_Occurred()) return NULL
;
7601 } _resultobj
= Py_BuildValue("l",_result
);
7605 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
7606 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7607 PyObject
* _resultobj
;
7610 PyObject
* _argo0
= 0;
7611 char *_kwnames
[] = { "self", NULL
};
7614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
7617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7624 wxPy_BEGIN_ALLOW_THREADS
;
7625 _result
= (long )wxDC_MinY(_arg0
);
7627 wxPy_END_ALLOW_THREADS
;
7628 if (PyErr_Occurred()) return NULL
;
7629 } _resultobj
= Py_BuildValue("l",_result
);
7633 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
7634 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7635 PyObject
* _resultobj
;
7638 PyObject
* _argo0
= 0;
7639 char *_kwnames
[] = { "self", NULL
};
7642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
7645 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7646 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7652 wxPy_BEGIN_ALLOW_THREADS
;
7653 _result
= (bool )wxDC_Ok(_arg0
);
7655 wxPy_END_ALLOW_THREADS
;
7656 if (PyErr_Occurred()) return NULL
;
7657 } _resultobj
= Py_BuildValue("i",_result
);
7661 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
7662 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7663 PyObject
* _resultobj
;
7667 PyObject
* _argo0
= 0;
7668 char *_kwnames
[] = { "self","x","y", NULL
};
7671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7681 wxPy_BEGIN_ALLOW_THREADS
;
7682 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7684 wxPy_END_ALLOW_THREADS
;
7685 if (PyErr_Occurred()) return NULL
;
7686 } Py_INCREF(Py_None
);
7687 _resultobj
= Py_None
;
7691 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
7692 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7693 PyObject
* _resultobj
;
7696 PyObject
* _argo0
= 0;
7697 PyObject
* _argo1
= 0;
7698 char *_kwnames
[] = { "self","brush", NULL
};
7701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
7704 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7705 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7711 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7712 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7718 wxPy_BEGIN_ALLOW_THREADS
;
7719 wxDC_SetBackground(_arg0
,*_arg1
);
7721 wxPy_END_ALLOW_THREADS
;
7722 if (PyErr_Occurred()) return NULL
;
7723 } Py_INCREF(Py_None
);
7724 _resultobj
= Py_None
;
7728 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
7729 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7730 PyObject
* _resultobj
;
7733 PyObject
* _argo0
= 0;
7734 char *_kwnames
[] = { "self","mode", NULL
};
7737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
7740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
7747 wxPy_BEGIN_ALLOW_THREADS
;
7748 wxDC_SetBackgroundMode(_arg0
,_arg1
);
7750 wxPy_END_ALLOW_THREADS
;
7751 if (PyErr_Occurred()) return NULL
;
7752 } Py_INCREF(Py_None
);
7753 _resultobj
= Py_None
;
7757 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7758 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7759 PyObject
* _resultobj
;
7765 PyObject
* _argo0
= 0;
7766 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7772 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7773 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7779 wxPy_BEGIN_ALLOW_THREADS
;
7780 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7782 wxPy_END_ALLOW_THREADS
;
7783 if (PyErr_Occurred()) return NULL
;
7784 } Py_INCREF(Py_None
);
7785 _resultobj
= Py_None
;
7789 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
7790 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7791 PyObject
* _resultobj
;
7794 PyObject
* _argo0
= 0;
7795 PyObject
* _argo1
= 0;
7796 char *_kwnames
[] = { "self","region", NULL
};
7799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
7802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
7809 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7810 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
7811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
7816 wxPy_BEGIN_ALLOW_THREADS
;
7817 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
7819 wxPy_END_ALLOW_THREADS
;
7820 if (PyErr_Occurred()) return NULL
;
7821 } Py_INCREF(Py_None
);
7822 _resultobj
= Py_None
;
7826 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
7827 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7828 PyObject
* _resultobj
;
7831 PyObject
* _argo0
= 0;
7832 PyObject
* _argo1
= 0;
7833 char *_kwnames
[] = { "self","colourMap", NULL
};
7836 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
7839 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7840 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7841 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
7846 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7847 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
7848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
7853 wxPy_BEGIN_ALLOW_THREADS
;
7854 wxDC_SetPalette(_arg0
,*_arg1
);
7856 wxPy_END_ALLOW_THREADS
;
7857 if (PyErr_Occurred()) return NULL
;
7858 } Py_INCREF(Py_None
);
7859 _resultobj
= Py_None
;
7863 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
7864 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7865 PyObject
* _resultobj
;
7868 PyObject
* _argo0
= 0;
7869 PyObject
* _argo1
= 0;
7870 char *_kwnames
[] = { "self","brush", NULL
};
7873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
7876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
7883 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7884 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
7890 wxPy_BEGIN_ALLOW_THREADS
;
7891 wxDC_SetBrush(_arg0
,*_arg1
);
7893 wxPy_END_ALLOW_THREADS
;
7894 if (PyErr_Occurred()) return NULL
;
7895 } Py_INCREF(Py_None
);
7896 _resultobj
= Py_None
;
7900 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7901 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7902 PyObject
* _resultobj
;
7905 PyObject
* _argo0
= 0;
7906 PyObject
* _argo1
= 0;
7907 char *_kwnames
[] = { "self","font", NULL
};
7910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
7913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7920 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7921 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
7922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7927 wxPy_BEGIN_ALLOW_THREADS
;
7928 wxDC_SetFont(_arg0
,*_arg1
);
7930 wxPy_END_ALLOW_THREADS
;
7931 if (PyErr_Occurred()) return NULL
;
7932 } Py_INCREF(Py_None
);
7933 _resultobj
= Py_None
;
7937 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7938 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7939 PyObject
* _resultobj
;
7942 PyObject
* _argo0
= 0;
7943 char *_kwnames
[] = { "self","function", NULL
};
7946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7949 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7950 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7956 wxPy_BEGIN_ALLOW_THREADS
;
7957 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7959 wxPy_END_ALLOW_THREADS
;
7960 if (PyErr_Occurred()) return NULL
;
7961 } Py_INCREF(Py_None
);
7962 _resultobj
= Py_None
;
7966 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7967 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7968 PyObject
* _resultobj
;
7972 PyObject
* _argo0
= 0;
7973 char *_kwnames
[] = { "self","x","y", NULL
};
7976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7979 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7980 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7986 wxPy_BEGIN_ALLOW_THREADS
;
7987 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7989 wxPy_END_ALLOW_THREADS
;
7990 if (PyErr_Occurred()) return NULL
;
7991 } Py_INCREF(Py_None
);
7992 _resultobj
= Py_None
;
7996 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7997 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7998 PyObject
* _resultobj
;
8001 PyObject
* _argo0
= 0;
8002 char *_kwnames
[] = { "self","mode", NULL
};
8005 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
8008 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8009 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8010 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8015 wxPy_BEGIN_ALLOW_THREADS
;
8016 wxDC_SetMapMode(_arg0
,_arg1
);
8018 wxPy_END_ALLOW_THREADS
;
8019 if (PyErr_Occurred()) return NULL
;
8020 } Py_INCREF(Py_None
);
8021 _resultobj
= Py_None
;
8025 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8026 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8027 PyObject
* _resultobj
;
8030 PyObject
* _argo0
= 0;
8032 char *_kwnames
[] = { "self","optimize", NULL
};
8035 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
8038 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8039 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8044 _arg1
= (bool ) tempbool1
;
8046 wxPy_BEGIN_ALLOW_THREADS
;
8047 wxDC_SetOptimization(_arg0
,_arg1
);
8049 wxPy_END_ALLOW_THREADS
;
8050 if (PyErr_Occurred()) return NULL
;
8051 } Py_INCREF(Py_None
);
8052 _resultobj
= Py_None
;
8056 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8057 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8058 PyObject
* _resultobj
;
8061 PyObject
* _argo0
= 0;
8062 PyObject
* _argo1
= 0;
8063 char *_kwnames
[] = { "self","pen", NULL
};
8066 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
8069 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8070 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8071 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8076 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8077 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
8078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8083 wxPy_BEGIN_ALLOW_THREADS
;
8084 wxDC_SetPen(_arg0
,*_arg1
);
8086 wxPy_END_ALLOW_THREADS
;
8087 if (PyErr_Occurred()) return NULL
;
8088 } Py_INCREF(Py_None
);
8089 _resultobj
= Py_None
;
8093 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8094 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8095 PyObject
* _resultobj
;
8098 PyObject
* _argo0
= 0;
8100 PyObject
* _obj1
= 0;
8101 char *_kwnames
[] = { "self","colour", NULL
};
8104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
8107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8115 if (! wxColour_helper(_obj1
, &_arg1
))
8119 wxPy_BEGIN_ALLOW_THREADS
;
8120 wxDC_SetTextBackground(_arg0
,*_arg1
);
8122 wxPy_END_ALLOW_THREADS
;
8123 if (PyErr_Occurred()) return NULL
;
8124 } Py_INCREF(Py_None
);
8125 _resultobj
= Py_None
;
8129 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8130 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8131 PyObject
* _resultobj
;
8134 PyObject
* _argo0
= 0;
8136 PyObject
* _obj1
= 0;
8137 char *_kwnames
[] = { "self","colour", NULL
};
8140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
8143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8151 if (! wxColour_helper(_obj1
, &_arg1
))
8155 wxPy_BEGIN_ALLOW_THREADS
;
8156 wxDC_SetTextForeground(_arg0
,*_arg1
);
8158 wxPy_END_ALLOW_THREADS
;
8159 if (PyErr_Occurred()) return NULL
;
8160 } Py_INCREF(Py_None
);
8161 _resultobj
= Py_None
;
8165 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8166 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8167 PyObject
* _resultobj
;
8171 PyObject
* _argo0
= 0;
8172 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8185 wxPy_BEGIN_ALLOW_THREADS
;
8186 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8188 wxPy_END_ALLOW_THREADS
;
8189 if (PyErr_Occurred()) return NULL
;
8190 } Py_INCREF(Py_None
);
8191 _resultobj
= Py_None
;
8195 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8196 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8197 PyObject
* _resultobj
;
8201 PyObject
* _argo0
= 0;
8202 PyObject
* _obj1
= 0;
8203 char *_kwnames
[] = { "self","message", NULL
};
8206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8216 #if PYTHON_API_VERSION >= 1009
8217 char* tmpPtr
; int tmpSize
;
8218 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8219 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8222 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8224 _arg1
= new wxString(tmpPtr
, tmpSize
);
8226 if (!PyString_Check(_obj1
)) {
8227 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8230 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8234 wxPy_BEGIN_ALLOW_THREADS
;
8235 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8237 wxPy_END_ALLOW_THREADS
;
8238 if (PyErr_Occurred()) return NULL
;
8239 } _resultobj
= Py_BuildValue("i",_result
);
8247 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8248 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8249 PyObject
* _resultobj
;
8251 PyObject
* _argo0
= 0;
8252 char *_kwnames
[] = { "self", NULL
};
8255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8258 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8259 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8265 wxPy_BEGIN_ALLOW_THREADS
;
8266 wxDC_StartPage(_arg0
);
8268 wxPy_END_ALLOW_THREADS
;
8269 if (PyErr_Occurred()) return NULL
;
8270 } Py_INCREF(Py_None
);
8271 _resultobj
= Py_None
;
8275 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8276 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8277 PyObject
* _resultobj
;
8282 int _arg4
= (int ) FALSE
;
8283 PyObject
* _argo0
= 0;
8284 PyObject
* _argo1
= 0;
8285 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
8288 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
8291 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8292 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8298 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8299 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8305 wxPy_BEGIN_ALLOW_THREADS
;
8306 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
8308 wxPy_END_ALLOW_THREADS
;
8309 if (PyErr_Occurred()) return NULL
;
8310 } Py_INCREF(Py_None
);
8311 _resultobj
= Py_None
;
8315 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8316 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8317 PyObject
* _resultobj
;
8320 PyObject
* _argo0
= 0;
8321 char *_kwnames
[] = { "self", NULL
};
8324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
8327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8334 wxPy_BEGIN_ALLOW_THREADS
;
8335 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
8337 wxPy_END_ALLOW_THREADS
;
8338 if (PyErr_Occurred()) return NULL
;
8339 } _resultobj
= Py_BuildValue("i",_result
);
8343 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8344 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8345 PyObject
* _resultobj
;
8348 PyObject
* _argo0
= 0;
8349 char *_kwnames
[] = { "self", NULL
};
8352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
8355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8362 wxPy_BEGIN_ALLOW_THREADS
;
8363 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
8365 wxPy_END_ALLOW_THREADS
;
8366 if (PyErr_Occurred()) return NULL
;
8367 } _resultobj
= Py_BuildValue("i",_result
);
8371 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8372 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8373 PyObject
* _resultobj
;
8376 PyObject
* _argo0
= 0;
8377 char *_kwnames
[] = { "self", NULL
};
8380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
8383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8390 wxPy_BEGIN_ALLOW_THREADS
;
8391 _result
= (int )wxDC_GetDepth(_arg0
);
8393 wxPy_END_ALLOW_THREADS
;
8394 if (PyErr_Occurred()) return NULL
;
8395 } _resultobj
= Py_BuildValue("i",_result
);
8399 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8400 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8401 PyObject
* _resultobj
;
8404 PyObject
* _argo0
= 0;
8405 char *_kwnames
[] = { "self", NULL
};
8409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
8412 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8413 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8419 wxPy_BEGIN_ALLOW_THREADS
;
8420 _result
= new wxSize (wxDC_GetPPI(_arg0
));
8422 wxPy_END_ALLOW_THREADS
;
8423 if (PyErr_Occurred()) return NULL
;
8424 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8425 _resultobj
= Py_BuildValue("s",_ptemp
);
8429 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8430 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8431 PyObject
* _resultobj
;
8437 PyObject
* _argo0
= 0;
8438 char *_kwnames
[] = { "self", NULL
};
8447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
8450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8457 wxPy_BEGIN_ALLOW_THREADS
;
8458 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8460 wxPy_END_ALLOW_THREADS
;
8461 if (PyErr_Occurred()) return NULL
;
8462 } Py_INCREF(Py_None
);
8463 _resultobj
= Py_None
;
8466 o
= PyInt_FromLong((long) (*_arg1
));
8467 _resultobj
= t_output_helper(_resultobj
, o
);
8471 o
= PyInt_FromLong((long) (*_arg2
));
8472 _resultobj
= t_output_helper(_resultobj
, o
);
8477 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8478 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8479 PyObject
* _resultobj
;
8483 PyObject
* _argo0
= 0;
8484 char *_kwnames
[] = { "self","x","y", NULL
};
8487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8497 wxPy_BEGIN_ALLOW_THREADS
;
8498 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8500 wxPy_END_ALLOW_THREADS
;
8501 if (PyErr_Occurred()) return NULL
;
8502 } Py_INCREF(Py_None
);
8503 _resultobj
= Py_None
;
8507 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8508 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8509 PyObject
* _resultobj
;
8515 PyObject
* _argo0
= 0;
8516 char *_kwnames
[] = { "self", NULL
};
8525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
8528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8535 wxPy_BEGIN_ALLOW_THREADS
;
8536 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8538 wxPy_END_ALLOW_THREADS
;
8539 if (PyErr_Occurred()) return NULL
;
8540 } Py_INCREF(Py_None
);
8541 _resultobj
= Py_None
;
8544 o
= PyInt_FromLong((long) (*_arg1
));
8545 _resultobj
= t_output_helper(_resultobj
, o
);
8549 o
= PyInt_FromLong((long) (*_arg2
));
8550 _resultobj
= t_output_helper(_resultobj
, o
);
8555 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8556 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8557 PyObject
* _resultobj
;
8561 PyObject
* _argo0
= 0;
8564 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
8567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
8570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8576 _arg1
= (bool ) tempbool1
;
8577 _arg2
= (bool ) tempbool2
;
8579 wxPy_BEGIN_ALLOW_THREADS
;
8580 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
8582 wxPy_END_ALLOW_THREADS
;
8583 if (PyErr_Occurred()) return NULL
;
8584 } Py_INCREF(Py_None
);
8585 _resultobj
= Py_None
;
8589 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
8590 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8591 PyObject
* _resultobj
;
8595 PyObject
* _argo0
= 0;
8596 char *_kwnames
[] = { "self","x","y", NULL
};
8599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8609 wxPy_BEGIN_ALLOW_THREADS
;
8610 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
8612 wxPy_END_ALLOW_THREADS
;
8613 if (PyErr_Occurred()) return NULL
;
8614 } Py_INCREF(Py_None
);
8615 _resultobj
= Py_None
;
8619 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8620 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8621 PyObject
* _resultobj
;
8623 PyObject
* _argo0
= 0;
8624 char *_kwnames
[] = { "self", NULL
};
8627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
8630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8637 wxPy_BEGIN_ALLOW_THREADS
;
8638 wxDC_ResetBoundingBox(_arg0
);
8640 wxPy_END_ALLOW_THREADS
;
8641 if (PyErr_Occurred()) return NULL
;
8642 } Py_INCREF(Py_None
);
8643 _resultobj
= Py_None
;
8647 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
8650 src
= (wxMemoryDC
*) ptr
;
8651 dest
= (wxDC
*) src
;
8652 return (void *) dest
;
8655 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
8658 src
= (wxMemoryDC
*) ptr
;
8659 dest
= (wxObject
*) src
;
8660 return (void *) dest
;
8663 #define new_wxMemoryDC() (new wxMemoryDC())
8664 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8665 PyObject
* _resultobj
;
8666 wxMemoryDC
* _result
;
8667 char *_kwnames
[] = { NULL
};
8671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
8674 wxPy_BEGIN_ALLOW_THREADS
;
8675 _result
= (wxMemoryDC
*)new_wxMemoryDC();
8677 wxPy_END_ALLOW_THREADS
;
8678 if (PyErr_Occurred()) return NULL
;
8680 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
8681 _resultobj
= Py_BuildValue("s",_ptemp
);
8684 _resultobj
= Py_None
;
8689 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
8690 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8691 PyObject
* _resultobj
;
8694 PyObject
* _argo0
= 0;
8695 PyObject
* _argo1
= 0;
8696 char *_kwnames
[] = { "self","bitmap", NULL
};
8699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
8702 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8703 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
8704 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
8709 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8710 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
8716 wxPy_BEGIN_ALLOW_THREADS
;
8717 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
8719 wxPy_END_ALLOW_THREADS
;
8720 if (PyErr_Occurred()) return NULL
;
8721 } Py_INCREF(Py_None
);
8722 _resultobj
= Py_None
;
8726 static void *SwigwxScreenDCTowxDC(void *ptr
) {
8729 src
= (wxScreenDC
*) ptr
;
8730 dest
= (wxDC
*) src
;
8731 return (void *) dest
;
8734 static void *SwigwxScreenDCTowxObject(void *ptr
) {
8737 src
= (wxScreenDC
*) ptr
;
8738 dest
= (wxObject
*) src
;
8739 return (void *) dest
;
8742 #define new_wxScreenDC() (new wxScreenDC())
8743 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8744 PyObject
* _resultobj
;
8745 wxScreenDC
* _result
;
8746 char *_kwnames
[] = { NULL
};
8750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
8753 wxPy_BEGIN_ALLOW_THREADS
;
8754 _result
= (wxScreenDC
*)new_wxScreenDC();
8756 wxPy_END_ALLOW_THREADS
;
8757 if (PyErr_Occurred()) return NULL
;
8759 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
8760 _resultobj
= Py_BuildValue("s",_ptemp
);
8763 _resultobj
= Py_None
;
8768 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8769 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8770 PyObject
* _resultobj
;
8774 PyObject
* _argo0
= 0;
8775 PyObject
* _argo1
= 0;
8776 char *_kwnames
[] = { "self","window", NULL
};
8779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
8782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
8789 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8790 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
8796 wxPy_BEGIN_ALLOW_THREADS
;
8797 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
8799 wxPy_END_ALLOW_THREADS
;
8800 if (PyErr_Occurred()) return NULL
;
8801 } _resultobj
= Py_BuildValue("i",_result
);
8805 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8806 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8807 PyObject
* _resultobj
;
8810 wxRect
* _arg1
= (wxRect
*) NULL
;
8811 PyObject
* _argo0
= 0;
8813 PyObject
* _obj1
= 0;
8814 char *_kwnames
[] = { "self","rect", NULL
};
8817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
8820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
8829 if (! wxRect_helper(_obj1
, &_arg1
))
8833 wxPy_BEGIN_ALLOW_THREADS
;
8834 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
8836 wxPy_END_ALLOW_THREADS
;
8837 if (PyErr_Occurred()) return NULL
;
8838 } _resultobj
= Py_BuildValue("i",_result
);
8842 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
8843 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8844 PyObject
* _resultobj
;
8847 PyObject
* _argo0
= 0;
8848 char *_kwnames
[] = { "self", NULL
};
8851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
8854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8861 wxPy_BEGIN_ALLOW_THREADS
;
8862 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
8864 wxPy_END_ALLOW_THREADS
;
8865 if (PyErr_Occurred()) return NULL
;
8866 } _resultobj
= Py_BuildValue("i",_result
);
8870 static void *SwigwxClientDCTowxDC(void *ptr
) {
8873 src
= (wxClientDC
*) ptr
;
8874 dest
= (wxDC
*) src
;
8875 return (void *) dest
;
8878 static void *SwigwxClientDCTowxObject(void *ptr
) {
8881 src
= (wxClientDC
*) ptr
;
8882 dest
= (wxObject
*) src
;
8883 return (void *) dest
;
8886 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
8887 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8888 PyObject
* _resultobj
;
8889 wxClientDC
* _result
;
8891 PyObject
* _argo0
= 0;
8892 char *_kwnames
[] = { "win", NULL
};
8896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
8899 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8900 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8901 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8906 wxPy_BEGIN_ALLOW_THREADS
;
8907 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
8909 wxPy_END_ALLOW_THREADS
;
8910 if (PyErr_Occurred()) return NULL
;
8912 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
8913 _resultobj
= Py_BuildValue("s",_ptemp
);
8916 _resultobj
= Py_None
;
8921 static void *SwigwxPaintDCTowxDC(void *ptr
) {
8924 src
= (wxPaintDC
*) ptr
;
8925 dest
= (wxDC
*) src
;
8926 return (void *) dest
;
8929 static void *SwigwxPaintDCTowxObject(void *ptr
) {
8932 src
= (wxPaintDC
*) ptr
;
8933 dest
= (wxObject
*) src
;
8934 return (void *) dest
;
8937 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8938 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8939 PyObject
* _resultobj
;
8940 wxPaintDC
* _result
;
8942 PyObject
* _argo0
= 0;
8943 char *_kwnames
[] = { "win", NULL
};
8947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8957 wxPy_BEGIN_ALLOW_THREADS
;
8958 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8960 wxPy_END_ALLOW_THREADS
;
8961 if (PyErr_Occurred()) return NULL
;
8963 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8964 _resultobj
= Py_BuildValue("s",_ptemp
);
8967 _resultobj
= Py_None
;
8972 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8975 src
= (wxWindowDC
*) ptr
;
8976 dest
= (wxDC
*) src
;
8977 return (void *) dest
;
8980 static void *SwigwxWindowDCTowxObject(void *ptr
) {
8983 src
= (wxWindowDC
*) ptr
;
8984 dest
= (wxObject
*) src
;
8985 return (void *) dest
;
8988 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8989 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8990 PyObject
* _resultobj
;
8991 wxWindowDC
* _result
;
8993 PyObject
* _argo0
= 0;
8994 char *_kwnames
[] = { "win", NULL
};
8998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
9001 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9002 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9008 wxPy_BEGIN_ALLOW_THREADS
;
9009 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
9011 wxPy_END_ALLOW_THREADS
;
9012 if (PyErr_Occurred()) return NULL
;
9014 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
9015 _resultobj
= Py_BuildValue("s",_ptemp
);
9018 _resultobj
= Py_None
;
9023 static void *SwigwxPostScriptDCTowxDC(void *ptr
) {
9024 wxPostScriptDC
*src
;
9026 src
= (wxPostScriptDC
*) ptr
;
9027 dest
= (wxDC
*) src
;
9028 return (void *) dest
;
9031 static void *SwigwxPostScriptDCTowxObject(void *ptr
) {
9032 wxPostScriptDC
*src
;
9034 src
= (wxPostScriptDC
*) ptr
;
9035 dest
= (wxObject
*) src
;
9036 return (void *) dest
;
9039 #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2))
9040 static PyObject
*_wrap_new_wxPostScriptDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9041 PyObject
* _resultobj
;
9042 wxPostScriptDC
* _result
;
9044 bool _arg1
= (bool ) TRUE
;
9045 wxWindow
* _arg2
= (wxWindow
*) NULL
;
9046 PyObject
* _obj0
= 0;
9047 int tempbool1
= (int) TRUE
;
9048 PyObject
* _argo2
= 0;
9049 char *_kwnames
[] = { "output","interactive","win", NULL
};
9053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:new_wxPostScriptDC",_kwnames
,&_obj0
,&tempbool1
,&_argo2
))
9056 #if PYTHON_API_VERSION >= 1009
9057 char* tmpPtr
; int tmpSize
;
9058 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
9059 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9062 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
9064 _arg0
= new wxString(tmpPtr
, tmpSize
);
9066 if (!PyString_Check(_obj0
)) {
9067 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9070 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
9073 _arg1
= (bool ) tempbool1
;
9075 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9076 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
9077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p.");
9082 wxPy_BEGIN_ALLOW_THREADS
;
9083 _result
= (wxPostScriptDC
*)new_wxPostScriptDC(*_arg0
,_arg1
,_arg2
);
9085 wxPy_END_ALLOW_THREADS
;
9086 if (PyErr_Occurred()) return NULL
;
9088 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPostScriptDC_p");
9089 _resultobj
= Py_BuildValue("s",_ptemp
);
9092 _resultobj
= Py_None
;
9101 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
9104 src
= (wxPalette
*) ptr
;
9105 dest
= (wxGDIObject
*) src
;
9106 return (void *) dest
;
9109 static void *SwigwxPaletteTowxObject(void *ptr
) {
9112 src
= (wxPalette
*) ptr
;
9113 dest
= (wxObject
*) src
;
9114 return (void *) dest
;
9117 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9118 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9119 PyObject
* _resultobj
;
9120 wxPalette
* _result
;
9125 PyObject
* _obj1
= 0;
9126 PyObject
* _obj2
= 0;
9127 PyObject
* _obj3
= 0;
9128 char *_kwnames
[] = { "choices","choices","choices", NULL
};
9132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
9135 _arg1
= byte_LIST_helper(_obj1
);
9136 if (_arg1
== NULL
) {
9141 _arg2
= byte_LIST_helper(_obj2
);
9142 if (_arg2
== NULL
) {
9148 _arg3
= byte_LIST_helper(_obj3
);
9149 if (_arg3
== NULL
) {
9155 _arg0
= PyList_Size(_obj1
);
9162 wxPy_BEGIN_ALLOW_THREADS
;
9163 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
9165 wxPy_END_ALLOW_THREADS
;
9166 if (PyErr_Occurred()) return NULL
;
9168 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
9169 _resultobj
= Py_BuildValue("s",_ptemp
);
9172 _resultobj
= Py_None
;
9186 #define delete_wxPalette(_swigobj) (delete _swigobj)
9187 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9188 PyObject
* _resultobj
;
9190 PyObject
* _argo0
= 0;
9191 char *_kwnames
[] = { "self", NULL
};
9194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
9197 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9198 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
9204 wxPy_BEGIN_ALLOW_THREADS
;
9205 delete_wxPalette(_arg0
);
9207 wxPy_END_ALLOW_THREADS
;
9208 if (PyErr_Occurred()) return NULL
;
9209 } Py_INCREF(Py_None
);
9210 _resultobj
= Py_None
;
9214 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
9215 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9216 PyObject
* _resultobj
;
9222 PyObject
* _argo0
= 0;
9223 char *_kwnames
[] = { "self","red","green","blue", NULL
};
9226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
9229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
9236 wxPy_BEGIN_ALLOW_THREADS
;
9237 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
9239 wxPy_END_ALLOW_THREADS
;
9240 if (PyErr_Occurred()) return NULL
;
9241 } _resultobj
= Py_BuildValue("i",_result
);
9245 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9246 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9247 PyObject
* _resultobj
;
9254 PyObject
* _argo0
= 0;
9255 PyObject
* _argo2
= 0;
9256 PyObject
* _argo3
= 0;
9257 PyObject
* _argo4
= 0;
9258 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
9261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
9264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
9271 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9272 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
9273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
9278 if (_argo3
== Py_None
) { _arg3
= NULL
; }
9279 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
9280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
9285 if (_argo4
== Py_None
) { _arg4
= NULL
; }
9286 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
9287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
9292 wxPy_BEGIN_ALLOW_THREADS
;
9293 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9295 wxPy_END_ALLOW_THREADS
;
9296 if (PyErr_Occurred()) return NULL
;
9297 } _resultobj
= Py_BuildValue("i",_result
);
9301 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
9302 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9303 PyObject
* _resultobj
;
9306 PyObject
* _argo0
= 0;
9307 char *_kwnames
[] = { "self", NULL
};
9310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
9313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
9320 wxPy_BEGIN_ALLOW_THREADS
;
9321 _result
= (bool )wxPalette_Ok(_arg0
);
9323 wxPy_END_ALLOW_THREADS
;
9324 if (PyErr_Occurred()) return NULL
;
9325 } _resultobj
= Py_BuildValue("i",_result
);
9329 static void *SwigwxImageListTowxObject(void *ptr
) {
9332 src
= (wxImageList
*) ptr
;
9333 dest
= (wxObject
*) src
;
9334 return (void *) dest
;
9337 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9338 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9339 PyObject
* _resultobj
;
9340 wxImageList
* _result
;
9343 int _arg2
= (int ) TRUE
;
9344 int _arg3
= (int ) 1;
9345 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
9349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9352 wxPy_BEGIN_ALLOW_THREADS
;
9353 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
9355 wxPy_END_ALLOW_THREADS
;
9356 if (PyErr_Occurred()) return NULL
;
9358 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
9359 _resultobj
= Py_BuildValue("s",_ptemp
);
9362 _resultobj
= Py_None
;
9367 #define delete_wxImageList(_swigobj) (delete _swigobj)
9368 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9369 PyObject
* _resultobj
;
9370 wxImageList
* _arg0
;
9371 PyObject
* _argo0
= 0;
9372 char *_kwnames
[] = { "self", NULL
};
9375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
9378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
9385 wxPy_BEGIN_ALLOW_THREADS
;
9386 delete_wxImageList(_arg0
);
9388 wxPy_END_ALLOW_THREADS
;
9389 if (PyErr_Occurred()) return NULL
;
9390 } Py_INCREF(Py_None
);
9391 _resultobj
= Py_None
;
9395 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9396 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9397 PyObject
* _resultobj
;
9399 wxImageList
* _arg0
;
9401 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
9402 PyObject
* _argo0
= 0;
9403 PyObject
* _argo1
= 0;
9404 PyObject
* _argo2
= 0;
9405 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
9408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
9411 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9412 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9413 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
9418 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9419 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
9425 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9426 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
9432 wxPy_BEGIN_ALLOW_THREADS
;
9433 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
9435 wxPy_END_ALLOW_THREADS
;
9436 if (PyErr_Occurred()) return NULL
;
9437 } _resultobj
= Py_BuildValue("i",_result
);
9441 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9442 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9443 PyObject
* _resultobj
;
9445 wxImageList
* _arg0
;
9448 PyObject
* _argo0
= 0;
9449 PyObject
* _argo1
= 0;
9451 PyObject
* _obj2
= 0;
9452 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
9455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
9458 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9459 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
9465 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9466 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
9473 if (! wxColour_helper(_obj2
, &_arg2
))
9477 wxPy_BEGIN_ALLOW_THREADS
;
9478 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
9480 wxPy_END_ALLOW_THREADS
;
9481 if (PyErr_Occurred()) return NULL
;
9482 } _resultobj
= Py_BuildValue("i",_result
);
9486 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
9487 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9488 PyObject
* _resultobj
;
9490 wxImageList
* _arg0
;
9492 PyObject
* _argo0
= 0;
9493 PyObject
* _argo1
= 0;
9494 char *_kwnames
[] = { "self","icon", NULL
};
9497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
9500 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9501 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9502 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
9507 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9508 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
9509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
9514 wxPy_BEGIN_ALLOW_THREADS
;
9515 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
9517 wxPy_END_ALLOW_THREADS
;
9518 if (PyErr_Occurred()) return NULL
;
9519 } _resultobj
= Py_BuildValue("i",_result
);
9523 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
9524 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9525 PyObject
* _resultobj
;
9527 wxImageList
* _arg0
;
9530 PyObject
* _argo0
= 0;
9531 PyObject
* _argo2
= 0;
9532 char *_kwnames
[] = { "self","index","bitmap", NULL
};
9535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
9538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
9545 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9546 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
9552 wxPy_BEGIN_ALLOW_THREADS
;
9553 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
9555 wxPy_END_ALLOW_THREADS
;
9556 if (PyErr_Occurred()) return NULL
;
9557 } _resultobj
= Py_BuildValue("i",_result
);
9561 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9562 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9563 PyObject
* _resultobj
;
9565 wxImageList
* _arg0
;
9570 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
9571 bool _arg6
= (bool ) FALSE
;
9572 PyObject
* _argo0
= 0;
9573 PyObject
* _argo2
= 0;
9574 int tempbool6
= (int) FALSE
;
9575 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
9578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
9581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
9588 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9589 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
9590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
9594 _arg6
= (bool ) tempbool6
;
9596 wxPy_BEGIN_ALLOW_THREADS
;
9597 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
9599 wxPy_END_ALLOW_THREADS
;
9600 if (PyErr_Occurred()) return NULL
;
9601 } _resultobj
= Py_BuildValue("i",_result
);
9605 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
9606 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9607 PyObject
* _resultobj
;
9609 wxImageList
* _arg0
;
9610 PyObject
* _argo0
= 0;
9611 char *_kwnames
[] = { "self", NULL
};
9614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
9617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
9624 wxPy_BEGIN_ALLOW_THREADS
;
9625 _result
= (int )wxImageList_GetImageCount(_arg0
);
9627 wxPy_END_ALLOW_THREADS
;
9628 if (PyErr_Occurred()) return NULL
;
9629 } _resultobj
= Py_BuildValue("i",_result
);
9633 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
9634 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9635 PyObject
* _resultobj
;
9637 wxImageList
* _arg0
;
9639 PyObject
* _argo0
= 0;
9640 char *_kwnames
[] = { "self","index", NULL
};
9643 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
9646 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9647 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
9653 wxPy_BEGIN_ALLOW_THREADS
;
9654 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
9656 wxPy_END_ALLOW_THREADS
;
9657 if (PyErr_Occurred()) return NULL
;
9658 } _resultobj
= Py_BuildValue("i",_result
);
9662 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
9663 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9664 PyObject
* _resultobj
;
9666 wxImageList
* _arg0
;
9667 PyObject
* _argo0
= 0;
9668 char *_kwnames
[] = { "self", NULL
};
9671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
9674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9681 wxPy_BEGIN_ALLOW_THREADS
;
9682 _result
= (bool )wxImageList_RemoveAll(_arg0
);
9684 wxPy_END_ALLOW_THREADS
;
9685 if (PyErr_Occurred()) return NULL
;
9686 } _resultobj
= Py_BuildValue("i",_result
);
9690 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9691 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9692 PyObject
* _resultobj
;
9693 wxImageList
* _arg0
;
9699 PyObject
* _argo0
= 0;
9700 char *_kwnames
[] = { "self","index", NULL
};
9709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
9712 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9713 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9719 wxPy_BEGIN_ALLOW_THREADS
;
9720 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
9722 wxPy_END_ALLOW_THREADS
;
9723 if (PyErr_Occurred()) return NULL
;
9724 } Py_INCREF(Py_None
);
9725 _resultobj
= Py_None
;
9728 o
= PyInt_FromLong((long) (*_arg2
));
9729 _resultobj
= t_output_helper(_resultobj
, o
);
9733 o
= PyInt_FromLong((long) (*_arg3
));
9734 _resultobj
= t_output_helper(_resultobj
, o
);
9739 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
9742 src
= (wxRegion
*) ptr
;
9743 dest
= (wxGDIObject
*) src
;
9744 return (void *) dest
;
9747 static void *SwigwxRegionTowxObject(void *ptr
) {
9750 src
= (wxRegion
*) ptr
;
9751 dest
= (wxObject
*) src
;
9752 return (void *) dest
;
9755 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9756 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9757 PyObject
* _resultobj
;
9759 long _arg0
= (long ) 0;
9760 long _arg1
= (long ) 0;
9761 long _arg2
= (long ) 0;
9762 long _arg3
= (long ) 0;
9763 char *_kwnames
[] = { "x","y","width","height", NULL
};
9767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9770 wxPy_BEGIN_ALLOW_THREADS
;
9771 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
9773 wxPy_END_ALLOW_THREADS
;
9774 if (PyErr_Occurred()) return NULL
;
9776 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
9777 _resultobj
= Py_BuildValue("s",_ptemp
);
9780 _resultobj
= Py_None
;
9785 #define delete_wxRegion(_swigobj) (delete _swigobj)
9786 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9787 PyObject
* _resultobj
;
9789 PyObject
* _argo0
= 0;
9790 char *_kwnames
[] = { "self", NULL
};
9793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
9796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
9803 wxPy_BEGIN_ALLOW_THREADS
;
9804 delete_wxRegion(_arg0
);
9806 wxPy_END_ALLOW_THREADS
;
9807 if (PyErr_Occurred()) return NULL
;
9808 } Py_INCREF(Py_None
);
9809 _resultobj
= Py_None
;
9813 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
9814 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9815 PyObject
* _resultobj
;
9817 PyObject
* _argo0
= 0;
9818 char *_kwnames
[] = { "self", NULL
};
9821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
9824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
9831 wxPy_BEGIN_ALLOW_THREADS
;
9832 wxRegion_Clear(_arg0
);
9834 wxPy_END_ALLOW_THREADS
;
9835 if (PyErr_Occurred()) return NULL
;
9836 } Py_INCREF(Py_None
);
9837 _resultobj
= Py_None
;
9841 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
9842 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9843 PyObject
* _resultobj
;
9844 wxRegionContain _result
;
9848 PyObject
* _argo0
= 0;
9849 char *_kwnames
[] = { "self","x","y", NULL
};
9852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
9862 wxPy_BEGIN_ALLOW_THREADS
;
9863 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
9865 wxPy_END_ALLOW_THREADS
;
9866 if (PyErr_Occurred()) return NULL
;
9867 } _resultobj
= Py_BuildValue("i",_result
);
9871 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9872 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9873 PyObject
* _resultobj
;
9874 wxRegionContain _result
;
9877 PyObject
* _argo0
= 0;
9879 PyObject
* _obj1
= 0;
9880 char *_kwnames
[] = { "self","pt", NULL
};
9883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
9886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
9894 if (! wxPoint_helper(_obj1
, &_arg1
))
9898 wxPy_BEGIN_ALLOW_THREADS
;
9899 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
9901 wxPy_END_ALLOW_THREADS
;
9902 if (PyErr_Occurred()) return NULL
;
9903 } _resultobj
= Py_BuildValue("i",_result
);
9907 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9908 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9909 PyObject
* _resultobj
;
9910 wxRegionContain _result
;
9913 PyObject
* _argo0
= 0;
9915 PyObject
* _obj1
= 0;
9916 char *_kwnames
[] = { "self","rect", NULL
};
9919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
9922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9930 if (! wxRect_helper(_obj1
, &_arg1
))
9934 wxPy_BEGIN_ALLOW_THREADS
;
9935 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
9937 wxPy_END_ALLOW_THREADS
;
9938 if (PyErr_Occurred()) return NULL
;
9939 } _resultobj
= Py_BuildValue("i",_result
);
9943 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9944 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9945 PyObject
* _resultobj
;
9946 wxRegionContain _result
;
9952 PyObject
* _argo0
= 0;
9953 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
9956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9959 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9960 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9966 wxPy_BEGIN_ALLOW_THREADS
;
9967 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9969 wxPy_END_ALLOW_THREADS
;
9970 if (PyErr_Occurred()) return NULL
;
9971 } _resultobj
= Py_BuildValue("i",_result
);
9975 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9976 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9977 PyObject
* _resultobj
;
9980 PyObject
* _argo0
= 0;
9981 char *_kwnames
[] = { "self", NULL
};
9985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
9988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9995 wxPy_BEGIN_ALLOW_THREADS
;
9996 _result
= new wxRect (wxRegion_GetBox(_arg0
));
9998 wxPy_END_ALLOW_THREADS
;
9999 if (PyErr_Occurred()) return NULL
;
10000 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10001 _resultobj
= Py_BuildValue("s",_ptemp
);
10005 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10006 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10007 PyObject
* _resultobj
;
10014 PyObject
* _argo0
= 0;
10015 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10021 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10022 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10028 wxPy_BEGIN_ALLOW_THREADS
;
10029 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10031 wxPy_END_ALLOW_THREADS
;
10032 if (PyErr_Occurred()) return NULL
;
10033 } _resultobj
= Py_BuildValue("i",_result
);
10037 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10038 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10039 PyObject
* _resultobj
;
10043 PyObject
* _argo0
= 0;
10045 PyObject
* _obj1
= 0;
10046 char *_kwnames
[] = { "self","rect", NULL
};
10049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
10052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
10060 if (! wxRect_helper(_obj1
, &_arg1
))
10064 wxPy_BEGIN_ALLOW_THREADS
;
10065 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
10067 wxPy_END_ALLOW_THREADS
;
10068 if (PyErr_Occurred()) return NULL
;
10069 } _resultobj
= Py_BuildValue("i",_result
);
10073 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10074 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10075 PyObject
* _resultobj
;
10079 PyObject
* _argo0
= 0;
10080 PyObject
* _argo1
= 0;
10081 char *_kwnames
[] = { "self","region", NULL
};
10084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
10087 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10088 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10094 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10095 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10101 wxPy_BEGIN_ALLOW_THREADS
;
10102 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
10104 wxPy_END_ALLOW_THREADS
;
10105 if (PyErr_Occurred()) return NULL
;
10106 } _resultobj
= Py_BuildValue("i",_result
);
10110 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10111 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10112 PyObject
* _resultobj
;
10115 PyObject
* _argo0
= 0;
10116 char *_kwnames
[] = { "self", NULL
};
10119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
10122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
10129 wxPy_BEGIN_ALLOW_THREADS
;
10130 _result
= (bool )wxRegion_IsEmpty(_arg0
);
10132 wxPy_END_ALLOW_THREADS
;
10133 if (PyErr_Occurred()) return NULL
;
10134 } _resultobj
= Py_BuildValue("i",_result
);
10138 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10139 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10140 PyObject
* _resultobj
;
10147 PyObject
* _argo0
= 0;
10148 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
10161 wxPy_BEGIN_ALLOW_THREADS
;
10162 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10164 wxPy_END_ALLOW_THREADS
;
10165 if (PyErr_Occurred()) return NULL
;
10166 } _resultobj
= Py_BuildValue("i",_result
);
10170 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10171 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10172 PyObject
* _resultobj
;
10176 PyObject
* _argo0
= 0;
10178 PyObject
* _obj1
= 0;
10179 char *_kwnames
[] = { "self","rect", NULL
};
10182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
10185 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10186 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10187 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
10193 if (! wxRect_helper(_obj1
, &_arg1
))
10197 wxPy_BEGIN_ALLOW_THREADS
;
10198 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
10200 wxPy_END_ALLOW_THREADS
;
10201 if (PyErr_Occurred()) return NULL
;
10202 } _resultobj
= Py_BuildValue("i",_result
);
10206 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10207 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10208 PyObject
* _resultobj
;
10212 PyObject
* _argo0
= 0;
10213 PyObject
* _argo1
= 0;
10214 char *_kwnames
[] = { "self","region", NULL
};
10217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
10220 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10221 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10227 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10228 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10234 wxPy_BEGIN_ALLOW_THREADS
;
10235 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
10237 wxPy_END_ALLOW_THREADS
;
10238 if (PyErr_Occurred()) return NULL
;
10239 } _resultobj
= Py_BuildValue("i",_result
);
10243 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10244 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10245 PyObject
* _resultobj
;
10252 PyObject
* _argo0
= 0;
10253 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
10266 wxPy_BEGIN_ALLOW_THREADS
;
10267 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10269 wxPy_END_ALLOW_THREADS
;
10270 if (PyErr_Occurred()) return NULL
;
10271 } _resultobj
= Py_BuildValue("i",_result
);
10275 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10276 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10277 PyObject
* _resultobj
;
10281 PyObject
* _argo0
= 0;
10283 PyObject
* _obj1
= 0;
10284 char *_kwnames
[] = { "self","rect", NULL
};
10287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
10290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
10298 if (! wxRect_helper(_obj1
, &_arg1
))
10302 wxPy_BEGIN_ALLOW_THREADS
;
10303 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
10305 wxPy_END_ALLOW_THREADS
;
10306 if (PyErr_Occurred()) return NULL
;
10307 } _resultobj
= Py_BuildValue("i",_result
);
10311 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10312 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10313 PyObject
* _resultobj
;
10317 PyObject
* _argo0
= 0;
10318 PyObject
* _argo1
= 0;
10319 char *_kwnames
[] = { "self","region", NULL
};
10322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
10325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10332 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10333 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10339 wxPy_BEGIN_ALLOW_THREADS
;
10340 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
10342 wxPy_END_ALLOW_THREADS
;
10343 if (PyErr_Occurred()) return NULL
;
10344 } _resultobj
= Py_BuildValue("i",_result
);
10348 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10349 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10350 PyObject
* _resultobj
;
10357 PyObject
* _argo0
= 0;
10358 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
10371 wxPy_BEGIN_ALLOW_THREADS
;
10372 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10374 wxPy_END_ALLOW_THREADS
;
10375 if (PyErr_Occurred()) return NULL
;
10376 } _resultobj
= Py_BuildValue("i",_result
);
10380 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10381 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10382 PyObject
* _resultobj
;
10386 PyObject
* _argo0
= 0;
10388 PyObject
* _obj1
= 0;
10389 char *_kwnames
[] = { "self","rect", NULL
};
10392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
10395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
10403 if (! wxRect_helper(_obj1
, &_arg1
))
10407 wxPy_BEGIN_ALLOW_THREADS
;
10408 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
10410 wxPy_END_ALLOW_THREADS
;
10411 if (PyErr_Occurred()) return NULL
;
10412 } _resultobj
= Py_BuildValue("i",_result
);
10416 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10417 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10418 PyObject
* _resultobj
;
10422 PyObject
* _argo0
= 0;
10423 PyObject
* _argo1
= 0;
10424 char *_kwnames
[] = { "self","region", NULL
};
10427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
10430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
10437 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10438 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
10444 wxPy_BEGIN_ALLOW_THREADS
;
10445 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
10447 wxPy_END_ALLOW_THREADS
;
10448 if (PyErr_Occurred()) return NULL
;
10449 } _resultobj
= Py_BuildValue("i",_result
);
10453 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
10454 wxRegionIterator
*src
;
10456 src
= (wxRegionIterator
*) ptr
;
10457 dest
= (wxObject
*) src
;
10458 return (void *) dest
;
10461 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
10462 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10463 PyObject
* _resultobj
;
10464 wxRegionIterator
* _result
;
10466 PyObject
* _argo0
= 0;
10467 char *_kwnames
[] = { "region", NULL
};
10471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
10474 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10475 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
10481 wxPy_BEGIN_ALLOW_THREADS
;
10482 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
10484 wxPy_END_ALLOW_THREADS
;
10485 if (PyErr_Occurred()) return NULL
;
10487 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
10488 _resultobj
= Py_BuildValue("s",_ptemp
);
10490 Py_INCREF(Py_None
);
10491 _resultobj
= Py_None
;
10496 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
10497 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10498 PyObject
* _resultobj
;
10499 wxRegionIterator
* _arg0
;
10500 PyObject
* _argo0
= 0;
10501 char *_kwnames
[] = { "self", NULL
};
10504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
10507 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10508 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
10514 wxPy_BEGIN_ALLOW_THREADS
;
10515 delete_wxRegionIterator(_arg0
);
10517 wxPy_END_ALLOW_THREADS
;
10518 if (PyErr_Occurred()) return NULL
;
10519 } Py_INCREF(Py_None
);
10520 _resultobj
= Py_None
;
10524 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
10525 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10526 PyObject
* _resultobj
;
10528 wxRegionIterator
* _arg0
;
10529 PyObject
* _argo0
= 0;
10530 char *_kwnames
[] = { "self", NULL
};
10533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
10536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
10543 wxPy_BEGIN_ALLOW_THREADS
;
10544 _result
= (long )wxRegionIterator_GetX(_arg0
);
10546 wxPy_END_ALLOW_THREADS
;
10547 if (PyErr_Occurred()) return NULL
;
10548 } _resultobj
= Py_BuildValue("l",_result
);
10552 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
10553 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10554 PyObject
* _resultobj
;
10556 wxRegionIterator
* _arg0
;
10557 PyObject
* _argo0
= 0;
10558 char *_kwnames
[] = { "self", NULL
};
10561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
10564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
10571 wxPy_BEGIN_ALLOW_THREADS
;
10572 _result
= (long )wxRegionIterator_GetY(_arg0
);
10574 wxPy_END_ALLOW_THREADS
;
10575 if (PyErr_Occurred()) return NULL
;
10576 } _resultobj
= Py_BuildValue("l",_result
);
10580 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
10581 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10582 PyObject
* _resultobj
;
10584 wxRegionIterator
* _arg0
;
10585 PyObject
* _argo0
= 0;
10586 char *_kwnames
[] = { "self", NULL
};
10589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
10592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
10599 wxPy_BEGIN_ALLOW_THREADS
;
10600 _result
= (long )wxRegionIterator_GetW(_arg0
);
10602 wxPy_END_ALLOW_THREADS
;
10603 if (PyErr_Occurred()) return NULL
;
10604 } _resultobj
= Py_BuildValue("l",_result
);
10608 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
10609 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10610 PyObject
* _resultobj
;
10612 wxRegionIterator
* _arg0
;
10613 PyObject
* _argo0
= 0;
10614 char *_kwnames
[] = { "self", NULL
};
10617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
10620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
10627 wxPy_BEGIN_ALLOW_THREADS
;
10628 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
10630 wxPy_END_ALLOW_THREADS
;
10631 if (PyErr_Occurred()) return NULL
;
10632 } _resultobj
= Py_BuildValue("l",_result
);
10636 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
10637 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10638 PyObject
* _resultobj
;
10640 wxRegionIterator
* _arg0
;
10641 PyObject
* _argo0
= 0;
10642 char *_kwnames
[] = { "self", NULL
};
10645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
10648 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10649 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10650 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
10655 wxPy_BEGIN_ALLOW_THREADS
;
10656 _result
= (long )wxRegionIterator_GetH(_arg0
);
10658 wxPy_END_ALLOW_THREADS
;
10659 if (PyErr_Occurred()) return NULL
;
10660 } _resultobj
= Py_BuildValue("l",_result
);
10664 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
10665 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10666 PyObject
* _resultobj
;
10668 wxRegionIterator
* _arg0
;
10669 PyObject
* _argo0
= 0;
10670 char *_kwnames
[] = { "self", NULL
};
10673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
10676 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10677 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
10683 wxPy_BEGIN_ALLOW_THREADS
;
10684 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
10686 wxPy_END_ALLOW_THREADS
;
10687 if (PyErr_Occurred()) return NULL
;
10688 } _resultobj
= Py_BuildValue("l",_result
);
10692 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
10693 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10694 PyObject
* _resultobj
;
10696 wxRegionIterator
* _arg0
;
10697 PyObject
* _argo0
= 0;
10698 char *_kwnames
[] = { "self", NULL
};
10702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
10705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
10712 wxPy_BEGIN_ALLOW_THREADS
;
10713 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
10715 wxPy_END_ALLOW_THREADS
;
10716 if (PyErr_Occurred()) return NULL
;
10717 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10718 _resultobj
= Py_BuildValue("s",_ptemp
);
10722 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
10723 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10724 PyObject
* _resultobj
;
10726 wxRegionIterator
* _arg0
;
10727 PyObject
* _argo0
= 0;
10728 char *_kwnames
[] = { "self", NULL
};
10731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
10734 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10735 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10736 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
10741 wxPy_BEGIN_ALLOW_THREADS
;
10742 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
10744 wxPy_END_ALLOW_THREADS
;
10745 if (PyErr_Occurred()) return NULL
;
10746 } _resultobj
= Py_BuildValue("i",_result
);
10750 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
10751 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10752 PyObject
* _resultobj
;
10753 wxRegionIterator
* _arg0
;
10754 PyObject
* _argo0
= 0;
10755 char *_kwnames
[] = { "self", NULL
};
10758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
10761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
10768 wxPy_BEGIN_ALLOW_THREADS
;
10769 wxRegionIterator_Reset(_arg0
);
10771 wxPy_END_ALLOW_THREADS
;
10772 if (PyErr_Occurred()) return NULL
;
10773 } Py_INCREF(Py_None
);
10774 _resultobj
= Py_None
;
10778 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
10781 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10782 PyObject
* _resultobj
;
10783 wxRegionIterator
* _arg0
;
10784 PyObject
* _argo0
= 0;
10785 char *_kwnames
[] = { "self", NULL
};
10788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
10791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
10798 wxPy_BEGIN_ALLOW_THREADS
;
10799 wxRegionIterator_Next(_arg0
);
10801 wxPy_END_ALLOW_THREADS
;
10802 if (PyErr_Occurred()) return NULL
;
10803 } Py_INCREF(Py_None
);
10804 _resultobj
= Py_None
;
10808 static PyMethodDef gdicMethods
[] = {
10809 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
10810 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
10811 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
10812 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10813 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10814 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
10815 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10816 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
10817 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
10818 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
10819 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10820 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10821 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
10822 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
10823 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
10824 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
10825 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
10826 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
10827 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
10828 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
10829 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
10830 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
10831 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
10832 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
10833 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
10834 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
10835 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
10836 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
10837 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
10838 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
10839 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10840 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10841 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10842 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10843 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
10844 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10845 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
10846 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
10847 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10848 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
10849 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
10850 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
10851 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10852 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10853 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10854 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
10855 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10856 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10857 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10858 { "new_wxPostScriptDC", (PyCFunction
) _wrap_new_wxPostScriptDC
, METH_VARARGS
| METH_KEYWORDS
},
10859 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
10860 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
10861 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
10862 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10863 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10864 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
10865 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
10866 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
10867 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
10868 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10869 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10870 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
10871 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10872 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10873 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10874 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
10875 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10876 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10877 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10878 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10879 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
10880 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
10881 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10882 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10883 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10884 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
10885 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10886 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10887 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10888 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10889 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10890 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10891 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10892 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
10893 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10894 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
10895 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10896 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10897 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10898 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
10899 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
10900 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
10901 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
10902 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
10903 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
10904 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
10905 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
10906 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10907 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10908 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10909 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10910 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10911 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
10912 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10913 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10914 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10915 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
10916 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10917 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10918 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10919 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10920 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10921 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
10922 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10923 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10924 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10925 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10926 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
10927 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
10928 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10929 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
10930 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
10931 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
10932 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10933 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
10934 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10935 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
10936 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
10937 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
10938 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
10939 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
10940 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
10941 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
10942 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
10943 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
10944 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
10945 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
10946 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
10947 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
10948 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10949 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
10950 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10951 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
10952 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10953 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
10954 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
10955 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
10956 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
10957 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10958 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10959 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10960 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10961 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10962 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10963 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10964 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10965 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10966 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
10967 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
10968 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
10969 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10970 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
10971 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
10972 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10973 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10974 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10975 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10976 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10977 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
10978 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10979 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10980 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10981 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10982 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10983 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
10984 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10985 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10986 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
10987 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
10988 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
10989 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
10990 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
10991 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10992 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
10993 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
10994 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
10995 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10996 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10997 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
10998 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
10999 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
11000 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11001 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11002 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
11003 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
11004 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
11005 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11006 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11007 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11008 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11009 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11010 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11011 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11012 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11013 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11014 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11015 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11016 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11017 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11018 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11019 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11020 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11021 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11022 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11023 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
11024 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11025 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11026 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11027 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
11028 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
11029 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
11030 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
11031 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
11032 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11033 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
11034 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11035 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11036 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11037 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
11038 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
11039 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
11040 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11041 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
11042 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11043 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11044 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11045 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11046 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11047 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11048 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11049 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11050 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11051 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11052 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11053 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
11054 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
11055 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11056 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11057 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11058 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11059 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11060 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11061 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11062 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11063 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11064 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
11065 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
11066 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11067 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
11068 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11069 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11070 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11071 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
11072 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11073 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11074 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11075 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11076 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
11077 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
11078 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
11079 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11080 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
11081 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
11082 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
11083 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11084 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11085 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11092 * This table is used by the pointer type-checker
11094 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
11095 { "_signed_long","_long",0},
11096 { "_wxPrintQuality","_wxCoord",0},
11097 { "_wxPrintQuality","_int",0},
11098 { "_wxPrintQuality","_signed_int",0},
11099 { "_wxPrintQuality","_unsigned_int",0},
11100 { "_wxPrintQuality","_wxWindowID",0},
11101 { "_wxPrintQuality","_uint",0},
11102 { "_wxPrintQuality","_EBool",0},
11103 { "_wxPrintQuality","_size_t",0},
11104 { "_wxPrintQuality","_time_t",0},
11105 { "_wxPen","_class_wxPyPen",SwigwxPyPenTowxPen
},
11106 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
11107 { "_byte","_unsigned_char",0},
11108 { "_long","_unsigned_long",0},
11109 { "_long","_signed_long",0},
11110 { "_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject
},
11111 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
11112 { "_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject
},
11113 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
11114 { "_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject
},
11115 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
11116 { "_wxGDIObject","_class_wxPyPen",SwigwxPyPenTowxGDIObject
},
11117 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
11118 { "_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject
},
11119 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
11120 { "_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject
},
11121 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
11122 { "_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject
},
11123 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
11124 { "_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject
},
11125 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
11126 { "_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject
},
11127 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
11128 { "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
11129 { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
11130 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
11131 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
11132 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
11133 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
11134 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
11135 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
11136 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
11137 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
11138 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11139 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11140 { "_class_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11141 { "_class_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11142 { "_class_wxObject","_class_wxRegion",SwigwxRegionTowxObject
},
11143 { "_class_wxObject","_wxRegion",SwigwxRegionTowxObject
},
11144 { "_class_wxObject","_class_wxImageList",SwigwxImageListTowxObject
},
11145 { "_class_wxObject","_wxImageList",SwigwxImageListTowxObject
},
11146 { "_class_wxObject","_class_wxPalette",SwigwxPaletteTowxObject
},
11147 { "_class_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
11148 { "_class_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
11149 { "_class_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
11150 { "_class_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject
},
11151 { "_class_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
11152 { "_class_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject
},
11153 { "_class_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
11154 { "_class_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject
},
11155 { "_class_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
11156 { "_class_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject
},
11157 { "_class_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
11158 { "_class_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11159 { "_class_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11160 { "_class_wxObject","_class_wxDC",SwigwxDCTowxObject
},
11161 { "_class_wxObject","_wxDC",SwigwxDCTowxObject
},
11162 { "_class_wxObject","_class_wxBrushList",SwigwxBrushListTowxObject
},
11163 { "_class_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
11164 { "_class_wxObject","_class_wxBrush",SwigwxBrushTowxObject
},
11165 { "_class_wxObject","_wxBrush",SwigwxBrushTowxObject
},
11166 { "_class_wxObject","_class_wxPenList",SwigwxPenListTowxObject
},
11167 { "_class_wxObject","_wxPenList",SwigwxPenListTowxObject
},
11168 { "_class_wxObject","_class_wxPyPen",SwigwxPyPenTowxObject
},
11169 { "_class_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
11170 { "_class_wxObject","_class_wxPen",SwigwxPenTowxObject
},
11171 { "_class_wxObject","_wxPen",SwigwxPenTowxObject
},
11172 { "_class_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11173 { "_class_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11174 { "_class_wxObject","_class_wxColour",SwigwxColourTowxObject
},
11175 { "_class_wxObject","_wxColour",SwigwxColourTowxObject
},
11176 { "_class_wxObject","_class_wxFontList",SwigwxFontListTowxObject
},
11177 { "_class_wxObject","_wxFontList",SwigwxFontListTowxObject
},
11178 { "_class_wxObject","_class_wxFont",SwigwxFontTowxObject
},
11179 { "_class_wxObject","_wxFont",SwigwxFontTowxObject
},
11180 { "_class_wxObject","_class_wxCursor",SwigwxCursorTowxObject
},
11181 { "_class_wxObject","_wxCursor",SwigwxCursorTowxObject
},
11182 { "_class_wxObject","_class_wxIcon",SwigwxIconTowxObject
},
11183 { "_class_wxObject","_wxIcon",SwigwxIconTowxObject
},
11184 { "_class_wxObject","_class_wxMask",SwigwxMaskTowxObject
},
11185 { "_class_wxObject","_wxMask",SwigwxMaskTowxObject
},
11186 { "_class_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject
},
11187 { "_class_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
11188 { "_class_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject
},
11189 { "_class_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
11190 { "_size_t","_wxCoord",0},
11191 { "_size_t","_wxPrintQuality",0},
11192 { "_size_t","_time_t",0},
11193 { "_size_t","_unsigned_int",0},
11194 { "_size_t","_int",0},
11195 { "_size_t","_wxWindowID",0},
11196 { "_size_t","_uint",0},
11197 { "_uint","_wxCoord",0},
11198 { "_uint","_wxPrintQuality",0},
11199 { "_uint","_time_t",0},
11200 { "_uint","_size_t",0},
11201 { "_uint","_unsigned_int",0},
11202 { "_uint","_int",0},
11203 { "_uint","_wxWindowID",0},
11204 { "_wxChar","_char",0},
11205 { "_char","_wxChar",0},
11206 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
11207 { "_EBool","_wxCoord",0},
11208 { "_EBool","_wxPrintQuality",0},
11209 { "_EBool","_signed_int",0},
11210 { "_EBool","_int",0},
11211 { "_EBool","_wxWindowID",0},
11212 { "_unsigned_long","_long",0},
11213 { "_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
11214 { "_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
11215 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
11216 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
11217 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
11218 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
11219 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
11220 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
11221 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
11222 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
11223 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11224 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11225 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
11226 { "_signed_int","_wxCoord",0},
11227 { "_signed_int","_wxPrintQuality",0},
11228 { "_signed_int","_EBool",0},
11229 { "_signed_int","_wxWindowID",0},
11230 { "_signed_int","_int",0},
11231 { "_WXTYPE","_short",0},
11232 { "_WXTYPE","_signed_short",0},
11233 { "_WXTYPE","_unsigned_short",0},
11234 { "_unsigned_short","_WXTYPE",0},
11235 { "_unsigned_short","_short",0},
11236 { "_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11237 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11238 { "_wxObject","_class_wxRegion",SwigwxRegionTowxObject
},
11239 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
11240 { "_wxObject","_class_wxImageList",SwigwxImageListTowxObject
},
11241 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
11242 { "_wxObject","_class_wxPalette",SwigwxPaletteTowxObject
},
11243 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
11244 { "_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
11245 { "_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
11246 { "_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject
},
11247 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
11248 { "_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject
},
11249 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
11250 { "_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject
},
11251 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
11252 { "_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject
},
11253 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
11254 { "_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11255 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11256 { "_wxObject","_class_wxDC",SwigwxDCTowxObject
},
11257 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
11258 { "_wxObject","_class_wxBrushList",SwigwxBrushListTowxObject
},
11259 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
11260 { "_wxObject","_class_wxBrush",SwigwxBrushTowxObject
},
11261 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
11262 { "_wxObject","_class_wxPenList",SwigwxPenListTowxObject
},
11263 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
11264 { "_wxObject","_class_wxPyPen",SwigwxPyPenTowxObject
},
11265 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
11266 { "_wxObject","_class_wxPen",SwigwxPenTowxObject
},
11267 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
11268 { "_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11269 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11270 { "_wxObject","_class_wxColour",SwigwxColourTowxObject
},
11271 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
11272 { "_wxObject","_class_wxFontList",SwigwxFontListTowxObject
},
11273 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
11274 { "_wxObject","_class_wxFont",SwigwxFontTowxObject
},
11275 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
11276 { "_wxObject","_class_wxCursor",SwigwxCursorTowxObject
},
11277 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
11278 { "_wxObject","_class_wxIcon",SwigwxIconTowxObject
},
11279 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
11280 { "_wxObject","_class_wxMask",SwigwxMaskTowxObject
},
11281 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
11282 { "_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject
},
11283 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
11284 { "_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject
},
11285 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
11286 { "_signed_short","_WXTYPE",0},
11287 { "_signed_short","_short",0},
11288 { "_unsigned_char","_byte",0},
11289 { "_unsigned_int","_wxCoord",0},
11290 { "_unsigned_int","_wxPrintQuality",0},
11291 { "_unsigned_int","_time_t",0},
11292 { "_unsigned_int","_size_t",0},
11293 { "_unsigned_int","_uint",0},
11294 { "_unsigned_int","_wxWindowID",0},
11295 { "_unsigned_int","_int",0},
11296 { "_class_wxPen","_class_wxPyPen",SwigwxPyPenTowxPen
},
11297 { "_class_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
11298 { "_short","_WXTYPE",0},
11299 { "_short","_unsigned_short",0},
11300 { "_short","_signed_short",0},
11301 { "_wxWindowID","_wxCoord",0},
11302 { "_wxWindowID","_wxPrintQuality",0},
11303 { "_wxWindowID","_time_t",0},
11304 { "_wxWindowID","_size_t",0},
11305 { "_wxWindowID","_EBool",0},
11306 { "_wxWindowID","_uint",0},
11307 { "_wxWindowID","_int",0},
11308 { "_wxWindowID","_signed_int",0},
11309 { "_wxWindowID","_unsigned_int",0},
11310 { "_class_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject
},
11311 { "_class_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
11312 { "_class_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject
},
11313 { "_class_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
11314 { "_class_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject
},
11315 { "_class_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
11316 { "_class_wxGDIObject","_class_wxPyPen",SwigwxPyPenTowxGDIObject
},
11317 { "_class_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
11318 { "_class_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject
},
11319 { "_class_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
11320 { "_class_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject
},
11321 { "_class_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
11322 { "_class_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject
},
11323 { "_class_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
11324 { "_class_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject
},
11325 { "_class_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
11326 { "_class_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject
},
11327 { "_class_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
11328 { "_int","_wxCoord",0},
11329 { "_int","_wxPrintQuality",0},
11330 { "_int","_time_t",0},
11331 { "_int","_size_t",0},
11332 { "_int","_EBool",0},
11333 { "_int","_uint",0},
11334 { "_int","_wxWindowID",0},
11335 { "_int","_unsigned_int",0},
11336 { "_int","_signed_int",0},
11337 { "_time_t","_wxCoord",0},
11338 { "_time_t","_wxPrintQuality",0},
11339 { "_time_t","_unsigned_int",0},
11340 { "_time_t","_int",0},
11341 { "_time_t","_wxWindowID",0},
11342 { "_time_t","_uint",0},
11343 { "_time_t","_size_t",0},
11344 { "_wxCoord","_int",0},
11345 { "_wxCoord","_signed_int",0},
11346 { "_wxCoord","_unsigned_int",0},
11347 { "_wxCoord","_wxWindowID",0},
11348 { "_wxCoord","_uint",0},
11349 { "_wxCoord","_EBool",0},
11350 { "_wxCoord","_size_t",0},
11351 { "_wxCoord","_time_t",0},
11352 { "_wxCoord","_wxPrintQuality",0},
11355 static PyObject
*SWIG_globals
;
11359 SWIGEXPORT(void) initgdic() {
11361 SWIG_globals
= SWIG_newvarlink();
11362 m
= Py_InitModule("gdic", gdicMethods
);
11363 d
= PyModule_GetDict(m
);
11364 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
11365 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
11366 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
11367 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
11368 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
11369 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
11370 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
11371 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
11372 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
11373 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
11374 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
11375 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
11376 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
11377 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
11378 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
11379 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
11380 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
11381 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
11382 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
11383 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
11384 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
11385 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
11386 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
11387 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
11388 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
11389 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
11390 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
11391 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
11392 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
11393 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
11394 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
11395 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
11396 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
11397 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
11398 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
11399 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
11400 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
11401 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
11402 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
11403 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
11404 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
11405 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
11406 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
11407 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
11408 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
11409 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
11410 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
11411 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
11412 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
11413 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
11414 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
11415 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
11416 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
11417 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
11418 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
11419 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
11420 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
11421 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
11422 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
11423 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
11424 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
11425 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
11426 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
11427 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
11428 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
11429 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
11430 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
11431 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
11432 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
11433 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
11434 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
11435 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
11436 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
11437 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
11438 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
11439 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
11440 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
11441 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
11442 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
11443 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
11444 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
11445 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
11446 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
11447 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
11448 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
11449 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
11450 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
11451 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
11452 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
11453 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
11454 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
11455 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
11456 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
11457 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
11458 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
11459 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
11460 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
11461 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
11462 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
11463 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
11464 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
11465 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
11466 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
11467 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
11468 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
11469 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
11470 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
11471 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
11472 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
11473 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
11474 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
11475 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
11476 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
11479 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
11480 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);