2 * FILE : src/msw/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/metafile.h>
60 #include <wx/imaglist.h>
64 #include <wx/fontmap.h>
65 #include <wx/fontenc.h>
66 #include <wx/fontmap.h>
67 #include <wx/fontutil.h>
70 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
76 } else if (target
== Py_None
) {
80 if (!PyTuple_Check(target
)) {
82 target
= PyTuple_New(1);
83 PyTuple_SetItem(target
, 0, o2
);
86 PyTuple_SetItem(o3
, 0, o
);
89 target
= PySequence_Concat(o2
, o3
);
96 #if PYTHON_API_VERSION >= 1009
97 static char* wxStringErrorMsg
= "String or Unicode type required";
99 static char* wxStringErrorMsg
= "string type 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_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1751 static PyObject
*_wrap_wxBitmap_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1752 PyObject
* _resultobj
;
1755 PyObject
* _argo0
= 0;
1756 PyObject
* _argo1
= 0;
1757 char *_kwnames
[] = { "self","palette", NULL
};
1760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetPalette",_kwnames
,&_argo0
,&_argo1
))
1763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1770 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1771 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
1772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1777 wxPy_BEGIN_ALLOW_THREADS
;
1778 wxBitmap_SetPalette(_arg0
,*_arg1
);
1780 wxPy_END_ALLOW_THREADS
;
1781 if (PyErr_Occurred()) return NULL
;
1782 } Py_INCREF(Py_None
);
1783 _resultobj
= Py_None
;
1787 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1788 static PyObject
*_wrap_wxBitmap_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1789 PyObject
* _resultobj
;
1792 PyObject
* _argo0
= 0;
1793 char *_kwnames
[] = { "self", NULL
};
1796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHandle",_kwnames
,&_argo0
))
1799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1806 wxPy_BEGIN_ALLOW_THREADS
;
1807 _result
= (long )wxBitmap_GetHandle(_arg0
);
1809 wxPy_END_ALLOW_THREADS
;
1810 if (PyErr_Occurred()) return NULL
;
1811 } _resultobj
= Py_BuildValue("l",_result
);
1815 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1816 static PyObject
*_wrap_wxBitmap_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1817 PyObject
* _resultobj
;
1820 PyObject
* _argo0
= 0;
1821 char *_kwnames
[] = { "self","handle", NULL
};
1824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxBitmap_SetHandle",_kwnames
,&_argo0
,&_arg1
))
1827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1834 wxPy_BEGIN_ALLOW_THREADS
;
1835 wxBitmap_SetHandle(_arg0
,_arg1
);
1837 wxPy_END_ALLOW_THREADS
;
1838 if (PyErr_Occurred()) return NULL
;
1839 } Py_INCREF(Py_None
);
1840 _resultobj
= Py_None
;
1844 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1845 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1846 PyObject
* _resultobj
;
1849 PyObject
* _argo0
= 0;
1850 char *_kwnames
[] = { "self", NULL
};
1853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1856 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1857 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1863 wxPy_BEGIN_ALLOW_THREADS
;
1864 _result
= (bool )wxBitmap_Ok(_arg0
);
1866 wxPy_END_ALLOW_THREADS
;
1867 if (PyErr_Occurred()) return NULL
;
1868 } _resultobj
= Py_BuildValue("i",_result
);
1872 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1873 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1874 PyObject
* _resultobj
;
1877 PyObject
* _argo0
= 0;
1878 char *_kwnames
[] = { "self", NULL
};
1881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1884 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1885 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1891 wxPy_BEGIN_ALLOW_THREADS
;
1892 _result
= (int )wxBitmap_GetWidth(_arg0
);
1894 wxPy_END_ALLOW_THREADS
;
1895 if (PyErr_Occurred()) return NULL
;
1896 } _resultobj
= Py_BuildValue("i",_result
);
1900 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1901 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1902 PyObject
* _resultobj
;
1905 PyObject
* _argo0
= 0;
1906 char *_kwnames
[] = { "self", NULL
};
1909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1919 wxPy_BEGIN_ALLOW_THREADS
;
1920 _result
= (int )wxBitmap_GetHeight(_arg0
);
1922 wxPy_END_ALLOW_THREADS
;
1923 if (PyErr_Occurred()) return NULL
;
1924 } _resultobj
= Py_BuildValue("i",_result
);
1928 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1929 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1930 PyObject
* _resultobj
;
1933 PyObject
* _argo0
= 0;
1934 char *_kwnames
[] = { "self", NULL
};
1937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1947 wxPy_BEGIN_ALLOW_THREADS
;
1948 _result
= (int )wxBitmap_GetDepth(_arg0
);
1950 wxPy_END_ALLOW_THREADS
;
1951 if (PyErr_Occurred()) return NULL
;
1952 } _resultobj
= Py_BuildValue("i",_result
);
1956 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1957 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1958 PyObject
* _resultobj
;
1961 PyObject
* _argo0
= 0;
1962 char *_kwnames
[] = { "self","w", NULL
};
1965 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1968 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1969 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1970 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1975 wxPy_BEGIN_ALLOW_THREADS
;
1976 wxBitmap_SetWidth(_arg0
,_arg1
);
1978 wxPy_END_ALLOW_THREADS
;
1979 if (PyErr_Occurred()) return NULL
;
1980 } Py_INCREF(Py_None
);
1981 _resultobj
= Py_None
;
1985 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1986 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1987 PyObject
* _resultobj
;
1990 PyObject
* _argo0
= 0;
1991 char *_kwnames
[] = { "self","h", NULL
};
1994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2004 wxPy_BEGIN_ALLOW_THREADS
;
2005 wxBitmap_SetHeight(_arg0
,_arg1
);
2007 wxPy_END_ALLOW_THREADS
;
2008 if (PyErr_Occurred()) return NULL
;
2009 } Py_INCREF(Py_None
);
2010 _resultobj
= Py_None
;
2014 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2015 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2016 PyObject
* _resultobj
;
2019 PyObject
* _argo0
= 0;
2020 char *_kwnames
[] = { "self","d", NULL
};
2023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2033 wxPy_BEGIN_ALLOW_THREADS
;
2034 wxBitmap_SetDepth(_arg0
,_arg1
);
2036 wxPy_END_ALLOW_THREADS
;
2037 if (PyErr_Occurred()) return NULL
;
2038 } Py_INCREF(Py_None
);
2039 _resultobj
= Py_None
;
2043 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2044 static PyObject
*_wrap_wxBitmap_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2045 PyObject
* _resultobj
;
2048 PyObject
* _argo0
= 0;
2050 PyObject
* _obj1
= 0;
2051 char *_kwnames
[] = { "self","size", NULL
};
2054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetSize",_kwnames
,&_argo0
,&_obj1
))
2057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2065 if (! wxSize_helper(_obj1
, &_arg1
))
2069 wxPy_BEGIN_ALLOW_THREADS
;
2070 wxBitmap_SetSize(_arg0
,*_arg1
);
2072 wxPy_END_ALLOW_THREADS
;
2073 if (PyErr_Occurred()) return NULL
;
2074 } Py_INCREF(Py_None
);
2075 _resultobj
= Py_None
;
2079 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2080 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2081 PyObject
* _resultobj
;
2085 PyObject
* _argo0
= 0;
2087 PyObject
* _obj1
= 0;
2088 char *_kwnames
[] = { "self","rect", NULL
};
2092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
2095 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2096 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2097 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2103 if (! wxRect_helper(_obj1
, &_arg1
))
2107 wxPy_BEGIN_ALLOW_THREADS
;
2108 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2110 wxPy_END_ALLOW_THREADS
;
2111 if (PyErr_Occurred()) return NULL
;
2112 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2113 _resultobj
= Py_BuildValue("s",_ptemp
);
2117 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2118 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2119 PyObject
* _resultobj
;
2123 PyObject
* _argo0
= 0;
2124 PyObject
* _argo1
= 0;
2125 char *_kwnames
[] = { "self","icon", NULL
};
2128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2138 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2139 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2145 wxPy_BEGIN_ALLOW_THREADS
;
2146 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2148 wxPy_END_ALLOW_THREADS
;
2149 if (PyErr_Occurred()) return NULL
;
2150 } _resultobj
= Py_BuildValue("i",_result
);
2154 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2155 static PyObject
*_wrap_wxBitmap_CopyFromCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2156 PyObject
* _resultobj
;
2160 PyObject
* _argo0
= 0;
2161 PyObject
* _argo1
= 0;
2162 char *_kwnames
[] = { "self","cursor", NULL
};
2165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromCursor",_kwnames
,&_argo0
,&_argo1
))
2168 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2169 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2175 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2176 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2182 wxPy_BEGIN_ALLOW_THREADS
;
2183 _result
= (bool )wxBitmap_CopyFromCursor(_arg0
,*_arg1
);
2185 wxPy_END_ALLOW_THREADS
;
2186 if (PyErr_Occurred()) return NULL
;
2187 } _resultobj
= Py_BuildValue("i",_result
);
2191 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2192 static PyObject
*_wrap_wxBitmap_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2193 PyObject
* _resultobj
;
2196 PyObject
* _argo0
= 0;
2197 char *_kwnames
[] = { "self", NULL
};
2200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetQuality",_kwnames
,&_argo0
))
2203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2210 wxPy_BEGIN_ALLOW_THREADS
;
2211 _result
= (int )wxBitmap_GetQuality(_arg0
);
2213 wxPy_END_ALLOW_THREADS
;
2214 if (PyErr_Occurred()) return NULL
;
2215 } _resultobj
= Py_BuildValue("i",_result
);
2219 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2220 static PyObject
*_wrap_wxBitmap_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2221 PyObject
* _resultobj
;
2224 PyObject
* _argo0
= 0;
2225 char *_kwnames
[] = { "self","q", NULL
};
2228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetQuality",_kwnames
,&_argo0
,&_arg1
))
2231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2238 wxPy_BEGIN_ALLOW_THREADS
;
2239 wxBitmap_SetQuality(_arg0
,_arg1
);
2241 wxPy_END_ALLOW_THREADS
;
2242 if (PyErr_Occurred()) return NULL
;
2243 } Py_INCREF(Py_None
);
2244 _resultobj
= Py_None
;
2248 static void *SwigwxMaskTowxObject(void *ptr
) {
2251 src
= (wxMask
*) ptr
;
2252 dest
= (wxObject
*) src
;
2253 return (void *) dest
;
2256 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2257 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2258 PyObject
* _resultobj
;
2261 PyObject
* _argo0
= 0;
2262 char *_kwnames
[] = { "bitmap", NULL
};
2266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2276 wxPy_BEGIN_ALLOW_THREADS
;
2277 _result
= (wxMask
*)new_wxMask(*_arg0
);
2279 wxPy_END_ALLOW_THREADS
;
2280 if (PyErr_Occurred()) return NULL
;
2282 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2283 _resultobj
= Py_BuildValue("s",_ptemp
);
2286 _resultobj
= Py_None
;
2291 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2292 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2293 PyObject
* _resultobj
;
2295 PyObject
* _argo0
= 0;
2296 char *_kwnames
[] = { "self", NULL
};
2299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2309 wxPy_BEGIN_ALLOW_THREADS
;
2310 wxMask_Destroy(_arg0
);
2312 wxPy_END_ALLOW_THREADS
;
2313 if (PyErr_Occurred()) return NULL
;
2314 } Py_INCREF(Py_None
);
2315 _resultobj
= Py_None
;
2319 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2322 src
= (wxIcon
*) ptr
;
2323 dest
= (wxGDIObject
*) src
;
2324 return (void *) dest
;
2327 static void *SwigwxIconTowxObject(void *ptr
) {
2330 src
= (wxIcon
*) ptr
;
2331 dest
= (wxObject
*) src
;
2332 return (void *) dest
;
2335 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2336 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2337 PyObject
* _resultobj
;
2341 int _arg2
= (int ) -1;
2342 int _arg3
= (int ) -1;
2343 PyObject
* _obj0
= 0;
2344 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2351 #if PYTHON_API_VERSION >= 1009
2352 char* tmpPtr
; int tmpSize
;
2353 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2354 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2357 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2359 _arg0
= new wxString(tmpPtr
, tmpSize
);
2361 if (!PyString_Check(_obj0
)) {
2362 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2365 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2369 wxPy_BEGIN_ALLOW_THREADS
;
2370 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2372 wxPy_END_ALLOW_THREADS
;
2373 if (PyErr_Occurred()) return NULL
;
2375 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2376 _resultobj
= Py_BuildValue("s",_ptemp
);
2379 _resultobj
= Py_None
;
2388 #define delete_wxIcon(_swigobj) (delete _swigobj)
2389 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2390 PyObject
* _resultobj
;
2392 PyObject
* _argo0
= 0;
2393 char *_kwnames
[] = { "self", NULL
};
2396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2406 wxPy_BEGIN_ALLOW_THREADS
;
2407 delete_wxIcon(_arg0
);
2409 wxPy_END_ALLOW_THREADS
;
2410 if (PyErr_Occurred()) return NULL
;
2411 } Py_INCREF(Py_None
);
2412 _resultobj
= Py_None
;
2416 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2417 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2418 PyObject
* _resultobj
;
2423 PyObject
* _argo0
= 0;
2424 PyObject
* _obj1
= 0;
2425 char *_kwnames
[] = { "self","name","flags", NULL
};
2428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2431 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2432 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2433 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2438 #if PYTHON_API_VERSION >= 1009
2439 char* tmpPtr
; int tmpSize
;
2440 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2441 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2444 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2446 _arg1
= new wxString(tmpPtr
, tmpSize
);
2448 if (!PyString_Check(_obj1
)) {
2449 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2452 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2456 wxPy_BEGIN_ALLOW_THREADS
;
2457 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2459 wxPy_END_ALLOW_THREADS
;
2460 if (PyErr_Occurred()) return NULL
;
2461 } _resultobj
= Py_BuildValue("i",_result
);
2469 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2470 static PyObject
*_wrap_wxIcon_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2471 PyObject
* _resultobj
;
2474 PyObject
* _argo0
= 0;
2475 char *_kwnames
[] = { "self", NULL
};
2478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHandle",_kwnames
,&_argo0
))
2481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2488 wxPy_BEGIN_ALLOW_THREADS
;
2489 _result
= (long )wxIcon_GetHandle(_arg0
);
2491 wxPy_END_ALLOW_THREADS
;
2492 if (PyErr_Occurred()) return NULL
;
2493 } _resultobj
= Py_BuildValue("l",_result
);
2497 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2498 static PyObject
*_wrap_wxIcon_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2499 PyObject
* _resultobj
;
2502 PyObject
* _argo0
= 0;
2503 char *_kwnames
[] = { "self","handle", NULL
};
2506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxIcon_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2509 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2510 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2516 wxPy_BEGIN_ALLOW_THREADS
;
2517 wxIcon_SetHandle(_arg0
,_arg1
);
2519 wxPy_END_ALLOW_THREADS
;
2520 if (PyErr_Occurred()) return NULL
;
2521 } Py_INCREF(Py_None
);
2522 _resultobj
= Py_None
;
2526 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2527 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2528 PyObject
* _resultobj
;
2531 PyObject
* _argo0
= 0;
2532 char *_kwnames
[] = { "self", NULL
};
2535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2545 wxPy_BEGIN_ALLOW_THREADS
;
2546 _result
= (bool )wxIcon_Ok(_arg0
);
2548 wxPy_END_ALLOW_THREADS
;
2549 if (PyErr_Occurred()) return NULL
;
2550 } _resultobj
= Py_BuildValue("i",_result
);
2554 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2555 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2556 PyObject
* _resultobj
;
2559 PyObject
* _argo0
= 0;
2560 char *_kwnames
[] = { "self", NULL
};
2563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2566 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2567 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2568 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2573 wxPy_BEGIN_ALLOW_THREADS
;
2574 _result
= (int )wxIcon_GetWidth(_arg0
);
2576 wxPy_END_ALLOW_THREADS
;
2577 if (PyErr_Occurred()) return NULL
;
2578 } _resultobj
= Py_BuildValue("i",_result
);
2582 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2583 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2584 PyObject
* _resultobj
;
2587 PyObject
* _argo0
= 0;
2588 char *_kwnames
[] = { "self", NULL
};
2591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2594 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2595 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2601 wxPy_BEGIN_ALLOW_THREADS
;
2602 _result
= (int )wxIcon_GetHeight(_arg0
);
2604 wxPy_END_ALLOW_THREADS
;
2605 if (PyErr_Occurred()) return NULL
;
2606 } _resultobj
= Py_BuildValue("i",_result
);
2610 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2611 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2612 PyObject
* _resultobj
;
2615 PyObject
* _argo0
= 0;
2616 char *_kwnames
[] = { "self", NULL
};
2619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2629 wxPy_BEGIN_ALLOW_THREADS
;
2630 _result
= (int )wxIcon_GetDepth(_arg0
);
2632 wxPy_END_ALLOW_THREADS
;
2633 if (PyErr_Occurred()) return NULL
;
2634 } _resultobj
= Py_BuildValue("i",_result
);
2638 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2639 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2640 PyObject
* _resultobj
;
2643 PyObject
* _argo0
= 0;
2644 char *_kwnames
[] = { "self","w", NULL
};
2647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2650 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2651 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2652 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2657 wxPy_BEGIN_ALLOW_THREADS
;
2658 wxIcon_SetWidth(_arg0
,_arg1
);
2660 wxPy_END_ALLOW_THREADS
;
2661 if (PyErr_Occurred()) return NULL
;
2662 } Py_INCREF(Py_None
);
2663 _resultobj
= Py_None
;
2667 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2668 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2669 PyObject
* _resultobj
;
2672 PyObject
* _argo0
= 0;
2673 char *_kwnames
[] = { "self","h", NULL
};
2676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2679 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2680 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2686 wxPy_BEGIN_ALLOW_THREADS
;
2687 wxIcon_SetHeight(_arg0
,_arg1
);
2689 wxPy_END_ALLOW_THREADS
;
2690 if (PyErr_Occurred()) return NULL
;
2691 } Py_INCREF(Py_None
);
2692 _resultobj
= Py_None
;
2696 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2697 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2698 PyObject
* _resultobj
;
2701 PyObject
* _argo0
= 0;
2702 char *_kwnames
[] = { "self","d", NULL
};
2705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2708 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2709 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2710 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2715 wxPy_BEGIN_ALLOW_THREADS
;
2716 wxIcon_SetDepth(_arg0
,_arg1
);
2718 wxPy_END_ALLOW_THREADS
;
2719 if (PyErr_Occurred()) return NULL
;
2720 } Py_INCREF(Py_None
);
2721 _resultobj
= Py_None
;
2725 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2726 static PyObject
*_wrap_wxIcon_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2727 PyObject
* _resultobj
;
2730 PyObject
* _argo0
= 0;
2732 PyObject
* _obj1
= 0;
2733 char *_kwnames
[] = { "self","size", NULL
};
2736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_SetSize",_kwnames
,&_argo0
,&_obj1
))
2739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2747 if (! wxSize_helper(_obj1
, &_arg1
))
2751 wxPy_BEGIN_ALLOW_THREADS
;
2752 wxIcon_SetSize(_arg0
,*_arg1
);
2754 wxPy_END_ALLOW_THREADS
;
2755 if (PyErr_Occurred()) return NULL
;
2756 } Py_INCREF(Py_None
);
2757 _resultobj
= Py_None
;
2761 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2762 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2763 PyObject
* _resultobj
;
2766 PyObject
* _argo0
= 0;
2767 PyObject
* _argo1
= 0;
2768 char *_kwnames
[] = { "self","bmp", NULL
};
2771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2781 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2782 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2788 wxPy_BEGIN_ALLOW_THREADS
;
2789 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2791 wxPy_END_ALLOW_THREADS
;
2792 if (PyErr_Occurred()) return NULL
;
2793 } Py_INCREF(Py_None
);
2794 _resultobj
= Py_None
;
2798 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2801 src
= (wxCursor
*) ptr
;
2802 dest
= (wxGDIObject
*) src
;
2803 return (void *) dest
;
2806 static void *SwigwxCursorTowxObject(void *ptr
) {
2809 src
= (wxCursor
*) ptr
;
2810 dest
= (wxObject
*) src
;
2811 return (void *) dest
;
2814 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2815 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2816 PyObject
* _resultobj
;
2820 int _arg2
= (int ) 0;
2821 int _arg3
= (int ) 0;
2822 PyObject
* _obj0
= 0;
2823 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
2827 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2830 #if PYTHON_API_VERSION >= 1009
2831 char* tmpPtr
; int tmpSize
;
2832 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2833 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2836 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2838 _arg0
= new wxString(tmpPtr
, tmpSize
);
2840 if (!PyString_Check(_obj0
)) {
2841 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2844 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2848 wxPy_BEGIN_ALLOW_THREADS
;
2849 _result
= (wxCursor
*)new_wxCursor(*_arg0
,_arg1
,_arg2
,_arg3
);
2851 wxPy_END_ALLOW_THREADS
;
2852 if (PyErr_Occurred()) return NULL
;
2854 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
2855 _resultobj
= Py_BuildValue("s",_ptemp
);
2858 _resultobj
= Py_None
;
2867 #define delete_wxCursor(_swigobj) (delete _swigobj)
2868 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2869 PyObject
* _resultobj
;
2871 PyObject
* _argo0
= 0;
2872 char *_kwnames
[] = { "self", NULL
};
2875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2878 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2879 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2880 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2885 wxPy_BEGIN_ALLOW_THREADS
;
2886 delete_wxCursor(_arg0
);
2888 wxPy_END_ALLOW_THREADS
;
2889 if (PyErr_Occurred()) return NULL
;
2890 } Py_INCREF(Py_None
);
2891 _resultobj
= Py_None
;
2895 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2896 static PyObject
*_wrap_wxCursor_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2897 PyObject
* _resultobj
;
2900 PyObject
* _argo0
= 0;
2901 char *_kwnames
[] = { "self", NULL
};
2904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHandle",_kwnames
,&_argo0
))
2907 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2908 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2909 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2914 wxPy_BEGIN_ALLOW_THREADS
;
2915 _result
= (long )wxCursor_GetHandle(_arg0
);
2917 wxPy_END_ALLOW_THREADS
;
2918 if (PyErr_Occurred()) return NULL
;
2919 } _resultobj
= Py_BuildValue("l",_result
);
2923 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2924 static PyObject
*_wrap_wxCursor_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2925 PyObject
* _resultobj
;
2928 PyObject
* _argo0
= 0;
2929 char *_kwnames
[] = { "self","handle", NULL
};
2932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxCursor_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2942 wxPy_BEGIN_ALLOW_THREADS
;
2943 wxCursor_SetHandle(_arg0
,_arg1
);
2945 wxPy_END_ALLOW_THREADS
;
2946 if (PyErr_Occurred()) return NULL
;
2947 } Py_INCREF(Py_None
);
2948 _resultobj
= Py_None
;
2952 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2953 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2954 PyObject
* _resultobj
;
2957 PyObject
* _argo0
= 0;
2958 char *_kwnames
[] = { "self", NULL
};
2961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2971 wxPy_BEGIN_ALLOW_THREADS
;
2972 _result
= (bool )wxCursor_Ok(_arg0
);
2974 wxPy_END_ALLOW_THREADS
;
2975 if (PyErr_Occurred()) return NULL
;
2976 } _resultobj
= Py_BuildValue("i",_result
);
2980 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2981 static PyObject
*_wrap_wxCursor_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2982 PyObject
* _resultobj
;
2985 PyObject
* _argo0
= 0;
2986 char *_kwnames
[] = { "self", NULL
};
2989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetWidth",_kwnames
,&_argo0
))
2992 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2993 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
2999 wxPy_BEGIN_ALLOW_THREADS
;
3000 _result
= (int )wxCursor_GetWidth(_arg0
);
3002 wxPy_END_ALLOW_THREADS
;
3003 if (PyErr_Occurred()) return NULL
;
3004 } _resultobj
= Py_BuildValue("i",_result
);
3008 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3009 static PyObject
*_wrap_wxCursor_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3010 PyObject
* _resultobj
;
3013 PyObject
* _argo0
= 0;
3014 char *_kwnames
[] = { "self", NULL
};
3017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHeight",_kwnames
,&_argo0
))
3020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3027 wxPy_BEGIN_ALLOW_THREADS
;
3028 _result
= (int )wxCursor_GetHeight(_arg0
);
3030 wxPy_END_ALLOW_THREADS
;
3031 if (PyErr_Occurred()) return NULL
;
3032 } _resultobj
= Py_BuildValue("i",_result
);
3036 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3037 static PyObject
*_wrap_wxCursor_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3038 PyObject
* _resultobj
;
3041 PyObject
* _argo0
= 0;
3042 char *_kwnames
[] = { "self", NULL
};
3045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetDepth",_kwnames
,&_argo0
))
3048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3055 wxPy_BEGIN_ALLOW_THREADS
;
3056 _result
= (int )wxCursor_GetDepth(_arg0
);
3058 wxPy_END_ALLOW_THREADS
;
3059 if (PyErr_Occurred()) return NULL
;
3060 } _resultobj
= Py_BuildValue("i",_result
);
3064 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3065 static PyObject
*_wrap_wxCursor_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3066 PyObject
* _resultobj
;
3069 PyObject
* _argo0
= 0;
3070 char *_kwnames
[] = { "self","w", NULL
};
3073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3076 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3077 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3083 wxPy_BEGIN_ALLOW_THREADS
;
3084 wxCursor_SetWidth(_arg0
,_arg1
);
3086 wxPy_END_ALLOW_THREADS
;
3087 if (PyErr_Occurred()) return NULL
;
3088 } Py_INCREF(Py_None
);
3089 _resultobj
= Py_None
;
3093 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3094 static PyObject
*_wrap_wxCursor_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3095 PyObject
* _resultobj
;
3098 PyObject
* _argo0
= 0;
3099 char *_kwnames
[] = { "self","h", NULL
};
3102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetHeight",_kwnames
,&_argo0
,&_arg1
))
3105 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3106 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3107 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3112 wxPy_BEGIN_ALLOW_THREADS
;
3113 wxCursor_SetHeight(_arg0
,_arg1
);
3115 wxPy_END_ALLOW_THREADS
;
3116 if (PyErr_Occurred()) return NULL
;
3117 } Py_INCREF(Py_None
);
3118 _resultobj
= Py_None
;
3122 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3123 static PyObject
*_wrap_wxCursor_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3124 PyObject
* _resultobj
;
3127 PyObject
* _argo0
= 0;
3128 char *_kwnames
[] = { "self","d", NULL
};
3131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetDepth",_kwnames
,&_argo0
,&_arg1
))
3134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3141 wxPy_BEGIN_ALLOW_THREADS
;
3142 wxCursor_SetDepth(_arg0
,_arg1
);
3144 wxPy_END_ALLOW_THREADS
;
3145 if (PyErr_Occurred()) return NULL
;
3146 } Py_INCREF(Py_None
);
3147 _resultobj
= Py_None
;
3151 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3152 static PyObject
*_wrap_wxCursor_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3153 PyObject
* _resultobj
;
3156 PyObject
* _argo0
= 0;
3158 PyObject
* _obj1
= 0;
3159 char *_kwnames
[] = { "self","size", NULL
};
3162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCursor_SetSize",_kwnames
,&_argo0
,&_obj1
))
3165 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3166 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3173 if (! wxSize_helper(_obj1
, &_arg1
))
3177 wxPy_BEGIN_ALLOW_THREADS
;
3178 wxCursor_SetSize(_arg0
,*_arg1
);
3180 wxPy_END_ALLOW_THREADS
;
3181 if (PyErr_Occurred()) return NULL
;
3182 } Py_INCREF(Py_None
);
3183 _resultobj
= Py_None
;
3187 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
3188 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3189 PyObject
* _resultobj
;
3191 wxNativeFontInfo
* _arg0
;
3193 PyObject
* _argo0
= 0;
3194 PyObject
* _obj1
= 0;
3195 char *_kwnames
[] = { "self","s", NULL
};
3198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
3201 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3202 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3208 #if PYTHON_API_VERSION >= 1009
3209 char* tmpPtr
; int tmpSize
;
3210 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3211 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3214 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3216 _arg1
= new wxString(tmpPtr
, tmpSize
);
3218 if (!PyString_Check(_obj1
)) {
3219 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3222 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3226 wxPy_BEGIN_ALLOW_THREADS
;
3227 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
3229 wxPy_END_ALLOW_THREADS
;
3230 if (PyErr_Occurred()) return NULL
;
3231 } _resultobj
= Py_BuildValue("i",_result
);
3239 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3240 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3241 PyObject
* _resultobj
;
3243 wxNativeFontInfo
* _arg0
;
3244 PyObject
* _argo0
= 0;
3245 char *_kwnames
[] = { "self", NULL
};
3248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
3251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3258 wxPy_BEGIN_ALLOW_THREADS
;
3259 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
3261 wxPy_END_ALLOW_THREADS
;
3262 if (PyErr_Occurred()) return NULL
;
3264 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3272 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
3273 return self
->ToString();
3275 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3276 PyObject
* _resultobj
;
3278 wxNativeFontInfo
* _arg0
;
3279 PyObject
* _argo0
= 0;
3280 char *_kwnames
[] = { "self", NULL
};
3283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
3286 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3287 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3288 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3293 wxPy_BEGIN_ALLOW_THREADS
;
3294 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
3296 wxPy_END_ALLOW_THREADS
;
3297 if (PyErr_Occurred()) return NULL
;
3299 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3307 #define new_wxFontMapper() (new wxFontMapper())
3308 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3309 PyObject
* _resultobj
;
3310 wxFontMapper
* _result
;
3311 char *_kwnames
[] = { NULL
};
3315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
3318 wxPy_BEGIN_ALLOW_THREADS
;
3319 _result
= (wxFontMapper
*)new_wxFontMapper();
3321 wxPy_END_ALLOW_THREADS
;
3322 if (PyErr_Occurred()) return NULL
;
3324 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
3325 _resultobj
= Py_BuildValue("s",_ptemp
);
3328 _resultobj
= Py_None
;
3333 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3334 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3335 PyObject
* _resultobj
;
3336 wxFontMapper
* _arg0
;
3337 PyObject
* _argo0
= 0;
3338 char *_kwnames
[] = { "self", NULL
};
3341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
3344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3351 wxPy_BEGIN_ALLOW_THREADS
;
3352 delete_wxFontMapper(_arg0
);
3354 wxPy_END_ALLOW_THREADS
;
3355 if (PyErr_Occurred()) return NULL
;
3356 } Py_INCREF(Py_None
);
3357 _resultobj
= Py_None
;
3361 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
3362 wxFontEncoding alt_enc
;
3363 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
3364 return PyInt_FromLong(alt_enc
);
3370 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3371 PyObject
* _resultobj
;
3373 wxFontMapper
* _arg0
;
3374 wxFontEncoding _arg1
;
3375 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3376 bool _arg3
= (bool ) TRUE
;
3377 PyObject
* _argo0
= 0;
3378 PyObject
* _obj2
= 0;
3379 int tempbool3
= (int) TRUE
;
3380 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
3383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
3386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3394 #if PYTHON_API_VERSION >= 1009
3395 char* tmpPtr
; int tmpSize
;
3396 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3397 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3400 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3402 _arg2
= new wxString(tmpPtr
, tmpSize
);
3404 if (!PyString_Check(_obj2
)) {
3405 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3408 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3411 _arg3
= (bool ) tempbool3
;
3413 wxPy_BEGIN_ALLOW_THREADS
;
3414 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
3416 wxPy_END_ALLOW_THREADS
;
3417 if (PyErr_Occurred()) return NULL
;
3419 _resultobj
= _result
;
3428 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3429 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3430 PyObject
* _resultobj
;
3432 wxFontMapper
* _arg0
;
3433 wxFontEncoding _arg1
;
3434 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3435 PyObject
* _argo0
= 0;
3436 PyObject
* _obj2
= 0;
3437 char *_kwnames
[] = { "self","encoding","facename", NULL
};
3440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
3443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
3451 #if PYTHON_API_VERSION >= 1009
3452 char* tmpPtr
; int tmpSize
;
3453 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3454 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3457 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3459 _arg2
= new wxString(tmpPtr
, tmpSize
);
3461 if (!PyString_Check(_obj2
)) {
3462 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3465 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3469 wxPy_BEGIN_ALLOW_THREADS
;
3470 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
3472 wxPy_END_ALLOW_THREADS
;
3473 if (PyErr_Occurred()) return NULL
;
3474 } _resultobj
= Py_BuildValue("i",_result
);
3482 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3483 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3484 PyObject
* _resultobj
;
3485 wxFontEncoding _result
;
3486 wxFontMapper
* _arg0
;
3488 bool _arg2
= (bool ) TRUE
;
3489 PyObject
* _argo0
= 0;
3490 PyObject
* _obj1
= 0;
3491 int tempbool2
= (int) TRUE
;
3492 char *_kwnames
[] = { "self","charset","interactive", NULL
};
3495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
3498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
3505 #if PYTHON_API_VERSION >= 1009
3506 char* tmpPtr
; int tmpSize
;
3507 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3508 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3511 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3513 _arg1
= new wxString(tmpPtr
, tmpSize
);
3515 if (!PyString_Check(_obj1
)) {
3516 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3519 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3522 _arg2
= (bool ) tempbool2
;
3524 wxPy_BEGIN_ALLOW_THREADS
;
3525 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
3527 wxPy_END_ALLOW_THREADS
;
3528 if (PyErr_Occurred()) return NULL
;
3529 } _resultobj
= Py_BuildValue("i",_result
);
3537 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3538 PyObject
* _resultobj
;
3540 wxFontEncoding _arg0
;
3541 char *_kwnames
[] = { "encoding", NULL
};
3544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
3547 wxPy_BEGIN_ALLOW_THREADS
;
3548 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
3550 wxPy_END_ALLOW_THREADS
;
3551 if (PyErr_Occurred()) return NULL
;
3553 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3561 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3562 PyObject
* _resultobj
;
3564 wxFontEncoding _arg0
;
3565 char *_kwnames
[] = { "encoding", NULL
};
3568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
3571 wxPy_BEGIN_ALLOW_THREADS
;
3572 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
3574 wxPy_END_ALLOW_THREADS
;
3575 if (PyErr_Occurred()) return NULL
;
3577 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3585 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3586 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3587 PyObject
* _resultobj
;
3588 wxFontMapper
* _arg0
;
3590 PyObject
* _argo0
= 0;
3591 PyObject
* _argo1
= 0;
3592 char *_kwnames
[] = { "self","parent", NULL
};
3595 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
3598 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3599 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3605 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3606 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3612 wxPy_BEGIN_ALLOW_THREADS
;
3613 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
3615 wxPy_END_ALLOW_THREADS
;
3616 if (PyErr_Occurred()) return NULL
;
3617 } Py_INCREF(Py_None
);
3618 _resultobj
= Py_None
;
3622 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3623 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3624 PyObject
* _resultobj
;
3625 wxFontMapper
* _arg0
;
3627 PyObject
* _argo0
= 0;
3628 PyObject
* _obj1
= 0;
3629 char *_kwnames
[] = { "self","title", NULL
};
3632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
3635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3642 #if PYTHON_API_VERSION >= 1009
3643 char* tmpPtr
; int tmpSize
;
3644 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3645 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3648 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3650 _arg1
= new wxString(tmpPtr
, tmpSize
);
3652 if (!PyString_Check(_obj1
)) {
3653 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3656 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3660 wxPy_BEGIN_ALLOW_THREADS
;
3661 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
3663 wxPy_END_ALLOW_THREADS
;
3664 if (PyErr_Occurred()) return NULL
;
3665 } Py_INCREF(Py_None
);
3666 _resultobj
= Py_None
;
3674 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3675 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3676 PyObject
* _resultobj
;
3677 wxFontMapper
* _arg0
;
3678 wxConfigBase
* _arg1
;
3679 PyObject
* _argo0
= 0;
3680 PyObject
* _argo1
= 0;
3681 char *_kwnames
[] = { "self","config", NULL
};
3684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
3687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3694 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3695 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
3696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3701 wxPy_BEGIN_ALLOW_THREADS
;
3702 wxFontMapper_SetConfig(_arg0
,_arg1
);
3704 wxPy_END_ALLOW_THREADS
;
3705 if (PyErr_Occurred()) return NULL
;
3706 } Py_INCREF(Py_None
);
3707 _resultobj
= Py_None
;
3711 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3712 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3713 PyObject
* _resultobj
;
3714 wxFontMapper
* _arg0
;
3716 PyObject
* _argo0
= 0;
3717 PyObject
* _obj1
= 0;
3718 char *_kwnames
[] = { "self","prefix", NULL
};
3721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
3724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3731 #if PYTHON_API_VERSION >= 1009
3732 char* tmpPtr
; int tmpSize
;
3733 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3734 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3737 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3739 _arg1
= new wxString(tmpPtr
, tmpSize
);
3741 if (!PyString_Check(_obj1
)) {
3742 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3745 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3749 wxPy_BEGIN_ALLOW_THREADS
;
3750 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
3752 wxPy_END_ALLOW_THREADS
;
3753 if (PyErr_Occurred()) return NULL
;
3754 } Py_INCREF(Py_None
);
3755 _resultobj
= Py_None
;
3763 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3764 PyObject
* _resultobj
;
3766 char *_kwnames
[] = { NULL
};
3769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
3772 wxPy_BEGIN_ALLOW_THREADS
;
3773 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
3775 wxPy_END_ALLOW_THREADS
;
3776 if (PyErr_Occurred()) return NULL
;
3777 } _resultobj
= Py_BuildValue("s", _result
);
3781 static void *SwigwxFontTowxGDIObject(void *ptr
) {
3784 src
= (wxFont
*) ptr
;
3785 dest
= (wxGDIObject
*) src
;
3786 return (void *) dest
;
3789 static void *SwigwxFontTowxObject(void *ptr
) {
3792 src
= (wxFont
*) ptr
;
3793 dest
= (wxObject
*) src
;
3794 return (void *) dest
;
3797 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3798 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3799 PyObject
* _resultobj
;
3805 int _arg4
= (int ) FALSE
;
3806 char * _arg5
= (char *) "";
3807 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3808 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
3812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3815 wxPy_BEGIN_ALLOW_THREADS
;
3816 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3818 wxPy_END_ALLOW_THREADS
;
3819 if (PyErr_Occurred()) return NULL
;
3821 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3822 _resultobj
= Py_BuildValue("s",_ptemp
);
3825 _resultobj
= Py_None
;
3830 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3831 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3832 PyObject
* _resultobj
;
3834 wxNativeFontInfo
* _arg0
;
3835 PyObject
* _argo0
= 0;
3836 char *_kwnames
[] = { "info", NULL
};
3840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
3843 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3844 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3850 wxPy_BEGIN_ALLOW_THREADS
;
3851 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
3853 wxPy_END_ALLOW_THREADS
;
3854 if (PyErr_Occurred()) return NULL
;
3856 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3857 _resultobj
= Py_BuildValue("s",_ptemp
);
3860 _resultobj
= Py_None
;
3865 #define delete_wxFont(_swigobj) (delete _swigobj)
3866 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3867 PyObject
* _resultobj
;
3869 PyObject
* _argo0
= 0;
3870 char *_kwnames
[] = { "self", NULL
};
3873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3883 wxPy_BEGIN_ALLOW_THREADS
;
3884 delete_wxFont(_arg0
);
3886 wxPy_END_ALLOW_THREADS
;
3887 if (PyErr_Occurred()) return NULL
;
3888 } Py_INCREF(Py_None
);
3889 _resultobj
= Py_None
;
3893 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3894 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3895 PyObject
* _resultobj
;
3898 PyObject
* _argo0
= 0;
3899 char *_kwnames
[] = { "self", NULL
};
3902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3905 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3906 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3912 wxPy_BEGIN_ALLOW_THREADS
;
3913 _result
= (bool )wxFont_Ok(_arg0
);
3915 wxPy_END_ALLOW_THREADS
;
3916 if (PyErr_Occurred()) return NULL
;
3917 } _resultobj
= Py_BuildValue("i",_result
);
3921 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3922 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3923 PyObject
* _resultobj
;
3926 PyObject
* _argo0
= 0;
3927 char *_kwnames
[] = { "self", NULL
};
3930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3933 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3934 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3940 wxPy_BEGIN_ALLOW_THREADS
;
3941 _result
= (int )wxFont_GetPointSize(_arg0
);
3943 wxPy_END_ALLOW_THREADS
;
3944 if (PyErr_Occurred()) return NULL
;
3945 } _resultobj
= Py_BuildValue("i",_result
);
3949 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3950 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3951 PyObject
* _resultobj
;
3954 PyObject
* _argo0
= 0;
3955 char *_kwnames
[] = { "self", NULL
};
3958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3961 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3962 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3968 wxPy_BEGIN_ALLOW_THREADS
;
3969 _result
= (int )wxFont_GetFamily(_arg0
);
3971 wxPy_END_ALLOW_THREADS
;
3972 if (PyErr_Occurred()) return NULL
;
3973 } _resultobj
= Py_BuildValue("i",_result
);
3977 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3978 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3979 PyObject
* _resultobj
;
3982 PyObject
* _argo0
= 0;
3983 char *_kwnames
[] = { "self", NULL
};
3986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3989 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3990 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3996 wxPy_BEGIN_ALLOW_THREADS
;
3997 _result
= (int )wxFont_GetStyle(_arg0
);
3999 wxPy_END_ALLOW_THREADS
;
4000 if (PyErr_Occurred()) return NULL
;
4001 } _resultobj
= Py_BuildValue("i",_result
);
4005 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
4006 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4007 PyObject
* _resultobj
;
4010 PyObject
* _argo0
= 0;
4011 char *_kwnames
[] = { "self", NULL
};
4014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
4017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
4024 wxPy_BEGIN_ALLOW_THREADS
;
4025 _result
= (int )wxFont_GetWeight(_arg0
);
4027 wxPy_END_ALLOW_THREADS
;
4028 if (PyErr_Occurred()) return NULL
;
4029 } _resultobj
= Py_BuildValue("i",_result
);
4033 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
4034 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4035 PyObject
* _resultobj
;
4038 PyObject
* _argo0
= 0;
4039 char *_kwnames
[] = { "self", NULL
};
4042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
4045 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4046 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
4052 wxPy_BEGIN_ALLOW_THREADS
;
4053 _result
= (bool )wxFont_GetUnderlined(_arg0
);
4055 wxPy_END_ALLOW_THREADS
;
4056 if (PyErr_Occurred()) return NULL
;
4057 } _resultobj
= Py_BuildValue("i",_result
);
4061 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
4062 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4063 PyObject
* _resultobj
;
4066 PyObject
* _argo0
= 0;
4067 char *_kwnames
[] = { "self", NULL
};
4070 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
4073 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4074 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4075 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
4080 wxPy_BEGIN_ALLOW_THREADS
;
4081 _result
= new wxString (wxFont_GetFaceName(_arg0
));
4083 wxPy_END_ALLOW_THREADS
;
4084 if (PyErr_Occurred()) return NULL
;
4086 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4094 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
4095 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4096 PyObject
* _resultobj
;
4097 wxFontEncoding _result
;
4099 PyObject
* _argo0
= 0;
4100 char *_kwnames
[] = { "self", NULL
};
4103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
4106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4113 wxPy_BEGIN_ALLOW_THREADS
;
4114 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
4116 wxPy_END_ALLOW_THREADS
;
4117 if (PyErr_Occurred()) return NULL
;
4118 } _resultobj
= Py_BuildValue("i",_result
);
4122 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4123 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4124 PyObject
* _resultobj
;
4125 wxNativeFontInfo
* _result
;
4127 PyObject
* _argo0
= 0;
4128 char *_kwnames
[] = { "self", NULL
};
4132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
4135 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4136 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4137 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4142 wxPy_BEGIN_ALLOW_THREADS
;
4143 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
4145 wxPy_END_ALLOW_THREADS
;
4146 if (PyErr_Occurred()) return NULL
;
4148 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
4149 _resultobj
= Py_BuildValue("s",_ptemp
);
4152 _resultobj
= Py_None
;
4157 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4158 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4159 PyObject
* _resultobj
;
4162 PyObject
* _argo0
= 0;
4163 char *_kwnames
[] = { "self","pointSize", NULL
};
4166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
4169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4176 wxPy_BEGIN_ALLOW_THREADS
;
4177 wxFont_SetPointSize(_arg0
,_arg1
);
4179 wxPy_END_ALLOW_THREADS
;
4180 if (PyErr_Occurred()) return NULL
;
4181 } Py_INCREF(Py_None
);
4182 _resultobj
= Py_None
;
4186 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4187 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4188 PyObject
* _resultobj
;
4191 PyObject
* _argo0
= 0;
4192 char *_kwnames
[] = { "self","family", NULL
};
4195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
4198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4205 wxPy_BEGIN_ALLOW_THREADS
;
4206 wxFont_SetFamily(_arg0
,_arg1
);
4208 wxPy_END_ALLOW_THREADS
;
4209 if (PyErr_Occurred()) return NULL
;
4210 } Py_INCREF(Py_None
);
4211 _resultobj
= Py_None
;
4215 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4216 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4217 PyObject
* _resultobj
;
4220 PyObject
* _argo0
= 0;
4221 char *_kwnames
[] = { "self","style", NULL
};
4224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4234 wxPy_BEGIN_ALLOW_THREADS
;
4235 wxFont_SetStyle(_arg0
,_arg1
);
4237 wxPy_END_ALLOW_THREADS
;
4238 if (PyErr_Occurred()) return NULL
;
4239 } Py_INCREF(Py_None
);
4240 _resultobj
= Py_None
;
4244 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4245 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4246 PyObject
* _resultobj
;
4249 PyObject
* _argo0
= 0;
4250 char *_kwnames
[] = { "self","weight", NULL
};
4253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
4256 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4257 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4263 wxPy_BEGIN_ALLOW_THREADS
;
4264 wxFont_SetWeight(_arg0
,_arg1
);
4266 wxPy_END_ALLOW_THREADS
;
4267 if (PyErr_Occurred()) return NULL
;
4268 } Py_INCREF(Py_None
);
4269 _resultobj
= Py_None
;
4273 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4274 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4275 PyObject
* _resultobj
;
4278 PyObject
* _argo0
= 0;
4279 PyObject
* _obj1
= 0;
4280 char *_kwnames
[] = { "self","faceName", NULL
};
4283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
4286 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4287 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4288 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4293 #if PYTHON_API_VERSION >= 1009
4294 char* tmpPtr
; int tmpSize
;
4295 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4296 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4299 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4301 _arg1
= new wxString(tmpPtr
, tmpSize
);
4303 if (!PyString_Check(_obj1
)) {
4304 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4307 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4311 wxPy_BEGIN_ALLOW_THREADS
;
4312 wxFont_SetFaceName(_arg0
,*_arg1
);
4314 wxPy_END_ALLOW_THREADS
;
4315 if (PyErr_Occurred()) return NULL
;
4316 } Py_INCREF(Py_None
);
4317 _resultobj
= Py_None
;
4325 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4326 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4327 PyObject
* _resultobj
;
4330 PyObject
* _argo0
= 0;
4332 char *_kwnames
[] = { "self","underlined", NULL
};
4335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
4338 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4339 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4344 _arg1
= (bool ) tempbool1
;
4346 wxPy_BEGIN_ALLOW_THREADS
;
4347 wxFont_SetUnderlined(_arg0
,_arg1
);
4349 wxPy_END_ALLOW_THREADS
;
4350 if (PyErr_Occurred()) return NULL
;
4351 } Py_INCREF(Py_None
);
4352 _resultobj
= Py_None
;
4356 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4357 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4358 PyObject
* _resultobj
;
4360 wxFontEncoding _arg1
;
4361 PyObject
* _argo0
= 0;
4362 char *_kwnames
[] = { "self","encoding", NULL
};
4365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
4368 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4369 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4370 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
4375 wxPy_BEGIN_ALLOW_THREADS
;
4376 wxFont_SetEncoding(_arg0
,_arg1
);
4378 wxPy_END_ALLOW_THREADS
;
4379 if (PyErr_Occurred()) return NULL
;
4380 } Py_INCREF(Py_None
);
4381 _resultobj
= Py_None
;
4385 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4386 static PyObject
*_wrap_wxFont_SetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4387 PyObject
* _resultobj
;
4389 wxNativeFontInfo
* _arg1
;
4390 PyObject
* _argo0
= 0;
4391 PyObject
* _argo1
= 0;
4392 char *_kwnames
[] = { "self","info", NULL
};
4395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfo",_kwnames
,&_argo0
,&_argo1
))
4398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4405 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4406 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxNativeFontInfo_p")) {
4407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
4412 wxPy_BEGIN_ALLOW_THREADS
;
4413 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
4415 wxPy_END_ALLOW_THREADS
;
4416 if (PyErr_Occurred()) return NULL
;
4417 } Py_INCREF(Py_None
);
4418 _resultobj
= Py_None
;
4422 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4423 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4424 PyObject
* _resultobj
;
4427 PyObject
* _argo0
= 0;
4428 char *_kwnames
[] = { "self", NULL
};
4431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
4434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4441 wxPy_BEGIN_ALLOW_THREADS
;
4442 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
4444 wxPy_END_ALLOW_THREADS
;
4445 if (PyErr_Occurred()) return NULL
;
4447 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4455 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4456 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4457 PyObject
* _resultobj
;
4460 PyObject
* _argo0
= 0;
4461 char *_kwnames
[] = { "self", NULL
};
4464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
4467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4474 wxPy_BEGIN_ALLOW_THREADS
;
4475 _result
= new wxString (wxFont_GetStyleString(_arg0
));
4477 wxPy_END_ALLOW_THREADS
;
4478 if (PyErr_Occurred()) return NULL
;
4480 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4488 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4489 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4490 PyObject
* _resultobj
;
4493 PyObject
* _argo0
= 0;
4494 char *_kwnames
[] = { "self", NULL
};
4497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
4500 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4501 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4502 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4507 wxPy_BEGIN_ALLOW_THREADS
;
4508 _result
= new wxString (wxFont_GetWeightString(_arg0
));
4510 wxPy_END_ALLOW_THREADS
;
4511 if (PyErr_Occurred()) return NULL
;
4513 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4521 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4522 PyObject
* _resultobj
;
4523 wxFontEncoding _result
;
4524 char *_kwnames
[] = { NULL
};
4527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
4530 wxPy_BEGIN_ALLOW_THREADS
;
4531 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
4533 wxPy_END_ALLOW_THREADS
;
4534 if (PyErr_Occurred()) return NULL
;
4535 } _resultobj
= Py_BuildValue("i",_result
);
4539 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4540 PyObject
* _resultobj
;
4541 wxFontEncoding _arg0
;
4542 char *_kwnames
[] = { "encoding", NULL
};
4545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
4548 wxPy_BEGIN_ALLOW_THREADS
;
4549 wxFont::SetDefaultEncoding(_arg0
);
4551 wxPy_END_ALLOW_THREADS
;
4552 if (PyErr_Occurred()) return NULL
;
4553 } Py_INCREF(Py_None
);
4554 _resultobj
= Py_None
;
4558 static void *SwigwxFontListTowxObject(void *ptr
) {
4561 src
= (wxFontList
*) ptr
;
4562 dest
= (wxObject
*) src
;
4563 return (void *) dest
;
4566 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4567 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4568 PyObject
* _resultobj
;
4571 PyObject
* _argo0
= 0;
4572 PyObject
* _argo1
= 0;
4573 char *_kwnames
[] = { "self","font", NULL
};
4576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
4579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4586 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4587 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4593 wxPy_BEGIN_ALLOW_THREADS
;
4594 wxFontList_AddFont(_arg0
,_arg1
);
4596 wxPy_END_ALLOW_THREADS
;
4597 if (PyErr_Occurred()) return NULL
;
4598 } Py_INCREF(Py_None
);
4599 _resultobj
= Py_None
;
4603 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4604 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4605 PyObject
* _resultobj
;
4612 bool _arg5
= (bool ) FALSE
;
4613 char * _arg6
= (char *) NULL
;
4614 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
4615 PyObject
* _argo0
= 0;
4616 int tempbool5
= (int) FALSE
;
4617 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
4621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
4624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4630 _arg5
= (bool ) tempbool5
;
4632 wxPy_BEGIN_ALLOW_THREADS
;
4633 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
4635 wxPy_END_ALLOW_THREADS
;
4636 if (PyErr_Occurred()) return NULL
;
4638 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4639 _resultobj
= Py_BuildValue("s",_ptemp
);
4642 _resultobj
= Py_None
;
4647 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4648 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4649 PyObject
* _resultobj
;
4652 PyObject
* _argo0
= 0;
4653 PyObject
* _argo1
= 0;
4654 char *_kwnames
[] = { "self","font", NULL
};
4657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
4660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4667 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4668 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4669 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4674 wxPy_BEGIN_ALLOW_THREADS
;
4675 wxFontList_RemoveFont(_arg0
,_arg1
);
4677 wxPy_END_ALLOW_THREADS
;
4678 if (PyErr_Occurred()) return NULL
;
4679 } Py_INCREF(Py_None
);
4680 _resultobj
= Py_None
;
4684 static void *SwigwxColourTowxObject(void *ptr
) {
4687 src
= (wxColour
*) ptr
;
4688 dest
= (wxObject
*) src
;
4689 return (void *) dest
;
4692 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4693 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4694 PyObject
* _resultobj
;
4696 unsigned char _arg0
= (unsigned char ) 0;
4697 unsigned char _arg1
= (unsigned char ) 0;
4698 unsigned char _arg2
= (unsigned char ) 0;
4699 char *_kwnames
[] = { "red","green","blue", NULL
};
4703 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
4706 wxPy_BEGIN_ALLOW_THREADS
;
4707 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
4709 wxPy_END_ALLOW_THREADS
;
4710 if (PyErr_Occurred()) return NULL
;
4712 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4713 _resultobj
= Py_BuildValue("s",_ptemp
);
4716 _resultobj
= Py_None
;
4721 #define delete_wxColour(_swigobj) (delete _swigobj)
4722 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4723 PyObject
* _resultobj
;
4726 PyObject
* _obj0
= 0;
4727 char *_kwnames
[] = { "self", NULL
};
4730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
4734 if (! wxColour_helper(_obj0
, &_arg0
))
4738 wxPy_BEGIN_ALLOW_THREADS
;
4739 delete_wxColour(_arg0
);
4741 wxPy_END_ALLOW_THREADS
;
4742 if (PyErr_Occurred()) return NULL
;
4743 } Py_INCREF(Py_None
);
4744 _resultobj
= Py_None
;
4748 #define wxColour_Red(_swigobj) (_swigobj->Red())
4749 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4750 PyObject
* _resultobj
;
4751 unsigned char _result
;
4754 PyObject
* _obj0
= 0;
4755 char *_kwnames
[] = { "self", NULL
};
4758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
4762 if (! wxColour_helper(_obj0
, &_arg0
))
4766 wxPy_BEGIN_ALLOW_THREADS
;
4767 _result
= (unsigned char )wxColour_Red(_arg0
);
4769 wxPy_END_ALLOW_THREADS
;
4770 if (PyErr_Occurred()) return NULL
;
4771 } _resultobj
= Py_BuildValue("b",_result
);
4775 #define wxColour_Green(_swigobj) (_swigobj->Green())
4776 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4777 PyObject
* _resultobj
;
4778 unsigned char _result
;
4781 PyObject
* _obj0
= 0;
4782 char *_kwnames
[] = { "self", NULL
};
4785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
4789 if (! wxColour_helper(_obj0
, &_arg0
))
4793 wxPy_BEGIN_ALLOW_THREADS
;
4794 _result
= (unsigned char )wxColour_Green(_arg0
);
4796 wxPy_END_ALLOW_THREADS
;
4797 if (PyErr_Occurred()) return NULL
;
4798 } _resultobj
= Py_BuildValue("b",_result
);
4802 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4803 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4804 PyObject
* _resultobj
;
4805 unsigned char _result
;
4808 PyObject
* _obj0
= 0;
4809 char *_kwnames
[] = { "self", NULL
};
4812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
4816 if (! wxColour_helper(_obj0
, &_arg0
))
4820 wxPy_BEGIN_ALLOW_THREADS
;
4821 _result
= (unsigned char )wxColour_Blue(_arg0
);
4823 wxPy_END_ALLOW_THREADS
;
4824 if (PyErr_Occurred()) return NULL
;
4825 } _resultobj
= Py_BuildValue("b",_result
);
4829 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4830 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4831 PyObject
* _resultobj
;
4835 PyObject
* _obj0
= 0;
4836 char *_kwnames
[] = { "self", NULL
};
4839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
4843 if (! wxColour_helper(_obj0
, &_arg0
))
4847 wxPy_BEGIN_ALLOW_THREADS
;
4848 _result
= (bool )wxColour_Ok(_arg0
);
4850 wxPy_END_ALLOW_THREADS
;
4851 if (PyErr_Occurred()) return NULL
;
4852 } _resultobj
= Py_BuildValue("i",_result
);
4856 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4857 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4858 PyObject
* _resultobj
;
4860 unsigned char _arg1
;
4861 unsigned char _arg2
;
4862 unsigned char _arg3
;
4864 PyObject
* _obj0
= 0;
4865 char *_kwnames
[] = { "self","red","green","blue", NULL
};
4868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
4872 if (! wxColour_helper(_obj0
, &_arg0
))
4876 wxPy_BEGIN_ALLOW_THREADS
;
4877 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
4879 wxPy_END_ALLOW_THREADS
;
4880 if (PyErr_Occurred()) return NULL
;
4881 } Py_INCREF(Py_None
);
4882 _resultobj
= Py_None
;
4886 static PyObject
* wxColour_Get(wxColour
*self
) {
4887 PyObject
* rv
= PyTuple_New(3);
4888 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
4889 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
4890 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
4893 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4894 PyObject
* _resultobj
;
4898 PyObject
* _obj0
= 0;
4899 char *_kwnames
[] = { "self", NULL
};
4902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
4906 if (! wxColour_helper(_obj0
, &_arg0
))
4910 wxPy_BEGIN_ALLOW_THREADS
;
4911 _result
= (PyObject
*)wxColour_Get(_arg0
);
4913 wxPy_END_ALLOW_THREADS
;
4914 if (PyErr_Occurred()) return NULL
;
4916 _resultobj
= _result
;
4921 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4922 wxColourDatabase
*src
;
4924 src
= (wxColourDatabase
*) ptr
;
4925 dest
= (wxObject
*) src
;
4926 return (void *) dest
;
4929 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4930 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4931 PyObject
* _resultobj
;
4933 wxColourDatabase
* _arg0
;
4935 PyObject
* _argo0
= 0;
4936 PyObject
* _obj1
= 0;
4937 char *_kwnames
[] = { "self","colour", NULL
};
4941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
4944 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4945 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4951 #if PYTHON_API_VERSION >= 1009
4952 char* tmpPtr
; int tmpSize
;
4953 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4954 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4957 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4959 _arg1
= new wxString(tmpPtr
, tmpSize
);
4961 if (!PyString_Check(_obj1
)) {
4962 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4965 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4969 wxPy_BEGIN_ALLOW_THREADS
;
4970 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
4972 wxPy_END_ALLOW_THREADS
;
4973 if (PyErr_Occurred()) return NULL
;
4975 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4976 _resultobj
= Py_BuildValue("s",_ptemp
);
4979 _resultobj
= Py_None
;
4988 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4989 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4990 PyObject
* _resultobj
;
4992 wxColourDatabase
* _arg0
;
4994 PyObject
* _argo0
= 0;
4996 PyObject
* _obj1
= 0;
4997 char *_kwnames
[] = { "self","colour", NULL
};
5000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
5003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5011 if (! wxColour_helper(_obj1
, &_arg1
))
5015 wxPy_BEGIN_ALLOW_THREADS
;
5016 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
5018 wxPy_END_ALLOW_THREADS
;
5019 if (PyErr_Occurred()) return NULL
;
5021 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5029 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
5030 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
5032 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5033 PyObject
* _resultobj
;
5034 wxColourDatabase
* _arg0
;
5039 PyObject
* _argo0
= 0;
5040 PyObject
* _obj1
= 0;
5041 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
5044 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5047 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5048 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5049 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5054 #if PYTHON_API_VERSION >= 1009
5055 char* tmpPtr
; int tmpSize
;
5056 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5057 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5060 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5062 _arg1
= new wxString(tmpPtr
, tmpSize
);
5064 if (!PyString_Check(_obj1
)) {
5065 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5068 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5072 wxPy_BEGIN_ALLOW_THREADS
;
5073 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5075 wxPy_END_ALLOW_THREADS
;
5076 if (PyErr_Occurred()) return NULL
;
5077 } Py_INCREF(Py_None
);
5078 _resultobj
= Py_None
;
5086 static void *SwigwxPenTowxGDIObject(void *ptr
) {
5089 src
= (wxPen
*) ptr
;
5090 dest
= (wxGDIObject
*) src
;
5091 return (void *) dest
;
5094 static void *SwigwxPenTowxObject(void *ptr
) {
5097 src
= (wxPen
*) ptr
;
5098 dest
= (wxObject
*) src
;
5099 return (void *) dest
;
5102 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5103 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5104 PyObject
* _resultobj
;
5107 int _arg1
= (int ) 1;
5108 int _arg2
= (int ) wxSOLID
;
5110 PyObject
* _obj0
= 0;
5111 char *_kwnames
[] = { "colour","width","style", NULL
};
5115 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5119 if (! wxColour_helper(_obj0
, &_arg0
))
5123 wxPy_BEGIN_ALLOW_THREADS
;
5124 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
5126 wxPy_END_ALLOW_THREADS
;
5127 if (PyErr_Occurred()) return NULL
;
5129 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5130 _resultobj
= Py_BuildValue("s",_ptemp
);
5133 _resultobj
= Py_None
;
5138 #define delete_wxPen(_swigobj) (delete _swigobj)
5139 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5140 PyObject
* _resultobj
;
5142 PyObject
* _argo0
= 0;
5143 char *_kwnames
[] = { "self", NULL
};
5146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
5149 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5150 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5156 wxPy_BEGIN_ALLOW_THREADS
;
5157 delete_wxPen(_arg0
);
5159 wxPy_END_ALLOW_THREADS
;
5160 if (PyErr_Occurred()) return NULL
;
5161 } Py_INCREF(Py_None
);
5162 _resultobj
= Py_None
;
5166 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5167 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5168 PyObject
* _resultobj
;
5171 PyObject
* _argo0
= 0;
5172 char *_kwnames
[] = { "self", NULL
};
5175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
5178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5185 wxPy_BEGIN_ALLOW_THREADS
;
5186 _result
= (int )wxPen_GetCap(_arg0
);
5188 wxPy_END_ALLOW_THREADS
;
5189 if (PyErr_Occurred()) return NULL
;
5190 } _resultobj
= Py_BuildValue("i",_result
);
5194 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5195 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5196 PyObject
* _resultobj
;
5199 PyObject
* _argo0
= 0;
5200 char *_kwnames
[] = { "self", NULL
};
5204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
5207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5214 wxPy_BEGIN_ALLOW_THREADS
;
5215 _result
= new wxColour (wxPen_GetColour(_arg0
));
5217 wxPy_END_ALLOW_THREADS
;
5218 if (PyErr_Occurred()) return NULL
;
5219 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5220 _resultobj
= Py_BuildValue("s",_ptemp
);
5224 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5225 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5226 PyObject
* _resultobj
;
5229 PyObject
* _argo0
= 0;
5230 char *_kwnames
[] = { "self", NULL
};
5233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
5236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5243 wxPy_BEGIN_ALLOW_THREADS
;
5244 _result
= (int )wxPen_GetJoin(_arg0
);
5246 wxPy_END_ALLOW_THREADS
;
5247 if (PyErr_Occurred()) return NULL
;
5248 } _resultobj
= Py_BuildValue("i",_result
);
5252 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5253 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5254 PyObject
* _resultobj
;
5257 PyObject
* _argo0
= 0;
5258 char *_kwnames
[] = { "self", NULL
};
5261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
5264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5271 wxPy_BEGIN_ALLOW_THREADS
;
5272 _result
= (int )wxPen_GetStyle(_arg0
);
5274 wxPy_END_ALLOW_THREADS
;
5275 if (PyErr_Occurred()) return NULL
;
5276 } _resultobj
= Py_BuildValue("i",_result
);
5280 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5281 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5282 PyObject
* _resultobj
;
5285 PyObject
* _argo0
= 0;
5286 char *_kwnames
[] = { "self", NULL
};
5289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
5292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5299 wxPy_BEGIN_ALLOW_THREADS
;
5300 _result
= (int )wxPen_GetWidth(_arg0
);
5302 wxPy_END_ALLOW_THREADS
;
5303 if (PyErr_Occurred()) return NULL
;
5304 } _resultobj
= Py_BuildValue("i",_result
);
5308 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5309 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5310 PyObject
* _resultobj
;
5313 PyObject
* _argo0
= 0;
5314 char *_kwnames
[] = { "self", NULL
};
5317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
5320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5327 wxPy_BEGIN_ALLOW_THREADS
;
5328 _result
= (bool )wxPen_Ok(_arg0
);
5330 wxPy_END_ALLOW_THREADS
;
5331 if (PyErr_Occurred()) return NULL
;
5332 } _resultobj
= Py_BuildValue("i",_result
);
5336 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5337 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5338 PyObject
* _resultobj
;
5341 PyObject
* _argo0
= 0;
5342 char *_kwnames
[] = { "self","cap_style", NULL
};
5345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
5348 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5349 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5350 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5355 wxPy_BEGIN_ALLOW_THREADS
;
5356 wxPen_SetCap(_arg0
,_arg1
);
5358 wxPy_END_ALLOW_THREADS
;
5359 if (PyErr_Occurred()) return NULL
;
5360 } Py_INCREF(Py_None
);
5361 _resultobj
= Py_None
;
5365 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5366 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5367 PyObject
* _resultobj
;
5370 PyObject
* _argo0
= 0;
5372 PyObject
* _obj1
= 0;
5373 char *_kwnames
[] = { "self","colour", NULL
};
5376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
5379 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5380 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5381 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5387 if (! wxColour_helper(_obj1
, &_arg1
))
5391 wxPy_BEGIN_ALLOW_THREADS
;
5392 wxPen_SetColour(_arg0
,*_arg1
);
5394 wxPy_END_ALLOW_THREADS
;
5395 if (PyErr_Occurred()) return NULL
;
5396 } Py_INCREF(Py_None
);
5397 _resultobj
= Py_None
;
5401 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5402 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5403 PyObject
* _resultobj
;
5406 PyObject
* _argo0
= 0;
5407 char *_kwnames
[] = { "self","join_style", NULL
};
5410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
5413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5420 wxPy_BEGIN_ALLOW_THREADS
;
5421 wxPen_SetJoin(_arg0
,_arg1
);
5423 wxPy_END_ALLOW_THREADS
;
5424 if (PyErr_Occurred()) return NULL
;
5425 } Py_INCREF(Py_None
);
5426 _resultobj
= Py_None
;
5430 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5431 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5432 PyObject
* _resultobj
;
5435 PyObject
* _argo0
= 0;
5436 char *_kwnames
[] = { "self","style", NULL
};
5439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5442 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5443 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5449 wxPy_BEGIN_ALLOW_THREADS
;
5450 wxPen_SetStyle(_arg0
,_arg1
);
5452 wxPy_END_ALLOW_THREADS
;
5453 if (PyErr_Occurred()) return NULL
;
5454 } Py_INCREF(Py_None
);
5455 _resultobj
= Py_None
;
5459 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5460 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5461 PyObject
* _resultobj
;
5464 PyObject
* _argo0
= 0;
5465 char *_kwnames
[] = { "self","width", NULL
};
5468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
5471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5478 wxPy_BEGIN_ALLOW_THREADS
;
5479 wxPen_SetWidth(_arg0
,_arg1
);
5481 wxPy_END_ALLOW_THREADS
;
5482 if (PyErr_Occurred()) return NULL
;
5483 } Py_INCREF(Py_None
);
5484 _resultobj
= Py_None
;
5488 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5489 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5490 PyObject
* _resultobj
;
5494 PyObject
* _argo0
= 0;
5495 PyObject
* _obj2
= 0;
5496 char *_kwnames
[] = { "self","choices", NULL
};
5499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5502 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5503 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5510 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5511 if (_arg2
== NULL
) {
5517 _arg1
= PyList_Size(_obj2
);
5524 wxPy_BEGIN_ALLOW_THREADS
;
5525 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
5527 wxPy_END_ALLOW_THREADS
;
5528 if (PyErr_Occurred()) return NULL
;
5529 } Py_INCREF(Py_None
);
5530 _resultobj
= Py_None
;
5537 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
5538 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5539 PyObject
* _resultobj
;
5542 PyObject
* _argo0
= 0;
5543 char *_kwnames
[] = { "self", NULL
};
5547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
5550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
5557 wxPy_BEGIN_ALLOW_THREADS
;
5558 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
5560 wxPy_END_ALLOW_THREADS
;
5561 if (PyErr_Occurred()) return NULL
;
5563 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5564 _resultobj
= Py_BuildValue("s",_ptemp
);
5567 _resultobj
= Py_None
;
5572 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5573 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5574 PyObject
* _resultobj
;
5577 PyObject
* _argo0
= 0;
5578 PyObject
* _argo1
= 0;
5579 char *_kwnames
[] = { "self","stipple", NULL
};
5582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
5592 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5593 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
5599 wxPy_BEGIN_ALLOW_THREADS
;
5600 wxPen_SetStipple(_arg0
,*_arg1
);
5602 wxPy_END_ALLOW_THREADS
;
5603 if (PyErr_Occurred()) return NULL
;
5604 } Py_INCREF(Py_None
);
5605 _resultobj
= Py_None
;
5609 static void *SwigwxPyPenTowxPen(void *ptr
) {
5612 src
= (wxPyPen
*) ptr
;
5613 dest
= (wxPen
*) src
;
5614 return (void *) dest
;
5617 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
5620 src
= (wxPyPen
*) ptr
;
5621 dest
= (wxGDIObject
*) src
;
5622 return (void *) dest
;
5625 static void *SwigwxPyPenTowxObject(void *ptr
) {
5628 src
= (wxPyPen
*) ptr
;
5629 dest
= (wxObject
*) src
;
5630 return (void *) dest
;
5633 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5634 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5635 PyObject
* _resultobj
;
5638 int _arg1
= (int ) 1;
5639 int _arg2
= (int ) wxSOLID
;
5641 PyObject
* _obj0
= 0;
5642 char *_kwnames
[] = { "colour","width","style", NULL
};
5646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5650 if (! wxColour_helper(_obj0
, &_arg0
))
5654 wxPy_BEGIN_ALLOW_THREADS
;
5655 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
5657 wxPy_END_ALLOW_THREADS
;
5658 if (PyErr_Occurred()) return NULL
;
5660 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
5661 _resultobj
= Py_BuildValue("s",_ptemp
);
5664 _resultobj
= Py_None
;
5669 #define delete_wxPyPen(_swigobj) (delete _swigobj)
5670 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5671 PyObject
* _resultobj
;
5673 PyObject
* _argo0
= 0;
5674 char *_kwnames
[] = { "self", NULL
};
5677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
5680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
5687 wxPy_BEGIN_ALLOW_THREADS
;
5688 delete_wxPyPen(_arg0
);
5690 wxPy_END_ALLOW_THREADS
;
5691 if (PyErr_Occurred()) return NULL
;
5692 } Py_INCREF(Py_None
);
5693 _resultobj
= Py_None
;
5697 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5698 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5699 PyObject
* _resultobj
;
5703 PyObject
* _argo0
= 0;
5704 PyObject
* _obj2
= 0;
5705 char *_kwnames
[] = { "self","choices", NULL
};
5708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5719 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5720 if (_arg2
== NULL
) {
5726 _arg1
= PyList_Size(_obj2
);
5733 wxPy_BEGIN_ALLOW_THREADS
;
5734 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
5736 wxPy_END_ALLOW_THREADS
;
5737 if (PyErr_Occurred()) return NULL
;
5738 } Py_INCREF(Py_None
);
5739 _resultobj
= Py_None
;
5746 static void *SwigwxPenListTowxObject(void *ptr
) {
5749 src
= (wxPenList
*) ptr
;
5750 dest
= (wxObject
*) src
;
5751 return (void *) dest
;
5754 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5755 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5756 PyObject
* _resultobj
;
5759 PyObject
* _argo0
= 0;
5760 PyObject
* _argo1
= 0;
5761 char *_kwnames
[] = { "self","pen", NULL
};
5764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
5767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5774 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5775 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5781 wxPy_BEGIN_ALLOW_THREADS
;
5782 wxPenList_AddPen(_arg0
,_arg1
);
5784 wxPy_END_ALLOW_THREADS
;
5785 if (PyErr_Occurred()) return NULL
;
5786 } Py_INCREF(Py_None
);
5787 _resultobj
= Py_None
;
5791 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5792 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5793 PyObject
* _resultobj
;
5799 PyObject
* _argo0
= 0;
5801 PyObject
* _obj1
= 0;
5802 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5817 if (! wxColour_helper(_obj1
, &_arg1
))
5821 wxPy_BEGIN_ALLOW_THREADS
;
5822 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5824 wxPy_END_ALLOW_THREADS
;
5825 if (PyErr_Occurred()) return NULL
;
5827 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5828 _resultobj
= Py_BuildValue("s",_ptemp
);
5831 _resultobj
= Py_None
;
5836 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5837 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5838 PyObject
* _resultobj
;
5841 PyObject
* _argo0
= 0;
5842 PyObject
* _argo1
= 0;
5843 char *_kwnames
[] = { "self","pen", NULL
};
5846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5856 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5857 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5863 wxPy_BEGIN_ALLOW_THREADS
;
5864 wxPenList_RemovePen(_arg0
,_arg1
);
5866 wxPy_END_ALLOW_THREADS
;
5867 if (PyErr_Occurred()) return NULL
;
5868 } Py_INCREF(Py_None
);
5869 _resultobj
= Py_None
;
5873 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5876 src
= (wxBrush
*) ptr
;
5877 dest
= (wxGDIObject
*) src
;
5878 return (void *) dest
;
5881 static void *SwigwxBrushTowxObject(void *ptr
) {
5884 src
= (wxBrush
*) ptr
;
5885 dest
= (wxObject
*) src
;
5886 return (void *) dest
;
5889 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5890 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5891 PyObject
* _resultobj
;
5894 int _arg1
= (int ) wxSOLID
;
5896 PyObject
* _obj0
= 0;
5897 char *_kwnames
[] = { "colour","style", NULL
};
5901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5905 if (! wxColour_helper(_obj0
, &_arg0
))
5909 wxPy_BEGIN_ALLOW_THREADS
;
5910 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5912 wxPy_END_ALLOW_THREADS
;
5913 if (PyErr_Occurred()) return NULL
;
5915 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5916 _resultobj
= Py_BuildValue("s",_ptemp
);
5919 _resultobj
= Py_None
;
5924 #define delete_wxBrush(_swigobj) (delete _swigobj)
5925 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5926 PyObject
* _resultobj
;
5928 PyObject
* _argo0
= 0;
5929 char *_kwnames
[] = { "self", NULL
};
5932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5942 wxPy_BEGIN_ALLOW_THREADS
;
5943 delete_wxBrush(_arg0
);
5945 wxPy_END_ALLOW_THREADS
;
5946 if (PyErr_Occurred()) return NULL
;
5947 } Py_INCREF(Py_None
);
5948 _resultobj
= Py_None
;
5952 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5953 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5954 PyObject
* _resultobj
;
5957 PyObject
* _argo0
= 0;
5958 char *_kwnames
[] = { "self", NULL
};
5962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5965 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5966 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5972 wxPy_BEGIN_ALLOW_THREADS
;
5973 _result
= new wxColour (wxBrush_GetColour(_arg0
));
5975 wxPy_END_ALLOW_THREADS
;
5976 if (PyErr_Occurred()) return NULL
;
5977 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5978 _resultobj
= Py_BuildValue("s",_ptemp
);
5982 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5983 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5984 PyObject
* _resultobj
;
5987 PyObject
* _argo0
= 0;
5988 char *_kwnames
[] = { "self", NULL
};
5992 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
5995 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5996 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5997 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6002 wxPy_BEGIN_ALLOW_THREADS
;
6003 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
6005 wxPy_END_ALLOW_THREADS
;
6006 if (PyErr_Occurred()) return NULL
;
6008 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
6009 _resultobj
= Py_BuildValue("s",_ptemp
);
6012 _resultobj
= Py_None
;
6017 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6018 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6019 PyObject
* _resultobj
;
6022 PyObject
* _argo0
= 0;
6023 char *_kwnames
[] = { "self", NULL
};
6026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
6029 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6030 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6036 wxPy_BEGIN_ALLOW_THREADS
;
6037 _result
= (int )wxBrush_GetStyle(_arg0
);
6039 wxPy_END_ALLOW_THREADS
;
6040 if (PyErr_Occurred()) return NULL
;
6041 } _resultobj
= Py_BuildValue("i",_result
);
6045 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6046 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6047 PyObject
* _resultobj
;
6050 PyObject
* _argo0
= 0;
6051 char *_kwnames
[] = { "self", NULL
};
6054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
6057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6064 wxPy_BEGIN_ALLOW_THREADS
;
6065 _result
= (bool )wxBrush_Ok(_arg0
);
6067 wxPy_END_ALLOW_THREADS
;
6068 if (PyErr_Occurred()) return NULL
;
6069 } _resultobj
= Py_BuildValue("i",_result
);
6073 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6074 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6075 PyObject
* _resultobj
;
6078 PyObject
* _argo0
= 0;
6080 PyObject
* _obj1
= 0;
6081 char *_kwnames
[] = { "self","colour", NULL
};
6084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
6087 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6088 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6095 if (! wxColour_helper(_obj1
, &_arg1
))
6099 wxPy_BEGIN_ALLOW_THREADS
;
6100 wxBrush_SetColour(_arg0
,*_arg1
);
6102 wxPy_END_ALLOW_THREADS
;
6103 if (PyErr_Occurred()) return NULL
;
6104 } Py_INCREF(Py_None
);
6105 _resultobj
= Py_None
;
6109 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6110 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6111 PyObject
* _resultobj
;
6114 PyObject
* _argo0
= 0;
6115 PyObject
* _argo1
= 0;
6116 char *_kwnames
[] = { "self","bitmap", NULL
};
6119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
6122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6129 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6130 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6136 wxPy_BEGIN_ALLOW_THREADS
;
6137 wxBrush_SetStipple(_arg0
,*_arg1
);
6139 wxPy_END_ALLOW_THREADS
;
6140 if (PyErr_Occurred()) return NULL
;
6141 } Py_INCREF(Py_None
);
6142 _resultobj
= Py_None
;
6146 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6147 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6148 PyObject
* _resultobj
;
6151 PyObject
* _argo0
= 0;
6152 char *_kwnames
[] = { "self","style", NULL
};
6155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
6158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6165 wxPy_BEGIN_ALLOW_THREADS
;
6166 wxBrush_SetStyle(_arg0
,_arg1
);
6168 wxPy_END_ALLOW_THREADS
;
6169 if (PyErr_Occurred()) return NULL
;
6170 } Py_INCREF(Py_None
);
6171 _resultobj
= Py_None
;
6175 static void *SwigwxBrushListTowxObject(void *ptr
) {
6178 src
= (wxBrushList
*) ptr
;
6179 dest
= (wxObject
*) src
;
6180 return (void *) dest
;
6183 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6184 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6185 PyObject
* _resultobj
;
6186 wxBrushList
* _arg0
;
6188 PyObject
* _argo0
= 0;
6189 PyObject
* _argo1
= 0;
6190 char *_kwnames
[] = { "self","brush", NULL
};
6193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
6196 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6197 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6203 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6204 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6210 wxPy_BEGIN_ALLOW_THREADS
;
6211 wxBrushList_AddBrush(_arg0
,_arg1
);
6213 wxPy_END_ALLOW_THREADS
;
6214 if (PyErr_Occurred()) return NULL
;
6215 } Py_INCREF(Py_None
);
6216 _resultobj
= Py_None
;
6220 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6221 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6222 PyObject
* _resultobj
;
6224 wxBrushList
* _arg0
;
6227 PyObject
* _argo0
= 0;
6229 PyObject
* _obj1
= 0;
6230 char *_kwnames
[] = { "self","colour","style", NULL
};
6234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
6237 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6238 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6245 if (! wxColour_helper(_obj1
, &_arg1
))
6249 wxPy_BEGIN_ALLOW_THREADS
;
6250 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
6252 wxPy_END_ALLOW_THREADS
;
6253 if (PyErr_Occurred()) return NULL
;
6255 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6256 _resultobj
= Py_BuildValue("s",_ptemp
);
6259 _resultobj
= Py_None
;
6264 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6265 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6266 PyObject
* _resultobj
;
6267 wxBrushList
* _arg0
;
6269 PyObject
* _argo0
= 0;
6270 PyObject
* _argo1
= 0;
6271 char *_kwnames
[] = { "self","brush", NULL
};
6274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
6277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6284 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6285 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6291 wxPy_BEGIN_ALLOW_THREADS
;
6292 wxBrushList_RemoveBrush(_arg0
,_arg1
);
6294 wxPy_END_ALLOW_THREADS
;
6295 if (PyErr_Occurred()) return NULL
;
6296 } Py_INCREF(Py_None
);
6297 _resultobj
= Py_None
;
6301 static void *SwigwxDCTowxObject(void *ptr
) {
6305 dest
= (wxObject
*) src
;
6306 return (void *) dest
;
6309 #define delete_wxDC(_swigobj) (delete _swigobj)
6310 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6311 PyObject
* _resultobj
;
6313 PyObject
* _argo0
= 0;
6314 char *_kwnames
[] = { "self", NULL
};
6317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
6320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6327 wxPy_BEGIN_ALLOW_THREADS
;
6330 wxPy_END_ALLOW_THREADS
;
6331 if (PyErr_Occurred()) return NULL
;
6332 } Py_INCREF(Py_None
);
6333 _resultobj
= Py_None
;
6337 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6338 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6339 PyObject
* _resultobj
;
6341 PyObject
* _argo0
= 0;
6342 char *_kwnames
[] = { "self", NULL
};
6345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
6348 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6349 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6350 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6355 wxPy_BEGIN_ALLOW_THREADS
;
6356 wxDC_BeginDrawing(_arg0
);
6358 wxPy_END_ALLOW_THREADS
;
6359 if (PyErr_Occurred()) return NULL
;
6360 } Py_INCREF(Py_None
);
6361 _resultobj
= Py_None
;
6365 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6366 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6367 PyObject
* _resultobj
;
6377 int _arg8
= (int ) wxCOPY
;
6378 int _arg9
= (int ) FALSE
;
6379 PyObject
* _argo0
= 0;
6380 PyObject
* _argo5
= 0;
6381 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
6384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
6387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6394 if (_argo5
== Py_None
) { _arg5
= NULL
; }
6395 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
6396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6401 wxPy_BEGIN_ALLOW_THREADS
;
6402 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
6404 wxPy_END_ALLOW_THREADS
;
6405 if (PyErr_Occurred()) return NULL
;
6406 } _resultobj
= Py_BuildValue("i",_result
);
6410 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6411 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6412 PyObject
* _resultobj
;
6414 PyObject
* _argo0
= 0;
6415 char *_kwnames
[] = { "self", NULL
};
6418 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
6421 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6422 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6423 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6428 wxPy_BEGIN_ALLOW_THREADS
;
6431 wxPy_END_ALLOW_THREADS
;
6432 if (PyErr_Occurred()) return NULL
;
6433 } Py_INCREF(Py_None
);
6434 _resultobj
= Py_None
;
6438 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6439 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6440 PyObject
* _resultobj
;
6444 PyObject
* _argo0
= 0;
6445 char *_kwnames
[] = { "self","x","y", NULL
};
6448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6458 wxPy_BEGIN_ALLOW_THREADS
;
6459 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
6461 wxPy_END_ALLOW_THREADS
;
6462 if (PyErr_Occurred()) return NULL
;
6463 } Py_INCREF(Py_None
);
6464 _resultobj
= Py_None
;
6468 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6469 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6470 PyObject
* _resultobj
;
6472 PyObject
* _argo0
= 0;
6473 char *_kwnames
[] = { "self", NULL
};
6476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
6479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6486 wxPy_BEGIN_ALLOW_THREADS
;
6487 wxDC_DestroyClippingRegion(_arg0
);
6489 wxPy_END_ALLOW_THREADS
;
6490 if (PyErr_Occurred()) return NULL
;
6491 } Py_INCREF(Py_None
);
6492 _resultobj
= Py_None
;
6496 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6497 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6498 PyObject
* _resultobj
;
6502 PyObject
* _argo0
= 0;
6503 char *_kwnames
[] = { "self","x", NULL
};
6506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
6509 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6510 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6516 wxPy_BEGIN_ALLOW_THREADS
;
6517 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
6519 wxPy_END_ALLOW_THREADS
;
6520 if (PyErr_Occurred()) return NULL
;
6521 } _resultobj
= Py_BuildValue("l",_result
);
6525 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6526 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6527 PyObject
* _resultobj
;
6531 PyObject
* _argo0
= 0;
6532 char *_kwnames
[] = { "self","x", NULL
};
6535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
6538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6545 wxPy_BEGIN_ALLOW_THREADS
;
6546 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
6548 wxPy_END_ALLOW_THREADS
;
6549 if (PyErr_Occurred()) return NULL
;
6550 } _resultobj
= Py_BuildValue("l",_result
);
6554 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6555 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6556 PyObject
* _resultobj
;
6560 PyObject
* _argo0
= 0;
6561 char *_kwnames
[] = { "self","y", NULL
};
6564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
6567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6574 wxPy_BEGIN_ALLOW_THREADS
;
6575 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
6577 wxPy_END_ALLOW_THREADS
;
6578 if (PyErr_Occurred()) return NULL
;
6579 } _resultobj
= Py_BuildValue("l",_result
);
6583 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6584 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6585 PyObject
* _resultobj
;
6589 PyObject
* _argo0
= 0;
6590 char *_kwnames
[] = { "self","y", NULL
};
6593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
6596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6603 wxPy_BEGIN_ALLOW_THREADS
;
6604 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
6606 wxPy_END_ALLOW_THREADS
;
6607 if (PyErr_Occurred()) return NULL
;
6608 } _resultobj
= Py_BuildValue("l",_result
);
6612 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6613 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6614 PyObject
* _resultobj
;
6622 PyObject
* _argo0
= 0;
6623 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
6626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6636 wxPy_BEGIN_ALLOW_THREADS
;
6637 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6639 wxPy_END_ALLOW_THREADS
;
6640 if (PyErr_Occurred()) return NULL
;
6641 } Py_INCREF(Py_None
);
6642 _resultobj
= Py_None
;
6646 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6647 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6648 PyObject
* _resultobj
;
6653 PyObject
* _argo0
= 0;
6654 char *_kwnames
[] = { "self","x","y","radius", NULL
};
6657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
6660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6667 wxPy_BEGIN_ALLOW_THREADS
;
6668 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
6670 wxPy_END_ALLOW_THREADS
;
6671 if (PyErr_Occurred()) return NULL
;
6672 } Py_INCREF(Py_None
);
6673 _resultobj
= Py_None
;
6677 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6678 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6679 PyObject
* _resultobj
;
6685 PyObject
* _argo0
= 0;
6686 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6699 wxPy_BEGIN_ALLOW_THREADS
;
6700 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6702 wxPy_END_ALLOW_THREADS
;
6703 if (PyErr_Occurred()) return NULL
;
6704 } Py_INCREF(Py_None
);
6705 _resultobj
= Py_None
;
6709 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6710 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6711 PyObject
* _resultobj
;
6719 PyObject
* _argo0
= 0;
6720 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
6723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6733 wxPy_BEGIN_ALLOW_THREADS
;
6734 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6736 wxPy_END_ALLOW_THREADS
;
6737 if (PyErr_Occurred()) return NULL
;
6738 } Py_INCREF(Py_None
);
6739 _resultobj
= Py_None
;
6743 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6744 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6745 PyObject
* _resultobj
;
6750 PyObject
* _argo0
= 0;
6751 PyObject
* _argo1
= 0;
6752 char *_kwnames
[] = { "self","icon","x","y", NULL
};
6755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
6758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6765 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6766 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
6767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6772 wxPy_BEGIN_ALLOW_THREADS
;
6773 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
6775 wxPy_END_ALLOW_THREADS
;
6776 if (PyErr_Occurred()) return NULL
;
6777 } Py_INCREF(Py_None
);
6778 _resultobj
= Py_None
;
6782 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6783 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6784 PyObject
* _resultobj
;
6790 PyObject
* _argo0
= 0;
6791 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
6794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6797 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6798 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6804 wxPy_BEGIN_ALLOW_THREADS
;
6805 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6807 wxPy_END_ALLOW_THREADS
;
6808 if (PyErr_Occurred()) return NULL
;
6809 } Py_INCREF(Py_None
);
6810 _resultobj
= Py_None
;
6814 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6815 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6816 PyObject
* _resultobj
;
6820 long _arg3
= (long ) 0;
6821 long _arg4
= (long ) 0;
6822 PyObject
* _argo0
= 0;
6824 PyObject
* _obj2
= 0;
6825 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
6828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
6831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6839 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6840 if (_arg2
== NULL
) {
6848 wxPy_BEGIN_ALLOW_THREADS
;
6849 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6851 wxPy_END_ALLOW_THREADS
;
6852 if (PyErr_Occurred()) return NULL
;
6853 } Py_INCREF(Py_None
);
6854 _resultobj
= Py_None
;
6861 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6862 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6863 PyObject
* _resultobj
;
6867 long _arg3
= (long ) 0;
6868 long _arg4
= (long ) 0;
6869 int _arg5
= (int ) wxODDEVEN_RULE
;
6870 PyObject
* _argo0
= 0;
6872 PyObject
* _obj2
= 0;
6873 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6879 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6880 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6887 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6888 if (_arg2
== NULL
) {
6896 wxPy_BEGIN_ALLOW_THREADS
;
6897 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6899 wxPy_END_ALLOW_THREADS
;
6900 if (PyErr_Occurred()) return NULL
;
6901 } Py_INCREF(Py_None
);
6902 _resultobj
= Py_None
;
6909 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6910 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6911 PyObject
* _resultobj
;
6915 PyObject
* _argo0
= 0;
6916 char *_kwnames
[] = { "self","x","y", NULL
};
6919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6929 wxPy_BEGIN_ALLOW_THREADS
;
6930 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6932 wxPy_END_ALLOW_THREADS
;
6933 if (PyErr_Occurred()) return NULL
;
6934 } Py_INCREF(Py_None
);
6935 _resultobj
= Py_None
;
6939 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6940 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6941 PyObject
* _resultobj
;
6947 PyObject
* _argo0
= 0;
6948 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6954 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6955 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6961 wxPy_BEGIN_ALLOW_THREADS
;
6962 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6964 wxPy_END_ALLOW_THREADS
;
6965 if (PyErr_Occurred()) return NULL
;
6966 } Py_INCREF(Py_None
);
6967 _resultobj
= Py_None
;
6971 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6972 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6973 PyObject
* _resultobj
;
6979 PyObject
* _argo0
= 0;
6980 PyObject
* _obj1
= 0;
6981 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6987 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6988 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6994 #if PYTHON_API_VERSION >= 1009
6995 char* tmpPtr
; int tmpSize
;
6996 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6997 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7000 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7002 _arg1
= new wxString(tmpPtr
, tmpSize
);
7004 if (!PyString_Check(_obj1
)) {
7005 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7008 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7012 wxPy_BEGIN_ALLOW_THREADS
;
7013 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7015 wxPy_END_ALLOW_THREADS
;
7016 if (PyErr_Occurred()) return NULL
;
7017 } Py_INCREF(Py_None
);
7018 _resultobj
= Py_None
;
7026 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7027 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7028 PyObject
* _resultobj
;
7034 long _arg5
= (long ) 20;
7035 PyObject
* _argo0
= 0;
7036 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
7039 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
7042 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7043 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7044 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7049 wxPy_BEGIN_ALLOW_THREADS
;
7050 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7052 wxPy_END_ALLOW_THREADS
;
7053 if (PyErr_Occurred()) return NULL
;
7054 } Py_INCREF(Py_None
);
7055 _resultobj
= Py_None
;
7059 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7060 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7061 PyObject
* _resultobj
;
7065 PyObject
* _argo0
= 0;
7067 PyObject
* _obj2
= 0;
7068 char *_kwnames
[] = { "self","points", NULL
};
7071 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
7074 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7075 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7076 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7082 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7083 if (_arg2
== NULL
) {
7091 wxPy_BEGIN_ALLOW_THREADS
;
7092 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
7094 wxPy_END_ALLOW_THREADS
;
7095 if (PyErr_Occurred()) return NULL
;
7096 } Py_INCREF(Py_None
);
7097 _resultobj
= Py_None
;
7104 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7105 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7106 PyObject
* _resultobj
;
7111 PyObject
* _argo0
= 0;
7112 PyObject
* _obj1
= 0;
7113 char *_kwnames
[] = { "self","text","x","y", NULL
};
7116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
7119 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7120 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7126 #if PYTHON_API_VERSION >= 1009
7127 char* tmpPtr
; int tmpSize
;
7128 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7129 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7132 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7134 _arg1
= new wxString(tmpPtr
, tmpSize
);
7136 if (!PyString_Check(_obj1
)) {
7137 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7140 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7144 wxPy_BEGIN_ALLOW_THREADS
;
7145 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
7147 wxPy_END_ALLOW_THREADS
;
7148 if (PyErr_Occurred()) return NULL
;
7149 } Py_INCREF(Py_None
);
7150 _resultobj
= Py_None
;
7158 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7159 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7160 PyObject
* _resultobj
;
7162 PyObject
* _argo0
= 0;
7163 char *_kwnames
[] = { "self", NULL
};
7166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
7169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7176 wxPy_BEGIN_ALLOW_THREADS
;
7179 wxPy_END_ALLOW_THREADS
;
7180 if (PyErr_Occurred()) return NULL
;
7181 } Py_INCREF(Py_None
);
7182 _resultobj
= Py_None
;
7186 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7187 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7188 PyObject
* _resultobj
;
7190 PyObject
* _argo0
= 0;
7191 char *_kwnames
[] = { "self", NULL
};
7194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
7197 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7198 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7204 wxPy_BEGIN_ALLOW_THREADS
;
7205 wxDC_EndDrawing(_arg0
);
7207 wxPy_END_ALLOW_THREADS
;
7208 if (PyErr_Occurred()) return NULL
;
7209 } Py_INCREF(Py_None
);
7210 _resultobj
= Py_None
;
7214 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7215 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7216 PyObject
* _resultobj
;
7218 PyObject
* _argo0
= 0;
7219 char *_kwnames
[] = { "self", NULL
};
7222 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
7225 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7226 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7227 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7232 wxPy_BEGIN_ALLOW_THREADS
;
7233 wxDC_EndPage(_arg0
);
7235 wxPy_END_ALLOW_THREADS
;
7236 if (PyErr_Occurred()) return NULL
;
7237 } Py_INCREF(Py_None
);
7238 _resultobj
= Py_None
;
7242 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7243 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7244 PyObject
* _resultobj
;
7249 int _arg4
= (int ) wxFLOOD_SURFACE
;
7250 PyObject
* _argo0
= 0;
7252 PyObject
* _obj3
= 0;
7253 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
7256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
7259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7267 if (! wxColour_helper(_obj3
, &_arg3
))
7271 wxPy_BEGIN_ALLOW_THREADS
;
7272 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
7274 wxPy_END_ALLOW_THREADS
;
7275 if (PyErr_Occurred()) return NULL
;
7276 } Py_INCREF(Py_None
);
7277 _resultobj
= Py_None
;
7281 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7282 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7283 PyObject
* _resultobj
;
7286 PyObject
* _argo0
= 0;
7287 char *_kwnames
[] = { "self", NULL
};
7291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
7294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7301 wxPy_BEGIN_ALLOW_THREADS
;
7302 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
7303 _result
= (wxBrush
*) &_result_ref
;
7305 wxPy_END_ALLOW_THREADS
;
7306 if (PyErr_Occurred()) return NULL
;
7308 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
7309 _resultobj
= Py_BuildValue("s",_ptemp
);
7312 _resultobj
= Py_None
;
7317 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7318 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7319 PyObject
* _resultobj
;
7322 PyObject
* _argo0
= 0;
7323 char *_kwnames
[] = { "self", NULL
};
7327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
7330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7337 wxPy_BEGIN_ALLOW_THREADS
;
7338 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
7339 _result
= (wxBrush
*) &_result_ref
;
7341 wxPy_END_ALLOW_THREADS
;
7342 if (PyErr_Occurred()) return NULL
;
7344 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
7345 _resultobj
= Py_BuildValue("s",_ptemp
);
7348 _resultobj
= Py_None
;
7353 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7354 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7355 PyObject
* _resultobj
;
7358 PyObject
* _argo0
= 0;
7359 char *_kwnames
[] = { "self", NULL
};
7362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
7365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7372 wxPy_BEGIN_ALLOW_THREADS
;
7373 _result
= (long )wxDC_GetCharHeight(_arg0
);
7375 wxPy_END_ALLOW_THREADS
;
7376 if (PyErr_Occurred()) return NULL
;
7377 } _resultobj
= Py_BuildValue("l",_result
);
7381 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7382 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7383 PyObject
* _resultobj
;
7386 PyObject
* _argo0
= 0;
7387 char *_kwnames
[] = { "self", NULL
};
7390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
7393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7400 wxPy_BEGIN_ALLOW_THREADS
;
7401 _result
= (long )wxDC_GetCharWidth(_arg0
);
7403 wxPy_END_ALLOW_THREADS
;
7404 if (PyErr_Occurred()) return NULL
;
7405 } _resultobj
= Py_BuildValue("l",_result
);
7409 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7410 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7411 PyObject
* _resultobj
;
7421 PyObject
* _argo0
= 0;
7422 char *_kwnames
[] = { "self", NULL
};
7437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
7440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7447 wxPy_BEGIN_ALLOW_THREADS
;
7448 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7450 wxPy_END_ALLOW_THREADS
;
7451 if (PyErr_Occurred()) return NULL
;
7452 } Py_INCREF(Py_None
);
7453 _resultobj
= Py_None
;
7456 o
= PyInt_FromLong((long) (*_arg1
));
7457 _resultobj
= t_output_helper(_resultobj
, o
);
7461 o
= PyInt_FromLong((long) (*_arg2
));
7462 _resultobj
= t_output_helper(_resultobj
, o
);
7466 o
= PyInt_FromLong((long) (*_arg3
));
7467 _resultobj
= t_output_helper(_resultobj
, o
);
7471 o
= PyInt_FromLong((long) (*_arg4
));
7472 _resultobj
= t_output_helper(_resultobj
, o
);
7477 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7478 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7479 PyObject
* _resultobj
;
7482 PyObject
* _argo0
= 0;
7483 char *_kwnames
[] = { "self", NULL
};
7487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
7490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7497 wxPy_BEGIN_ALLOW_THREADS
;
7498 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
7499 _result
= (wxFont
*) &_result_ref
;
7501 wxPy_END_ALLOW_THREADS
;
7502 if (PyErr_Occurred()) return NULL
;
7504 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
7505 _resultobj
= Py_BuildValue("s",_ptemp
);
7508 _resultobj
= Py_None
;
7513 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7514 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7515 PyObject
* _resultobj
;
7518 PyObject
* _argo0
= 0;
7519 char *_kwnames
[] = { "self", NULL
};
7522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
7525 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7526 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7532 wxPy_BEGIN_ALLOW_THREADS
;
7533 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
7535 wxPy_END_ALLOW_THREADS
;
7536 if (PyErr_Occurred()) return NULL
;
7537 } _resultobj
= Py_BuildValue("i",_result
);
7541 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7542 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7543 PyObject
* _resultobj
;
7549 PyObject
* _argo0
= 0;
7550 char *_kwnames
[] = { "self", NULL
};
7559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
7562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7569 wxPy_BEGIN_ALLOW_THREADS
;
7570 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
7572 wxPy_END_ALLOW_THREADS
;
7573 if (PyErr_Occurred()) return NULL
;
7574 } Py_INCREF(Py_None
);
7575 _resultobj
= Py_None
;
7578 o
= PyFloat_FromDouble((double) (*_arg1
));
7579 _resultobj
= t_output_helper(_resultobj
, o
);
7583 o
= PyFloat_FromDouble((double) (*_arg2
));
7584 _resultobj
= t_output_helper(_resultobj
, o
);
7589 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7590 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7591 PyObject
* _resultobj
;
7594 PyObject
* _argo0
= 0;
7595 char *_kwnames
[] = { "self", NULL
};
7598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
7601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7608 wxPy_BEGIN_ALLOW_THREADS
;
7609 _result
= (int )wxDC_GetMapMode(_arg0
);
7611 wxPy_END_ALLOW_THREADS
;
7612 if (PyErr_Occurred()) return NULL
;
7613 } _resultobj
= Py_BuildValue("i",_result
);
7617 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7618 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7619 PyObject
* _resultobj
;
7622 PyObject
* _argo0
= 0;
7623 char *_kwnames
[] = { "self", NULL
};
7626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
7629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7636 wxPy_BEGIN_ALLOW_THREADS
;
7637 _result
= (bool )wxDC_GetOptimization(_arg0
);
7639 wxPy_END_ALLOW_THREADS
;
7640 if (PyErr_Occurred()) return NULL
;
7641 } _resultobj
= Py_BuildValue("i",_result
);
7645 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7646 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7647 PyObject
* _resultobj
;
7650 PyObject
* _argo0
= 0;
7651 char *_kwnames
[] = { "self", NULL
};
7655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
7658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7665 wxPy_BEGIN_ALLOW_THREADS
;
7666 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
7667 _result
= (wxPen
*) &_result_ref
;
7669 wxPy_END_ALLOW_THREADS
;
7670 if (PyErr_Occurred()) return NULL
;
7672 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
7673 _resultobj
= Py_BuildValue("s",_ptemp
);
7676 _resultobj
= Py_None
;
7681 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
7682 wxColour
* wc
= new wxColour();
7683 self
->GetPixel(x
, y
, wc
);
7686 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7687 PyObject
* _resultobj
;
7692 PyObject
* _argo0
= 0;
7693 char *_kwnames
[] = { "self","x","y", NULL
};
7697 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7700 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7701 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7702 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7707 wxPy_BEGIN_ALLOW_THREADS
;
7708 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
7710 wxPy_END_ALLOW_THREADS
;
7711 if (PyErr_Occurred()) return NULL
;
7713 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7714 _resultobj
= Py_BuildValue("s",_ptemp
);
7717 _resultobj
= Py_None
;
7722 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7723 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7724 PyObject
* _resultobj
;
7730 PyObject
* _argo0
= 0;
7731 char *_kwnames
[] = { "self", NULL
};
7740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
7743 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7744 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7745 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7750 wxPy_BEGIN_ALLOW_THREADS
;
7751 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
7753 wxPy_END_ALLOW_THREADS
;
7754 if (PyErr_Occurred()) return NULL
;
7755 } Py_INCREF(Py_None
);
7756 _resultobj
= Py_None
;
7759 o
= PyInt_FromLong((long) (*_arg1
));
7760 _resultobj
= t_output_helper(_resultobj
, o
);
7764 o
= PyInt_FromLong((long) (*_arg2
));
7765 _resultobj
= t_output_helper(_resultobj
, o
);
7770 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7771 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7772 PyObject
* _resultobj
;
7775 PyObject
* _argo0
= 0;
7776 char *_kwnames
[] = { "self", NULL
};
7780 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
7783 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7784 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7785 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7790 wxPy_BEGIN_ALLOW_THREADS
;
7791 _result
= new wxSize (wxDC_GetSize(_arg0
));
7793 wxPy_END_ALLOW_THREADS
;
7794 if (PyErr_Occurred()) return NULL
;
7795 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7796 _resultobj
= Py_BuildValue("s",_ptemp
);
7800 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7801 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7802 PyObject
* _resultobj
;
7805 PyObject
* _argo0
= 0;
7806 char *_kwnames
[] = { "self", NULL
};
7810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7813 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7814 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7820 wxPy_BEGIN_ALLOW_THREADS
;
7821 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
7823 wxPy_END_ALLOW_THREADS
;
7824 if (PyErr_Occurred()) return NULL
;
7825 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7826 _resultobj
= Py_BuildValue("s",_ptemp
);
7830 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7831 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7832 PyObject
* _resultobj
;
7835 PyObject
* _argo0
= 0;
7836 char *_kwnames
[] = { "self", NULL
};
7840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
7843 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7844 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7850 wxPy_BEGIN_ALLOW_THREADS
;
7851 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
7853 wxPy_END_ALLOW_THREADS
;
7854 if (PyErr_Occurred()) return NULL
;
7855 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7856 _resultobj
= Py_BuildValue("s",_ptemp
);
7860 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7861 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7862 PyObject
* _resultobj
;
7869 PyObject
* _argo0
= 0;
7870 PyObject
* _obj1
= 0;
7871 char *_kwnames
[] = { "self","string", NULL
};
7880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7883 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7884 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7890 #if PYTHON_API_VERSION >= 1009
7891 char* tmpPtr
; int tmpSize
;
7892 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7893 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7896 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7898 _arg1
= new wxString(tmpPtr
, tmpSize
);
7900 if (!PyString_Check(_obj1
)) {
7901 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7904 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7908 wxPy_BEGIN_ALLOW_THREADS
;
7909 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7911 wxPy_END_ALLOW_THREADS
;
7912 if (PyErr_Occurred()) return NULL
;
7913 } Py_INCREF(Py_None
);
7914 _resultobj
= Py_None
;
7917 o
= PyInt_FromLong((long) (*_arg2
));
7918 _resultobj
= t_output_helper(_resultobj
, o
);
7922 o
= PyInt_FromLong((long) (*_arg3
));
7923 _resultobj
= t_output_helper(_resultobj
, o
);
7932 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7933 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7934 PyObject
* _resultobj
;
7945 wxFont
* _arg6
= (wxFont
*) NULL
;
7946 PyObject
* _argo0
= 0;
7947 PyObject
* _obj1
= 0;
7948 PyObject
* _argo6
= 0;
7949 char *_kwnames
[] = { "self","string","font", NULL
};
7964 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7967 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7968 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7969 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7974 #if PYTHON_API_VERSION >= 1009
7975 char* tmpPtr
; int tmpSize
;
7976 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7977 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7980 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7982 _arg1
= new wxString(tmpPtr
, tmpSize
);
7984 if (!PyString_Check(_obj1
)) {
7985 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7988 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7992 if (_argo6
== Py_None
) { _arg6
= NULL
; }
7993 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
7994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7999 wxPy_BEGIN_ALLOW_THREADS
;
8000 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8002 wxPy_END_ALLOW_THREADS
;
8003 if (PyErr_Occurred()) return NULL
;
8004 } Py_INCREF(Py_None
);
8005 _resultobj
= Py_None
;
8008 o
= PyInt_FromLong((long) (*_arg2
));
8009 _resultobj
= t_output_helper(_resultobj
, o
);
8013 o
= PyInt_FromLong((long) (*_arg3
));
8014 _resultobj
= t_output_helper(_resultobj
, o
);
8018 o
= PyInt_FromLong((long) (*_arg4
));
8019 _resultobj
= t_output_helper(_resultobj
, o
);
8023 o
= PyInt_FromLong((long) (*_arg5
));
8024 _resultobj
= t_output_helper(_resultobj
, o
);
8033 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8034 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8035 PyObject
* _resultobj
;
8038 PyObject
* _argo0
= 0;
8039 char *_kwnames
[] = { "self", NULL
};
8043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
8046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8053 wxPy_BEGIN_ALLOW_THREADS
;
8054 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
8056 wxPy_END_ALLOW_THREADS
;
8057 if (PyErr_Occurred()) return NULL
;
8058 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8059 _resultobj
= Py_BuildValue("s",_ptemp
);
8063 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8064 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8065 PyObject
* _resultobj
;
8071 PyObject
* _argo0
= 0;
8072 char *_kwnames
[] = { "self", NULL
};
8081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
8084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8091 wxPy_BEGIN_ALLOW_THREADS
;
8092 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
8094 wxPy_END_ALLOW_THREADS
;
8095 if (PyErr_Occurred()) return NULL
;
8096 } Py_INCREF(Py_None
);
8097 _resultobj
= Py_None
;
8100 o
= PyFloat_FromDouble((double) (*_arg1
));
8101 _resultobj
= t_output_helper(_resultobj
, o
);
8105 o
= PyFloat_FromDouble((double) (*_arg2
));
8106 _resultobj
= t_output_helper(_resultobj
, o
);
8111 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8112 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8113 PyObject
* _resultobj
;
8117 PyObject
* _argo0
= 0;
8118 char *_kwnames
[] = { "self","x", NULL
};
8121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
8124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8131 wxPy_BEGIN_ALLOW_THREADS
;
8132 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
8134 wxPy_END_ALLOW_THREADS
;
8135 if (PyErr_Occurred()) return NULL
;
8136 } _resultobj
= Py_BuildValue("l",_result
);
8140 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8141 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8142 PyObject
* _resultobj
;
8146 PyObject
* _argo0
= 0;
8147 char *_kwnames
[] = { "self","x", NULL
};
8150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
8153 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8154 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8155 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8160 wxPy_BEGIN_ALLOW_THREADS
;
8161 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
8163 wxPy_END_ALLOW_THREADS
;
8164 if (PyErr_Occurred()) return NULL
;
8165 } _resultobj
= Py_BuildValue("l",_result
);
8169 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8170 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8171 PyObject
* _resultobj
;
8175 PyObject
* _argo0
= 0;
8176 char *_kwnames
[] = { "self","y", NULL
};
8179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
8182 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8183 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8184 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8189 wxPy_BEGIN_ALLOW_THREADS
;
8190 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
8192 wxPy_END_ALLOW_THREADS
;
8193 if (PyErr_Occurred()) return NULL
;
8194 } _resultobj
= Py_BuildValue("l",_result
);
8198 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8199 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8200 PyObject
* _resultobj
;
8204 PyObject
* _argo0
= 0;
8205 char *_kwnames
[] = { "self","y", NULL
};
8208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
8211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8218 wxPy_BEGIN_ALLOW_THREADS
;
8219 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
8221 wxPy_END_ALLOW_THREADS
;
8222 if (PyErr_Occurred()) return NULL
;
8223 } _resultobj
= Py_BuildValue("l",_result
);
8227 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8228 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8229 PyObject
* _resultobj
;
8232 PyObject
* _argo0
= 0;
8233 char *_kwnames
[] = { "self", NULL
};
8236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
8239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8246 wxPy_BEGIN_ALLOW_THREADS
;
8247 _result
= (long )wxDC_MaxX(_arg0
);
8249 wxPy_END_ALLOW_THREADS
;
8250 if (PyErr_Occurred()) return NULL
;
8251 } _resultobj
= Py_BuildValue("l",_result
);
8255 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8256 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8257 PyObject
* _resultobj
;
8260 PyObject
* _argo0
= 0;
8261 char *_kwnames
[] = { "self", NULL
};
8264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
8267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8274 wxPy_BEGIN_ALLOW_THREADS
;
8275 _result
= (long )wxDC_MaxY(_arg0
);
8277 wxPy_END_ALLOW_THREADS
;
8278 if (PyErr_Occurred()) return NULL
;
8279 } _resultobj
= Py_BuildValue("l",_result
);
8283 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
8284 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8285 PyObject
* _resultobj
;
8288 PyObject
* _argo0
= 0;
8289 char *_kwnames
[] = { "self", NULL
};
8292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
8295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8302 wxPy_BEGIN_ALLOW_THREADS
;
8303 _result
= (long )wxDC_MinX(_arg0
);
8305 wxPy_END_ALLOW_THREADS
;
8306 if (PyErr_Occurred()) return NULL
;
8307 } _resultobj
= Py_BuildValue("l",_result
);
8311 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8312 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8313 PyObject
* _resultobj
;
8316 PyObject
* _argo0
= 0;
8317 char *_kwnames
[] = { "self", NULL
};
8320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
8323 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8324 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8330 wxPy_BEGIN_ALLOW_THREADS
;
8331 _result
= (long )wxDC_MinY(_arg0
);
8333 wxPy_END_ALLOW_THREADS
;
8334 if (PyErr_Occurred()) return NULL
;
8335 } _resultobj
= Py_BuildValue("l",_result
);
8339 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8340 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8341 PyObject
* _resultobj
;
8344 PyObject
* _argo0
= 0;
8345 char *_kwnames
[] = { "self", NULL
};
8348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
8351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8358 wxPy_BEGIN_ALLOW_THREADS
;
8359 _result
= (bool )wxDC_Ok(_arg0
);
8361 wxPy_END_ALLOW_THREADS
;
8362 if (PyErr_Occurred()) return NULL
;
8363 } _resultobj
= Py_BuildValue("i",_result
);
8367 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8368 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8369 PyObject
* _resultobj
;
8373 PyObject
* _argo0
= 0;
8374 char *_kwnames
[] = { "self","x","y", NULL
};
8377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8387 wxPy_BEGIN_ALLOW_THREADS
;
8388 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8390 wxPy_END_ALLOW_THREADS
;
8391 if (PyErr_Occurred()) return NULL
;
8392 } Py_INCREF(Py_None
);
8393 _resultobj
= Py_None
;
8397 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8398 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8399 PyObject
* _resultobj
;
8402 PyObject
* _argo0
= 0;
8403 PyObject
* _argo1
= 0;
8404 char *_kwnames
[] = { "self","brush", NULL
};
8407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
8410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8417 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8418 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8424 wxPy_BEGIN_ALLOW_THREADS
;
8425 wxDC_SetBackground(_arg0
,*_arg1
);
8427 wxPy_END_ALLOW_THREADS
;
8428 if (PyErr_Occurred()) return NULL
;
8429 } Py_INCREF(Py_None
);
8430 _resultobj
= Py_None
;
8434 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8435 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8436 PyObject
* _resultobj
;
8439 PyObject
* _argo0
= 0;
8440 char *_kwnames
[] = { "self","mode", NULL
};
8443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
8446 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8447 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8453 wxPy_BEGIN_ALLOW_THREADS
;
8454 wxDC_SetBackgroundMode(_arg0
,_arg1
);
8456 wxPy_END_ALLOW_THREADS
;
8457 if (PyErr_Occurred()) return NULL
;
8458 } Py_INCREF(Py_None
);
8459 _resultobj
= Py_None
;
8463 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8464 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8465 PyObject
* _resultobj
;
8471 PyObject
* _argo0
= 0;
8472 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
8475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
8478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8485 wxPy_BEGIN_ALLOW_THREADS
;
8486 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8488 wxPy_END_ALLOW_THREADS
;
8489 if (PyErr_Occurred()) return NULL
;
8490 } Py_INCREF(Py_None
);
8491 _resultobj
= Py_None
;
8495 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8496 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8497 PyObject
* _resultobj
;
8500 PyObject
* _argo0
= 0;
8501 PyObject
* _argo1
= 0;
8502 char *_kwnames
[] = { "self","region", NULL
};
8505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
8508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8515 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8516 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
8517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8522 wxPy_BEGIN_ALLOW_THREADS
;
8523 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
8525 wxPy_END_ALLOW_THREADS
;
8526 if (PyErr_Occurred()) return NULL
;
8527 } Py_INCREF(Py_None
);
8528 _resultobj
= Py_None
;
8532 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8533 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8534 PyObject
* _resultobj
;
8537 PyObject
* _argo0
= 0;
8538 PyObject
* _argo1
= 0;
8539 char *_kwnames
[] = { "self","colourMap", NULL
};
8542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
8545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8552 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8553 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
8554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8559 wxPy_BEGIN_ALLOW_THREADS
;
8560 wxDC_SetPalette(_arg0
,*_arg1
);
8562 wxPy_END_ALLOW_THREADS
;
8563 if (PyErr_Occurred()) return NULL
;
8564 } Py_INCREF(Py_None
);
8565 _resultobj
= Py_None
;
8569 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8570 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8571 PyObject
* _resultobj
;
8574 PyObject
* _argo0
= 0;
8575 PyObject
* _argo1
= 0;
8576 char *_kwnames
[] = { "self","brush", NULL
};
8579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
8582 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8583 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8584 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8589 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8590 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8591 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8596 wxPy_BEGIN_ALLOW_THREADS
;
8597 wxDC_SetBrush(_arg0
,*_arg1
);
8599 wxPy_END_ALLOW_THREADS
;
8600 if (PyErr_Occurred()) return NULL
;
8601 } Py_INCREF(Py_None
);
8602 _resultobj
= Py_None
;
8606 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8607 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8608 PyObject
* _resultobj
;
8611 PyObject
* _argo0
= 0;
8612 PyObject
* _argo1
= 0;
8613 char *_kwnames
[] = { "self","font", NULL
};
8616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
8619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8626 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8627 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
8628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8633 wxPy_BEGIN_ALLOW_THREADS
;
8634 wxDC_SetFont(_arg0
,*_arg1
);
8636 wxPy_END_ALLOW_THREADS
;
8637 if (PyErr_Occurred()) return NULL
;
8638 } Py_INCREF(Py_None
);
8639 _resultobj
= Py_None
;
8643 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8644 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8645 PyObject
* _resultobj
;
8648 PyObject
* _argo0
= 0;
8649 char *_kwnames
[] = { "self","function", NULL
};
8652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
8655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8662 wxPy_BEGIN_ALLOW_THREADS
;
8663 wxDC_SetLogicalFunction(_arg0
,_arg1
);
8665 wxPy_END_ALLOW_THREADS
;
8666 if (PyErr_Occurred()) return NULL
;
8667 } Py_INCREF(Py_None
);
8668 _resultobj
= Py_None
;
8672 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8673 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8674 PyObject
* _resultobj
;
8678 PyObject
* _argo0
= 0;
8679 char *_kwnames
[] = { "self","x","y", NULL
};
8682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8692 wxPy_BEGIN_ALLOW_THREADS
;
8693 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
8695 wxPy_END_ALLOW_THREADS
;
8696 if (PyErr_Occurred()) return NULL
;
8697 } Py_INCREF(Py_None
);
8698 _resultobj
= Py_None
;
8702 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8703 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8704 PyObject
* _resultobj
;
8707 PyObject
* _argo0
= 0;
8708 char *_kwnames
[] = { "self","mode", NULL
};
8711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
8714 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8715 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8721 wxPy_BEGIN_ALLOW_THREADS
;
8722 wxDC_SetMapMode(_arg0
,_arg1
);
8724 wxPy_END_ALLOW_THREADS
;
8725 if (PyErr_Occurred()) return NULL
;
8726 } Py_INCREF(Py_None
);
8727 _resultobj
= Py_None
;
8731 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8732 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8733 PyObject
* _resultobj
;
8736 PyObject
* _argo0
= 0;
8738 char *_kwnames
[] = { "self","optimize", NULL
};
8741 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
8744 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8745 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8750 _arg1
= (bool ) tempbool1
;
8752 wxPy_BEGIN_ALLOW_THREADS
;
8753 wxDC_SetOptimization(_arg0
,_arg1
);
8755 wxPy_END_ALLOW_THREADS
;
8756 if (PyErr_Occurred()) return NULL
;
8757 } Py_INCREF(Py_None
);
8758 _resultobj
= Py_None
;
8762 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8763 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8764 PyObject
* _resultobj
;
8767 PyObject
* _argo0
= 0;
8768 PyObject
* _argo1
= 0;
8769 char *_kwnames
[] = { "self","pen", NULL
};
8772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
8775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8782 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8783 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
8784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8789 wxPy_BEGIN_ALLOW_THREADS
;
8790 wxDC_SetPen(_arg0
,*_arg1
);
8792 wxPy_END_ALLOW_THREADS
;
8793 if (PyErr_Occurred()) return NULL
;
8794 } Py_INCREF(Py_None
);
8795 _resultobj
= Py_None
;
8799 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8800 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8801 PyObject
* _resultobj
;
8804 PyObject
* _argo0
= 0;
8806 PyObject
* _obj1
= 0;
8807 char *_kwnames
[] = { "self","colour", NULL
};
8810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
8813 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8814 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8821 if (! wxColour_helper(_obj1
, &_arg1
))
8825 wxPy_BEGIN_ALLOW_THREADS
;
8826 wxDC_SetTextBackground(_arg0
,*_arg1
);
8828 wxPy_END_ALLOW_THREADS
;
8829 if (PyErr_Occurred()) return NULL
;
8830 } Py_INCREF(Py_None
);
8831 _resultobj
= Py_None
;
8835 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8836 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8837 PyObject
* _resultobj
;
8840 PyObject
* _argo0
= 0;
8842 PyObject
* _obj1
= 0;
8843 char *_kwnames
[] = { "self","colour", NULL
};
8846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
8849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8857 if (! wxColour_helper(_obj1
, &_arg1
))
8861 wxPy_BEGIN_ALLOW_THREADS
;
8862 wxDC_SetTextForeground(_arg0
,*_arg1
);
8864 wxPy_END_ALLOW_THREADS
;
8865 if (PyErr_Occurred()) return NULL
;
8866 } Py_INCREF(Py_None
);
8867 _resultobj
= Py_None
;
8871 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8872 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8873 PyObject
* _resultobj
;
8877 PyObject
* _argo0
= 0;
8878 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8884 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8885 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8891 wxPy_BEGIN_ALLOW_THREADS
;
8892 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8894 wxPy_END_ALLOW_THREADS
;
8895 if (PyErr_Occurred()) return NULL
;
8896 } Py_INCREF(Py_None
);
8897 _resultobj
= Py_None
;
8901 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8902 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8903 PyObject
* _resultobj
;
8907 PyObject
* _argo0
= 0;
8908 PyObject
* _obj1
= 0;
8909 char *_kwnames
[] = { "self","message", NULL
};
8912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8922 #if PYTHON_API_VERSION >= 1009
8923 char* tmpPtr
; int tmpSize
;
8924 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8925 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8928 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8930 _arg1
= new wxString(tmpPtr
, tmpSize
);
8932 if (!PyString_Check(_obj1
)) {
8933 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8936 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8940 wxPy_BEGIN_ALLOW_THREADS
;
8941 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8943 wxPy_END_ALLOW_THREADS
;
8944 if (PyErr_Occurred()) return NULL
;
8945 } _resultobj
= Py_BuildValue("i",_result
);
8953 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8954 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8955 PyObject
* _resultobj
;
8957 PyObject
* _argo0
= 0;
8958 char *_kwnames
[] = { "self", NULL
};
8961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8971 wxPy_BEGIN_ALLOW_THREADS
;
8972 wxDC_StartPage(_arg0
);
8974 wxPy_END_ALLOW_THREADS
;
8975 if (PyErr_Occurred()) return NULL
;
8976 } Py_INCREF(Py_None
);
8977 _resultobj
= Py_None
;
8981 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8982 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8983 PyObject
* _resultobj
;
8988 int _arg4
= (int ) FALSE
;
8989 PyObject
* _argo0
= 0;
8990 PyObject
* _argo1
= 0;
8991 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
8994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
8997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9004 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9005 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9011 wxPy_BEGIN_ALLOW_THREADS
;
9012 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
9014 wxPy_END_ALLOW_THREADS
;
9015 if (PyErr_Occurred()) return NULL
;
9016 } Py_INCREF(Py_None
);
9017 _resultobj
= Py_None
;
9021 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9022 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9023 PyObject
* _resultobj
;
9026 PyObject
* _argo0
= 0;
9027 char *_kwnames
[] = { "self", NULL
};
9030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
9033 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9034 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9040 wxPy_BEGIN_ALLOW_THREADS
;
9041 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
9043 wxPy_END_ALLOW_THREADS
;
9044 if (PyErr_Occurred()) return NULL
;
9045 } _resultobj
= Py_BuildValue("i",_result
);
9049 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9050 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9051 PyObject
* _resultobj
;
9054 PyObject
* _argo0
= 0;
9055 char *_kwnames
[] = { "self", NULL
};
9058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
9061 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9062 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9068 wxPy_BEGIN_ALLOW_THREADS
;
9069 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
9071 wxPy_END_ALLOW_THREADS
;
9072 if (PyErr_Occurred()) return NULL
;
9073 } _resultobj
= Py_BuildValue("i",_result
);
9077 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9078 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9079 PyObject
* _resultobj
;
9082 PyObject
* _argo0
= 0;
9083 char *_kwnames
[] = { "self", NULL
};
9086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
9089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9096 wxPy_BEGIN_ALLOW_THREADS
;
9097 _result
= (int )wxDC_GetDepth(_arg0
);
9099 wxPy_END_ALLOW_THREADS
;
9100 if (PyErr_Occurred()) return NULL
;
9101 } _resultobj
= Py_BuildValue("i",_result
);
9105 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9106 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9107 PyObject
* _resultobj
;
9110 PyObject
* _argo0
= 0;
9111 char *_kwnames
[] = { "self", NULL
};
9115 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
9118 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9119 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9120 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9125 wxPy_BEGIN_ALLOW_THREADS
;
9126 _result
= new wxSize (wxDC_GetPPI(_arg0
));
9128 wxPy_END_ALLOW_THREADS
;
9129 if (PyErr_Occurred()) return NULL
;
9130 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
9131 _resultobj
= Py_BuildValue("s",_ptemp
);
9135 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9136 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9137 PyObject
* _resultobj
;
9143 PyObject
* _argo0
= 0;
9144 char *_kwnames
[] = { "self", NULL
};
9153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
9156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9163 wxPy_BEGIN_ALLOW_THREADS
;
9164 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9166 wxPy_END_ALLOW_THREADS
;
9167 if (PyErr_Occurred()) return NULL
;
9168 } Py_INCREF(Py_None
);
9169 _resultobj
= Py_None
;
9172 o
= PyInt_FromLong((long) (*_arg1
));
9173 _resultobj
= t_output_helper(_resultobj
, o
);
9177 o
= PyInt_FromLong((long) (*_arg2
));
9178 _resultobj
= t_output_helper(_resultobj
, o
);
9183 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9184 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9185 PyObject
* _resultobj
;
9189 PyObject
* _argo0
= 0;
9190 char *_kwnames
[] = { "self","x","y", NULL
};
9193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9196 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9197 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9203 wxPy_BEGIN_ALLOW_THREADS
;
9204 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9206 wxPy_END_ALLOW_THREADS
;
9207 if (PyErr_Occurred()) return NULL
;
9208 } Py_INCREF(Py_None
);
9209 _resultobj
= Py_None
;
9213 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9214 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9215 PyObject
* _resultobj
;
9221 PyObject
* _argo0
= 0;
9222 char *_kwnames
[] = { "self", NULL
};
9231 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
9234 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9235 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9236 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9241 wxPy_BEGIN_ALLOW_THREADS
;
9242 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
9244 wxPy_END_ALLOW_THREADS
;
9245 if (PyErr_Occurred()) return NULL
;
9246 } Py_INCREF(Py_None
);
9247 _resultobj
= Py_None
;
9250 o
= PyInt_FromLong((long) (*_arg1
));
9251 _resultobj
= t_output_helper(_resultobj
, o
);
9255 o
= PyInt_FromLong((long) (*_arg2
));
9256 _resultobj
= t_output_helper(_resultobj
, o
);
9261 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9262 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9263 PyObject
* _resultobj
;
9267 PyObject
* _argo0
= 0;
9270 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
9273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
9276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9282 _arg1
= (bool ) tempbool1
;
9283 _arg2
= (bool ) tempbool2
;
9285 wxPy_BEGIN_ALLOW_THREADS
;
9286 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
9288 wxPy_END_ALLOW_THREADS
;
9289 if (PyErr_Occurred()) return NULL
;
9290 } Py_INCREF(Py_None
);
9291 _resultobj
= Py_None
;
9295 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9296 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9297 PyObject
* _resultobj
;
9301 PyObject
* _argo0
= 0;
9302 char *_kwnames
[] = { "self","x","y", NULL
};
9305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9315 wxPy_BEGIN_ALLOW_THREADS
;
9316 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
9318 wxPy_END_ALLOW_THREADS
;
9319 if (PyErr_Occurred()) return NULL
;
9320 } Py_INCREF(Py_None
);
9321 _resultobj
= Py_None
;
9325 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9326 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9327 PyObject
* _resultobj
;
9329 PyObject
* _argo0
= 0;
9330 char *_kwnames
[] = { "self", NULL
};
9333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
9336 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9337 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9343 wxPy_BEGIN_ALLOW_THREADS
;
9344 wxDC_ResetBoundingBox(_arg0
);
9346 wxPy_END_ALLOW_THREADS
;
9347 if (PyErr_Occurred()) return NULL
;
9348 } Py_INCREF(Py_None
);
9349 _resultobj
= Py_None
;
9353 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
9354 static PyObject
*_wrap_wxDC_GetHDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9355 PyObject
* _resultobj
;
9358 PyObject
* _argo0
= 0;
9359 char *_kwnames
[] = { "self", NULL
};
9362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetHDC",_kwnames
,&_argo0
))
9365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
9372 wxPy_BEGIN_ALLOW_THREADS
;
9373 _result
= (long )wxDC_GetHDC(_arg0
);
9375 wxPy_END_ALLOW_THREADS
;
9376 if (PyErr_Occurred()) return NULL
;
9377 } _resultobj
= Py_BuildValue("l",_result
);
9381 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
9384 src
= (wxMemoryDC
*) ptr
;
9385 dest
= (wxDC
*) src
;
9386 return (void *) dest
;
9389 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
9392 src
= (wxMemoryDC
*) ptr
;
9393 dest
= (wxObject
*) src
;
9394 return (void *) dest
;
9397 #define new_wxMemoryDC() (new wxMemoryDC())
9398 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9399 PyObject
* _resultobj
;
9400 wxMemoryDC
* _result
;
9401 char *_kwnames
[] = { NULL
};
9405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
9408 wxPy_BEGIN_ALLOW_THREADS
;
9409 _result
= (wxMemoryDC
*)new_wxMemoryDC();
9411 wxPy_END_ALLOW_THREADS
;
9412 if (PyErr_Occurred()) return NULL
;
9414 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
9415 _resultobj
= Py_BuildValue("s",_ptemp
);
9418 _resultobj
= Py_None
;
9423 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9424 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9425 PyObject
* _resultobj
;
9428 PyObject
* _argo0
= 0;
9429 PyObject
* _argo1
= 0;
9430 char *_kwnames
[] = { "self","bitmap", NULL
};
9433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
9436 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9437 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
9438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9443 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9444 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9450 wxPy_BEGIN_ALLOW_THREADS
;
9451 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
9453 wxPy_END_ALLOW_THREADS
;
9454 if (PyErr_Occurred()) return NULL
;
9455 } Py_INCREF(Py_None
);
9456 _resultobj
= Py_None
;
9460 static void *SwigwxScreenDCTowxDC(void *ptr
) {
9463 src
= (wxScreenDC
*) ptr
;
9464 dest
= (wxDC
*) src
;
9465 return (void *) dest
;
9468 static void *SwigwxScreenDCTowxObject(void *ptr
) {
9471 src
= (wxScreenDC
*) ptr
;
9472 dest
= (wxObject
*) src
;
9473 return (void *) dest
;
9476 #define new_wxScreenDC() (new wxScreenDC())
9477 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9478 PyObject
* _resultobj
;
9479 wxScreenDC
* _result
;
9480 char *_kwnames
[] = { NULL
};
9484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
9487 wxPy_BEGIN_ALLOW_THREADS
;
9488 _result
= (wxScreenDC
*)new_wxScreenDC();
9490 wxPy_END_ALLOW_THREADS
;
9491 if (PyErr_Occurred()) return NULL
;
9493 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
9494 _resultobj
= Py_BuildValue("s",_ptemp
);
9497 _resultobj
= Py_None
;
9502 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9503 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9504 PyObject
* _resultobj
;
9508 PyObject
* _argo0
= 0;
9509 PyObject
* _argo1
= 0;
9510 char *_kwnames
[] = { "self","window", NULL
};
9513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
9516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9523 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9524 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
9525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9530 wxPy_BEGIN_ALLOW_THREADS
;
9531 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
9533 wxPy_END_ALLOW_THREADS
;
9534 if (PyErr_Occurred()) return NULL
;
9535 } _resultobj
= Py_BuildValue("i",_result
);
9539 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9540 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9541 PyObject
* _resultobj
;
9544 wxRect
* _arg1
= (wxRect
*) NULL
;
9545 PyObject
* _argo0
= 0;
9547 PyObject
* _obj1
= 0;
9548 char *_kwnames
[] = { "self","rect", NULL
};
9551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
9554 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9555 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9563 if (! wxRect_helper(_obj1
, &_arg1
))
9567 wxPy_BEGIN_ALLOW_THREADS
;
9568 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
9570 wxPy_END_ALLOW_THREADS
;
9571 if (PyErr_Occurred()) return NULL
;
9572 } _resultobj
= Py_BuildValue("i",_result
);
9576 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9577 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9578 PyObject
* _resultobj
;
9581 PyObject
* _argo0
= 0;
9582 char *_kwnames
[] = { "self", NULL
};
9585 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
9588 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9589 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9595 wxPy_BEGIN_ALLOW_THREADS
;
9596 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
9598 wxPy_END_ALLOW_THREADS
;
9599 if (PyErr_Occurred()) return NULL
;
9600 } _resultobj
= Py_BuildValue("i",_result
);
9604 static void *SwigwxClientDCTowxDC(void *ptr
) {
9607 src
= (wxClientDC
*) ptr
;
9608 dest
= (wxDC
*) src
;
9609 return (void *) dest
;
9612 static void *SwigwxClientDCTowxObject(void *ptr
) {
9615 src
= (wxClientDC
*) ptr
;
9616 dest
= (wxObject
*) src
;
9617 return (void *) dest
;
9620 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9621 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9622 PyObject
* _resultobj
;
9623 wxClientDC
* _result
;
9625 PyObject
* _argo0
= 0;
9626 char *_kwnames
[] = { "win", NULL
};
9630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
9633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9640 wxPy_BEGIN_ALLOW_THREADS
;
9641 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
9643 wxPy_END_ALLOW_THREADS
;
9644 if (PyErr_Occurred()) return NULL
;
9646 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
9647 _resultobj
= Py_BuildValue("s",_ptemp
);
9650 _resultobj
= Py_None
;
9655 static void *SwigwxPaintDCTowxDC(void *ptr
) {
9658 src
= (wxPaintDC
*) ptr
;
9659 dest
= (wxDC
*) src
;
9660 return (void *) dest
;
9663 static void *SwigwxPaintDCTowxObject(void *ptr
) {
9666 src
= (wxPaintDC
*) ptr
;
9667 dest
= (wxObject
*) src
;
9668 return (void *) dest
;
9671 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9672 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9673 PyObject
* _resultobj
;
9674 wxPaintDC
* _result
;
9676 PyObject
* _argo0
= 0;
9677 char *_kwnames
[] = { "win", NULL
};
9681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
9684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9691 wxPy_BEGIN_ALLOW_THREADS
;
9692 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
9694 wxPy_END_ALLOW_THREADS
;
9695 if (PyErr_Occurred()) return NULL
;
9697 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
9698 _resultobj
= Py_BuildValue("s",_ptemp
);
9701 _resultobj
= Py_None
;
9706 static void *SwigwxWindowDCTowxDC(void *ptr
) {
9709 src
= (wxWindowDC
*) ptr
;
9710 dest
= (wxDC
*) src
;
9711 return (void *) dest
;
9714 static void *SwigwxWindowDCTowxObject(void *ptr
) {
9717 src
= (wxWindowDC
*) ptr
;
9718 dest
= (wxObject
*) src
;
9719 return (void *) dest
;
9722 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
9723 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9724 PyObject
* _resultobj
;
9725 wxWindowDC
* _result
;
9727 PyObject
* _argo0
= 0;
9728 char *_kwnames
[] = { "win", NULL
};
9732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
9735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9742 wxPy_BEGIN_ALLOW_THREADS
;
9743 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
9745 wxPy_END_ALLOW_THREADS
;
9746 if (PyErr_Occurred()) return NULL
;
9748 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
9749 _resultobj
= Py_BuildValue("s",_ptemp
);
9752 _resultobj
= Py_None
;
9757 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
9760 src
= (wxMetaFileDC
*) ptr
;
9761 dest
= (wxDC
*) src
;
9762 return (void *) dest
;
9765 static void *SwigwxMetaFileDCTowxObject(void *ptr
) {
9768 src
= (wxMetaFileDC
*) ptr
;
9769 dest
= (wxObject
*) src
;
9770 return (void *) dest
;
9773 #define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0))
9774 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9775 PyObject
* _resultobj
;
9776 wxMetaFileDC
* _result
;
9777 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
9778 PyObject
* _obj0
= 0;
9779 char *_kwnames
[] = { "filename", NULL
};
9783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFileDC",_kwnames
,&_obj0
))
9787 #if PYTHON_API_VERSION >= 1009
9788 char* tmpPtr
; int tmpSize
;
9789 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
9790 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9793 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
9795 _arg0
= new wxString(tmpPtr
, tmpSize
);
9797 if (!PyString_Check(_obj0
)) {
9798 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9801 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
9805 wxPy_BEGIN_ALLOW_THREADS
;
9806 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
);
9808 wxPy_END_ALLOW_THREADS
;
9809 if (PyErr_Occurred()) return NULL
;
9811 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
9812 _resultobj
= Py_BuildValue("s",_ptemp
);
9815 _resultobj
= Py_None
;
9824 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
9825 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9826 PyObject
* _resultobj
;
9827 wxMetaFile
* _result
;
9828 wxMetaFileDC
* _arg0
;
9829 PyObject
* _argo0
= 0;
9830 char *_kwnames
[] = { "self", NULL
};
9834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
9837 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9838 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
9839 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
9844 wxPy_BEGIN_ALLOW_THREADS
;
9845 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
9847 wxPy_END_ALLOW_THREADS
;
9848 if (PyErr_Occurred()) return NULL
;
9850 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
9851 _resultobj
= Py_BuildValue("s",_ptemp
);
9854 _resultobj
= Py_None
;
9859 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
9862 src
= (wxPalette
*) ptr
;
9863 dest
= (wxGDIObject
*) src
;
9864 return (void *) dest
;
9867 static void *SwigwxPaletteTowxObject(void *ptr
) {
9870 src
= (wxPalette
*) ptr
;
9871 dest
= (wxObject
*) src
;
9872 return (void *) dest
;
9875 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9876 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9877 PyObject
* _resultobj
;
9878 wxPalette
* _result
;
9883 PyObject
* _obj1
= 0;
9884 PyObject
* _obj2
= 0;
9885 PyObject
* _obj3
= 0;
9886 char *_kwnames
[] = { "choices","choices","choices", NULL
};
9890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
9893 _arg1
= byte_LIST_helper(_obj1
);
9894 if (_arg1
== NULL
) {
9899 _arg2
= byte_LIST_helper(_obj2
);
9900 if (_arg2
== NULL
) {
9906 _arg3
= byte_LIST_helper(_obj3
);
9907 if (_arg3
== NULL
) {
9913 _arg0
= PyList_Size(_obj1
);
9920 wxPy_BEGIN_ALLOW_THREADS
;
9921 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
9923 wxPy_END_ALLOW_THREADS
;
9924 if (PyErr_Occurred()) return NULL
;
9926 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
9927 _resultobj
= Py_BuildValue("s",_ptemp
);
9930 _resultobj
= Py_None
;
9944 #define delete_wxPalette(_swigobj) (delete _swigobj)
9945 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9946 PyObject
* _resultobj
;
9948 PyObject
* _argo0
= 0;
9949 char *_kwnames
[] = { "self", NULL
};
9952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
9955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
9962 wxPy_BEGIN_ALLOW_THREADS
;
9963 delete_wxPalette(_arg0
);
9965 wxPy_END_ALLOW_THREADS
;
9966 if (PyErr_Occurred()) return NULL
;
9967 } Py_INCREF(Py_None
);
9968 _resultobj
= Py_None
;
9972 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
9973 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9974 PyObject
* _resultobj
;
9980 PyObject
* _argo0
= 0;
9981 char *_kwnames
[] = { "self","red","green","blue", NULL
};
9984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
9987 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9988 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
9994 wxPy_BEGIN_ALLOW_THREADS
;
9995 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
9997 wxPy_END_ALLOW_THREADS
;
9998 if (PyErr_Occurred()) return NULL
;
9999 } _resultobj
= Py_BuildValue("i",_result
);
10003 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10004 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10005 PyObject
* _resultobj
;
10012 PyObject
* _argo0
= 0;
10013 PyObject
* _argo2
= 0;
10014 PyObject
* _argo3
= 0;
10015 PyObject
* _argo4
= 0;
10016 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
10019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
10022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10029 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10030 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
10031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
10036 if (_argo3
== Py_None
) { _arg3
= NULL
; }
10037 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
10038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
10043 if (_argo4
== Py_None
) { _arg4
= NULL
; }
10044 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
10045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
10050 wxPy_BEGIN_ALLOW_THREADS
;
10051 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10053 wxPy_END_ALLOW_THREADS
;
10054 if (PyErr_Occurred()) return NULL
;
10055 } _resultobj
= Py_BuildValue("i",_result
);
10059 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10060 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10061 PyObject
* _resultobj
;
10064 PyObject
* _argo0
= 0;
10065 char *_kwnames
[] = { "self", NULL
};
10068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
10071 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10072 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10073 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10078 wxPy_BEGIN_ALLOW_THREADS
;
10079 _result
= (bool )wxPalette_Ok(_arg0
);
10081 wxPy_END_ALLOW_THREADS
;
10082 if (PyErr_Occurred()) return NULL
;
10083 } _resultobj
= Py_BuildValue("i",_result
);
10087 static void *SwigwxImageListTowxObject(void *ptr
) {
10090 src
= (wxImageList
*) ptr
;
10091 dest
= (wxObject
*) src
;
10092 return (void *) dest
;
10095 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10096 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10097 PyObject
* _resultobj
;
10098 wxImageList
* _result
;
10101 int _arg2
= (int ) TRUE
;
10102 int _arg3
= (int ) 1;
10103 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
10107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10110 wxPy_BEGIN_ALLOW_THREADS
;
10111 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
10113 wxPy_END_ALLOW_THREADS
;
10114 if (PyErr_Occurred()) return NULL
;
10116 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
10117 _resultobj
= Py_BuildValue("s",_ptemp
);
10119 Py_INCREF(Py_None
);
10120 _resultobj
= Py_None
;
10125 #define delete_wxImageList(_swigobj) (delete _swigobj)
10126 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10127 PyObject
* _resultobj
;
10128 wxImageList
* _arg0
;
10129 PyObject
* _argo0
= 0;
10130 char *_kwnames
[] = { "self", NULL
};
10133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
10136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10143 wxPy_BEGIN_ALLOW_THREADS
;
10144 delete_wxImageList(_arg0
);
10146 wxPy_END_ALLOW_THREADS
;
10147 if (PyErr_Occurred()) return NULL
;
10148 } Py_INCREF(Py_None
);
10149 _resultobj
= Py_None
;
10153 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10154 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10155 PyObject
* _resultobj
;
10157 wxImageList
* _arg0
;
10159 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10160 PyObject
* _argo0
= 0;
10161 PyObject
* _argo1
= 0;
10162 PyObject
* _argo2
= 0;
10163 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
10166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10176 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10177 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10183 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10184 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10190 wxPy_BEGIN_ALLOW_THREADS
;
10191 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
10193 wxPy_END_ALLOW_THREADS
;
10194 if (PyErr_Occurred()) return NULL
;
10195 } _resultobj
= Py_BuildValue("i",_result
);
10199 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10200 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10201 PyObject
* _resultobj
;
10203 wxImageList
* _arg0
;
10206 PyObject
* _argo0
= 0;
10207 PyObject
* _argo1
= 0;
10209 PyObject
* _obj2
= 0;
10210 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
10213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
10216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10223 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10224 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10231 if (! wxColour_helper(_obj2
, &_arg2
))
10235 wxPy_BEGIN_ALLOW_THREADS
;
10236 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
10238 wxPy_END_ALLOW_THREADS
;
10239 if (PyErr_Occurred()) return NULL
;
10240 } _resultobj
= Py_BuildValue("i",_result
);
10244 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10245 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10246 PyObject
* _resultobj
;
10248 wxImageList
* _arg0
;
10250 PyObject
* _argo0
= 0;
10251 PyObject
* _argo1
= 0;
10252 char *_kwnames
[] = { "self","icon", NULL
};
10255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
10258 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10259 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10265 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10266 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
10267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10272 wxPy_BEGIN_ALLOW_THREADS
;
10273 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
10275 wxPy_END_ALLOW_THREADS
;
10276 if (PyErr_Occurred()) return NULL
;
10277 } _resultobj
= Py_BuildValue("i",_result
);
10281 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
10282 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10283 PyObject
* _resultobj
;
10285 wxImageList
* _arg0
;
10288 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
10289 PyObject
* _argo0
= 0;
10290 PyObject
* _argo2
= 0;
10291 PyObject
* _argo3
= 0;
10292 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
10295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
10298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10305 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10306 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10307 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10312 if (_argo3
== Py_None
) { _arg3
= NULL
; }
10313 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
10314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
10319 wxPy_BEGIN_ALLOW_THREADS
;
10320 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
10322 wxPy_END_ALLOW_THREADS
;
10323 if (PyErr_Occurred()) return NULL
;
10324 } _resultobj
= Py_BuildValue("i",_result
);
10328 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10329 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10330 PyObject
* _resultobj
;
10332 wxImageList
* _arg0
;
10337 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
10338 bool _arg6
= (bool ) FALSE
;
10339 PyObject
* _argo0
= 0;
10340 PyObject
* _argo2
= 0;
10341 int tempbool6
= (int) FALSE
;
10342 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
10345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
10348 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10349 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10350 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10355 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10356 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
10357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10361 _arg6
= (bool ) tempbool6
;
10363 wxPy_BEGIN_ALLOW_THREADS
;
10364 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
10366 wxPy_END_ALLOW_THREADS
;
10367 if (PyErr_Occurred()) return NULL
;
10368 } _resultobj
= Py_BuildValue("i",_result
);
10372 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10373 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10374 PyObject
* _resultobj
;
10376 wxImageList
* _arg0
;
10377 PyObject
* _argo0
= 0;
10378 char *_kwnames
[] = { "self", NULL
};
10381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
10384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10391 wxPy_BEGIN_ALLOW_THREADS
;
10392 _result
= (int )wxImageList_GetImageCount(_arg0
);
10394 wxPy_END_ALLOW_THREADS
;
10395 if (PyErr_Occurred()) return NULL
;
10396 } _resultobj
= Py_BuildValue("i",_result
);
10400 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10401 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10402 PyObject
* _resultobj
;
10404 wxImageList
* _arg0
;
10406 PyObject
* _argo0
= 0;
10407 char *_kwnames
[] = { "self","index", NULL
};
10410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
10413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10420 wxPy_BEGIN_ALLOW_THREADS
;
10421 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
10423 wxPy_END_ALLOW_THREADS
;
10424 if (PyErr_Occurred()) return NULL
;
10425 } _resultobj
= Py_BuildValue("i",_result
);
10429 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
10430 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10431 PyObject
* _resultobj
;
10433 wxImageList
* _arg0
;
10434 PyObject
* _argo0
= 0;
10435 char *_kwnames
[] = { "self", NULL
};
10438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
10441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10448 wxPy_BEGIN_ALLOW_THREADS
;
10449 _result
= (bool )wxImageList_RemoveAll(_arg0
);
10451 wxPy_END_ALLOW_THREADS
;
10452 if (PyErr_Occurred()) return NULL
;
10453 } _resultobj
= Py_BuildValue("i",_result
);
10457 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10458 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10459 PyObject
* _resultobj
;
10460 wxImageList
* _arg0
;
10466 PyObject
* _argo0
= 0;
10467 char *_kwnames
[] = { "self","index", NULL
};
10476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
10479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10486 wxPy_BEGIN_ALLOW_THREADS
;
10487 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
10489 wxPy_END_ALLOW_THREADS
;
10490 if (PyErr_Occurred()) return NULL
;
10491 } Py_INCREF(Py_None
);
10492 _resultobj
= Py_None
;
10495 o
= PyInt_FromLong((long) (*_arg2
));
10496 _resultobj
= t_output_helper(_resultobj
, o
);
10500 o
= PyInt_FromLong((long) (*_arg3
));
10501 _resultobj
= t_output_helper(_resultobj
, o
);
10506 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
10509 src
= (wxRegion
*) ptr
;
10510 dest
= (wxGDIObject
*) src
;
10511 return (void *) dest
;
10514 static void *SwigwxRegionTowxObject(void *ptr
) {
10517 src
= (wxRegion
*) ptr
;
10518 dest
= (wxObject
*) src
;
10519 return (void *) dest
;
10522 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10523 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10524 PyObject
* _resultobj
;
10525 wxRegion
* _result
;
10526 long _arg0
= (long ) 0;
10527 long _arg1
= (long ) 0;
10528 long _arg2
= (long ) 0;
10529 long _arg3
= (long ) 0;
10530 char *_kwnames
[] = { "x","y","width","height", NULL
};
10534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10537 wxPy_BEGIN_ALLOW_THREADS
;
10538 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
10540 wxPy_END_ALLOW_THREADS
;
10541 if (PyErr_Occurred()) return NULL
;
10543 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
10544 _resultobj
= Py_BuildValue("s",_ptemp
);
10546 Py_INCREF(Py_None
);
10547 _resultobj
= Py_None
;
10552 #define delete_wxRegion(_swigobj) (delete _swigobj)
10553 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10554 PyObject
* _resultobj
;
10556 PyObject
* _argo0
= 0;
10557 char *_kwnames
[] = { "self", NULL
};
10560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
10563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10570 wxPy_BEGIN_ALLOW_THREADS
;
10571 delete_wxRegion(_arg0
);
10573 wxPy_END_ALLOW_THREADS
;
10574 if (PyErr_Occurred()) return NULL
;
10575 } Py_INCREF(Py_None
);
10576 _resultobj
= Py_None
;
10580 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10581 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10582 PyObject
* _resultobj
;
10584 PyObject
* _argo0
= 0;
10585 char *_kwnames
[] = { "self", NULL
};
10588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
10591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10598 wxPy_BEGIN_ALLOW_THREADS
;
10599 wxRegion_Clear(_arg0
);
10601 wxPy_END_ALLOW_THREADS
;
10602 if (PyErr_Occurred()) return NULL
;
10603 } Py_INCREF(Py_None
);
10604 _resultobj
= Py_None
;
10608 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10609 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10610 PyObject
* _resultobj
;
10611 wxRegionContain _result
;
10615 PyObject
* _argo0
= 0;
10616 char *_kwnames
[] = { "self","x","y", NULL
};
10619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10629 wxPy_BEGIN_ALLOW_THREADS
;
10630 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
10632 wxPy_END_ALLOW_THREADS
;
10633 if (PyErr_Occurred()) return NULL
;
10634 } _resultobj
= Py_BuildValue("i",_result
);
10638 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10639 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10640 PyObject
* _resultobj
;
10641 wxRegionContain _result
;
10644 PyObject
* _argo0
= 0;
10646 PyObject
* _obj1
= 0;
10647 char *_kwnames
[] = { "self","pt", NULL
};
10650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
10653 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10654 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10661 if (! wxPoint_helper(_obj1
, &_arg1
))
10665 wxPy_BEGIN_ALLOW_THREADS
;
10666 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
10668 wxPy_END_ALLOW_THREADS
;
10669 if (PyErr_Occurred()) return NULL
;
10670 } _resultobj
= Py_BuildValue("i",_result
);
10674 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10675 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10676 PyObject
* _resultobj
;
10677 wxRegionContain _result
;
10680 PyObject
* _argo0
= 0;
10682 PyObject
* _obj1
= 0;
10683 char *_kwnames
[] = { "self","rect", NULL
};
10686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
10689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10697 if (! wxRect_helper(_obj1
, &_arg1
))
10701 wxPy_BEGIN_ALLOW_THREADS
;
10702 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
10704 wxPy_END_ALLOW_THREADS
;
10705 if (PyErr_Occurred()) return NULL
;
10706 } _resultobj
= Py_BuildValue("i",_result
);
10710 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10711 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10712 PyObject
* _resultobj
;
10713 wxRegionContain _result
;
10719 PyObject
* _argo0
= 0;
10720 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
10723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10733 wxPy_BEGIN_ALLOW_THREADS
;
10734 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10736 wxPy_END_ALLOW_THREADS
;
10737 if (PyErr_Occurred()) return NULL
;
10738 } _resultobj
= Py_BuildValue("i",_result
);
10742 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10743 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10744 PyObject
* _resultobj
;
10747 PyObject
* _argo0
= 0;
10748 char *_kwnames
[] = { "self", NULL
};
10752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
10755 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10756 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10757 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10762 wxPy_BEGIN_ALLOW_THREADS
;
10763 _result
= new wxRect (wxRegion_GetBox(_arg0
));
10765 wxPy_END_ALLOW_THREADS
;
10766 if (PyErr_Occurred()) return NULL
;
10767 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10768 _resultobj
= Py_BuildValue("s",_ptemp
);
10772 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10773 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10774 PyObject
* _resultobj
;
10781 PyObject
* _argo0
= 0;
10782 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10795 wxPy_BEGIN_ALLOW_THREADS
;
10796 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10798 wxPy_END_ALLOW_THREADS
;
10799 if (PyErr_Occurred()) return NULL
;
10800 } _resultobj
= Py_BuildValue("i",_result
);
10804 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10805 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10806 PyObject
* _resultobj
;
10810 PyObject
* _argo0
= 0;
10812 PyObject
* _obj1
= 0;
10813 char *_kwnames
[] = { "self","rect", NULL
};
10816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
10819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
10827 if (! wxRect_helper(_obj1
, &_arg1
))
10831 wxPy_BEGIN_ALLOW_THREADS
;
10832 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
10834 wxPy_END_ALLOW_THREADS
;
10835 if (PyErr_Occurred()) return NULL
;
10836 } _resultobj
= Py_BuildValue("i",_result
);
10840 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10841 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10842 PyObject
* _resultobj
;
10846 PyObject
* _argo0
= 0;
10847 PyObject
* _argo1
= 0;
10848 char *_kwnames
[] = { "self","region", NULL
};
10851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
10854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10861 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10862 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10868 wxPy_BEGIN_ALLOW_THREADS
;
10869 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
10871 wxPy_END_ALLOW_THREADS
;
10872 if (PyErr_Occurred()) return NULL
;
10873 } _resultobj
= Py_BuildValue("i",_result
);
10877 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10878 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10879 PyObject
* _resultobj
;
10882 PyObject
* _argo0
= 0;
10883 char *_kwnames
[] = { "self", NULL
};
10886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
10889 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10890 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
10896 wxPy_BEGIN_ALLOW_THREADS
;
10897 _result
= (bool )wxRegion_IsEmpty(_arg0
);
10899 wxPy_END_ALLOW_THREADS
;
10900 if (PyErr_Occurred()) return NULL
;
10901 } _resultobj
= Py_BuildValue("i",_result
);
10905 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10906 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10907 PyObject
* _resultobj
;
10914 PyObject
* _argo0
= 0;
10915 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10921 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10922 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10923 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
10928 wxPy_BEGIN_ALLOW_THREADS
;
10929 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10931 wxPy_END_ALLOW_THREADS
;
10932 if (PyErr_Occurred()) return NULL
;
10933 } _resultobj
= Py_BuildValue("i",_result
);
10937 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10938 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10939 PyObject
* _resultobj
;
10943 PyObject
* _argo0
= 0;
10945 PyObject
* _obj1
= 0;
10946 char *_kwnames
[] = { "self","rect", NULL
};
10949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
10952 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10953 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
10960 if (! wxRect_helper(_obj1
, &_arg1
))
10964 wxPy_BEGIN_ALLOW_THREADS
;
10965 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
10967 wxPy_END_ALLOW_THREADS
;
10968 if (PyErr_Occurred()) return NULL
;
10969 } _resultobj
= Py_BuildValue("i",_result
);
10973 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10974 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10975 PyObject
* _resultobj
;
10979 PyObject
* _argo0
= 0;
10980 PyObject
* _argo1
= 0;
10981 char *_kwnames
[] = { "self","region", NULL
};
10984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
10987 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10988 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10994 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10995 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11001 wxPy_BEGIN_ALLOW_THREADS
;
11002 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
11004 wxPy_END_ALLOW_THREADS
;
11005 if (PyErr_Occurred()) return NULL
;
11006 } _resultobj
= Py_BuildValue("i",_result
);
11010 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11011 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11012 PyObject
* _resultobj
;
11019 PyObject
* _argo0
= 0;
11020 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11033 wxPy_BEGIN_ALLOW_THREADS
;
11034 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11036 wxPy_END_ALLOW_THREADS
;
11037 if (PyErr_Occurred()) return NULL
;
11038 } _resultobj
= Py_BuildValue("i",_result
);
11042 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11043 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11044 PyObject
* _resultobj
;
11048 PyObject
* _argo0
= 0;
11050 PyObject
* _obj1
= 0;
11051 char *_kwnames
[] = { "self","rect", NULL
};
11054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
11057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11065 if (! wxRect_helper(_obj1
, &_arg1
))
11069 wxPy_BEGIN_ALLOW_THREADS
;
11070 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
11072 wxPy_END_ALLOW_THREADS
;
11073 if (PyErr_Occurred()) return NULL
;
11074 } _resultobj
= Py_BuildValue("i",_result
);
11078 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11079 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11080 PyObject
* _resultobj
;
11084 PyObject
* _argo0
= 0;
11085 PyObject
* _argo1
= 0;
11086 char *_kwnames
[] = { "self","region", NULL
};
11089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
11092 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11093 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11099 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11100 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11101 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11106 wxPy_BEGIN_ALLOW_THREADS
;
11107 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
11109 wxPy_END_ALLOW_THREADS
;
11110 if (PyErr_Occurred()) return NULL
;
11111 } _resultobj
= Py_BuildValue("i",_result
);
11115 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11116 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11117 PyObject
* _resultobj
;
11124 PyObject
* _argo0
= 0;
11125 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11138 wxPy_BEGIN_ALLOW_THREADS
;
11139 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11141 wxPy_END_ALLOW_THREADS
;
11142 if (PyErr_Occurred()) return NULL
;
11143 } _resultobj
= Py_BuildValue("i",_result
);
11147 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11148 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11149 PyObject
* _resultobj
;
11153 PyObject
* _argo0
= 0;
11155 PyObject
* _obj1
= 0;
11156 char *_kwnames
[] = { "self","rect", NULL
};
11159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
11162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11170 if (! wxRect_helper(_obj1
, &_arg1
))
11174 wxPy_BEGIN_ALLOW_THREADS
;
11175 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
11177 wxPy_END_ALLOW_THREADS
;
11178 if (PyErr_Occurred()) return NULL
;
11179 } _resultobj
= Py_BuildValue("i",_result
);
11183 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11184 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11185 PyObject
* _resultobj
;
11189 PyObject
* _argo0
= 0;
11190 PyObject
* _argo1
= 0;
11191 char *_kwnames
[] = { "self","region", NULL
};
11194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
11197 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11198 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11204 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11205 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11211 wxPy_BEGIN_ALLOW_THREADS
;
11212 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
11214 wxPy_END_ALLOW_THREADS
;
11215 if (PyErr_Occurred()) return NULL
;
11216 } _resultobj
= Py_BuildValue("i",_result
);
11220 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
11221 wxRegionIterator
*src
;
11223 src
= (wxRegionIterator
*) ptr
;
11224 dest
= (wxObject
*) src
;
11225 return (void *) dest
;
11228 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11229 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11230 PyObject
* _resultobj
;
11231 wxRegionIterator
* _result
;
11233 PyObject
* _argo0
= 0;
11234 char *_kwnames
[] = { "region", NULL
};
11238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
11241 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11242 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11243 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11248 wxPy_BEGIN_ALLOW_THREADS
;
11249 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
11251 wxPy_END_ALLOW_THREADS
;
11252 if (PyErr_Occurred()) return NULL
;
11254 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
11255 _resultobj
= Py_BuildValue("s",_ptemp
);
11257 Py_INCREF(Py_None
);
11258 _resultobj
= Py_None
;
11263 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11264 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11265 PyObject
* _resultobj
;
11266 wxRegionIterator
* _arg0
;
11267 PyObject
* _argo0
= 0;
11268 char *_kwnames
[] = { "self", NULL
};
11271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
11274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11281 wxPy_BEGIN_ALLOW_THREADS
;
11282 delete_wxRegionIterator(_arg0
);
11284 wxPy_END_ALLOW_THREADS
;
11285 if (PyErr_Occurred()) return NULL
;
11286 } Py_INCREF(Py_None
);
11287 _resultobj
= Py_None
;
11291 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11292 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11293 PyObject
* _resultobj
;
11295 wxRegionIterator
* _arg0
;
11296 PyObject
* _argo0
= 0;
11297 char *_kwnames
[] = { "self", NULL
};
11300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
11303 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11304 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11305 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11310 wxPy_BEGIN_ALLOW_THREADS
;
11311 _result
= (long )wxRegionIterator_GetX(_arg0
);
11313 wxPy_END_ALLOW_THREADS
;
11314 if (PyErr_Occurred()) return NULL
;
11315 } _resultobj
= Py_BuildValue("l",_result
);
11319 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11320 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11321 PyObject
* _resultobj
;
11323 wxRegionIterator
* _arg0
;
11324 PyObject
* _argo0
= 0;
11325 char *_kwnames
[] = { "self", NULL
};
11328 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
11331 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11332 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11333 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11338 wxPy_BEGIN_ALLOW_THREADS
;
11339 _result
= (long )wxRegionIterator_GetY(_arg0
);
11341 wxPy_END_ALLOW_THREADS
;
11342 if (PyErr_Occurred()) return NULL
;
11343 } _resultobj
= Py_BuildValue("l",_result
);
11347 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11348 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11349 PyObject
* _resultobj
;
11351 wxRegionIterator
* _arg0
;
11352 PyObject
* _argo0
= 0;
11353 char *_kwnames
[] = { "self", NULL
};
11356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
11359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11366 wxPy_BEGIN_ALLOW_THREADS
;
11367 _result
= (long )wxRegionIterator_GetW(_arg0
);
11369 wxPy_END_ALLOW_THREADS
;
11370 if (PyErr_Occurred()) return NULL
;
11371 } _resultobj
= Py_BuildValue("l",_result
);
11375 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11376 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11377 PyObject
* _resultobj
;
11379 wxRegionIterator
* _arg0
;
11380 PyObject
* _argo0
= 0;
11381 char *_kwnames
[] = { "self", NULL
};
11384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
11387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11394 wxPy_BEGIN_ALLOW_THREADS
;
11395 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
11397 wxPy_END_ALLOW_THREADS
;
11398 if (PyErr_Occurred()) return NULL
;
11399 } _resultobj
= Py_BuildValue("l",_result
);
11403 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11404 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11405 PyObject
* _resultobj
;
11407 wxRegionIterator
* _arg0
;
11408 PyObject
* _argo0
= 0;
11409 char *_kwnames
[] = { "self", NULL
};
11412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
11415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11422 wxPy_BEGIN_ALLOW_THREADS
;
11423 _result
= (long )wxRegionIterator_GetH(_arg0
);
11425 wxPy_END_ALLOW_THREADS
;
11426 if (PyErr_Occurred()) return NULL
;
11427 } _resultobj
= Py_BuildValue("l",_result
);
11431 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11432 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11433 PyObject
* _resultobj
;
11435 wxRegionIterator
* _arg0
;
11436 PyObject
* _argo0
= 0;
11437 char *_kwnames
[] = { "self", NULL
};
11440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
11443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
11450 wxPy_BEGIN_ALLOW_THREADS
;
11451 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
11453 wxPy_END_ALLOW_THREADS
;
11454 if (PyErr_Occurred()) return NULL
;
11455 } _resultobj
= Py_BuildValue("l",_result
);
11459 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
11460 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11461 PyObject
* _resultobj
;
11463 wxRegionIterator
* _arg0
;
11464 PyObject
* _argo0
= 0;
11465 char *_kwnames
[] = { "self", NULL
};
11469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
11472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
11479 wxPy_BEGIN_ALLOW_THREADS
;
11480 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
11482 wxPy_END_ALLOW_THREADS
;
11483 if (PyErr_Occurred()) return NULL
;
11484 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
11485 _resultobj
= Py_BuildValue("s",_ptemp
);
11489 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11490 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11491 PyObject
* _resultobj
;
11493 wxRegionIterator
* _arg0
;
11494 PyObject
* _argo0
= 0;
11495 char *_kwnames
[] = { "self", NULL
};
11498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
11501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11508 wxPy_BEGIN_ALLOW_THREADS
;
11509 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
11511 wxPy_END_ALLOW_THREADS
;
11512 if (PyErr_Occurred()) return NULL
;
11513 } _resultobj
= Py_BuildValue("i",_result
);
11517 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11518 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11519 PyObject
* _resultobj
;
11520 wxRegionIterator
* _arg0
;
11521 PyObject
* _argo0
= 0;
11522 char *_kwnames
[] = { "self", NULL
};
11525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
11528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11535 wxPy_BEGIN_ALLOW_THREADS
;
11536 wxRegionIterator_Reset(_arg0
);
11538 wxPy_END_ALLOW_THREADS
;
11539 if (PyErr_Occurred()) return NULL
;
11540 } Py_INCREF(Py_None
);
11541 _resultobj
= Py_None
;
11545 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
11548 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11549 PyObject
* _resultobj
;
11550 wxRegionIterator
* _arg0
;
11551 PyObject
* _argo0
= 0;
11552 char *_kwnames
[] = { "self", NULL
};
11555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
11558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11565 wxPy_BEGIN_ALLOW_THREADS
;
11566 wxRegionIterator_Next(_arg0
);
11568 wxPy_END_ALLOW_THREADS
;
11569 if (PyErr_Occurred()) return NULL
;
11570 } Py_INCREF(Py_None
);
11571 _resultobj
= Py_None
;
11575 static PyMethodDef gdicMethods
[] = {
11576 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
11577 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
11578 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
11579 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
11580 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11581 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
11582 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11583 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
11584 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
11585 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
11586 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11587 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11588 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
11589 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
11590 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
11591 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
11592 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
11593 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
11594 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
11595 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
11596 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
11597 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
11598 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
11599 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
11600 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
11601 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
11602 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
11603 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
11604 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
11605 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
11606 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11607 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11608 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11609 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11610 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
11611 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
11612 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
11613 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
11614 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
11615 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
11616 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
11617 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
11618 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11619 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11620 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11621 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
11622 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11623 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11624 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11625 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
11626 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
11627 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
11628 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
11629 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
11630 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11631 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11632 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
11633 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
11634 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
11635 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
11636 { "wxDC_GetHDC", (PyCFunction
) _wrap_wxDC_GetHDC
, METH_VARARGS
| METH_KEYWORDS
},
11637 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11638 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11639 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
11640 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11641 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11642 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11643 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
11644 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11645 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11646 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11647 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11648 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
11649 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
11650 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11651 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11652 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11653 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
11654 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11655 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11656 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11657 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11658 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
11659 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11660 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11661 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
11662 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11663 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
11664 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11665 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11666 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11667 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
11668 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
11669 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
11670 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
11671 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
11672 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
11673 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
11674 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
11675 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11676 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11677 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11678 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11679 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11680 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
11681 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11682 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
11683 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11684 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
11685 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11686 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11687 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11688 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11689 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
11690 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
11691 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
11692 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
11693 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11694 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11695 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
11696 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
11697 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11698 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
11699 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
11700 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
11701 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11702 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
11703 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11704 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
11705 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
11706 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
11707 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
11708 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
11709 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
11710 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
11711 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
11712 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
11713 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
11714 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
11715 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
11716 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
11717 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11718 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
11719 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11720 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
11721 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11722 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
11723 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
11724 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
11725 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
11726 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11727 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11728 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11729 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11730 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11731 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11732 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11733 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11734 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11735 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
11736 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
11737 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
11738 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11739 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11740 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11741 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11742 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11743 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11744 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11745 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11746 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11747 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11748 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
11749 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11750 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11751 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11752 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11753 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11754 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
11755 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11756 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11757 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
11758 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
11759 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
11760 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
11761 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
11762 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11763 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
11764 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
11765 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
11766 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11767 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11768 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
11769 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
11770 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
11771 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11772 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11773 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
11774 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
11775 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
11776 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11777 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11778 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11779 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11780 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11781 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11782 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11783 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11784 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11785 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11786 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11787 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11788 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11789 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11790 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11791 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11792 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11793 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11794 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
11795 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11796 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11797 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11798 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
11799 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
11800 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
11801 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
11802 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
11803 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11804 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
11805 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11806 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11807 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11808 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
11809 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
11810 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
11811 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
11812 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11813 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11814 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11815 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11816 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11817 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11818 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11819 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11820 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11821 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
11822 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
11823 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11824 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
11825 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11826 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11827 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11828 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11829 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11830 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11831 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11832 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11833 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11834 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11835 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11836 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11837 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
11838 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
11839 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
11840 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
11841 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
11842 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11843 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11844 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
11845 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11846 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11847 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11848 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11849 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11850 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11851 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11852 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11853 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11854 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11855 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
11856 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
11857 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11858 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
11859 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11860 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11861 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11862 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
11863 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11864 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11865 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11866 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11867 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
11868 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
11869 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
11870 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11871 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
11872 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
11873 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
11874 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11875 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11876 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11883 * This table is used by the pointer type-checker
11885 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
11886 { "_signed_long","_long",0},
11887 { "_wxPrintQuality","_wxCoord",0},
11888 { "_wxPrintQuality","_int",0},
11889 { "_wxPrintQuality","_signed_int",0},
11890 { "_wxPrintQuality","_unsigned_int",0},
11891 { "_wxPrintQuality","_wxWindowID",0},
11892 { "_wxPrintQuality","_uint",0},
11893 { "_wxPrintQuality","_EBool",0},
11894 { "_wxPrintQuality","_size_t",0},
11895 { "_wxPrintQuality","_time_t",0},
11896 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
11897 { "_byte","_unsigned_char",0},
11898 { "_long","_unsigned_long",0},
11899 { "_long","_signed_long",0},
11900 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
11901 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
11902 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
11903 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
11904 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
11905 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
11906 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
11907 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
11908 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
11909 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
11910 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
11911 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
11912 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
11913 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
11914 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11915 { "_size_t","_wxCoord",0},
11916 { "_size_t","_wxPrintQuality",0},
11917 { "_size_t","_time_t",0},
11918 { "_size_t","_unsigned_int",0},
11919 { "_size_t","_int",0},
11920 { "_size_t","_wxWindowID",0},
11921 { "_size_t","_uint",0},
11922 { "_uint","_wxCoord",0},
11923 { "_uint","_wxPrintQuality",0},
11924 { "_uint","_time_t",0},
11925 { "_uint","_size_t",0},
11926 { "_uint","_unsigned_int",0},
11927 { "_uint","_int",0},
11928 { "_uint","_wxWindowID",0},
11929 { "_wxChar","_char",0},
11930 { "_char","_wxChar",0},
11931 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
11932 { "_EBool","_wxCoord",0},
11933 { "_EBool","_wxPrintQuality",0},
11934 { "_EBool","_signed_int",0},
11935 { "_EBool","_int",0},
11936 { "_EBool","_wxWindowID",0},
11937 { "_unsigned_long","_long",0},
11938 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
11939 { "_signed_int","_wxCoord",0},
11940 { "_signed_int","_wxPrintQuality",0},
11941 { "_signed_int","_EBool",0},
11942 { "_signed_int","_wxWindowID",0},
11943 { "_signed_int","_int",0},
11944 { "_WXTYPE","_short",0},
11945 { "_WXTYPE","_signed_short",0},
11946 { "_WXTYPE","_unsigned_short",0},
11947 { "_unsigned_short","_WXTYPE",0},
11948 { "_unsigned_short","_short",0},
11949 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11950 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
11951 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
11952 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
11953 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject
},
11954 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
11955 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
11956 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
11957 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
11958 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11959 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
11960 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
11961 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
11962 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
11963 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
11964 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
11965 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11966 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
11967 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
11968 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
11969 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
11970 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
11971 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
11972 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
11973 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
11974 { "_signed_short","_WXTYPE",0},
11975 { "_signed_short","_short",0},
11976 { "_unsigned_char","_byte",0},
11977 { "_unsigned_int","_wxCoord",0},
11978 { "_unsigned_int","_wxPrintQuality",0},
11979 { "_unsigned_int","_time_t",0},
11980 { "_unsigned_int","_size_t",0},
11981 { "_unsigned_int","_uint",0},
11982 { "_unsigned_int","_wxWindowID",0},
11983 { "_unsigned_int","_int",0},
11984 { "_short","_WXTYPE",0},
11985 { "_short","_unsigned_short",0},
11986 { "_short","_signed_short",0},
11987 { "_wxWindowID","_wxCoord",0},
11988 { "_wxWindowID","_wxPrintQuality",0},
11989 { "_wxWindowID","_time_t",0},
11990 { "_wxWindowID","_size_t",0},
11991 { "_wxWindowID","_EBool",0},
11992 { "_wxWindowID","_uint",0},
11993 { "_wxWindowID","_int",0},
11994 { "_wxWindowID","_signed_int",0},
11995 { "_wxWindowID","_unsigned_int",0},
11996 { "_int","_wxCoord",0},
11997 { "_int","_wxPrintQuality",0},
11998 { "_int","_time_t",0},
11999 { "_int","_size_t",0},
12000 { "_int","_EBool",0},
12001 { "_int","_uint",0},
12002 { "_int","_wxWindowID",0},
12003 { "_int","_unsigned_int",0},
12004 { "_int","_signed_int",0},
12005 { "_time_t","_wxCoord",0},
12006 { "_time_t","_wxPrintQuality",0},
12007 { "_time_t","_unsigned_int",0},
12008 { "_time_t","_int",0},
12009 { "_time_t","_wxWindowID",0},
12010 { "_time_t","_uint",0},
12011 { "_time_t","_size_t",0},
12012 { "_wxCoord","_int",0},
12013 { "_wxCoord","_signed_int",0},
12014 { "_wxCoord","_unsigned_int",0},
12015 { "_wxCoord","_wxWindowID",0},
12016 { "_wxCoord","_uint",0},
12017 { "_wxCoord","_EBool",0},
12018 { "_wxCoord","_size_t",0},
12019 { "_wxCoord","_time_t",0},
12020 { "_wxCoord","_wxPrintQuality",0},
12023 static PyObject
*SWIG_globals
;
12027 SWIGEXPORT(void) initgdic() {
12029 SWIG_globals
= SWIG_newvarlink();
12030 m
= Py_InitModule("gdic", gdicMethods
);
12031 d
= PyModule_GetDict(m
);
12032 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
12033 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
12034 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
12035 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
12036 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
12037 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
12038 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
12039 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
12040 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
12041 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
12042 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
12043 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
12044 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
12045 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
12046 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
12047 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
12048 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
12049 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
12050 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
12051 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
12052 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
12053 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
12054 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
12055 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
12056 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
12057 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
12058 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
12059 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
12060 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
12061 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
12062 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
12063 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
12064 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
12065 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
12066 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
12067 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
12068 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
12069 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
12070 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
12071 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
12072 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
12073 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
12074 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
12075 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
12076 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
12077 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
12078 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
12079 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
12080 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
12081 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
12082 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
12083 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
12084 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
12085 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
12086 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
12087 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
12088 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
12089 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
12090 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
12091 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
12092 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
12093 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
12094 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
12095 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
12096 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
12097 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
12098 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
12099 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
12100 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
12101 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
12102 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
12103 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
12104 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
12105 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
12106 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
12107 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
12108 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
12109 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
12110 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
12111 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
12112 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
12113 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
12114 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
12115 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
12116 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
12117 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
12118 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
12119 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
12120 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
12121 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
12122 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
12123 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
12124 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
12125 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
12126 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
12127 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
12128 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
12129 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
12130 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
12131 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
12132 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
12133 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
12134 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
12135 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
12136 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
12137 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
12138 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
12139 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
12140 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
12141 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
12142 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
12143 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
12144 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
12147 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
12148 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);