2 * FILE : src/mac/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/imaglist.h>
60 #include <wx/fontmap.h>
61 #include <wx/fontenc.h>
62 #include <wx/fontmap.h>
63 #include <wx/fontutil.h>
66 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
72 } else if (target
== Py_None
) {
76 if (!PyTuple_Check(target
)) {
78 target
= PyTuple_New(1);
79 PyTuple_SetItem(target
, 0, o2
);
82 PyTuple_SetItem(o3
, 0, o
);
85 target
= PySequence_Concat(o2
, o3
);
92 #if PYTHON_API_VERSION >= 1009
93 static char* wxStringErrorMsg
= "String or Unicode type required";
95 static char* wxStringErrorMsg
= "String type required";
97 // Implementations of some alternate "constructors"
99 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
100 return new wxBitmap(width
, height
, depth
);
103 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
104 char** cArray
= NULL
;
107 if (!PyList_Check(listOfStrings
)) {
108 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
111 count
= PyList_Size(listOfStrings
);
112 cArray
= new char*[count
];
114 for(int x
=0; x
<count
; x
++) {
115 // TODO: Need some validation and error checking here
116 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
122 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
123 char** cArray
= NULL
;
126 cArray
= ConvertListOfStrings(listOfStrings
);
129 bmp
= new wxBitmap(cArray
);
135 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
136 return new wxBitmap(icon
);
140 wxBitmap
* wxBitmapFromBits(char* bits
, int width
, int height
, int depth
= 1 ) {
141 return new wxBitmap(bits
, width
, height
, depth
);
146 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
147 // int width, int height, int depth = 1) {
148 // if (! PyString_Check(data)) {
149 // PyErr_SetString(PyExc_TypeError, "Expected string object");
152 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
156 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
157 return new wxMask(bitmap
, colour
);
159 // Implementations of some alternate "constructors"
160 wxIcon
* wxEmptyIcon() {
164 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
165 char** cArray
= NULL
;
168 cArray
= ConvertListOfStrings(listOfStrings
);
171 icon
= new wxIcon(cArray
);
175 // Alternate 'constructor'
176 wxCursor
* wxPyStockCursor(int id
) {
177 return new wxCursor(id
);
179 // Alternate 'constructor'
180 wxColour
* wxNamedColour(const wxString
& colorName
) {
181 return new wxColour(colorName
);
184 class wxPyPen
: public wxPen
{
186 wxPyPen(wxColour
& colour
, int width
=1, int style
=wxSOLID
)
187 : wxPen(colour
, width
, style
)
194 void SetDashes(int nb_dashes
, const wxDash
*dash
) {
197 m_dash
= new wxDash
[nb_dashes
];
198 for (int i
=0; i
<nb_dashes
; i
++) {
201 wxPen::SetDashes(nb_dashes
, m_dash
);
208 static void wxDC_GetBoundingBox(wxDC
* dc
, int* x1
, int* y1
, int* x2
, int* y2
) {
214 // Alternate 'constructor'
215 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
216 return new wxMemoryDC(oldDC
);
219 #include <wx/metafile.h>
222 extern wxFont
* wxNORMAL_FONT
;
223 extern wxFont
* wxSMALL_FONT
;
224 extern wxFont
* wxITALIC_FONT
;
225 extern wxFont
* wxSWISS_FONT
;
226 extern wxPen
* wxRED_PEN
;
227 extern wxPen
* wxCYAN_PEN
;
228 extern wxPen
* wxGREEN_PEN
;
229 extern wxPen
* wxBLACK_PEN
;
230 extern wxPen
* wxWHITE_PEN
;
231 extern wxPen
* wxTRANSPARENT_PEN
;
232 extern wxPen
* wxBLACK_DASHED_PEN
;
233 extern wxPen
* wxGREY_PEN
;
234 extern wxPen
* wxMEDIUM_GREY_PEN
;
235 extern wxPen
* wxLIGHT_GREY_PEN
;
236 extern wxBrush
* wxBLUE_BRUSH
;
237 extern wxBrush
* wxGREEN_BRUSH
;
238 extern wxBrush
* wxWHITE_BRUSH
;
239 extern wxBrush
* wxBLACK_BRUSH
;
240 extern wxBrush
* wxTRANSPARENT_BRUSH
;
241 extern wxBrush
* wxCYAN_BRUSH
;
242 extern wxBrush
* wxRED_BRUSH
;
243 extern wxBrush
* wxGREY_BRUSH
;
244 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
245 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
246 extern wxColour
* wxBLACK
;
247 extern wxColour
* wxWHITE
;
248 extern wxColour
* wxRED
;
249 extern wxColour
* wxBLUE
;
250 extern wxColour
* wxGREEN
;
251 extern wxColour
* wxCYAN
;
252 extern wxColour
* wxLIGHT_GREY
;
253 extern wxCursor
* wxSTANDARD_CURSOR
;
254 extern wxCursor
* wxHOURGLASS_CURSOR
;
255 extern wxCursor
* wxCROSS_CURSOR
;
256 extern wxBitmap wxNullBitmap
;
257 extern wxIcon wxNullIcon
;
258 extern wxCursor wxNullCursor
;
259 extern wxPen wxNullPen
;
260 extern wxBrush wxNullBrush
;
261 extern wxPalette wxNullPalette
;
262 extern wxFont wxNullFont
;
263 extern wxColour wxNullColour
;
264 extern wxFontList
* wxTheFontList
;
265 extern wxPenList
* wxThePenList
;
266 extern wxBrushList
* wxTheBrushList
;
267 extern wxColourDatabase
* wxTheColourDatabase
;
273 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
274 PyObject
* _resultobj
;
278 int _arg2
= (int ) -1;
279 char *_kwnames
[] = { "width","height","depth", NULL
};
283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
286 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
287 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
289 wxPyEndAllowThreads(__tstate
);
290 if (PyErr_Occurred()) return NULL
;
292 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
293 _resultobj
= Py_BuildValue("s",_ptemp
);
296 _resultobj
= Py_None
;
301 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
302 PyObject
* _resultobj
;
305 PyObject
* _obj0
= 0;
306 char *_kwnames
[] = { "listOfStrings", NULL
};
310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
316 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
317 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
319 wxPyEndAllowThreads(__tstate
);
320 if (PyErr_Occurred()) return NULL
;
322 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
323 _resultobj
= Py_BuildValue("s",_ptemp
);
326 _resultobj
= Py_None
;
331 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
332 PyObject
* _resultobj
;
335 PyObject
* _argo0
= 0;
336 char *_kwnames
[] = { "icon", NULL
};
340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
350 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
351 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
353 wxPyEndAllowThreads(__tstate
);
354 if (PyErr_Occurred()) return NULL
;
356 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
357 _resultobj
= Py_BuildValue("s",_ptemp
);
360 _resultobj
= Py_None
;
365 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
366 PyObject
* _resultobj
;
371 int _arg3
= (int ) 1;
372 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"sii|i:wxBitmapFromBits",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
380 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
382 wxPyEndAllowThreads(__tstate
);
383 if (PyErr_Occurred()) return NULL
;
385 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
386 _resultobj
= Py_BuildValue("s",_ptemp
);
389 _resultobj
= Py_None
;
394 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
395 PyObject
* _resultobj
;
399 PyObject
* _argo0
= 0;
401 PyObject
* _obj1
= 0;
402 char *_kwnames
[] = { "bitmap","colour", NULL
};
406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
417 if (! wxColour_helper(_obj1
, &_arg1
))
421 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
422 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
424 wxPyEndAllowThreads(__tstate
);
425 if (PyErr_Occurred()) return NULL
;
427 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
428 _resultobj
= Py_BuildValue("s",_ptemp
);
431 _resultobj
= Py_None
;
436 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
437 PyObject
* _resultobj
;
439 char *_kwnames
[] = { NULL
};
443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
446 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
447 _result
= (wxIcon
*)wxEmptyIcon();
449 wxPyEndAllowThreads(__tstate
);
450 if (PyErr_Occurred()) return NULL
;
452 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
453 _resultobj
= Py_BuildValue("s",_ptemp
);
456 _resultobj
= Py_None
;
461 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
462 PyObject
* _resultobj
;
465 PyObject
* _obj0
= 0;
466 char *_kwnames
[] = { "listOfStrings", NULL
};
470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
477 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
479 wxPyEndAllowThreads(__tstate
);
480 if (PyErr_Occurred()) return NULL
;
482 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
483 _resultobj
= Py_BuildValue("s",_ptemp
);
486 _resultobj
= Py_None
;
491 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
492 PyObject
* _resultobj
;
495 char *_kwnames
[] = { "id", NULL
};
499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
502 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
503 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
505 wxPyEndAllowThreads(__tstate
);
506 if (PyErr_Occurred()) return NULL
;
508 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
509 _resultobj
= Py_BuildValue("s",_ptemp
);
512 _resultobj
= Py_None
;
517 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
518 PyObject
* _resultobj
;
521 PyObject
* _obj0
= 0;
522 char *_kwnames
[] = { "colorName", NULL
};
526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
529 #if PYTHON_API_VERSION >= 1009
530 char* tmpPtr
; int tmpSize
;
531 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
532 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
535 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
537 _arg0
= new wxString(tmpPtr
, tmpSize
);
539 if (!PyString_Check(_obj0
)) {
540 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
543 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
547 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
548 _result
= (wxColour
*)wxNamedColour(*_arg0
);
550 wxPyEndAllowThreads(__tstate
);
551 if (PyErr_Occurred()) return NULL
;
553 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
554 _resultobj
= Py_BuildValue("s",_ptemp
);
557 _resultobj
= Py_None
;
566 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
567 PyObject
* _resultobj
;
568 wxMemoryDC
* _result
;
570 PyObject
* _argo0
= 0;
571 char *_kwnames
[] = { "oldDC", NULL
};
575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
586 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
588 wxPyEndAllowThreads(__tstate
);
589 if (PyErr_Occurred()) return NULL
;
591 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
592 _resultobj
= Py_BuildValue("s",_ptemp
);
595 _resultobj
= Py_None
;
600 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
602 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
606 static PyObject
*_wrap_wxNORMAL_FONT_get() {
610 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
611 pyobj
= PyString_FromString(ptemp
);
615 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
617 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
621 static PyObject
*_wrap_wxSMALL_FONT_get() {
625 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
626 pyobj
= PyString_FromString(ptemp
);
630 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
632 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
636 static PyObject
*_wrap_wxITALIC_FONT_get() {
640 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
641 pyobj
= PyString_FromString(ptemp
);
645 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
647 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
651 static PyObject
*_wrap_wxSWISS_FONT_get() {
655 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
656 pyobj
= PyString_FromString(ptemp
);
660 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
662 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
666 static PyObject
*_wrap_wxRED_PEN_get() {
670 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
671 pyobj
= PyString_FromString(ptemp
);
675 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
677 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
681 static PyObject
*_wrap_wxCYAN_PEN_get() {
685 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
686 pyobj
= PyString_FromString(ptemp
);
690 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
692 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
696 static PyObject
*_wrap_wxGREEN_PEN_get() {
700 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
701 pyobj
= PyString_FromString(ptemp
);
705 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
707 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
711 static PyObject
*_wrap_wxBLACK_PEN_get() {
715 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
716 pyobj
= PyString_FromString(ptemp
);
720 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
722 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
726 static PyObject
*_wrap_wxWHITE_PEN_get() {
730 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
731 pyobj
= PyString_FromString(ptemp
);
735 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
737 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
741 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
745 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
746 pyobj
= PyString_FromString(ptemp
);
750 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
752 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
756 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
760 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
761 pyobj
= PyString_FromString(ptemp
);
765 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
767 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
771 static PyObject
*_wrap_wxGREY_PEN_get() {
775 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
776 pyobj
= PyString_FromString(ptemp
);
780 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
782 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
786 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
790 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
791 pyobj
= PyString_FromString(ptemp
);
795 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
797 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
801 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
805 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
806 pyobj
= PyString_FromString(ptemp
);
810 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
812 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
816 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
820 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
821 pyobj
= PyString_FromString(ptemp
);
825 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
827 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
831 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
835 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
836 pyobj
= PyString_FromString(ptemp
);
840 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
842 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
846 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
850 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
851 pyobj
= PyString_FromString(ptemp
);
855 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
857 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
861 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
865 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
866 pyobj
= PyString_FromString(ptemp
);
870 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
872 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
876 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
880 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
881 pyobj
= PyString_FromString(ptemp
);
885 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
887 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
891 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
895 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
896 pyobj
= PyString_FromString(ptemp
);
900 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
902 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
906 static PyObject
*_wrap_wxRED_BRUSH_get() {
910 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
911 pyobj
= PyString_FromString(ptemp
);
915 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
917 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
921 static PyObject
*_wrap_wxGREY_BRUSH_get() {
925 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
926 pyobj
= PyString_FromString(ptemp
);
930 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
932 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
936 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
940 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
941 pyobj
= PyString_FromString(ptemp
);
945 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
947 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
951 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
955 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
956 pyobj
= PyString_FromString(ptemp
);
960 static int _wrap_wxBLACK_set(PyObject
*val
) {
962 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
966 static PyObject
*_wrap_wxBLACK_get() {
970 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
971 pyobj
= PyString_FromString(ptemp
);
975 static int _wrap_wxWHITE_set(PyObject
*val
) {
977 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
981 static PyObject
*_wrap_wxWHITE_get() {
985 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
986 pyobj
= PyString_FromString(ptemp
);
990 static int _wrap_wxRED_set(PyObject
*val
) {
992 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
996 static PyObject
*_wrap_wxRED_get() {
1000 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1001 pyobj
= PyString_FromString(ptemp
);
1005 static int _wrap_wxBLUE_set(PyObject
*val
) {
1007 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1011 static PyObject
*_wrap_wxBLUE_get() {
1015 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1016 pyobj
= PyString_FromString(ptemp
);
1020 static int _wrap_wxGREEN_set(PyObject
*val
) {
1022 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1026 static PyObject
*_wrap_wxGREEN_get() {
1030 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1031 pyobj
= PyString_FromString(ptemp
);
1035 static int _wrap_wxCYAN_set(PyObject
*val
) {
1037 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1041 static PyObject
*_wrap_wxCYAN_get() {
1045 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1046 pyobj
= PyString_FromString(ptemp
);
1050 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1052 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1056 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1060 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1061 pyobj
= PyString_FromString(ptemp
);
1065 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1067 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1071 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1075 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1076 pyobj
= PyString_FromString(ptemp
);
1080 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1082 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1086 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1090 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1091 pyobj
= PyString_FromString(ptemp
);
1095 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1097 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1101 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1105 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1106 pyobj
= PyString_FromString(ptemp
);
1110 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1112 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1116 static PyObject
*_wrap_wxNullBitmap_get() {
1120 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1121 pyobj
= PyString_FromString(ptemp
);
1125 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1127 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1131 static PyObject
*_wrap_wxNullIcon_get() {
1135 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1136 pyobj
= PyString_FromString(ptemp
);
1140 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1142 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1146 static PyObject
*_wrap_wxNullCursor_get() {
1150 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1151 pyobj
= PyString_FromString(ptemp
);
1155 static int _wrap_wxNullPen_set(PyObject
*val
) {
1157 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1161 static PyObject
*_wrap_wxNullPen_get() {
1165 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1166 pyobj
= PyString_FromString(ptemp
);
1170 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1172 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1176 static PyObject
*_wrap_wxNullBrush_get() {
1180 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1181 pyobj
= PyString_FromString(ptemp
);
1185 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1187 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1191 static PyObject
*_wrap_wxNullPalette_get() {
1195 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1196 pyobj
= PyString_FromString(ptemp
);
1200 static int _wrap_wxNullFont_set(PyObject
*val
) {
1202 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1206 static PyObject
*_wrap_wxNullFont_get() {
1210 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1211 pyobj
= PyString_FromString(ptemp
);
1215 static int _wrap_wxNullColour_set(PyObject
*val
) {
1217 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1221 static PyObject
*_wrap_wxNullColour_get() {
1225 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1226 pyobj
= PyString_FromString(ptemp
);
1230 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1232 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1236 static PyObject
*_wrap_wxTheFontList_get() {
1240 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1241 pyobj
= PyString_FromString(ptemp
);
1245 static int _wrap_wxThePenList_set(PyObject
*val
) {
1247 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1251 static PyObject
*_wrap_wxThePenList_get() {
1255 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1256 pyobj
= PyString_FromString(ptemp
);
1260 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1262 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1266 static PyObject
*_wrap_wxTheBrushList_get() {
1270 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1271 pyobj
= PyString_FromString(ptemp
);
1275 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1277 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1281 static PyObject
*_wrap_wxTheColourDatabase_get() {
1285 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1286 pyobj
= PyString_FromString(ptemp
);
1290 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1293 src
= (wxGDIObject
*) ptr
;
1294 dest
= (wxObject
*) src
;
1295 return (void *) dest
;
1298 #define new_wxGDIObject() (new wxGDIObject())
1299 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1300 PyObject
* _resultobj
;
1301 wxGDIObject
* _result
;
1302 char *_kwnames
[] = { NULL
};
1306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1309 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1310 _result
= (wxGDIObject
*)new_wxGDIObject();
1312 wxPyEndAllowThreads(__tstate
);
1313 if (PyErr_Occurred()) return NULL
;
1315 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1316 _resultobj
= Py_BuildValue("s",_ptemp
);
1319 _resultobj
= Py_None
;
1324 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1325 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1326 PyObject
* _resultobj
;
1327 wxGDIObject
* _arg0
;
1328 PyObject
* _argo0
= 0;
1329 char *_kwnames
[] = { "self", NULL
};
1332 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1335 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1336 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1337 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1342 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1343 delete_wxGDIObject(_arg0
);
1345 wxPyEndAllowThreads(__tstate
);
1346 if (PyErr_Occurred()) return NULL
;
1347 } Py_INCREF(Py_None
);
1348 _resultobj
= Py_None
;
1352 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1353 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1354 PyObject
* _resultobj
;
1356 wxGDIObject
* _arg0
;
1357 PyObject
* _argo0
= 0;
1358 char *_kwnames
[] = { "self", NULL
};
1361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1371 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1372 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1374 wxPyEndAllowThreads(__tstate
);
1375 if (PyErr_Occurred()) return NULL
;
1376 } _resultobj
= Py_BuildValue("i",_result
);
1380 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1381 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1382 PyObject
* _resultobj
;
1383 wxGDIObject
* _arg0
;
1385 PyObject
* _argo0
= 0;
1387 char *_kwnames
[] = { "self","visible", NULL
};
1390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1399 _arg1
= (bool ) tempbool1
;
1401 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1402 wxGDIObject_SetVisible(_arg0
,_arg1
);
1404 wxPyEndAllowThreads(__tstate
);
1405 if (PyErr_Occurred()) return NULL
;
1406 } Py_INCREF(Py_None
);
1407 _resultobj
= Py_None
;
1411 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1412 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1413 PyObject
* _resultobj
;
1415 wxGDIObject
* _arg0
;
1416 PyObject
* _argo0
= 0;
1417 char *_kwnames
[] = { "self", NULL
};
1420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1430 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1431 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1433 wxPyEndAllowThreads(__tstate
);
1434 if (PyErr_Occurred()) return NULL
;
1435 } _resultobj
= Py_BuildValue("i",_result
);
1439 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1442 src
= (wxBitmap
*) ptr
;
1443 dest
= (wxGDIObject
*) src
;
1444 return (void *) dest
;
1447 static void *SwigwxBitmapTowxObject(void *ptr
) {
1450 src
= (wxBitmap
*) ptr
;
1451 dest
= (wxObject
*) src
;
1452 return (void *) dest
;
1455 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1456 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1457 PyObject
* _resultobj
;
1460 wxBitmapType _arg1
= (wxBitmapType
) wxBITMAP_TYPE_BMP
;
1461 PyObject
* _obj0
= 0;
1462 char *_kwnames
[] = { "name","type", NULL
};
1466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1469 #if PYTHON_API_VERSION >= 1009
1470 char* tmpPtr
; int tmpSize
;
1471 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1472 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1475 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1477 _arg0
= new wxString(tmpPtr
, tmpSize
);
1479 if (!PyString_Check(_obj0
)) {
1480 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1483 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1488 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1490 wxPyEndAllowThreads(__tstate
);
1491 if (PyErr_Occurred()) return NULL
;
1493 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1494 _resultobj
= Py_BuildValue("s",_ptemp
);
1497 _resultobj
= Py_None
;
1506 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1507 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1508 PyObject
* _resultobj
;
1510 PyObject
* _argo0
= 0;
1511 char *_kwnames
[] = { "self", NULL
};
1514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1525 delete_wxBitmap(_arg0
);
1527 wxPyEndAllowThreads(__tstate
);
1528 if (PyErr_Occurred()) return NULL
;
1529 } Py_INCREF(Py_None
);
1530 _resultobj
= Py_None
;
1534 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1535 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1536 PyObject
* _resultobj
;
1537 wxPalette
* _result
;
1539 PyObject
* _argo0
= 0;
1540 char *_kwnames
[] = { "self", NULL
};
1544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1554 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1555 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1557 wxPyEndAllowThreads(__tstate
);
1558 if (PyErr_Occurred()) return NULL
;
1560 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1561 _resultobj
= Py_BuildValue("s",_ptemp
);
1564 _resultobj
= Py_None
;
1569 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1570 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1571 PyObject
* _resultobj
;
1574 PyObject
* _argo0
= 0;
1575 char *_kwnames
[] = { "self", NULL
};
1579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1582 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1583 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1584 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1589 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1590 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1592 wxPyEndAllowThreads(__tstate
);
1593 if (PyErr_Occurred()) return NULL
;
1595 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1596 _resultobj
= Py_BuildValue("s",_ptemp
);
1599 _resultobj
= Py_None
;
1604 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1605 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1606 PyObject
* _resultobj
;
1610 wxBitmapType _arg2
= (wxBitmapType
) wxBITMAP_TYPE_BMP
;
1611 PyObject
* _argo0
= 0;
1612 PyObject
* _obj1
= 0;
1613 char *_kwnames
[] = { "self","name","type", NULL
};
1616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1626 #if PYTHON_API_VERSION >= 1009
1627 char* tmpPtr
; int tmpSize
;
1628 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1629 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1632 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1634 _arg1
= new wxString(tmpPtr
, tmpSize
);
1636 if (!PyString_Check(_obj1
)) {
1637 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1640 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1645 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1647 wxPyEndAllowThreads(__tstate
);
1648 if (PyErr_Occurred()) return NULL
;
1649 } _resultobj
= Py_BuildValue("i",_result
);
1657 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1658 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1659 PyObject
* _resultobj
;
1664 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1665 PyObject
* _argo0
= 0;
1666 PyObject
* _obj1
= 0;
1667 PyObject
* _argo3
= 0;
1668 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1681 #if PYTHON_API_VERSION >= 1009
1682 char* tmpPtr
; int tmpSize
;
1683 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1684 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1687 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1689 _arg1
= new wxString(tmpPtr
, tmpSize
);
1691 if (!PyString_Check(_obj1
)) {
1692 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1695 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1699 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1700 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1706 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1707 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1709 wxPyEndAllowThreads(__tstate
);
1710 if (PyErr_Occurred()) return NULL
;
1711 } _resultobj
= Py_BuildValue("i",_result
);
1719 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1720 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1721 PyObject
* _resultobj
;
1724 PyObject
* _argo0
= 0;
1725 PyObject
* _argo1
= 0;
1726 char *_kwnames
[] = { "self","mask", NULL
};
1729 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1732 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1733 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1734 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1739 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1740 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1747 wxBitmap_SetMask(_arg0
,_arg1
);
1749 wxPyEndAllowThreads(__tstate
);
1750 if (PyErr_Occurred()) return NULL
;
1751 } Py_INCREF(Py_None
);
1752 _resultobj
= Py_None
;
1756 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1757 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1758 PyObject
* _resultobj
;
1761 PyObject
* _argo0
= 0;
1762 char *_kwnames
[] = { "self", NULL
};
1765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1776 _result
= (bool )wxBitmap_Ok(_arg0
);
1778 wxPyEndAllowThreads(__tstate
);
1779 if (PyErr_Occurred()) return NULL
;
1780 } _resultobj
= Py_BuildValue("i",_result
);
1784 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1785 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1786 PyObject
* _resultobj
;
1789 PyObject
* _argo0
= 0;
1790 char *_kwnames
[] = { "self", NULL
};
1793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1803 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1804 _result
= (int )wxBitmap_GetWidth(_arg0
);
1806 wxPyEndAllowThreads(__tstate
);
1807 if (PyErr_Occurred()) return NULL
;
1808 } _resultobj
= Py_BuildValue("i",_result
);
1812 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1813 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1814 PyObject
* _resultobj
;
1817 PyObject
* _argo0
= 0;
1818 char *_kwnames
[] = { "self", NULL
};
1821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1831 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1832 _result
= (int )wxBitmap_GetHeight(_arg0
);
1834 wxPyEndAllowThreads(__tstate
);
1835 if (PyErr_Occurred()) return NULL
;
1836 } _resultobj
= Py_BuildValue("i",_result
);
1840 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1841 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1842 PyObject
* _resultobj
;
1845 PyObject
* _argo0
= 0;
1846 char *_kwnames
[] = { "self", NULL
};
1849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1859 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1860 _result
= (int )wxBitmap_GetDepth(_arg0
);
1862 wxPyEndAllowThreads(__tstate
);
1863 if (PyErr_Occurred()) return NULL
;
1864 } _resultobj
= Py_BuildValue("i",_result
);
1868 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1869 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1870 PyObject
* _resultobj
;
1873 PyObject
* _argo0
= 0;
1874 char *_kwnames
[] = { "self","w", NULL
};
1877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1880 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1881 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1887 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1888 wxBitmap_SetWidth(_arg0
,_arg1
);
1890 wxPyEndAllowThreads(__tstate
);
1891 if (PyErr_Occurred()) return NULL
;
1892 } Py_INCREF(Py_None
);
1893 _resultobj
= Py_None
;
1897 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1898 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1899 PyObject
* _resultobj
;
1902 PyObject
* _argo0
= 0;
1903 char *_kwnames
[] = { "self","h", NULL
};
1906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1916 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1917 wxBitmap_SetHeight(_arg0
,_arg1
);
1919 wxPyEndAllowThreads(__tstate
);
1920 if (PyErr_Occurred()) return NULL
;
1921 } Py_INCREF(Py_None
);
1922 _resultobj
= Py_None
;
1926 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1927 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1928 PyObject
* _resultobj
;
1931 PyObject
* _argo0
= 0;
1932 char *_kwnames
[] = { "self","d", NULL
};
1935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1945 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1946 wxBitmap_SetDepth(_arg0
,_arg1
);
1948 wxPyEndAllowThreads(__tstate
);
1949 if (PyErr_Occurred()) return NULL
;
1950 } Py_INCREF(Py_None
);
1951 _resultobj
= Py_None
;
1955 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1956 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1957 PyObject
* _resultobj
;
1961 PyObject
* _argo0
= 0;
1963 PyObject
* _obj1
= 0;
1964 char *_kwnames
[] = { "self","rect", NULL
};
1968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1979 if (! wxRect_helper(_obj1
, &_arg1
))
1983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1984 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
1986 wxPyEndAllowThreads(__tstate
);
1987 if (PyErr_Occurred()) return NULL
;
1988 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1989 _resultobj
= Py_BuildValue("s",_ptemp
);
1993 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
1994 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1995 PyObject
* _resultobj
;
1999 PyObject
* _argo0
= 0;
2000 PyObject
* _argo1
= 0;
2001 char *_kwnames
[] = { "self","icon", NULL
};
2004 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2007 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2008 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2009 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2014 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2015 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2021 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2022 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2024 wxPyEndAllowThreads(__tstate
);
2025 if (PyErr_Occurred()) return NULL
;
2026 } _resultobj
= Py_BuildValue("i",_result
);
2030 static void *SwigwxMaskTowxObject(void *ptr
) {
2033 src
= (wxMask
*) ptr
;
2034 dest
= (wxObject
*) src
;
2035 return (void *) dest
;
2038 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2039 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2040 PyObject
* _resultobj
;
2043 PyObject
* _argo0
= 0;
2044 char *_kwnames
[] = { "bitmap", NULL
};
2048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2058 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2059 _result
= (wxMask
*)new_wxMask(*_arg0
);
2061 wxPyEndAllowThreads(__tstate
);
2062 if (PyErr_Occurred()) return NULL
;
2064 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2065 _resultobj
= Py_BuildValue("s",_ptemp
);
2068 _resultobj
= Py_None
;
2073 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2074 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2075 PyObject
* _resultobj
;
2077 PyObject
* _argo0
= 0;
2078 char *_kwnames
[] = { "self", NULL
};
2081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2092 wxMask_Destroy(_arg0
);
2094 wxPyEndAllowThreads(__tstate
);
2095 if (PyErr_Occurred()) return NULL
;
2096 } Py_INCREF(Py_None
);
2097 _resultobj
= Py_None
;
2101 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2104 src
= (wxIcon
*) ptr
;
2105 dest
= (wxGDIObject
*) src
;
2106 return (void *) dest
;
2109 static void *SwigwxIconTowxObject(void *ptr
) {
2112 src
= (wxIcon
*) ptr
;
2113 dest
= (wxObject
*) src
;
2114 return (void *) dest
;
2117 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2118 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2119 PyObject
* _resultobj
;
2123 int _arg2
= (int ) -1;
2124 int _arg3
= (int ) -1;
2125 PyObject
* _obj0
= 0;
2126 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2130 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2133 #if PYTHON_API_VERSION >= 1009
2134 char* tmpPtr
; int tmpSize
;
2135 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2136 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2139 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2141 _arg0
= new wxString(tmpPtr
, tmpSize
);
2143 if (!PyString_Check(_obj0
)) {
2144 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2147 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2151 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2152 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2154 wxPyEndAllowThreads(__tstate
);
2155 if (PyErr_Occurred()) return NULL
;
2157 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2158 _resultobj
= Py_BuildValue("s",_ptemp
);
2161 _resultobj
= Py_None
;
2170 #define delete_wxIcon(_swigobj) (delete _swigobj)
2171 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2172 PyObject
* _resultobj
;
2174 PyObject
* _argo0
= 0;
2175 char *_kwnames
[] = { "self", NULL
};
2178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2189 delete_wxIcon(_arg0
);
2191 wxPyEndAllowThreads(__tstate
);
2192 if (PyErr_Occurred()) return NULL
;
2193 } Py_INCREF(Py_None
);
2194 _resultobj
= Py_None
;
2198 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2199 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2200 PyObject
* _resultobj
;
2203 PyObject
* _argo0
= 0;
2204 char *_kwnames
[] = { "self", NULL
};
2207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2210 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2211 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2217 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2218 _result
= (bool )wxIcon_Ok(_arg0
);
2220 wxPyEndAllowThreads(__tstate
);
2221 if (PyErr_Occurred()) return NULL
;
2222 } _resultobj
= Py_BuildValue("i",_result
);
2226 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2227 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2228 PyObject
* _resultobj
;
2231 PyObject
* _argo0
= 0;
2232 char *_kwnames
[] = { "self", NULL
};
2235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2245 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2246 _result
= (int )wxIcon_GetWidth(_arg0
);
2248 wxPyEndAllowThreads(__tstate
);
2249 if (PyErr_Occurred()) return NULL
;
2250 } _resultobj
= Py_BuildValue("i",_result
);
2254 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2255 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2256 PyObject
* _resultobj
;
2259 PyObject
* _argo0
= 0;
2260 char *_kwnames
[] = { "self", NULL
};
2263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2273 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2274 _result
= (int )wxIcon_GetHeight(_arg0
);
2276 wxPyEndAllowThreads(__tstate
);
2277 if (PyErr_Occurred()) return NULL
;
2278 } _resultobj
= Py_BuildValue("i",_result
);
2282 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2283 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2284 PyObject
* _resultobj
;
2287 PyObject
* _argo0
= 0;
2288 char *_kwnames
[] = { "self", NULL
};
2291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2301 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2302 _result
= (int )wxIcon_GetDepth(_arg0
);
2304 wxPyEndAllowThreads(__tstate
);
2305 if (PyErr_Occurred()) return NULL
;
2306 } _resultobj
= Py_BuildValue("i",_result
);
2310 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2311 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2312 PyObject
* _resultobj
;
2315 PyObject
* _argo0
= 0;
2316 char *_kwnames
[] = { "self","w", NULL
};
2319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2329 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2330 wxIcon_SetWidth(_arg0
,_arg1
);
2332 wxPyEndAllowThreads(__tstate
);
2333 if (PyErr_Occurred()) return NULL
;
2334 } Py_INCREF(Py_None
);
2335 _resultobj
= Py_None
;
2339 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2340 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2341 PyObject
* _resultobj
;
2344 PyObject
* _argo0
= 0;
2345 char *_kwnames
[] = { "self","h", NULL
};
2348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2358 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2359 wxIcon_SetHeight(_arg0
,_arg1
);
2361 wxPyEndAllowThreads(__tstate
);
2362 if (PyErr_Occurred()) return NULL
;
2363 } Py_INCREF(Py_None
);
2364 _resultobj
= Py_None
;
2368 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2369 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2370 PyObject
* _resultobj
;
2373 PyObject
* _argo0
= 0;
2374 char *_kwnames
[] = { "self","d", NULL
};
2377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2387 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2388 wxIcon_SetDepth(_arg0
,_arg1
);
2390 wxPyEndAllowThreads(__tstate
);
2391 if (PyErr_Occurred()) return NULL
;
2392 } Py_INCREF(Py_None
);
2393 _resultobj
= Py_None
;
2397 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2398 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2399 PyObject
* _resultobj
;
2402 PyObject
* _argo0
= 0;
2403 PyObject
* _argo1
= 0;
2404 char *_kwnames
[] = { "self","bmp", NULL
};
2407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2417 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2418 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2424 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2425 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2427 wxPyEndAllowThreads(__tstate
);
2428 if (PyErr_Occurred()) return NULL
;
2429 } Py_INCREF(Py_None
);
2430 _resultobj
= Py_None
;
2434 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2437 src
= (wxCursor
*) ptr
;
2438 dest
= (wxGDIObject
*) src
;
2439 return (void *) dest
;
2442 static void *SwigwxCursorTowxObject(void *ptr
) {
2445 src
= (wxCursor
*) ptr
;
2446 dest
= (wxObject
*) src
;
2447 return (void *) dest
;
2450 #define delete_wxCursor(_swigobj) (delete _swigobj)
2451 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2452 PyObject
* _resultobj
;
2454 PyObject
* _argo0
= 0;
2455 char *_kwnames
[] = { "self", NULL
};
2458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2468 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2469 delete_wxCursor(_arg0
);
2471 wxPyEndAllowThreads(__tstate
);
2472 if (PyErr_Occurred()) return NULL
;
2473 } Py_INCREF(Py_None
);
2474 _resultobj
= Py_None
;
2478 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2479 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2480 PyObject
* _resultobj
;
2483 PyObject
* _argo0
= 0;
2484 char *_kwnames
[] = { "self", NULL
};
2487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2498 _result
= (bool )wxCursor_Ok(_arg0
);
2500 wxPyEndAllowThreads(__tstate
);
2501 if (PyErr_Occurred()) return NULL
;
2502 } _resultobj
= Py_BuildValue("i",_result
);
2506 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
2507 static PyObject
*_wrap_new_wxNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2508 PyObject
* _resultobj
;
2509 wxNativeFontInfo
* _result
;
2510 char *_kwnames
[] = { NULL
};
2514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxNativeFontInfo",_kwnames
))
2517 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2518 _result
= (wxNativeFontInfo
*)new_wxNativeFontInfo();
2520 wxPyEndAllowThreads(__tstate
);
2521 if (PyErr_Occurred()) return NULL
;
2523 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
2524 _resultobj
= Py_BuildValue("s",_ptemp
);
2527 _resultobj
= Py_None
;
2532 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
2533 static PyObject
*_wrap_wxNativeFontInfo_Init(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2534 PyObject
* _resultobj
;
2535 wxNativeFontInfo
* _arg0
;
2536 PyObject
* _argo0
= 0;
2537 char *_kwnames
[] = { "self", NULL
};
2540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_Init",_kwnames
,&_argo0
))
2543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
2550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2551 wxNativeFontInfo_Init(_arg0
);
2553 wxPyEndAllowThreads(__tstate
);
2554 if (PyErr_Occurred()) return NULL
;
2555 } Py_INCREF(Py_None
);
2556 _resultobj
= Py_None
;
2560 #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize())
2561 static PyObject
*_wrap_wxNativeFontInfo_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2562 PyObject
* _resultobj
;
2564 wxNativeFontInfo
* _arg0
;
2565 PyObject
* _argo0
= 0;
2566 char *_kwnames
[] = { "self", NULL
};
2569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetPointSize",_kwnames
,&_argo0
))
2572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p.");
2579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2580 _result
= (int )wxNativeFontInfo_GetPointSize(_arg0
);
2582 wxPyEndAllowThreads(__tstate
);
2583 if (PyErr_Occurred()) return NULL
;
2584 } _resultobj
= Py_BuildValue("i",_result
);
2588 #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle())
2589 static PyObject
*_wrap_wxNativeFontInfo_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2590 PyObject
* _resultobj
;
2591 wxFontStyle _result
;
2592 wxNativeFontInfo
* _arg0
;
2593 PyObject
* _argo0
= 0;
2594 char *_kwnames
[] = { "self", NULL
};
2597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetStyle",_kwnames
,&_argo0
))
2600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p.");
2607 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2608 _result
= (wxFontStyle
)wxNativeFontInfo_GetStyle(_arg0
);
2610 wxPyEndAllowThreads(__tstate
);
2611 if (PyErr_Occurred()) return NULL
;
2612 } _resultobj
= Py_BuildValue("i",_result
);
2616 #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight())
2617 static PyObject
*_wrap_wxNativeFontInfo_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2618 PyObject
* _resultobj
;
2619 wxFontWeight _result
;
2620 wxNativeFontInfo
* _arg0
;
2621 PyObject
* _argo0
= 0;
2622 char *_kwnames
[] = { "self", NULL
};
2625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetWeight",_kwnames
,&_argo0
))
2628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p.");
2635 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2636 _result
= (wxFontWeight
)wxNativeFontInfo_GetWeight(_arg0
);
2638 wxPyEndAllowThreads(__tstate
);
2639 if (PyErr_Occurred()) return NULL
;
2640 } _resultobj
= Py_BuildValue("i",_result
);
2644 #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
2645 static PyObject
*_wrap_wxNativeFontInfo_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2646 PyObject
* _resultobj
;
2648 wxNativeFontInfo
* _arg0
;
2649 PyObject
* _argo0
= 0;
2650 char *_kwnames
[] = { "self", NULL
};
2653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetUnderlined",_kwnames
,&_argo0
))
2656 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2657 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p.");
2663 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2664 _result
= (bool )wxNativeFontInfo_GetUnderlined(_arg0
);
2666 wxPyEndAllowThreads(__tstate
);
2667 if (PyErr_Occurred()) return NULL
;
2668 } _resultobj
= Py_BuildValue("i",_result
);
2672 #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName())
2673 static PyObject
*_wrap_wxNativeFontInfo_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2674 PyObject
* _resultobj
;
2676 wxNativeFontInfo
* _arg0
;
2677 PyObject
* _argo0
= 0;
2678 char *_kwnames
[] = { "self", NULL
};
2681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetFaceName",_kwnames
,&_argo0
))
2684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p.");
2691 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2692 _result
= new wxString (wxNativeFontInfo_GetFaceName(_arg0
));
2694 wxPyEndAllowThreads(__tstate
);
2695 if (PyErr_Occurred()) return NULL
;
2697 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2705 #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily())
2706 static PyObject
*_wrap_wxNativeFontInfo_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2707 PyObject
* _resultobj
;
2708 wxFontFamily _result
;
2709 wxNativeFontInfo
* _arg0
;
2710 PyObject
* _argo0
= 0;
2711 char *_kwnames
[] = { "self", NULL
};
2714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetFamily",_kwnames
,&_argo0
))
2717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p.");
2724 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2725 _result
= (wxFontFamily
)wxNativeFontInfo_GetFamily(_arg0
);
2727 wxPyEndAllowThreads(__tstate
);
2728 if (PyErr_Occurred()) return NULL
;
2729 } _resultobj
= Py_BuildValue("i",_result
);
2733 #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding())
2734 static PyObject
*_wrap_wxNativeFontInfo_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2735 PyObject
* _resultobj
;
2736 wxFontEncoding _result
;
2737 wxNativeFontInfo
* _arg0
;
2738 PyObject
* _argo0
= 0;
2739 char *_kwnames
[] = { "self", NULL
};
2742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetEncoding",_kwnames
,&_argo0
))
2745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p.");
2752 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2753 _result
= (wxFontEncoding
)wxNativeFontInfo_GetEncoding(_arg0
);
2755 wxPyEndAllowThreads(__tstate
);
2756 if (PyErr_Occurred()) return NULL
;
2757 } _resultobj
= Py_BuildValue("i",_result
);
2761 #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
2762 static PyObject
*_wrap_wxNativeFontInfo_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2763 PyObject
* _resultobj
;
2764 wxNativeFontInfo
* _arg0
;
2766 PyObject
* _argo0
= 0;
2767 char *_kwnames
[] = { "self","pointsize", NULL
};
2770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
2773 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2774 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2775 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p.");
2780 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2781 wxNativeFontInfo_SetPointSize(_arg0
,_arg1
);
2783 wxPyEndAllowThreads(__tstate
);
2784 if (PyErr_Occurred()) return NULL
;
2785 } Py_INCREF(Py_None
);
2786 _resultobj
= Py_None
;
2790 #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
2791 static PyObject
*_wrap_wxNativeFontInfo_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2792 PyObject
* _resultobj
;
2793 wxNativeFontInfo
* _arg0
;
2795 PyObject
* _argo0
= 0;
2796 char *_kwnames
[] = { "self","style", NULL
};
2799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetStyle",_kwnames
,&_argo0
,&_arg1
))
2802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p.");
2809 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2810 wxNativeFontInfo_SetStyle(_arg0
,_arg1
);
2812 wxPyEndAllowThreads(__tstate
);
2813 if (PyErr_Occurred()) return NULL
;
2814 } Py_INCREF(Py_None
);
2815 _resultobj
= Py_None
;
2819 #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
2820 static PyObject
*_wrap_wxNativeFontInfo_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2821 PyObject
* _resultobj
;
2822 wxNativeFontInfo
* _arg0
;
2824 PyObject
* _argo0
= 0;
2825 char *_kwnames
[] = { "self","weight", NULL
};
2828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetWeight",_kwnames
,&_argo0
,&_arg1
))
2831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p.");
2838 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2839 wxNativeFontInfo_SetWeight(_arg0
,_arg1
);
2841 wxPyEndAllowThreads(__tstate
);
2842 if (PyErr_Occurred()) return NULL
;
2843 } Py_INCREF(Py_None
);
2844 _resultobj
= Py_None
;
2848 #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
2849 static PyObject
*_wrap_wxNativeFontInfo_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2850 PyObject
* _resultobj
;
2851 wxNativeFontInfo
* _arg0
;
2853 PyObject
* _argo0
= 0;
2855 char *_kwnames
[] = { "self","underlined", NULL
};
2858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
2861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p.");
2867 _arg1
= (bool ) tempbool1
;
2869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2870 wxNativeFontInfo_SetUnderlined(_arg0
,_arg1
);
2872 wxPyEndAllowThreads(__tstate
);
2873 if (PyErr_Occurred()) return NULL
;
2874 } Py_INCREF(Py_None
);
2875 _resultobj
= Py_None
;
2879 #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
2880 static PyObject
*_wrap_wxNativeFontInfo_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2881 PyObject
* _resultobj
;
2882 wxNativeFontInfo
* _arg0
;
2884 PyObject
* _argo0
= 0;
2885 PyObject
* _obj1
= 0;
2886 char *_kwnames
[] = { "self","facename", NULL
};
2889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
2892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p.");
2899 #if PYTHON_API_VERSION >= 1009
2900 char* tmpPtr
; int tmpSize
;
2901 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2902 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2905 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2907 _arg1
= new wxString(tmpPtr
, tmpSize
);
2909 if (!PyString_Check(_obj1
)) {
2910 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2913 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2917 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2918 wxNativeFontInfo_SetFaceName(_arg0
,*_arg1
);
2920 wxPyEndAllowThreads(__tstate
);
2921 if (PyErr_Occurred()) return NULL
;
2922 } Py_INCREF(Py_None
);
2923 _resultobj
= Py_None
;
2931 #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
2932 static PyObject
*_wrap_wxNativeFontInfo_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2933 PyObject
* _resultobj
;
2934 wxNativeFontInfo
* _arg0
;
2936 PyObject
* _argo0
= 0;
2937 char *_kwnames
[] = { "self","family", NULL
};
2940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetFamily",_kwnames
,&_argo0
,&_arg1
))
2943 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2944 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p.");
2950 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2951 wxNativeFontInfo_SetFamily(_arg0
,_arg1
);
2953 wxPyEndAllowThreads(__tstate
);
2954 if (PyErr_Occurred()) return NULL
;
2955 } Py_INCREF(Py_None
);
2956 _resultobj
= Py_None
;
2960 #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
2961 static PyObject
*_wrap_wxNativeFontInfo_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2962 PyObject
* _resultobj
;
2963 wxNativeFontInfo
* _arg0
;
2964 wxFontEncoding _arg1
;
2965 PyObject
* _argo0
= 0;
2966 char *_kwnames
[] = { "self","encoding", NULL
};
2969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
2972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p.");
2979 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2980 wxNativeFontInfo_SetEncoding(_arg0
,_arg1
);
2982 wxPyEndAllowThreads(__tstate
);
2983 if (PyErr_Occurred()) return NULL
;
2984 } Py_INCREF(Py_None
);
2985 _resultobj
= Py_None
;
2989 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
2990 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2991 PyObject
* _resultobj
;
2993 wxNativeFontInfo
* _arg0
;
2995 PyObject
* _argo0
= 0;
2996 PyObject
* _obj1
= 0;
2997 char *_kwnames
[] = { "self","s", NULL
};
3000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
3003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3010 #if PYTHON_API_VERSION >= 1009
3011 char* tmpPtr
; int tmpSize
;
3012 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3013 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3016 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3018 _arg1
= new wxString(tmpPtr
, tmpSize
);
3020 if (!PyString_Check(_obj1
)) {
3021 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3024 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3029 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
3031 wxPyEndAllowThreads(__tstate
);
3032 if (PyErr_Occurred()) return NULL
;
3033 } _resultobj
= Py_BuildValue("i",_result
);
3041 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3042 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3043 PyObject
* _resultobj
;
3045 wxNativeFontInfo
* _arg0
;
3046 PyObject
* _argo0
= 0;
3047 char *_kwnames
[] = { "self", NULL
};
3050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
3053 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3054 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3060 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3061 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
3063 wxPyEndAllowThreads(__tstate
);
3064 if (PyErr_Occurred()) return NULL
;
3066 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3074 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
3075 return self
->ToString();
3077 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3078 PyObject
* _resultobj
;
3080 wxNativeFontInfo
* _arg0
;
3081 PyObject
* _argo0
= 0;
3082 char *_kwnames
[] = { "self", NULL
};
3085 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
3088 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3089 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3090 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3095 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3096 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
3098 wxPyEndAllowThreads(__tstate
);
3099 if (PyErr_Occurred()) return NULL
;
3101 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3109 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
3110 static PyObject
*_wrap_wxNativeFontInfo_FromUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3111 PyObject
* _resultobj
;
3113 wxNativeFontInfo
* _arg0
;
3115 PyObject
* _argo0
= 0;
3116 PyObject
* _obj1
= 0;
3117 char *_kwnames
[] = { "self","s", NULL
};
3120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromUserString",_kwnames
,&_argo0
,&_obj1
))
3123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
3130 #if PYTHON_API_VERSION >= 1009
3131 char* tmpPtr
; int tmpSize
;
3132 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3133 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3136 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3138 _arg1
= new wxString(tmpPtr
, tmpSize
);
3140 if (!PyString_Check(_obj1
)) {
3141 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3144 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3148 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3149 _result
= (bool )wxNativeFontInfo_FromUserString(_arg0
,*_arg1
);
3151 wxPyEndAllowThreads(__tstate
);
3152 if (PyErr_Occurred()) return NULL
;
3153 } _resultobj
= Py_BuildValue("i",_result
);
3161 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
3162 static PyObject
*_wrap_wxNativeFontInfo_ToUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3163 PyObject
* _resultobj
;
3165 wxNativeFontInfo
* _arg0
;
3166 PyObject
* _argo0
= 0;
3167 char *_kwnames
[] = { "self", NULL
};
3170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToUserString",_kwnames
,&_argo0
))
3173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
3180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3181 _result
= new wxString (wxNativeFontInfo_ToUserString(_arg0
));
3183 wxPyEndAllowThreads(__tstate
);
3184 if (PyErr_Occurred()) return NULL
;
3186 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3194 #define new_wxFontMapper() (new wxFontMapper())
3195 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3196 PyObject
* _resultobj
;
3197 wxFontMapper
* _result
;
3198 char *_kwnames
[] = { NULL
};
3202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
3205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3206 _result
= (wxFontMapper
*)new_wxFontMapper();
3208 wxPyEndAllowThreads(__tstate
);
3209 if (PyErr_Occurred()) return NULL
;
3211 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
3212 _resultobj
= Py_BuildValue("s",_ptemp
);
3215 _resultobj
= Py_None
;
3220 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3221 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3222 PyObject
* _resultobj
;
3223 wxFontMapper
* _arg0
;
3224 PyObject
* _argo0
= 0;
3225 char *_kwnames
[] = { "self", NULL
};
3228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
3231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3238 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3239 delete_wxFontMapper(_arg0
);
3241 wxPyEndAllowThreads(__tstate
);
3242 if (PyErr_Occurred()) return NULL
;
3243 } Py_INCREF(Py_None
);
3244 _resultobj
= Py_None
;
3248 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
3249 wxFontEncoding alt_enc
;
3250 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
3251 return PyInt_FromLong(alt_enc
);
3257 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3258 PyObject
* _resultobj
;
3260 wxFontMapper
* _arg0
;
3261 wxFontEncoding _arg1
;
3262 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3263 bool _arg3
= (bool ) TRUE
;
3264 PyObject
* _argo0
= 0;
3265 PyObject
* _obj2
= 0;
3266 int tempbool3
= (int) TRUE
;
3267 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
3270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
3273 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3274 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3281 #if PYTHON_API_VERSION >= 1009
3282 char* tmpPtr
; int tmpSize
;
3283 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3284 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3287 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3289 _arg2
= new wxString(tmpPtr
, tmpSize
);
3291 if (!PyString_Check(_obj2
)) {
3292 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3295 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3298 _arg3
= (bool ) tempbool3
;
3300 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3301 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
3303 wxPyEndAllowThreads(__tstate
);
3304 if (PyErr_Occurred()) return NULL
;
3306 _resultobj
= _result
;
3315 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3316 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3317 PyObject
* _resultobj
;
3319 wxFontMapper
* _arg0
;
3320 wxFontEncoding _arg1
;
3321 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3322 PyObject
* _argo0
= 0;
3323 PyObject
* _obj2
= 0;
3324 char *_kwnames
[] = { "self","encoding","facename", NULL
};
3327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
3330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
3338 #if PYTHON_API_VERSION >= 1009
3339 char* tmpPtr
; int tmpSize
;
3340 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3341 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3344 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3346 _arg2
= new wxString(tmpPtr
, tmpSize
);
3348 if (!PyString_Check(_obj2
)) {
3349 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3352 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3357 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
3359 wxPyEndAllowThreads(__tstate
);
3360 if (PyErr_Occurred()) return NULL
;
3361 } _resultobj
= Py_BuildValue("i",_result
);
3369 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3370 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3371 PyObject
* _resultobj
;
3372 wxFontEncoding _result
;
3373 wxFontMapper
* _arg0
;
3375 bool _arg2
= (bool ) TRUE
;
3376 PyObject
* _argo0
= 0;
3377 PyObject
* _obj1
= 0;
3378 int tempbool2
= (int) TRUE
;
3379 char *_kwnames
[] = { "self","charset","interactive", NULL
};
3382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
3385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
3392 #if PYTHON_API_VERSION >= 1009
3393 char* tmpPtr
; int tmpSize
;
3394 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3395 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3398 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3400 _arg1
= new wxString(tmpPtr
, tmpSize
);
3402 if (!PyString_Check(_obj1
)) {
3403 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3406 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3409 _arg2
= (bool ) tempbool2
;
3411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3412 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
3414 wxPyEndAllowThreads(__tstate
);
3415 if (PyErr_Occurred()) return NULL
;
3416 } _resultobj
= Py_BuildValue("i",_result
);
3424 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3425 PyObject
* _resultobj
;
3427 wxFontEncoding _arg0
;
3428 char *_kwnames
[] = { "encoding", NULL
};
3431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
3434 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3435 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
3437 wxPyEndAllowThreads(__tstate
);
3438 if (PyErr_Occurred()) return NULL
;
3440 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3448 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3449 PyObject
* _resultobj
;
3451 wxFontEncoding _arg0
;
3452 char *_kwnames
[] = { "encoding", NULL
};
3455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
3458 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3459 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
3461 wxPyEndAllowThreads(__tstate
);
3462 if (PyErr_Occurred()) return NULL
;
3464 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3472 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3473 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3474 PyObject
* _resultobj
;
3475 wxFontMapper
* _arg0
;
3477 PyObject
* _argo0
= 0;
3478 PyObject
* _argo1
= 0;
3479 char *_kwnames
[] = { "self","parent", NULL
};
3482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
3485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3492 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3493 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3499 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3500 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
3502 wxPyEndAllowThreads(__tstate
);
3503 if (PyErr_Occurred()) return NULL
;
3504 } Py_INCREF(Py_None
);
3505 _resultobj
= Py_None
;
3509 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3510 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3511 PyObject
* _resultobj
;
3512 wxFontMapper
* _arg0
;
3514 PyObject
* _argo0
= 0;
3515 PyObject
* _obj1
= 0;
3516 char *_kwnames
[] = { "self","title", NULL
};
3519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
3522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3529 #if PYTHON_API_VERSION >= 1009
3530 char* tmpPtr
; int tmpSize
;
3531 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3532 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3535 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3537 _arg1
= new wxString(tmpPtr
, tmpSize
);
3539 if (!PyString_Check(_obj1
)) {
3540 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3543 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3547 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3548 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
3550 wxPyEndAllowThreads(__tstate
);
3551 if (PyErr_Occurred()) return NULL
;
3552 } Py_INCREF(Py_None
);
3553 _resultobj
= Py_None
;
3561 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3562 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3563 PyObject
* _resultobj
;
3564 wxFontMapper
* _arg0
;
3565 wxConfigBase
* _arg1
;
3566 PyObject
* _argo0
= 0;
3567 PyObject
* _argo1
= 0;
3568 char *_kwnames
[] = { "self","config", NULL
};
3571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
3574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3581 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3582 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
3583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3589 wxFontMapper_SetConfig(_arg0
,_arg1
);
3591 wxPyEndAllowThreads(__tstate
);
3592 if (PyErr_Occurred()) return NULL
;
3593 } Py_INCREF(Py_None
);
3594 _resultobj
= Py_None
;
3598 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3599 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3600 PyObject
* _resultobj
;
3601 wxFontMapper
* _arg0
;
3603 PyObject
* _argo0
= 0;
3604 PyObject
* _obj1
= 0;
3605 char *_kwnames
[] = { "self","prefix", NULL
};
3608 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
3611 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3612 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3613 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3618 #if PYTHON_API_VERSION >= 1009
3619 char* tmpPtr
; int tmpSize
;
3620 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3621 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3624 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3626 _arg1
= new wxString(tmpPtr
, tmpSize
);
3628 if (!PyString_Check(_obj1
)) {
3629 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3632 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3636 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3637 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
3639 wxPyEndAllowThreads(__tstate
);
3640 if (PyErr_Occurred()) return NULL
;
3641 } Py_INCREF(Py_None
);
3642 _resultobj
= Py_None
;
3650 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3651 PyObject
* _resultobj
;
3653 char *_kwnames
[] = { NULL
};
3656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
3659 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3660 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
3662 wxPyEndAllowThreads(__tstate
);
3663 if (PyErr_Occurred()) return NULL
;
3664 } _resultobj
= Py_BuildValue("s", _result
);
3668 static void *SwigwxFontTowxGDIObject(void *ptr
) {
3671 src
= (wxFont
*) ptr
;
3672 dest
= (wxGDIObject
*) src
;
3673 return (void *) dest
;
3676 static void *SwigwxFontTowxObject(void *ptr
) {
3679 src
= (wxFont
*) ptr
;
3680 dest
= (wxObject
*) src
;
3681 return (void *) dest
;
3684 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3685 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3686 PyObject
* _resultobj
;
3692 int _arg4
= (int ) FALSE
;
3693 char * _arg5
= (char *) "";
3694 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3695 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
3699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3702 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3703 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3705 wxPyEndAllowThreads(__tstate
);
3706 if (PyErr_Occurred()) return NULL
;
3708 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3709 _resultobj
= Py_BuildValue("s",_ptemp
);
3712 _resultobj
= Py_None
;
3717 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3718 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3719 PyObject
* _resultobj
;
3721 wxNativeFontInfo
* _arg0
;
3722 PyObject
* _argo0
= 0;
3723 char *_kwnames
[] = { "info", NULL
};
3727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
3730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3737 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3738 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
3740 wxPyEndAllowThreads(__tstate
);
3741 if (PyErr_Occurred()) return NULL
;
3743 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3744 _resultobj
= Py_BuildValue("s",_ptemp
);
3747 _resultobj
= Py_None
;
3752 #define delete_wxFont(_swigobj) (delete _swigobj)
3753 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3754 PyObject
* _resultobj
;
3756 PyObject
* _argo0
= 0;
3757 char *_kwnames
[] = { "self", NULL
};
3760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3770 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3771 delete_wxFont(_arg0
);
3773 wxPyEndAllowThreads(__tstate
);
3774 if (PyErr_Occurred()) return NULL
;
3775 } Py_INCREF(Py_None
);
3776 _resultobj
= Py_None
;
3780 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3781 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3782 PyObject
* _resultobj
;
3785 PyObject
* _argo0
= 0;
3786 char *_kwnames
[] = { "self", NULL
};
3789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3792 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3793 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3799 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3800 _result
= (bool )wxFont_Ok(_arg0
);
3802 wxPyEndAllowThreads(__tstate
);
3803 if (PyErr_Occurred()) return NULL
;
3804 } _resultobj
= Py_BuildValue("i",_result
);
3808 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3809 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3810 PyObject
* _resultobj
;
3813 PyObject
* _argo0
= 0;
3814 char *_kwnames
[] = { "self", NULL
};
3817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3828 _result
= (int )wxFont_GetPointSize(_arg0
);
3830 wxPyEndAllowThreads(__tstate
);
3831 if (PyErr_Occurred()) return NULL
;
3832 } _resultobj
= Py_BuildValue("i",_result
);
3836 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3837 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3838 PyObject
* _resultobj
;
3841 PyObject
* _argo0
= 0;
3842 char *_kwnames
[] = { "self", NULL
};
3845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3855 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3856 _result
= (int )wxFont_GetFamily(_arg0
);
3858 wxPyEndAllowThreads(__tstate
);
3859 if (PyErr_Occurred()) return NULL
;
3860 } _resultobj
= Py_BuildValue("i",_result
);
3864 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3865 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3866 PyObject
* _resultobj
;
3869 PyObject
* _argo0
= 0;
3870 char *_kwnames
[] = { "self", NULL
};
3873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_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 wxFont_GetStyle. Expected _wxFont_p.");
3883 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3884 _result
= (int )wxFont_GetStyle(_arg0
);
3886 wxPyEndAllowThreads(__tstate
);
3887 if (PyErr_Occurred()) return NULL
;
3888 } _resultobj
= Py_BuildValue("i",_result
);
3892 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3893 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3894 PyObject
* _resultobj
;
3897 PyObject
* _argo0
= 0;
3898 char *_kwnames
[] = { "self", NULL
};
3901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
3904 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3905 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3911 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3912 _result
= (int )wxFont_GetWeight(_arg0
);
3914 wxPyEndAllowThreads(__tstate
);
3915 if (PyErr_Occurred()) return NULL
;
3916 } _resultobj
= Py_BuildValue("i",_result
);
3920 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3921 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3922 PyObject
* _resultobj
;
3925 PyObject
* _argo0
= 0;
3926 char *_kwnames
[] = { "self", NULL
};
3929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
3932 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3933 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3939 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3940 _result
= (bool )wxFont_GetUnderlined(_arg0
);
3942 wxPyEndAllowThreads(__tstate
);
3943 if (PyErr_Occurred()) return NULL
;
3944 } _resultobj
= Py_BuildValue("i",_result
);
3948 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3949 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3950 PyObject
* _resultobj
;
3953 PyObject
* _argo0
= 0;
3954 char *_kwnames
[] = { "self", NULL
};
3957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
3960 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3961 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3968 _result
= new wxString (wxFont_GetFaceName(_arg0
));
3970 wxPyEndAllowThreads(__tstate
);
3971 if (PyErr_Occurred()) return NULL
;
3973 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3981 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3982 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3983 PyObject
* _resultobj
;
3984 wxFontEncoding _result
;
3986 PyObject
* _argo0
= 0;
3987 char *_kwnames
[] = { "self", NULL
};
3990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
3993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4001 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
4003 wxPyEndAllowThreads(__tstate
);
4004 if (PyErr_Occurred()) return NULL
;
4005 } _resultobj
= Py_BuildValue("i",_result
);
4009 #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
4010 static PyObject
*_wrap_wxFont_IsFixedWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4011 PyObject
* _resultobj
;
4014 PyObject
* _argo0
= 0;
4015 char *_kwnames
[] = { "self", NULL
};
4018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_IsFixedWidth",_kwnames
,&_argo0
))
4021 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4022 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
4028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4029 _result
= (bool )wxFont_IsFixedWidth(_arg0
);
4031 wxPyEndAllowThreads(__tstate
);
4032 if (PyErr_Occurred()) return NULL
;
4033 } _resultobj
= Py_BuildValue("i",_result
);
4037 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4038 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4039 PyObject
* _resultobj
;
4040 wxNativeFontInfo
* _result
;
4042 PyObject
* _argo0
= 0;
4043 char *_kwnames
[] = { "self", NULL
};
4047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
4050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4057 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4058 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
4060 wxPyEndAllowThreads(__tstate
);
4061 if (PyErr_Occurred()) return NULL
;
4063 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
4064 _resultobj
= Py_BuildValue("s",_ptemp
);
4067 _resultobj
= Py_None
;
4072 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
4073 static PyObject
*_wrap_wxFont_GetNativeFontInfoDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4074 PyObject
* _resultobj
;
4077 PyObject
* _argo0
= 0;
4078 char *_kwnames
[] = { "self", NULL
};
4081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoDesc",_kwnames
,&_argo0
))
4084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
4091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4092 _result
= new wxString (wxFont_GetNativeFontInfoDesc(_arg0
));
4094 wxPyEndAllowThreads(__tstate
);
4095 if (PyErr_Occurred()) return NULL
;
4097 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4105 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
4106 static PyObject
*_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4107 PyObject
* _resultobj
;
4110 PyObject
* _argo0
= 0;
4111 char *_kwnames
[] = { "self", NULL
};
4114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames
,&_argo0
))
4117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
4124 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4125 _result
= new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0
));
4127 wxPyEndAllowThreads(__tstate
);
4128 if (PyErr_Occurred()) return NULL
;
4130 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4138 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4139 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4140 PyObject
* _resultobj
;
4143 PyObject
* _argo0
= 0;
4144 char *_kwnames
[] = { "self","pointSize", NULL
};
4147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
4150 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4151 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4157 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4158 wxFont_SetPointSize(_arg0
,_arg1
);
4160 wxPyEndAllowThreads(__tstate
);
4161 if (PyErr_Occurred()) return NULL
;
4162 } Py_INCREF(Py_None
);
4163 _resultobj
= Py_None
;
4167 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4168 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4169 PyObject
* _resultobj
;
4172 PyObject
* _argo0
= 0;
4173 char *_kwnames
[] = { "self","family", NULL
};
4176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
4179 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4180 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4181 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4186 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4187 wxFont_SetFamily(_arg0
,_arg1
);
4189 wxPyEndAllowThreads(__tstate
);
4190 if (PyErr_Occurred()) return NULL
;
4191 } Py_INCREF(Py_None
);
4192 _resultobj
= Py_None
;
4196 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4197 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4198 PyObject
* _resultobj
;
4201 PyObject
* _argo0
= 0;
4202 char *_kwnames
[] = { "self","style", NULL
};
4205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4208 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4209 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4215 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4216 wxFont_SetStyle(_arg0
,_arg1
);
4218 wxPyEndAllowThreads(__tstate
);
4219 if (PyErr_Occurred()) return NULL
;
4220 } Py_INCREF(Py_None
);
4221 _resultobj
= Py_None
;
4225 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4226 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4227 PyObject
* _resultobj
;
4230 PyObject
* _argo0
= 0;
4231 char *_kwnames
[] = { "self","weight", NULL
};
4234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
4237 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4238 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4245 wxFont_SetWeight(_arg0
,_arg1
);
4247 wxPyEndAllowThreads(__tstate
);
4248 if (PyErr_Occurred()) return NULL
;
4249 } Py_INCREF(Py_None
);
4250 _resultobj
= Py_None
;
4254 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4255 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4256 PyObject
* _resultobj
;
4259 PyObject
* _argo0
= 0;
4260 PyObject
* _obj1
= 0;
4261 char *_kwnames
[] = { "self","faceName", NULL
};
4264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
4267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4274 #if PYTHON_API_VERSION >= 1009
4275 char* tmpPtr
; int tmpSize
;
4276 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4277 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4280 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4282 _arg1
= new wxString(tmpPtr
, tmpSize
);
4284 if (!PyString_Check(_obj1
)) {
4285 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4288 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4293 wxFont_SetFaceName(_arg0
,*_arg1
);
4295 wxPyEndAllowThreads(__tstate
);
4296 if (PyErr_Occurred()) return NULL
;
4297 } Py_INCREF(Py_None
);
4298 _resultobj
= Py_None
;
4306 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4307 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4308 PyObject
* _resultobj
;
4311 PyObject
* _argo0
= 0;
4313 char *_kwnames
[] = { "self","underlined", NULL
};
4316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
4319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4325 _arg1
= (bool ) tempbool1
;
4327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4328 wxFont_SetUnderlined(_arg0
,_arg1
);
4330 wxPyEndAllowThreads(__tstate
);
4331 if (PyErr_Occurred()) return NULL
;
4332 } Py_INCREF(Py_None
);
4333 _resultobj
= Py_None
;
4337 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4338 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4339 PyObject
* _resultobj
;
4341 wxFontEncoding _arg1
;
4342 PyObject
* _argo0
= 0;
4343 char *_kwnames
[] = { "self","encoding", NULL
};
4346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
4349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
4356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4357 wxFont_SetEncoding(_arg0
,_arg1
);
4359 wxPyEndAllowThreads(__tstate
);
4360 if (PyErr_Occurred()) return NULL
;
4361 } Py_INCREF(Py_None
);
4362 _resultobj
= Py_None
;
4366 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4367 static PyObject
*_wrap_wxFont_SetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4368 PyObject
* _resultobj
;
4370 wxNativeFontInfo
* _arg1
;
4371 PyObject
* _argo0
= 0;
4372 PyObject
* _argo1
= 0;
4373 char *_kwnames
[] = { "self","info", NULL
};
4376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfo",_kwnames
,&_argo0
,&_argo1
))
4379 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4380 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4381 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4386 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4387 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxNativeFontInfo_p")) {
4388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
4393 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4394 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
4396 wxPyEndAllowThreads(__tstate
);
4397 if (PyErr_Occurred()) return NULL
;
4398 } Py_INCREF(Py_None
);
4399 _resultobj
= Py_None
;
4403 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
4404 static PyObject
*_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4405 PyObject
* _resultobj
;
4408 PyObject
* _argo0
= 0;
4409 PyObject
* _obj1
= 0;
4410 char *_kwnames
[] = { "self","info", NULL
};
4413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames
,&_argo0
,&_obj1
))
4416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
4423 #if PYTHON_API_VERSION >= 1009
4424 char* tmpPtr
; int tmpSize
;
4425 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4426 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4429 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4431 _arg1
= new wxString(tmpPtr
, tmpSize
);
4433 if (!PyString_Check(_obj1
)) {
4434 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4437 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4441 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4442 wxFont_SetNativeFontInfoUserDesc(_arg0
,*_arg1
);
4444 wxPyEndAllowThreads(__tstate
);
4445 if (PyErr_Occurred()) return NULL
;
4446 } Py_INCREF(Py_None
);
4447 _resultobj
= Py_None
;
4455 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4456 static PyObject
*_wrap_wxFont_GetFamilyString(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_GetFamilyString",_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_GetFamilyString. Expected _wxFont_p.");
4474 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4475 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
4477 wxPyEndAllowThreads(__tstate
);
4478 if (PyErr_Occurred()) return NULL
;
4480 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4488 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4489 static PyObject
*_wrap_wxFont_GetStyleString(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_GetStyleString",_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_GetStyleString. Expected _wxFont_p.");
4507 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4508 _result
= new wxString (wxFont_GetStyleString(_arg0
));
4510 wxPyEndAllowThreads(__tstate
);
4511 if (PyErr_Occurred()) return NULL
;
4513 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4521 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4522 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4523 PyObject
* _resultobj
;
4526 PyObject
* _argo0
= 0;
4527 char *_kwnames
[] = { "self", NULL
};
4530 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
4533 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4534 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4535 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4540 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4541 _result
= new wxString (wxFont_GetWeightString(_arg0
));
4543 wxPyEndAllowThreads(__tstate
);
4544 if (PyErr_Occurred()) return NULL
;
4546 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4554 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4555 PyObject
* _resultobj
;
4556 wxFontEncoding _result
;
4557 char *_kwnames
[] = { NULL
};
4560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
4563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4564 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
4566 wxPyEndAllowThreads(__tstate
);
4567 if (PyErr_Occurred()) return NULL
;
4568 } _resultobj
= Py_BuildValue("i",_result
);
4572 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4573 PyObject
* _resultobj
;
4574 wxFontEncoding _arg0
;
4575 char *_kwnames
[] = { "encoding", NULL
};
4578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
4581 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4582 wxFont::SetDefaultEncoding(_arg0
);
4584 wxPyEndAllowThreads(__tstate
);
4585 if (PyErr_Occurred()) return NULL
;
4586 } Py_INCREF(Py_None
);
4587 _resultobj
= Py_None
;
4591 static void *SwigwxFontListTowxObject(void *ptr
) {
4594 src
= (wxFontList
*) ptr
;
4595 dest
= (wxObject
*) src
;
4596 return (void *) dest
;
4599 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4600 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4601 PyObject
* _resultobj
;
4604 PyObject
* _argo0
= 0;
4605 PyObject
* _argo1
= 0;
4606 char *_kwnames
[] = { "self","font", NULL
};
4609 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
4612 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4613 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4614 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4619 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4620 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4626 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4627 wxFontList_AddFont(_arg0
,_arg1
);
4629 wxPyEndAllowThreads(__tstate
);
4630 if (PyErr_Occurred()) return NULL
;
4631 } Py_INCREF(Py_None
);
4632 _resultobj
= Py_None
;
4636 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4637 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4638 PyObject
* _resultobj
;
4645 bool _arg5
= (bool ) FALSE
;
4646 char * _arg6
= (char *) NULL
;
4647 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
4648 PyObject
* _argo0
= 0;
4649 int tempbool5
= (int) FALSE
;
4650 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
4654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
4657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4663 _arg5
= (bool ) tempbool5
;
4665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4666 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
4668 wxPyEndAllowThreads(__tstate
);
4669 if (PyErr_Occurred()) return NULL
;
4671 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4672 _resultobj
= Py_BuildValue("s",_ptemp
);
4675 _resultobj
= Py_None
;
4680 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4681 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4682 PyObject
* _resultobj
;
4685 PyObject
* _argo0
= 0;
4686 PyObject
* _argo1
= 0;
4687 char *_kwnames
[] = { "self","font", NULL
};
4690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
4693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4700 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4701 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4702 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4707 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4708 wxFontList_RemoveFont(_arg0
,_arg1
);
4710 wxPyEndAllowThreads(__tstate
);
4711 if (PyErr_Occurred()) return NULL
;
4712 } Py_INCREF(Py_None
);
4713 _resultobj
= Py_None
;
4717 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
4718 static PyObject
*_wrap_wxFontList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4719 PyObject
* _resultobj
;
4722 PyObject
* _argo0
= 0;
4723 char *_kwnames
[] = { "self", NULL
};
4726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFontList_GetCount",_kwnames
,&_argo0
))
4729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
4736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4737 _result
= (int )wxFontList_GetCount(_arg0
);
4739 wxPyEndAllowThreads(__tstate
);
4740 if (PyErr_Occurred()) return NULL
;
4741 } _resultobj
= Py_BuildValue("i",_result
);
4745 static void *SwigwxColourTowxObject(void *ptr
) {
4748 src
= (wxColour
*) ptr
;
4749 dest
= (wxObject
*) src
;
4750 return (void *) dest
;
4753 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4754 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4755 PyObject
* _resultobj
;
4757 unsigned char _arg0
= (unsigned char ) 0;
4758 unsigned char _arg1
= (unsigned char ) 0;
4759 unsigned char _arg2
= (unsigned char ) 0;
4760 char *_kwnames
[] = { "red","green","blue", NULL
};
4764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
4767 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4768 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
4770 wxPyEndAllowThreads(__tstate
);
4771 if (PyErr_Occurred()) return NULL
;
4773 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4774 _resultobj
= Py_BuildValue("s",_ptemp
);
4777 _resultobj
= Py_None
;
4782 #define delete_wxColour(_swigobj) (delete _swigobj)
4783 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4784 PyObject
* _resultobj
;
4787 PyObject
* _obj0
= 0;
4788 char *_kwnames
[] = { "self", NULL
};
4791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
4795 if (! wxColour_helper(_obj0
, &_arg0
))
4799 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4800 delete_wxColour(_arg0
);
4802 wxPyEndAllowThreads(__tstate
);
4803 if (PyErr_Occurred()) return NULL
;
4804 } Py_INCREF(Py_None
);
4805 _resultobj
= Py_None
;
4809 #define wxColour_Red(_swigobj) (_swigobj->Red())
4810 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4811 PyObject
* _resultobj
;
4812 unsigned char _result
;
4815 PyObject
* _obj0
= 0;
4816 char *_kwnames
[] = { "self", NULL
};
4819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
4823 if (! wxColour_helper(_obj0
, &_arg0
))
4827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4828 _result
= (unsigned char )wxColour_Red(_arg0
);
4830 wxPyEndAllowThreads(__tstate
);
4831 if (PyErr_Occurred()) return NULL
;
4832 } _resultobj
= Py_BuildValue("b",_result
);
4836 #define wxColour_Green(_swigobj) (_swigobj->Green())
4837 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4838 PyObject
* _resultobj
;
4839 unsigned char _result
;
4842 PyObject
* _obj0
= 0;
4843 char *_kwnames
[] = { "self", NULL
};
4846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
4850 if (! wxColour_helper(_obj0
, &_arg0
))
4854 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4855 _result
= (unsigned char )wxColour_Green(_arg0
);
4857 wxPyEndAllowThreads(__tstate
);
4858 if (PyErr_Occurred()) return NULL
;
4859 } _resultobj
= Py_BuildValue("b",_result
);
4863 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4864 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4865 PyObject
* _resultobj
;
4866 unsigned char _result
;
4869 PyObject
* _obj0
= 0;
4870 char *_kwnames
[] = { "self", NULL
};
4873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
4877 if (! wxColour_helper(_obj0
, &_arg0
))
4881 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4882 _result
= (unsigned char )wxColour_Blue(_arg0
);
4884 wxPyEndAllowThreads(__tstate
);
4885 if (PyErr_Occurred()) return NULL
;
4886 } _resultobj
= Py_BuildValue("b",_result
);
4890 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4891 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4892 PyObject
* _resultobj
;
4896 PyObject
* _obj0
= 0;
4897 char *_kwnames
[] = { "self", NULL
};
4900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
4904 if (! wxColour_helper(_obj0
, &_arg0
))
4908 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4909 _result
= (bool )wxColour_Ok(_arg0
);
4911 wxPyEndAllowThreads(__tstate
);
4912 if (PyErr_Occurred()) return NULL
;
4913 } _resultobj
= Py_BuildValue("i",_result
);
4917 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4918 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4919 PyObject
* _resultobj
;
4921 unsigned char _arg1
;
4922 unsigned char _arg2
;
4923 unsigned char _arg3
;
4925 PyObject
* _obj0
= 0;
4926 char *_kwnames
[] = { "self","red","green","blue", NULL
};
4929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
4933 if (! wxColour_helper(_obj0
, &_arg0
))
4937 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4938 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
4940 wxPyEndAllowThreads(__tstate
);
4941 if (PyErr_Occurred()) return NULL
;
4942 } Py_INCREF(Py_None
);
4943 _resultobj
= Py_None
;
4947 static PyObject
* wxColour_Get(wxColour
*self
) {
4948 PyObject
* rv
= PyTuple_New(3);
4949 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
4950 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
4951 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
4954 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4955 PyObject
* _resultobj
;
4959 PyObject
* _obj0
= 0;
4960 char *_kwnames
[] = { "self", NULL
};
4963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
4967 if (! wxColour_helper(_obj0
, &_arg0
))
4971 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4972 _result
= (PyObject
*)wxColour_Get(_arg0
);
4974 wxPyEndAllowThreads(__tstate
);
4975 if (PyErr_Occurred()) return NULL
;
4977 _resultobj
= _result
;
4982 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4983 wxColourDatabase
*src
;
4985 src
= (wxColourDatabase
*) ptr
;
4986 dest
= (wxObject
*) src
;
4987 return (void *) dest
;
4990 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4991 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4992 PyObject
* _resultobj
;
4994 wxColourDatabase
* _arg0
;
4996 PyObject
* _argo0
= 0;
4997 PyObject
* _obj1
= 0;
4998 char *_kwnames
[] = { "self","colour", NULL
};
5002 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
5005 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5006 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5007 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
5012 #if PYTHON_API_VERSION >= 1009
5013 char* tmpPtr
; int tmpSize
;
5014 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5015 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5018 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5020 _arg1
= new wxString(tmpPtr
, tmpSize
);
5022 if (!PyString_Check(_obj1
)) {
5023 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5026 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5030 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5031 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
5033 wxPyEndAllowThreads(__tstate
);
5034 if (PyErr_Occurred()) return NULL
;
5036 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5037 _resultobj
= Py_BuildValue("s",_ptemp
);
5040 _resultobj
= Py_None
;
5049 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
5050 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5051 PyObject
* _resultobj
;
5053 wxColourDatabase
* _arg0
;
5055 PyObject
* _argo0
= 0;
5057 PyObject
* _obj1
= 0;
5058 char *_kwnames
[] = { "self","colour", NULL
};
5061 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
5064 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5065 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5066 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5072 if (! wxColour_helper(_obj1
, &_arg1
))
5076 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5077 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
5079 wxPyEndAllowThreads(__tstate
);
5080 if (PyErr_Occurred()) return NULL
;
5082 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5090 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
5091 // first see if the name is already there
5092 wxString cName
= name
;
5094 wxString cName2
= cName
;
5095 if ( !cName2
.Replace("GRAY", "GREY") )
5098 wxNode
*node
= self
->First();
5100 const wxChar
*key
= node
->GetKeyString();
5101 if ( cName
== key
|| cName2
== key
) {
5102 wxColour
* c
= (wxColour
*)node
->Data();
5103 c
->Set(red
, green
, blue
);
5106 node
= node
->Next();
5109 // otherwise append the new colour
5110 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
5112 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5113 PyObject
* _resultobj
;
5114 wxColourDatabase
* _arg0
;
5119 PyObject
* _argo0
= 0;
5120 PyObject
* _obj1
= 0;
5121 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
5124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5127 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5128 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5134 #if PYTHON_API_VERSION >= 1009
5135 char* tmpPtr
; int tmpSize
;
5136 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5137 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5140 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5142 _arg1
= new wxString(tmpPtr
, tmpSize
);
5144 if (!PyString_Check(_obj1
)) {
5145 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5148 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5152 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5153 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5155 wxPyEndAllowThreads(__tstate
);
5156 if (PyErr_Occurred()) return NULL
;
5157 } Py_INCREF(Py_None
);
5158 _resultobj
= Py_None
;
5166 static void *SwigwxPenTowxGDIObject(void *ptr
) {
5169 src
= (wxPen
*) ptr
;
5170 dest
= (wxGDIObject
*) src
;
5171 return (void *) dest
;
5174 static void *SwigwxPenTowxObject(void *ptr
) {
5177 src
= (wxPen
*) ptr
;
5178 dest
= (wxObject
*) src
;
5179 return (void *) dest
;
5182 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5183 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5184 PyObject
* _resultobj
;
5187 int _arg1
= (int ) 1;
5188 int _arg2
= (int ) wxSOLID
;
5190 PyObject
* _obj0
= 0;
5191 char *_kwnames
[] = { "colour","width","style", NULL
};
5195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5199 if (! wxColour_helper(_obj0
, &_arg0
))
5203 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5204 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
5206 wxPyEndAllowThreads(__tstate
);
5207 if (PyErr_Occurred()) return NULL
;
5209 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5210 _resultobj
= Py_BuildValue("s",_ptemp
);
5213 _resultobj
= Py_None
;
5218 #define delete_wxPen(_swigobj) (delete _swigobj)
5219 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5220 PyObject
* _resultobj
;
5222 PyObject
* _argo0
= 0;
5223 char *_kwnames
[] = { "self", NULL
};
5226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
5229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5237 delete_wxPen(_arg0
);
5239 wxPyEndAllowThreads(__tstate
);
5240 if (PyErr_Occurred()) return NULL
;
5241 } Py_INCREF(Py_None
);
5242 _resultobj
= Py_None
;
5246 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5247 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5248 PyObject
* _resultobj
;
5251 PyObject
* _argo0
= 0;
5252 char *_kwnames
[] = { "self", NULL
};
5255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
5258 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5259 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5265 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5266 _result
= (int )wxPen_GetCap(_arg0
);
5268 wxPyEndAllowThreads(__tstate
);
5269 if (PyErr_Occurred()) return NULL
;
5270 } _resultobj
= Py_BuildValue("i",_result
);
5274 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5275 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5276 PyObject
* _resultobj
;
5279 PyObject
* _argo0
= 0;
5280 char *_kwnames
[] = { "self", NULL
};
5284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
5287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5295 _result
= new wxColour (wxPen_GetColour(_arg0
));
5297 wxPyEndAllowThreads(__tstate
);
5298 if (PyErr_Occurred()) return NULL
;
5299 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5300 _resultobj
= Py_BuildValue("s",_ptemp
);
5304 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5305 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5306 PyObject
* _resultobj
;
5309 PyObject
* _argo0
= 0;
5310 char *_kwnames
[] = { "self", NULL
};
5313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
5316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5324 _result
= (int )wxPen_GetJoin(_arg0
);
5326 wxPyEndAllowThreads(__tstate
);
5327 if (PyErr_Occurred()) return NULL
;
5328 } _resultobj
= Py_BuildValue("i",_result
);
5332 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5333 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5334 PyObject
* _resultobj
;
5337 PyObject
* _argo0
= 0;
5338 char *_kwnames
[] = { "self", NULL
};
5341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
5344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5351 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5352 _result
= (int )wxPen_GetStyle(_arg0
);
5354 wxPyEndAllowThreads(__tstate
);
5355 if (PyErr_Occurred()) return NULL
;
5356 } _resultobj
= Py_BuildValue("i",_result
);
5360 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5361 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5362 PyObject
* _resultobj
;
5365 PyObject
* _argo0
= 0;
5366 char *_kwnames
[] = { "self", NULL
};
5369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
5372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5380 _result
= (int )wxPen_GetWidth(_arg0
);
5382 wxPyEndAllowThreads(__tstate
);
5383 if (PyErr_Occurred()) return NULL
;
5384 } _resultobj
= Py_BuildValue("i",_result
);
5388 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5389 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5390 PyObject
* _resultobj
;
5393 PyObject
* _argo0
= 0;
5394 char *_kwnames
[] = { "self", NULL
};
5397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
5400 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5401 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5408 _result
= (bool )wxPen_Ok(_arg0
);
5410 wxPyEndAllowThreads(__tstate
);
5411 if (PyErr_Occurred()) return NULL
;
5412 } _resultobj
= Py_BuildValue("i",_result
);
5416 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5417 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5418 PyObject
* _resultobj
;
5421 PyObject
* _argo0
= 0;
5422 char *_kwnames
[] = { "self","cap_style", NULL
};
5425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
5428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5435 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5436 wxPen_SetCap(_arg0
,_arg1
);
5438 wxPyEndAllowThreads(__tstate
);
5439 if (PyErr_Occurred()) return NULL
;
5440 } Py_INCREF(Py_None
);
5441 _resultobj
= Py_None
;
5445 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5446 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5447 PyObject
* _resultobj
;
5450 PyObject
* _argo0
= 0;
5452 PyObject
* _obj1
= 0;
5453 char *_kwnames
[] = { "self","colour", NULL
};
5456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
5459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5467 if (! wxColour_helper(_obj1
, &_arg1
))
5471 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5472 wxPen_SetColour(_arg0
,*_arg1
);
5474 wxPyEndAllowThreads(__tstate
);
5475 if (PyErr_Occurred()) return NULL
;
5476 } Py_INCREF(Py_None
);
5477 _resultobj
= Py_None
;
5481 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5482 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5483 PyObject
* _resultobj
;
5486 PyObject
* _argo0
= 0;
5487 char *_kwnames
[] = { "self","join_style", NULL
};
5490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
5493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5500 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5501 wxPen_SetJoin(_arg0
,_arg1
);
5503 wxPyEndAllowThreads(__tstate
);
5504 if (PyErr_Occurred()) return NULL
;
5505 } Py_INCREF(Py_None
);
5506 _resultobj
= Py_None
;
5510 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5511 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5512 PyObject
* _resultobj
;
5515 PyObject
* _argo0
= 0;
5516 char *_kwnames
[] = { "self","style", NULL
};
5519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5529 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5530 wxPen_SetStyle(_arg0
,_arg1
);
5532 wxPyEndAllowThreads(__tstate
);
5533 if (PyErr_Occurred()) return NULL
;
5534 } Py_INCREF(Py_None
);
5535 _resultobj
= Py_None
;
5539 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5540 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5541 PyObject
* _resultobj
;
5544 PyObject
* _argo0
= 0;
5545 char *_kwnames
[] = { "self","width", NULL
};
5548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
5551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5558 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5559 wxPen_SetWidth(_arg0
,_arg1
);
5561 wxPyEndAllowThreads(__tstate
);
5562 if (PyErr_Occurred()) return NULL
;
5563 } Py_INCREF(Py_None
);
5564 _resultobj
= Py_None
;
5568 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5569 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5570 PyObject
* _resultobj
;
5574 PyObject
* _argo0
= 0;
5575 PyObject
* _obj2
= 0;
5576 char *_kwnames
[] = { "self","choices", NULL
};
5579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5582 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5583 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5584 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5590 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5591 if (_arg2
== NULL
) {
5597 _arg1
= PyList_Size(_obj2
);
5604 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5605 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
5607 wxPyEndAllowThreads(__tstate
);
5608 if (PyErr_Occurred()) return NULL
;
5609 } Py_INCREF(Py_None
);
5610 _resultobj
= Py_None
;
5617 static void *SwigwxPyPenTowxPen(void *ptr
) {
5620 src
= (wxPyPen
*) ptr
;
5621 dest
= (wxPen
*) src
;
5622 return (void *) dest
;
5625 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
5628 src
= (wxPyPen
*) ptr
;
5629 dest
= (wxGDIObject
*) src
;
5630 return (void *) dest
;
5633 static void *SwigwxPyPenTowxObject(void *ptr
) {
5636 src
= (wxPyPen
*) ptr
;
5637 dest
= (wxObject
*) src
;
5638 return (void *) dest
;
5641 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5642 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5643 PyObject
* _resultobj
;
5646 int _arg1
= (int ) 1;
5647 int _arg2
= (int ) wxSOLID
;
5649 PyObject
* _obj0
= 0;
5650 char *_kwnames
[] = { "colour","width","style", NULL
};
5654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5658 if (! wxColour_helper(_obj0
, &_arg0
))
5662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5663 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
5665 wxPyEndAllowThreads(__tstate
);
5666 if (PyErr_Occurred()) return NULL
;
5668 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
5669 _resultobj
= Py_BuildValue("s",_ptemp
);
5672 _resultobj
= Py_None
;
5677 #define delete_wxPyPen(_swigobj) (delete _swigobj)
5678 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5679 PyObject
* _resultobj
;
5681 PyObject
* _argo0
= 0;
5682 char *_kwnames
[] = { "self", NULL
};
5685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
5688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
5695 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5696 delete_wxPyPen(_arg0
);
5698 wxPyEndAllowThreads(__tstate
);
5699 if (PyErr_Occurred()) return NULL
;
5700 } Py_INCREF(Py_None
);
5701 _resultobj
= Py_None
;
5705 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5706 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5707 PyObject
* _resultobj
;
5711 PyObject
* _argo0
= 0;
5712 PyObject
* _obj2
= 0;
5713 char *_kwnames
[] = { "self","choices", NULL
};
5716 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5719 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5720 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5721 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5727 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5728 if (_arg2
== NULL
) {
5734 _arg1
= PyList_Size(_obj2
);
5741 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5742 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
5744 wxPyEndAllowThreads(__tstate
);
5745 if (PyErr_Occurred()) return NULL
;
5746 } Py_INCREF(Py_None
);
5747 _resultobj
= Py_None
;
5754 static void *SwigwxPenListTowxObject(void *ptr
) {
5757 src
= (wxPenList
*) ptr
;
5758 dest
= (wxObject
*) src
;
5759 return (void *) dest
;
5762 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5763 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5764 PyObject
* _resultobj
;
5767 PyObject
* _argo0
= 0;
5768 PyObject
* _argo1
= 0;
5769 char *_kwnames
[] = { "self","pen", NULL
};
5772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
5775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5782 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5783 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5789 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5790 wxPenList_AddPen(_arg0
,_arg1
);
5792 wxPyEndAllowThreads(__tstate
);
5793 if (PyErr_Occurred()) return NULL
;
5794 } Py_INCREF(Py_None
);
5795 _resultobj
= Py_None
;
5799 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5800 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5801 PyObject
* _resultobj
;
5807 PyObject
* _argo0
= 0;
5809 PyObject
* _obj1
= 0;
5810 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5817 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5818 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5825 if (! wxColour_helper(_obj1
, &_arg1
))
5829 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5830 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5832 wxPyEndAllowThreads(__tstate
);
5833 if (PyErr_Occurred()) return NULL
;
5835 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5836 _resultobj
= Py_BuildValue("s",_ptemp
);
5839 _resultobj
= Py_None
;
5844 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5845 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5846 PyObject
* _resultobj
;
5849 PyObject
* _argo0
= 0;
5850 PyObject
* _argo1
= 0;
5851 char *_kwnames
[] = { "self","pen", NULL
};
5854 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5857 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5858 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5859 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5864 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5865 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5871 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5872 wxPenList_RemovePen(_arg0
,_arg1
);
5874 wxPyEndAllowThreads(__tstate
);
5875 if (PyErr_Occurred()) return NULL
;
5876 } Py_INCREF(Py_None
);
5877 _resultobj
= Py_None
;
5881 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5882 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5883 PyObject
* _resultobj
;
5886 PyObject
* _argo0
= 0;
5887 char *_kwnames
[] = { "self", NULL
};
5890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
5893 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5894 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5900 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5901 _result
= (int )wxPenList_GetCount(_arg0
);
5903 wxPyEndAllowThreads(__tstate
);
5904 if (PyErr_Occurred()) return NULL
;
5905 } _resultobj
= Py_BuildValue("i",_result
);
5909 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5912 src
= (wxBrush
*) ptr
;
5913 dest
= (wxGDIObject
*) src
;
5914 return (void *) dest
;
5917 static void *SwigwxBrushTowxObject(void *ptr
) {
5920 src
= (wxBrush
*) ptr
;
5921 dest
= (wxObject
*) src
;
5922 return (void *) dest
;
5925 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5926 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5927 PyObject
* _resultobj
;
5930 int _arg1
= (int ) wxSOLID
;
5932 PyObject
* _obj0
= 0;
5933 char *_kwnames
[] = { "colour","style", NULL
};
5937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5941 if (! wxColour_helper(_obj0
, &_arg0
))
5945 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5946 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5948 wxPyEndAllowThreads(__tstate
);
5949 if (PyErr_Occurred()) return NULL
;
5951 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5952 _resultobj
= Py_BuildValue("s",_ptemp
);
5955 _resultobj
= Py_None
;
5960 #define delete_wxBrush(_swigobj) (delete _swigobj)
5961 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5962 PyObject
* _resultobj
;
5964 PyObject
* _argo0
= 0;
5965 char *_kwnames
[] = { "self", NULL
};
5968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5978 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5979 delete_wxBrush(_arg0
);
5981 wxPyEndAllowThreads(__tstate
);
5982 if (PyErr_Occurred()) return NULL
;
5983 } Py_INCREF(Py_None
);
5984 _resultobj
= Py_None
;
5988 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5989 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5990 PyObject
* _resultobj
;
5993 PyObject
* _argo0
= 0;
5994 char *_kwnames
[] = { "self", NULL
};
5998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
6001 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6002 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
6008 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6009 _result
= new wxColour (wxBrush_GetColour(_arg0
));
6011 wxPyEndAllowThreads(__tstate
);
6012 if (PyErr_Occurred()) return NULL
;
6013 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6014 _resultobj
= Py_BuildValue("s",_ptemp
);
6018 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
6019 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6020 PyObject
* _resultobj
;
6023 PyObject
* _argo0
= 0;
6024 char *_kwnames
[] = { "self", NULL
};
6028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
6031 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6032 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6033 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6038 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6039 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
6041 wxPyEndAllowThreads(__tstate
);
6042 if (PyErr_Occurred()) return NULL
;
6044 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
6045 _resultobj
= Py_BuildValue("s",_ptemp
);
6048 _resultobj
= Py_None
;
6053 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6054 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6055 PyObject
* _resultobj
;
6058 PyObject
* _argo0
= 0;
6059 char *_kwnames
[] = { "self", NULL
};
6062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
6065 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6066 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6072 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6073 _result
= (int )wxBrush_GetStyle(_arg0
);
6075 wxPyEndAllowThreads(__tstate
);
6076 if (PyErr_Occurred()) return NULL
;
6077 } _resultobj
= Py_BuildValue("i",_result
);
6081 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6082 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6083 PyObject
* _resultobj
;
6086 PyObject
* _argo0
= 0;
6087 char *_kwnames
[] = { "self", NULL
};
6090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
6093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6100 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6101 _result
= (bool )wxBrush_Ok(_arg0
);
6103 wxPyEndAllowThreads(__tstate
);
6104 if (PyErr_Occurred()) return NULL
;
6105 } _resultobj
= Py_BuildValue("i",_result
);
6109 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6110 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6111 PyObject
* _resultobj
;
6114 PyObject
* _argo0
= 0;
6116 PyObject
* _obj1
= 0;
6117 char *_kwnames
[] = { "self","colour", NULL
};
6120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
6123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6131 if (! wxColour_helper(_obj1
, &_arg1
))
6135 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6136 wxBrush_SetColour(_arg0
,*_arg1
);
6138 wxPyEndAllowThreads(__tstate
);
6139 if (PyErr_Occurred()) return NULL
;
6140 } Py_INCREF(Py_None
);
6141 _resultobj
= Py_None
;
6145 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6146 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6147 PyObject
* _resultobj
;
6150 PyObject
* _argo0
= 0;
6151 PyObject
* _argo1
= 0;
6152 char *_kwnames
[] = { "self","bitmap", NULL
};
6155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
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_SetStipple. Expected _wxBrush_p.");
6165 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6166 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6172 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6173 wxBrush_SetStipple(_arg0
,*_arg1
);
6175 wxPyEndAllowThreads(__tstate
);
6176 if (PyErr_Occurred()) return NULL
;
6177 } Py_INCREF(Py_None
);
6178 _resultobj
= Py_None
;
6182 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6183 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6184 PyObject
* _resultobj
;
6187 PyObject
* _argo0
= 0;
6188 char *_kwnames
[] = { "self","style", NULL
};
6191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
6194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6201 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6202 wxBrush_SetStyle(_arg0
,_arg1
);
6204 wxPyEndAllowThreads(__tstate
);
6205 if (PyErr_Occurred()) return NULL
;
6206 } Py_INCREF(Py_None
);
6207 _resultobj
= Py_None
;
6211 static void *SwigwxBrushListTowxObject(void *ptr
) {
6214 src
= (wxBrushList
*) ptr
;
6215 dest
= (wxObject
*) src
;
6216 return (void *) dest
;
6219 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6220 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6221 PyObject
* _resultobj
;
6222 wxBrushList
* _arg0
;
6224 PyObject
* _argo0
= 0;
6225 PyObject
* _argo1
= 0;
6226 char *_kwnames
[] = { "self","brush", NULL
};
6229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
6232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6239 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6240 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6247 wxBrushList_AddBrush(_arg0
,_arg1
);
6249 wxPyEndAllowThreads(__tstate
);
6250 if (PyErr_Occurred()) return NULL
;
6251 } Py_INCREF(Py_None
);
6252 _resultobj
= Py_None
;
6256 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6257 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6258 PyObject
* _resultobj
;
6260 wxBrushList
* _arg0
;
6263 PyObject
* _argo0
= 0;
6265 PyObject
* _obj1
= 0;
6266 char *_kwnames
[] = { "self","colour","style", NULL
};
6270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
6273 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6274 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6281 if (! wxColour_helper(_obj1
, &_arg1
))
6285 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6286 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
6288 wxPyEndAllowThreads(__tstate
);
6289 if (PyErr_Occurred()) return NULL
;
6291 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6292 _resultobj
= Py_BuildValue("s",_ptemp
);
6295 _resultobj
= Py_None
;
6300 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6301 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6302 PyObject
* _resultobj
;
6303 wxBrushList
* _arg0
;
6305 PyObject
* _argo0
= 0;
6306 PyObject
* _argo1
= 0;
6307 char *_kwnames
[] = { "self","brush", NULL
};
6310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
6313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6320 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6321 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6328 wxBrushList_RemoveBrush(_arg0
,_arg1
);
6330 wxPyEndAllowThreads(__tstate
);
6331 if (PyErr_Occurred()) return NULL
;
6332 } Py_INCREF(Py_None
);
6333 _resultobj
= Py_None
;
6337 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
6338 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6339 PyObject
* _resultobj
;
6341 wxBrushList
* _arg0
;
6342 PyObject
* _argo0
= 0;
6343 char *_kwnames
[] = { "self", NULL
};
6346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
6349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
6356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6357 _result
= (int )wxBrushList_GetCount(_arg0
);
6359 wxPyEndAllowThreads(__tstate
);
6360 if (PyErr_Occurred()) return NULL
;
6361 } _resultobj
= Py_BuildValue("i",_result
);
6365 static void *SwigwxDCTowxObject(void *ptr
) {
6369 dest
= (wxObject
*) src
;
6370 return (void *) dest
;
6373 #define delete_wxDC(_swigobj) (delete _swigobj)
6374 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6375 PyObject
* _resultobj
;
6377 PyObject
* _argo0
= 0;
6378 char *_kwnames
[] = { "self", NULL
};
6381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
6384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6391 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6394 wxPyEndAllowThreads(__tstate
);
6395 if (PyErr_Occurred()) return NULL
;
6396 } Py_INCREF(Py_None
);
6397 _resultobj
= Py_None
;
6401 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6402 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6403 PyObject
* _resultobj
;
6405 PyObject
* _argo0
= 0;
6406 char *_kwnames
[] = { "self", NULL
};
6409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
6412 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6413 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6420 wxDC_BeginDrawing(_arg0
);
6422 wxPyEndAllowThreads(__tstate
);
6423 if (PyErr_Occurred()) return NULL
;
6424 } Py_INCREF(Py_None
);
6425 _resultobj
= Py_None
;
6429 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6430 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6431 PyObject
* _resultobj
;
6441 int _arg8
= (int ) wxCOPY
;
6442 int _arg9
= (int ) FALSE
;
6443 PyObject
* _argo0
= 0;
6444 PyObject
* _argo5
= 0;
6445 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
6448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
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_Blit. Expected _wxDC_p.");
6458 if (_argo5
== Py_None
) { _arg5
= NULL
; }
6459 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
6460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6465 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6466 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
6468 wxPyEndAllowThreads(__tstate
);
6469 if (PyErr_Occurred()) return NULL
;
6470 } _resultobj
= Py_BuildValue("i",_result
);
6474 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6475 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6476 PyObject
* _resultobj
;
6478 PyObject
* _argo0
= 0;
6479 char *_kwnames
[] = { "self", NULL
};
6482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
6485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6492 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6495 wxPyEndAllowThreads(__tstate
);
6496 if (PyErr_Occurred()) return NULL
;
6497 } Py_INCREF(Py_None
);
6498 _resultobj
= Py_None
;
6502 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6503 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6504 PyObject
* _resultobj
;
6508 PyObject
* _argo0
= 0;
6509 char *_kwnames
[] = { "self","x","y", NULL
};
6512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6523 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
6525 wxPyEndAllowThreads(__tstate
);
6526 if (PyErr_Occurred()) return NULL
;
6527 } Py_INCREF(Py_None
);
6528 _resultobj
= Py_None
;
6532 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6533 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6534 PyObject
* _resultobj
;
6536 PyObject
* _argo0
= 0;
6537 char *_kwnames
[] = { "self", NULL
};
6540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
6543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6551 wxDC_DestroyClippingRegion(_arg0
);
6553 wxPyEndAllowThreads(__tstate
);
6554 if (PyErr_Occurred()) return NULL
;
6555 } Py_INCREF(Py_None
);
6556 _resultobj
= Py_None
;
6560 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6561 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6562 PyObject
* _resultobj
;
6566 PyObject
* _argo0
= 0;
6567 char *_kwnames
[] = { "self","x", NULL
};
6570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
6573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6580 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6581 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
6583 wxPyEndAllowThreads(__tstate
);
6584 if (PyErr_Occurred()) return NULL
;
6585 } _resultobj
= Py_BuildValue("l",_result
);
6589 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6590 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6591 PyObject
* _resultobj
;
6595 PyObject
* _argo0
= 0;
6596 char *_kwnames
[] = { "self","x", NULL
};
6599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
6602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6609 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6610 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
6612 wxPyEndAllowThreads(__tstate
);
6613 if (PyErr_Occurred()) return NULL
;
6614 } _resultobj
= Py_BuildValue("l",_result
);
6618 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6619 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6620 PyObject
* _resultobj
;
6624 PyObject
* _argo0
= 0;
6625 char *_kwnames
[] = { "self","y", NULL
};
6628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
6631 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6632 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6639 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
6641 wxPyEndAllowThreads(__tstate
);
6642 if (PyErr_Occurred()) return NULL
;
6643 } _resultobj
= Py_BuildValue("l",_result
);
6647 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6648 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6649 PyObject
* _resultobj
;
6653 PyObject
* _argo0
= 0;
6654 char *_kwnames
[] = { "self","y", NULL
};
6657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
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_DeviceToLogicalYRel. Expected _wxDC_p.");
6667 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6668 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
6670 wxPyEndAllowThreads(__tstate
);
6671 if (PyErr_Occurred()) return NULL
;
6672 } _resultobj
= Py_BuildValue("l",_result
);
6676 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6677 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6678 PyObject
* _resultobj
;
6686 PyObject
* _argo0
= 0;
6687 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
6690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6700 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6701 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6703 wxPyEndAllowThreads(__tstate
);
6704 if (PyErr_Occurred()) return NULL
;
6705 } Py_INCREF(Py_None
);
6706 _resultobj
= Py_None
;
6710 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6711 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6712 PyObject
* _resultobj
;
6717 PyObject
* _argo0
= 0;
6718 char *_kwnames
[] = { "self","x","y","radius", NULL
};
6721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
6724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6731 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6732 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
6734 wxPyEndAllowThreads(__tstate
);
6735 if (PyErr_Occurred()) return NULL
;
6736 } Py_INCREF(Py_None
);
6737 _resultobj
= Py_None
;
6741 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6742 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6743 PyObject
* _resultobj
;
6749 PyObject
* _argo0
= 0;
6750 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6756 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6757 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6763 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6764 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6766 wxPyEndAllowThreads(__tstate
);
6767 if (PyErr_Occurred()) return NULL
;
6768 } Py_INCREF(Py_None
);
6769 _resultobj
= Py_None
;
6773 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6774 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6775 PyObject
* _resultobj
;
6783 PyObject
* _argo0
= 0;
6784 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
6787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6798 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6800 wxPyEndAllowThreads(__tstate
);
6801 if (PyErr_Occurred()) return NULL
;
6802 } Py_INCREF(Py_None
);
6803 _resultobj
= Py_None
;
6807 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6808 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6809 PyObject
* _resultobj
;
6814 PyObject
* _argo0
= 0;
6815 PyObject
* _argo1
= 0;
6816 char *_kwnames
[] = { "self","icon","x","y", NULL
};
6819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
6822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6829 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6830 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
6831 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6836 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6837 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
6839 wxPyEndAllowThreads(__tstate
);
6840 if (PyErr_Occurred()) return NULL
;
6841 } Py_INCREF(Py_None
);
6842 _resultobj
= Py_None
;
6846 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6847 static PyObject
*_wrap_wxDC_DrawLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6848 PyObject
* _resultobj
;
6852 int _arg3
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
6853 int _arg4
= (int ) -1;
6854 PyObject
* _argo0
= 0;
6855 PyObject
* _obj1
= 0;
6857 PyObject
* _obj2
= 0;
6858 char *_kwnames
[] = { "self","text","rect","alignment","indexAccel", NULL
};
6861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|ii:wxDC_DrawLabel",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
,&_arg4
))
6864 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6865 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
6871 #if PYTHON_API_VERSION >= 1009
6872 char* tmpPtr
; int tmpSize
;
6873 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6874 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6877 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6879 _arg1
= new wxString(tmpPtr
, tmpSize
);
6881 if (!PyString_Check(_obj1
)) {
6882 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6885 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6890 if (! wxRect_helper(_obj2
, &_arg2
))
6894 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6895 wxDC_DrawLabel(_arg0
,*_arg1
,*_arg2
,_arg3
,_arg4
);
6897 wxPyEndAllowThreads(__tstate
);
6898 if (PyErr_Occurred()) return NULL
;
6899 } Py_INCREF(Py_None
);
6900 _resultobj
= Py_None
;
6908 static wxRect
wxDC_DrawImageLabel(wxDC
*self
,const wxString
& text
,const wxBitmap
& image
,const wxRect
& rect
,int alignment
,int indexAccel
) {
6910 self
->DrawLabel(text
, image
, rect
, alignment
, indexAccel
, &rv
);
6913 static PyObject
*_wrap_wxDC_DrawImageLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6914 PyObject
* _resultobj
;
6920 int _arg4
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
6921 int _arg5
= (int ) -1;
6922 PyObject
* _argo0
= 0;
6923 PyObject
* _obj1
= 0;
6924 PyObject
* _argo2
= 0;
6926 PyObject
* _obj3
= 0;
6927 char *_kwnames
[] = { "self","text","image","rect","alignment","indexAccel", NULL
};
6931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO|ii:wxDC_DrawImageLabel",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
,&_arg4
,&_arg5
))
6934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
6941 #if PYTHON_API_VERSION >= 1009
6942 char* tmpPtr
; int tmpSize
;
6943 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6944 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6947 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6949 _arg1
= new wxString(tmpPtr
, tmpSize
);
6951 if (!PyString_Check(_obj1
)) {
6952 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6955 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6959 if (_argo2
== Py_None
) { _arg2
= NULL
; }
6960 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
6961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
6967 if (! wxRect_helper(_obj3
, &_arg3
))
6971 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6972 _result
= new wxRect (wxDC_DrawImageLabel(_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
));
6974 wxPyEndAllowThreads(__tstate
);
6975 if (PyErr_Occurred()) return NULL
;
6976 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
6977 _resultobj
= Py_BuildValue("s",_ptemp
);
6985 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6986 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6987 PyObject
* _resultobj
;
6993 PyObject
* _argo0
= 0;
6994 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
6997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
7007 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7008 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7010 wxPyEndAllowThreads(__tstate
);
7011 if (PyErr_Occurred()) return NULL
;
7012 } Py_INCREF(Py_None
);
7013 _resultobj
= Py_None
;
7017 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7018 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7019 PyObject
* _resultobj
;
7023 long _arg3
= (long ) 0;
7024 long _arg4
= (long ) 0;
7025 PyObject
* _argo0
= 0;
7027 PyObject
* _obj2
= 0;
7028 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
7031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
7034 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7035 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
7042 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7043 if (_arg2
== NULL
) {
7051 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7052 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7054 wxPyEndAllowThreads(__tstate
);
7055 if (PyErr_Occurred()) return NULL
;
7056 } Py_INCREF(Py_None
);
7057 _resultobj
= Py_None
;
7064 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7065 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7066 PyObject
* _resultobj
;
7070 long _arg3
= (long ) 0;
7071 long _arg4
= (long ) 0;
7072 int _arg5
= (int ) wxODDEVEN_RULE
;
7073 PyObject
* _argo0
= 0;
7075 PyObject
* _obj2
= 0;
7076 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
7079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
7082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
7090 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7091 if (_arg2
== NULL
) {
7099 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7100 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7102 wxPyEndAllowThreads(__tstate
);
7103 if (PyErr_Occurred()) return NULL
;
7104 } Py_INCREF(Py_None
);
7105 _resultobj
= Py_None
;
7112 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
7113 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7114 PyObject
* _resultobj
;
7118 PyObject
* _argo0
= 0;
7119 char *_kwnames
[] = { "self","x","y", NULL
};
7122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
7132 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7133 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
7135 wxPyEndAllowThreads(__tstate
);
7136 if (PyErr_Occurred()) return NULL
;
7137 } Py_INCREF(Py_None
);
7138 _resultobj
= Py_None
;
7142 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7143 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7144 PyObject
* _resultobj
;
7150 PyObject
* _argo0
= 0;
7151 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7157 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7158 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
7164 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7165 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7167 wxPyEndAllowThreads(__tstate
);
7168 if (PyErr_Occurred()) return NULL
;
7169 } Py_INCREF(Py_None
);
7170 _resultobj
= Py_None
;
7174 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7175 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7176 PyObject
* _resultobj
;
7182 PyObject
* _argo0
= 0;
7183 PyObject
* _obj1
= 0;
7184 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
7187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
7190 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7191 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7192 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
7197 #if PYTHON_API_VERSION >= 1009
7198 char* tmpPtr
; int tmpSize
;
7199 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7200 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7203 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7205 _arg1
= new wxString(tmpPtr
, tmpSize
);
7207 if (!PyString_Check(_obj1
)) {
7208 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7211 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7215 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7216 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7218 wxPyEndAllowThreads(__tstate
);
7219 if (PyErr_Occurred()) return NULL
;
7220 } Py_INCREF(Py_None
);
7221 _resultobj
= Py_None
;
7229 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7230 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7231 PyObject
* _resultobj
;
7237 long _arg5
= (long ) 20;
7238 PyObject
* _argo0
= 0;
7239 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
7242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
7245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7253 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7255 wxPyEndAllowThreads(__tstate
);
7256 if (PyErr_Occurred()) return NULL
;
7257 } Py_INCREF(Py_None
);
7258 _resultobj
= Py_None
;
7262 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7263 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7264 PyObject
* _resultobj
;
7268 PyObject
* _argo0
= 0;
7270 PyObject
* _obj2
= 0;
7271 char *_kwnames
[] = { "self","points", NULL
};
7274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
7277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7285 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7286 if (_arg2
== NULL
) {
7294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7295 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
7297 wxPyEndAllowThreads(__tstate
);
7298 if (PyErr_Occurred()) return NULL
;
7299 } Py_INCREF(Py_None
);
7300 _resultobj
= Py_None
;
7307 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7308 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7309 PyObject
* _resultobj
;
7314 PyObject
* _argo0
= 0;
7315 PyObject
* _obj1
= 0;
7316 char *_kwnames
[] = { "self","text","x","y", NULL
};
7319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
7322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7329 #if PYTHON_API_VERSION >= 1009
7330 char* tmpPtr
; int tmpSize
;
7331 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7332 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7335 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7337 _arg1
= new wxString(tmpPtr
, tmpSize
);
7339 if (!PyString_Check(_obj1
)) {
7340 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7343 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7347 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7348 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
7350 wxPyEndAllowThreads(__tstate
);
7351 if (PyErr_Occurred()) return NULL
;
7352 } Py_INCREF(Py_None
);
7353 _resultobj
= Py_None
;
7361 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7362 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7363 PyObject
* _resultobj
;
7365 PyObject
* _argo0
= 0;
7366 char *_kwnames
[] = { "self", NULL
};
7369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
7372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7382 wxPyEndAllowThreads(__tstate
);
7383 if (PyErr_Occurred()) return NULL
;
7384 } Py_INCREF(Py_None
);
7385 _resultobj
= Py_None
;
7389 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7390 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7391 PyObject
* _resultobj
;
7393 PyObject
* _argo0
= 0;
7394 char *_kwnames
[] = { "self", NULL
};
7397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
7400 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7401 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7408 wxDC_EndDrawing(_arg0
);
7410 wxPyEndAllowThreads(__tstate
);
7411 if (PyErr_Occurred()) return NULL
;
7412 } Py_INCREF(Py_None
);
7413 _resultobj
= Py_None
;
7417 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7418 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7419 PyObject
* _resultobj
;
7421 PyObject
* _argo0
= 0;
7422 char *_kwnames
[] = { "self", NULL
};
7425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
7428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7435 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7436 wxDC_EndPage(_arg0
);
7438 wxPyEndAllowThreads(__tstate
);
7439 if (PyErr_Occurred()) return NULL
;
7440 } Py_INCREF(Py_None
);
7441 _resultobj
= Py_None
;
7445 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7446 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7447 PyObject
* _resultobj
;
7452 int _arg4
= (int ) wxFLOOD_SURFACE
;
7453 PyObject
* _argo0
= 0;
7455 PyObject
* _obj3
= 0;
7456 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
7459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
7462 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7463 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7470 if (! wxColour_helper(_obj3
, &_arg3
))
7474 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7475 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
7477 wxPyEndAllowThreads(__tstate
);
7478 if (PyErr_Occurred()) return NULL
;
7479 } Py_INCREF(Py_None
);
7480 _resultobj
= Py_None
;
7484 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7485 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7486 PyObject
* _resultobj
;
7489 PyObject
* _argo0
= 0;
7490 char *_kwnames
[] = { "self", NULL
};
7494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
7497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7505 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
7507 wxPyEndAllowThreads(__tstate
);
7508 if (PyErr_Occurred()) return NULL
;
7509 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
7510 _resultobj
= Py_BuildValue("s",_ptemp
);
7514 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7515 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7516 PyObject
* _resultobj
;
7519 PyObject
* _argo0
= 0;
7520 char *_kwnames
[] = { "self", NULL
};
7524 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
7527 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7528 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7529 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7534 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7535 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
7537 wxPyEndAllowThreads(__tstate
);
7538 if (PyErr_Occurred()) return NULL
;
7539 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
7540 _resultobj
= Py_BuildValue("s",_ptemp
);
7544 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7545 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7546 PyObject
* _resultobj
;
7549 PyObject
* _argo0
= 0;
7550 char *_kwnames
[] = { "self", NULL
};
7553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
7556 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7557 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7564 _result
= (long )wxDC_GetCharHeight(_arg0
);
7566 wxPyEndAllowThreads(__tstate
);
7567 if (PyErr_Occurred()) return NULL
;
7568 } _resultobj
= Py_BuildValue("l",_result
);
7572 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7573 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7574 PyObject
* _resultobj
;
7577 PyObject
* _argo0
= 0;
7578 char *_kwnames
[] = { "self", NULL
};
7581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
7584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7592 _result
= (long )wxDC_GetCharWidth(_arg0
);
7594 wxPyEndAllowThreads(__tstate
);
7595 if (PyErr_Occurred()) return NULL
;
7596 } _resultobj
= Py_BuildValue("l",_result
);
7600 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7601 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7602 PyObject
* _resultobj
;
7612 PyObject
* _argo0
= 0;
7613 char *_kwnames
[] = { "self", NULL
};
7628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
7631 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7632 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7639 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7641 wxPyEndAllowThreads(__tstate
);
7642 if (PyErr_Occurred()) return NULL
;
7643 } Py_INCREF(Py_None
);
7644 _resultobj
= Py_None
;
7647 o
= PyInt_FromLong((long) (*_arg1
));
7648 _resultobj
= t_output_helper(_resultobj
, o
);
7652 o
= PyInt_FromLong((long) (*_arg2
));
7653 _resultobj
= t_output_helper(_resultobj
, o
);
7657 o
= PyInt_FromLong((long) (*_arg3
));
7658 _resultobj
= t_output_helper(_resultobj
, o
);
7662 o
= PyInt_FromLong((long) (*_arg4
));
7663 _resultobj
= t_output_helper(_resultobj
, o
);
7668 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7669 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7670 PyObject
* _resultobj
;
7673 PyObject
* _argo0
= 0;
7674 char *_kwnames
[] = { "self", NULL
};
7678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
7681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7688 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7689 _result
= new wxFont (wxDC_GetFont(_arg0
));
7691 wxPyEndAllowThreads(__tstate
);
7692 if (PyErr_Occurred()) return NULL
;
7693 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
7694 _resultobj
= Py_BuildValue("s",_ptemp
);
7698 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7699 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7700 PyObject
* _resultobj
;
7703 PyObject
* _argo0
= 0;
7704 char *_kwnames
[] = { "self", NULL
};
7707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
7710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7717 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7718 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
7720 wxPyEndAllowThreads(__tstate
);
7721 if (PyErr_Occurred()) return NULL
;
7722 } _resultobj
= Py_BuildValue("i",_result
);
7726 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7727 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7728 PyObject
* _resultobj
;
7734 PyObject
* _argo0
= 0;
7735 char *_kwnames
[] = { "self", NULL
};
7744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
7747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7754 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7755 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
7757 wxPyEndAllowThreads(__tstate
);
7758 if (PyErr_Occurred()) return NULL
;
7759 } Py_INCREF(Py_None
);
7760 _resultobj
= Py_None
;
7763 o
= PyFloat_FromDouble((double) (*_arg1
));
7764 _resultobj
= t_output_helper(_resultobj
, o
);
7768 o
= PyFloat_FromDouble((double) (*_arg2
));
7769 _resultobj
= t_output_helper(_resultobj
, o
);
7774 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7775 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7776 PyObject
* _resultobj
;
7779 PyObject
* _argo0
= 0;
7780 char *_kwnames
[] = { "self", NULL
};
7783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
7786 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7787 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7793 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7794 _result
= (int )wxDC_GetMapMode(_arg0
);
7796 wxPyEndAllowThreads(__tstate
);
7797 if (PyErr_Occurred()) return NULL
;
7798 } _resultobj
= Py_BuildValue("i",_result
);
7802 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7803 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7804 PyObject
* _resultobj
;
7807 PyObject
* _argo0
= 0;
7808 char *_kwnames
[] = { "self", NULL
};
7811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
7814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7822 _result
= (bool )wxDC_GetOptimization(_arg0
);
7824 wxPyEndAllowThreads(__tstate
);
7825 if (PyErr_Occurred()) return NULL
;
7826 } _resultobj
= Py_BuildValue("i",_result
);
7830 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7831 static PyObject
*_wrap_wxDC_GetPen(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_GetPen",_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_GetPen. Expected _wxDC_p.");
7850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7851 _result
= new wxPen (wxDC_GetPen(_arg0
));
7853 wxPyEndAllowThreads(__tstate
);
7854 if (PyErr_Occurred()) return NULL
;
7855 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
7856 _resultobj
= Py_BuildValue("s",_ptemp
);
7860 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
7861 wxColour
* wc
= new wxColour();
7862 self
->GetPixel(x
, y
, wc
);
7865 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7866 PyObject
* _resultobj
;
7871 PyObject
* _argo0
= 0;
7872 char *_kwnames
[] = { "self","x","y", NULL
};
7876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7879 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7880 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7886 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7887 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
7889 wxPyEndAllowThreads(__tstate
);
7890 if (PyErr_Occurred()) return NULL
;
7892 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7893 _resultobj
= Py_BuildValue("s",_ptemp
);
7896 _resultobj
= Py_None
;
7901 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7902 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7903 PyObject
* _resultobj
;
7909 PyObject
* _argo0
= 0;
7910 char *_kwnames
[] = { "self", NULL
};
7919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
7922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7929 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7930 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
7932 wxPyEndAllowThreads(__tstate
);
7933 if (PyErr_Occurred()) return NULL
;
7934 } Py_INCREF(Py_None
);
7935 _resultobj
= Py_None
;
7938 o
= PyInt_FromLong((long) (*_arg1
));
7939 _resultobj
= t_output_helper(_resultobj
, o
);
7943 o
= PyInt_FromLong((long) (*_arg2
));
7944 _resultobj
= t_output_helper(_resultobj
, o
);
7949 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7950 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7951 PyObject
* _resultobj
;
7954 PyObject
* _argo0
= 0;
7955 char *_kwnames
[] = { "self", NULL
};
7959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
7962 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7963 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7969 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7970 _result
= new wxSize (wxDC_GetSize(_arg0
));
7972 wxPyEndAllowThreads(__tstate
);
7973 if (PyErr_Occurred()) return NULL
;
7974 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7975 _resultobj
= Py_BuildValue("s",_ptemp
);
7979 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7980 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7981 PyObject
* _resultobj
;
7984 PyObject
* _argo0
= 0;
7985 char *_kwnames
[] = { "self", NULL
};
7989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7992 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7993 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7999 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8000 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
8002 wxPyEndAllowThreads(__tstate
);
8003 if (PyErr_Occurred()) return NULL
;
8004 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8005 _resultobj
= Py_BuildValue("s",_ptemp
);
8009 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
8010 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8011 PyObject
* _resultobj
;
8014 PyObject
* _argo0
= 0;
8015 char *_kwnames
[] = { "self", NULL
};
8019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
8022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
8029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8030 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
8032 wxPyEndAllowThreads(__tstate
);
8033 if (PyErr_Occurred()) return NULL
;
8034 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8035 _resultobj
= Py_BuildValue("s",_ptemp
);
8039 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
8040 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8041 PyObject
* _resultobj
;
8048 PyObject
* _argo0
= 0;
8049 PyObject
* _obj1
= 0;
8050 char *_kwnames
[] = { "self","string", NULL
};
8059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
8062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
8069 #if PYTHON_API_VERSION >= 1009
8070 char* tmpPtr
; int tmpSize
;
8071 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8072 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8075 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8077 _arg1
= new wxString(tmpPtr
, tmpSize
);
8079 if (!PyString_Check(_obj1
)) {
8080 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8083 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8087 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8088 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
8090 wxPyEndAllowThreads(__tstate
);
8091 if (PyErr_Occurred()) return NULL
;
8092 } Py_INCREF(Py_None
);
8093 _resultobj
= Py_None
;
8096 o
= PyInt_FromLong((long) (*_arg2
));
8097 _resultobj
= t_output_helper(_resultobj
, o
);
8101 o
= PyInt_FromLong((long) (*_arg3
));
8102 _resultobj
= t_output_helper(_resultobj
, o
);
8111 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8112 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8113 PyObject
* _resultobj
;
8124 wxFont
* _arg6
= (wxFont
*) NULL
;
8125 PyObject
* _argo0
= 0;
8126 PyObject
* _obj1
= 0;
8127 PyObject
* _argo6
= 0;
8128 char *_kwnames
[] = { "self","string","font", NULL
};
8143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
8146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
8153 #if PYTHON_API_VERSION >= 1009
8154 char* tmpPtr
; int tmpSize
;
8155 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8156 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8159 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8161 _arg1
= new wxString(tmpPtr
, tmpSize
);
8163 if (!PyString_Check(_obj1
)) {
8164 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8167 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8171 if (_argo6
== Py_None
) { _arg6
= NULL
; }
8172 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
8173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8179 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8181 wxPyEndAllowThreads(__tstate
);
8182 if (PyErr_Occurred()) return NULL
;
8183 } Py_INCREF(Py_None
);
8184 _resultobj
= Py_None
;
8187 o
= PyInt_FromLong((long) (*_arg2
));
8188 _resultobj
= t_output_helper(_resultobj
, o
);
8192 o
= PyInt_FromLong((long) (*_arg3
));
8193 _resultobj
= t_output_helper(_resultobj
, o
);
8197 o
= PyInt_FromLong((long) (*_arg4
));
8198 _resultobj
= t_output_helper(_resultobj
, o
);
8202 o
= PyInt_FromLong((long) (*_arg5
));
8203 _resultobj
= t_output_helper(_resultobj
, o
);
8212 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8213 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8214 PyObject
* _resultobj
;
8217 PyObject
* _argo0
= 0;
8218 char *_kwnames
[] = { "self", NULL
};
8222 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
8225 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8226 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8227 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8232 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8233 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
8235 wxPyEndAllowThreads(__tstate
);
8236 if (PyErr_Occurred()) return NULL
;
8237 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8238 _resultobj
= Py_BuildValue("s",_ptemp
);
8242 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8243 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8244 PyObject
* _resultobj
;
8250 PyObject
* _argo0
= 0;
8251 char *_kwnames
[] = { "self", NULL
};
8260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
8263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8271 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
8273 wxPyEndAllowThreads(__tstate
);
8274 if (PyErr_Occurred()) return NULL
;
8275 } Py_INCREF(Py_None
);
8276 _resultobj
= Py_None
;
8279 o
= PyFloat_FromDouble((double) (*_arg1
));
8280 _resultobj
= t_output_helper(_resultobj
, o
);
8284 o
= PyFloat_FromDouble((double) (*_arg2
));
8285 _resultobj
= t_output_helper(_resultobj
, o
);
8290 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8291 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8292 PyObject
* _resultobj
;
8296 PyObject
* _argo0
= 0;
8297 char *_kwnames
[] = { "self","x", NULL
};
8300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
8303 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8304 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8305 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8310 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8311 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
8313 wxPyEndAllowThreads(__tstate
);
8314 if (PyErr_Occurred()) return NULL
;
8315 } _resultobj
= Py_BuildValue("l",_result
);
8319 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8320 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8321 PyObject
* _resultobj
;
8325 PyObject
* _argo0
= 0;
8326 char *_kwnames
[] = { "self","x", NULL
};
8329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
8332 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8333 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8339 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8340 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
8342 wxPyEndAllowThreads(__tstate
);
8343 if (PyErr_Occurred()) return NULL
;
8344 } _resultobj
= Py_BuildValue("l",_result
);
8348 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8349 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8350 PyObject
* _resultobj
;
8354 PyObject
* _argo0
= 0;
8355 char *_kwnames
[] = { "self","y", NULL
};
8358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
8361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8369 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
8371 wxPyEndAllowThreads(__tstate
);
8372 if (PyErr_Occurred()) return NULL
;
8373 } _resultobj
= Py_BuildValue("l",_result
);
8377 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8378 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8379 PyObject
* _resultobj
;
8383 PyObject
* _argo0
= 0;
8384 char *_kwnames
[] = { "self","y", NULL
};
8387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
8390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8397 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8398 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
8400 wxPyEndAllowThreads(__tstate
);
8401 if (PyErr_Occurred()) return NULL
;
8402 } _resultobj
= Py_BuildValue("l",_result
);
8406 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8407 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8408 PyObject
* _resultobj
;
8411 PyObject
* _argo0
= 0;
8412 char *_kwnames
[] = { "self", NULL
};
8415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
8418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8425 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8426 _result
= (long )wxDC_MaxX(_arg0
);
8428 wxPyEndAllowThreads(__tstate
);
8429 if (PyErr_Occurred()) return NULL
;
8430 } _resultobj
= Py_BuildValue("l",_result
);
8434 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8435 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8436 PyObject
* _resultobj
;
8439 PyObject
* _argo0
= 0;
8440 char *_kwnames
[] = { "self", NULL
};
8443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
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_MaxY. Expected _wxDC_p.");
8453 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8454 _result
= (long )wxDC_MaxY(_arg0
);
8456 wxPyEndAllowThreads(__tstate
);
8457 if (PyErr_Occurred()) return NULL
;
8458 } _resultobj
= Py_BuildValue("l",_result
);
8462 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
8463 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8464 PyObject
* _resultobj
;
8467 PyObject
* _argo0
= 0;
8468 char *_kwnames
[] = { "self", NULL
};
8471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
8474 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8475 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8481 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8482 _result
= (long )wxDC_MinX(_arg0
);
8484 wxPyEndAllowThreads(__tstate
);
8485 if (PyErr_Occurred()) return NULL
;
8486 } _resultobj
= Py_BuildValue("l",_result
);
8490 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8491 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8492 PyObject
* _resultobj
;
8495 PyObject
* _argo0
= 0;
8496 char *_kwnames
[] = { "self", NULL
};
8499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
8502 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8503 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8509 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8510 _result
= (long )wxDC_MinY(_arg0
);
8512 wxPyEndAllowThreads(__tstate
);
8513 if (PyErr_Occurred()) return NULL
;
8514 } _resultobj
= Py_BuildValue("l",_result
);
8518 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8519 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8520 PyObject
* _resultobj
;
8523 PyObject
* _argo0
= 0;
8524 char *_kwnames
[] = { "self", NULL
};
8527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
8530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8537 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8538 _result
= (bool )wxDC_Ok(_arg0
);
8540 wxPyEndAllowThreads(__tstate
);
8541 if (PyErr_Occurred()) return NULL
;
8542 } _resultobj
= Py_BuildValue("i",_result
);
8546 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8547 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8548 PyObject
* _resultobj
;
8552 PyObject
* _argo0
= 0;
8553 char *_kwnames
[] = { "self","x","y", NULL
};
8556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8559 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8560 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8566 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8567 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8569 wxPyEndAllowThreads(__tstate
);
8570 if (PyErr_Occurred()) return NULL
;
8571 } Py_INCREF(Py_None
);
8572 _resultobj
= Py_None
;
8576 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8577 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8578 PyObject
* _resultobj
;
8581 PyObject
* _argo0
= 0;
8582 PyObject
* _argo1
= 0;
8583 char *_kwnames
[] = { "self","brush", NULL
};
8586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
8589 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8590 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8591 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8596 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8597 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8603 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8604 wxDC_SetBackground(_arg0
,*_arg1
);
8606 wxPyEndAllowThreads(__tstate
);
8607 if (PyErr_Occurred()) return NULL
;
8608 } Py_INCREF(Py_None
);
8609 _resultobj
= Py_None
;
8613 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8614 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8615 PyObject
* _resultobj
;
8618 PyObject
* _argo0
= 0;
8619 char *_kwnames
[] = { "self","mode", NULL
};
8622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
8625 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8626 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8632 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8633 wxDC_SetBackgroundMode(_arg0
,_arg1
);
8635 wxPyEndAllowThreads(__tstate
);
8636 if (PyErr_Occurred()) return NULL
;
8637 } Py_INCREF(Py_None
);
8638 _resultobj
= Py_None
;
8642 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8643 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8644 PyObject
* _resultobj
;
8650 PyObject
* _argo0
= 0;
8651 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
8654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
8657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8664 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8665 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8667 wxPyEndAllowThreads(__tstate
);
8668 if (PyErr_Occurred()) return NULL
;
8669 } Py_INCREF(Py_None
);
8670 _resultobj
= Py_None
;
8674 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8675 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8676 PyObject
* _resultobj
;
8679 PyObject
* _argo0
= 0;
8680 PyObject
* _argo1
= 0;
8681 char *_kwnames
[] = { "self","region", NULL
};
8684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
8687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8694 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8695 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
8696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8701 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8702 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
8704 wxPyEndAllowThreads(__tstate
);
8705 if (PyErr_Occurred()) return NULL
;
8706 } Py_INCREF(Py_None
);
8707 _resultobj
= Py_None
;
8711 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8712 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8713 PyObject
* _resultobj
;
8716 PyObject
* _argo0
= 0;
8717 PyObject
* _argo1
= 0;
8718 char *_kwnames
[] = { "self","colourMap", NULL
};
8721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
8724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8731 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8732 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
8733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8738 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8739 wxDC_SetPalette(_arg0
,*_arg1
);
8741 wxPyEndAllowThreads(__tstate
);
8742 if (PyErr_Occurred()) return NULL
;
8743 } Py_INCREF(Py_None
);
8744 _resultobj
= Py_None
;
8748 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8749 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8750 PyObject
* _resultobj
;
8753 PyObject
* _argo0
= 0;
8754 PyObject
* _argo1
= 0;
8755 char *_kwnames
[] = { "self","brush", NULL
};
8758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
8761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8768 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8769 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8776 wxDC_SetBrush(_arg0
,*_arg1
);
8778 wxPyEndAllowThreads(__tstate
);
8779 if (PyErr_Occurred()) return NULL
;
8780 } Py_INCREF(Py_None
);
8781 _resultobj
= Py_None
;
8785 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8786 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8787 PyObject
* _resultobj
;
8790 PyObject
* _argo0
= 0;
8791 PyObject
* _argo1
= 0;
8792 char *_kwnames
[] = { "self","font", NULL
};
8795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
8798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8805 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8806 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
8807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8812 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8813 wxDC_SetFont(_arg0
,*_arg1
);
8815 wxPyEndAllowThreads(__tstate
);
8816 if (PyErr_Occurred()) return NULL
;
8817 } Py_INCREF(Py_None
);
8818 _resultobj
= Py_None
;
8822 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8823 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8824 PyObject
* _resultobj
;
8827 PyObject
* _argo0
= 0;
8828 char *_kwnames
[] = { "self","function", NULL
};
8831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
8834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8841 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8842 wxDC_SetLogicalFunction(_arg0
,_arg1
);
8844 wxPyEndAllowThreads(__tstate
);
8845 if (PyErr_Occurred()) return NULL
;
8846 } Py_INCREF(Py_None
);
8847 _resultobj
= Py_None
;
8851 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8852 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8853 PyObject
* _resultobj
;
8857 PyObject
* _argo0
= 0;
8858 char *_kwnames
[] = { "self","x","y", NULL
};
8861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8864 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8865 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8871 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8872 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
8874 wxPyEndAllowThreads(__tstate
);
8875 if (PyErr_Occurred()) return NULL
;
8876 } Py_INCREF(Py_None
);
8877 _resultobj
= Py_None
;
8881 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8882 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8883 PyObject
* _resultobj
;
8886 PyObject
* _argo0
= 0;
8887 char *_kwnames
[] = { "self","mode", NULL
};
8890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
8893 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8894 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8900 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8901 wxDC_SetMapMode(_arg0
,_arg1
);
8903 wxPyEndAllowThreads(__tstate
);
8904 if (PyErr_Occurred()) return NULL
;
8905 } Py_INCREF(Py_None
);
8906 _resultobj
= Py_None
;
8910 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8911 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8912 PyObject
* _resultobj
;
8915 PyObject
* _argo0
= 0;
8917 char *_kwnames
[] = { "self","optimize", NULL
};
8920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
8923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8929 _arg1
= (bool ) tempbool1
;
8931 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8932 wxDC_SetOptimization(_arg0
,_arg1
);
8934 wxPyEndAllowThreads(__tstate
);
8935 if (PyErr_Occurred()) return NULL
;
8936 } Py_INCREF(Py_None
);
8937 _resultobj
= Py_None
;
8941 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8942 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8943 PyObject
* _resultobj
;
8946 PyObject
* _argo0
= 0;
8947 PyObject
* _argo1
= 0;
8948 char *_kwnames
[] = { "self","pen", NULL
};
8951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
8954 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8955 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8961 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8962 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
8963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8968 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8969 wxDC_SetPen(_arg0
,*_arg1
);
8971 wxPyEndAllowThreads(__tstate
);
8972 if (PyErr_Occurred()) return NULL
;
8973 } Py_INCREF(Py_None
);
8974 _resultobj
= Py_None
;
8978 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8979 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8980 PyObject
* _resultobj
;
8983 PyObject
* _argo0
= 0;
8985 PyObject
* _obj1
= 0;
8986 char *_kwnames
[] = { "self","colour", NULL
};
8989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
8992 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8993 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
9000 if (! wxColour_helper(_obj1
, &_arg1
))
9004 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9005 wxDC_SetTextBackground(_arg0
,*_arg1
);
9007 wxPyEndAllowThreads(__tstate
);
9008 if (PyErr_Occurred()) return NULL
;
9009 } Py_INCREF(Py_None
);
9010 _resultobj
= Py_None
;
9014 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
9015 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9016 PyObject
* _resultobj
;
9019 PyObject
* _argo0
= 0;
9021 PyObject
* _obj1
= 0;
9022 char *_kwnames
[] = { "self","colour", NULL
};
9025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
9028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
9036 if (! wxColour_helper(_obj1
, &_arg1
))
9040 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9041 wxDC_SetTextForeground(_arg0
,*_arg1
);
9043 wxPyEndAllowThreads(__tstate
);
9044 if (PyErr_Occurred()) return NULL
;
9045 } Py_INCREF(Py_None
);
9046 _resultobj
= Py_None
;
9050 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
9051 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9052 PyObject
* _resultobj
;
9056 PyObject
* _argo0
= 0;
9057 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
9060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
9070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9071 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
9073 wxPyEndAllowThreads(__tstate
);
9074 if (PyErr_Occurred()) return NULL
;
9075 } Py_INCREF(Py_None
);
9076 _resultobj
= Py_None
;
9080 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
9081 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9082 PyObject
* _resultobj
;
9086 PyObject
* _argo0
= 0;
9087 PyObject
* _obj1
= 0;
9088 char *_kwnames
[] = { "self","message", NULL
};
9091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
9094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
9101 #if PYTHON_API_VERSION >= 1009
9102 char* tmpPtr
; int tmpSize
;
9103 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9104 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9107 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9109 _arg1
= new wxString(tmpPtr
, tmpSize
);
9111 if (!PyString_Check(_obj1
)) {
9112 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9115 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9119 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9120 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
9122 wxPyEndAllowThreads(__tstate
);
9123 if (PyErr_Occurred()) return NULL
;
9124 } _resultobj
= Py_BuildValue("i",_result
);
9132 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
9133 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9134 PyObject
* _resultobj
;
9136 PyObject
* _argo0
= 0;
9137 char *_kwnames
[] = { "self", NULL
};
9140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
9143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
9150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9151 wxDC_StartPage(_arg0
);
9153 wxPyEndAllowThreads(__tstate
);
9154 if (PyErr_Occurred()) return NULL
;
9155 } Py_INCREF(Py_None
);
9156 _resultobj
= Py_None
;
9160 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9161 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9162 PyObject
* _resultobj
;
9167 int _arg4
= (int ) FALSE
;
9168 PyObject
* _argo0
= 0;
9169 PyObject
* _argo1
= 0;
9170 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
9173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
9176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9183 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9184 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9191 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
9193 wxPyEndAllowThreads(__tstate
);
9194 if (PyErr_Occurred()) return NULL
;
9195 } Py_INCREF(Py_None
);
9196 _resultobj
= Py_None
;
9200 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9201 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9202 PyObject
* _resultobj
;
9205 PyObject
* _argo0
= 0;
9206 char *_kwnames
[] = { "self", NULL
};
9209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
9212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9220 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
9222 wxPyEndAllowThreads(__tstate
);
9223 if (PyErr_Occurred()) return NULL
;
9224 } _resultobj
= Py_BuildValue("i",_result
);
9228 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9229 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9230 PyObject
* _resultobj
;
9233 PyObject
* _argo0
= 0;
9234 char *_kwnames
[] = { "self", NULL
};
9237 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
9240 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9241 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9242 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9247 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9248 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
9250 wxPyEndAllowThreads(__tstate
);
9251 if (PyErr_Occurred()) return NULL
;
9252 } _resultobj
= Py_BuildValue("i",_result
);
9256 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9257 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9258 PyObject
* _resultobj
;
9261 PyObject
* _argo0
= 0;
9262 char *_kwnames
[] = { "self", NULL
};
9265 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
9268 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9269 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9270 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9275 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9276 _result
= (int )wxDC_GetDepth(_arg0
);
9278 wxPyEndAllowThreads(__tstate
);
9279 if (PyErr_Occurred()) return NULL
;
9280 } _resultobj
= Py_BuildValue("i",_result
);
9284 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9285 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9286 PyObject
* _resultobj
;
9289 PyObject
* _argo0
= 0;
9290 char *_kwnames
[] = { "self", NULL
};
9294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
9297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9304 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9305 _result
= new wxSize (wxDC_GetPPI(_arg0
));
9307 wxPyEndAllowThreads(__tstate
);
9308 if (PyErr_Occurred()) return NULL
;
9309 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
9310 _resultobj
= Py_BuildValue("s",_ptemp
);
9314 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9315 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9316 PyObject
* _resultobj
;
9322 PyObject
* _argo0
= 0;
9323 char *_kwnames
[] = { "self", NULL
};
9332 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
9335 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9336 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9337 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9342 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9343 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9345 wxPyEndAllowThreads(__tstate
);
9346 if (PyErr_Occurred()) return NULL
;
9347 } Py_INCREF(Py_None
);
9348 _resultobj
= Py_None
;
9351 o
= PyInt_FromLong((long) (*_arg1
));
9352 _resultobj
= t_output_helper(_resultobj
, o
);
9356 o
= PyInt_FromLong((long) (*_arg2
));
9357 _resultobj
= t_output_helper(_resultobj
, o
);
9362 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9363 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9364 PyObject
* _resultobj
;
9368 PyObject
* _argo0
= 0;
9369 char *_kwnames
[] = { "self","x","y", NULL
};
9372 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9375 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9376 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9377 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9382 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9383 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9385 wxPyEndAllowThreads(__tstate
);
9386 if (PyErr_Occurred()) return NULL
;
9387 } Py_INCREF(Py_None
);
9388 _resultobj
= Py_None
;
9392 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9393 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9394 PyObject
* _resultobj
;
9400 PyObject
* _argo0
= 0;
9401 char *_kwnames
[] = { "self", NULL
};
9410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
9413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9420 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9421 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
9423 wxPyEndAllowThreads(__tstate
);
9424 if (PyErr_Occurred()) return NULL
;
9425 } Py_INCREF(Py_None
);
9426 _resultobj
= Py_None
;
9429 o
= PyInt_FromLong((long) (*_arg1
));
9430 _resultobj
= t_output_helper(_resultobj
, o
);
9434 o
= PyInt_FromLong((long) (*_arg2
));
9435 _resultobj
= t_output_helper(_resultobj
, o
);
9440 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9441 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9442 PyObject
* _resultobj
;
9446 PyObject
* _argo0
= 0;
9449 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
9452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
9455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9461 _arg1
= (bool ) tempbool1
;
9462 _arg2
= (bool ) tempbool2
;
9464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9465 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
9467 wxPyEndAllowThreads(__tstate
);
9468 if (PyErr_Occurred()) return NULL
;
9469 } Py_INCREF(Py_None
);
9470 _resultobj
= Py_None
;
9474 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9475 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9476 PyObject
* _resultobj
;
9480 PyObject
* _argo0
= 0;
9481 char *_kwnames
[] = { "self","x","y", NULL
};
9484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9495 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
9497 wxPyEndAllowThreads(__tstate
);
9498 if (PyErr_Occurred()) return NULL
;
9499 } Py_INCREF(Py_None
);
9500 _resultobj
= Py_None
;
9504 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9505 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9506 PyObject
* _resultobj
;
9508 PyObject
* _argo0
= 0;
9509 char *_kwnames
[] = { "self", NULL
};
9512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
9515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9523 wxDC_ResetBoundingBox(_arg0
);
9525 wxPyEndAllowThreads(__tstate
);
9526 if (PyErr_Occurred()) return NULL
;
9527 } Py_INCREF(Py_None
);
9528 _resultobj
= Py_None
;
9532 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9533 PyObject
* _resultobj
;
9543 PyObject
* _argo0
= 0;
9544 char *_kwnames
[] = { "self", NULL
};
9559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
9562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9569 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9570 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9572 wxPyEndAllowThreads(__tstate
);
9573 if (PyErr_Occurred()) return NULL
;
9574 } Py_INCREF(Py_None
);
9575 _resultobj
= Py_None
;
9578 o
= PyInt_FromLong((long) (*_arg1
));
9579 _resultobj
= t_output_helper(_resultobj
, o
);
9583 o
= PyInt_FromLong((long) (*_arg2
));
9584 _resultobj
= t_output_helper(_resultobj
, o
);
9588 o
= PyInt_FromLong((long) (*_arg3
));
9589 _resultobj
= t_output_helper(_resultobj
, o
);
9593 o
= PyInt_FromLong((long) (*_arg4
));
9594 _resultobj
= t_output_helper(_resultobj
, o
);
9599 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
9600 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
9601 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9609 if (!PySequence_Check(pyPoints
)) {
9612 if (!PySequence_Check(pyPens
)) {
9615 numObjs
= PySequence_Length(pyPoints
);
9616 numPens
= PySequence_Length(pyPens
);
9618 for (i
= 0; i
< numObjs
; i
++) {
9622 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9625 obj
= PySequence_GetItem(pyPens
, i
);
9627 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9638 // Get the point coordinants
9640 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
9643 obj
= PySequence_GetItem(pyPoints
, i
);
9645 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
9651 // Now draw the point
9652 self
->DrawPoint(x1
, y1
);
9662 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9665 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
9668 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9669 PyObject
* _resultobj
;
9674 PyObject
* _argo0
= 0;
9675 PyObject
* _obj1
= 0;
9676 PyObject
* _obj2
= 0;
9677 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
9680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9696 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9697 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
9699 wxPyEndAllowThreads(__tstate
);
9700 if (PyErr_Occurred()) return NULL
;
9702 _resultobj
= _result
;
9707 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
9708 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
9709 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9717 if (!PySequence_Check(pyLines
)) {
9720 if (!PySequence_Check(pyPens
)) {
9723 numObjs
= PySequence_Length(pyLines
);
9724 numPens
= PySequence_Length(pyPens
);
9726 for (i
= 0; i
< numObjs
; i
++) {
9730 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9733 obj
= PySequence_GetItem(pyPens
, i
);
9735 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9746 // Get the line coordinants
9748 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
9751 obj
= PySequence_GetItem(pyLines
, i
);
9753 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
9759 // Now draw the line
9760 self
->DrawLine(x1
, y1
, x2
, y2
);
9770 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9773 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9776 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9777 PyObject
* _resultobj
;
9782 PyObject
* _argo0
= 0;
9783 PyObject
* _obj1
= 0;
9784 PyObject
* _obj2
= 0;
9785 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
9788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9804 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9805 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
9807 wxPyEndAllowThreads(__tstate
);
9808 if (PyErr_Occurred()) return NULL
;
9810 _resultobj
= _result
;
9815 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
9818 src
= (wxMemoryDC
*) ptr
;
9819 dest
= (wxDC
*) src
;
9820 return (void *) dest
;
9823 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
9826 src
= (wxMemoryDC
*) ptr
;
9827 dest
= (wxObject
*) src
;
9828 return (void *) dest
;
9831 #define new_wxMemoryDC() (new wxMemoryDC())
9832 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9833 PyObject
* _resultobj
;
9834 wxMemoryDC
* _result
;
9835 char *_kwnames
[] = { NULL
};
9839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
9842 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9843 _result
= (wxMemoryDC
*)new_wxMemoryDC();
9845 wxPyEndAllowThreads(__tstate
);
9846 if (PyErr_Occurred()) return NULL
;
9848 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
9849 _resultobj
= Py_BuildValue("s",_ptemp
);
9852 _resultobj
= Py_None
;
9857 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9858 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9859 PyObject
* _resultobj
;
9862 PyObject
* _argo0
= 0;
9863 PyObject
* _argo1
= 0;
9864 char *_kwnames
[] = { "self","bitmap", NULL
};
9867 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
9870 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9871 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
9872 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9877 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9878 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9884 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9885 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
9887 wxPyEndAllowThreads(__tstate
);
9888 if (PyErr_Occurred()) return NULL
;
9889 } Py_INCREF(Py_None
);
9890 _resultobj
= Py_None
;
9894 static void *SwigwxScreenDCTowxDC(void *ptr
) {
9897 src
= (wxScreenDC
*) ptr
;
9898 dest
= (wxDC
*) src
;
9899 return (void *) dest
;
9902 static void *SwigwxScreenDCTowxObject(void *ptr
) {
9905 src
= (wxScreenDC
*) ptr
;
9906 dest
= (wxObject
*) src
;
9907 return (void *) dest
;
9910 #define new_wxScreenDC() (new wxScreenDC())
9911 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9912 PyObject
* _resultobj
;
9913 wxScreenDC
* _result
;
9914 char *_kwnames
[] = { NULL
};
9918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
9921 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9922 _result
= (wxScreenDC
*)new_wxScreenDC();
9924 wxPyEndAllowThreads(__tstate
);
9925 if (PyErr_Occurred()) return NULL
;
9927 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
9928 _resultobj
= Py_BuildValue("s",_ptemp
);
9931 _resultobj
= Py_None
;
9936 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9937 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9938 PyObject
* _resultobj
;
9942 PyObject
* _argo0
= 0;
9943 PyObject
* _argo1
= 0;
9944 char *_kwnames
[] = { "self","window", NULL
};
9947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
9950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9957 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9958 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
9959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9964 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9965 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
9967 wxPyEndAllowThreads(__tstate
);
9968 if (PyErr_Occurred()) return NULL
;
9969 } _resultobj
= Py_BuildValue("i",_result
);
9973 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9974 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9975 PyObject
* _resultobj
;
9978 wxRect
* _arg1
= (wxRect
*) NULL
;
9979 PyObject
* _argo0
= 0;
9981 PyObject
* _obj1
= 0;
9982 char *_kwnames
[] = { "self","rect", NULL
};
9985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
9988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9997 if (! wxRect_helper(_obj1
, &_arg1
))
10001 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10002 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
10004 wxPyEndAllowThreads(__tstate
);
10005 if (PyErr_Occurred()) return NULL
;
10006 } _resultobj
= Py_BuildValue("i",_result
);
10010 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
10011 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10012 PyObject
* _resultobj
;
10014 wxScreenDC
* _arg0
;
10015 PyObject
* _argo0
= 0;
10016 char *_kwnames
[] = { "self", NULL
};
10019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
10022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
10024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
10029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10030 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
10032 wxPyEndAllowThreads(__tstate
);
10033 if (PyErr_Occurred()) return NULL
;
10034 } _resultobj
= Py_BuildValue("i",_result
);
10038 static void *SwigwxClientDCTowxDC(void *ptr
) {
10041 src
= (wxClientDC
*) ptr
;
10042 dest
= (wxDC
*) src
;
10043 return (void *) dest
;
10046 static void *SwigwxClientDCTowxObject(void *ptr
) {
10049 src
= (wxClientDC
*) ptr
;
10050 dest
= (wxObject
*) src
;
10051 return (void *) dest
;
10054 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
10055 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10056 PyObject
* _resultobj
;
10057 wxClientDC
* _result
;
10059 PyObject
* _argo0
= 0;
10060 char *_kwnames
[] = { "win", NULL
};
10064 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
10067 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10068 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
10074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10075 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
10077 wxPyEndAllowThreads(__tstate
);
10078 if (PyErr_Occurred()) return NULL
;
10080 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
10081 _resultobj
= Py_BuildValue("s",_ptemp
);
10083 Py_INCREF(Py_None
);
10084 _resultobj
= Py_None
;
10089 static void *SwigwxPaintDCTowxDC(void *ptr
) {
10092 src
= (wxPaintDC
*) ptr
;
10093 dest
= (wxDC
*) src
;
10094 return (void *) dest
;
10097 static void *SwigwxPaintDCTowxObject(void *ptr
) {
10100 src
= (wxPaintDC
*) ptr
;
10101 dest
= (wxObject
*) src
;
10102 return (void *) dest
;
10105 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
10106 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10107 PyObject
* _resultobj
;
10108 wxPaintDC
* _result
;
10110 PyObject
* _argo0
= 0;
10111 char *_kwnames
[] = { "win", NULL
};
10115 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
10118 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10119 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10120 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
10125 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10126 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
10128 wxPyEndAllowThreads(__tstate
);
10129 if (PyErr_Occurred()) return NULL
;
10131 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
10132 _resultobj
= Py_BuildValue("s",_ptemp
);
10134 Py_INCREF(Py_None
);
10135 _resultobj
= Py_None
;
10140 static void *SwigwxWindowDCTowxDC(void *ptr
) {
10143 src
= (wxWindowDC
*) ptr
;
10144 dest
= (wxDC
*) src
;
10145 return (void *) dest
;
10148 static void *SwigwxWindowDCTowxObject(void *ptr
) {
10151 src
= (wxWindowDC
*) ptr
;
10152 dest
= (wxObject
*) src
;
10153 return (void *) dest
;
10156 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
10157 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10158 PyObject
* _resultobj
;
10159 wxWindowDC
* _result
;
10161 PyObject
* _argo0
= 0;
10162 char *_kwnames
[] = { "win", NULL
};
10166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
10169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10176 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10177 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
10179 wxPyEndAllowThreads(__tstate
);
10180 if (PyErr_Occurred()) return NULL
;
10182 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
10183 _resultobj
= Py_BuildValue("s",_ptemp
);
10185 Py_INCREF(Py_None
);
10186 _resultobj
= Py_None
;
10191 static void *SwigwxMetaFileTowxObject(void *ptr
) {
10194 src
= (wxMetaFile
*) ptr
;
10195 dest
= (wxObject
*) src
;
10196 return (void *) dest
;
10199 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
10200 static PyObject
*_wrap_new_wxMetaFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10201 PyObject
* _resultobj
;
10202 wxMetaFile
* _result
;
10203 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
10204 PyObject
* _obj0
= 0;
10205 char *_kwnames
[] = { "filename", NULL
};
10209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFile",_kwnames
,&_obj0
))
10213 #if PYTHON_API_VERSION >= 1009
10214 char* tmpPtr
; int tmpSize
;
10215 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
10216 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10219 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
10221 _arg0
= new wxString(tmpPtr
, tmpSize
);
10223 if (!PyString_Check(_obj0
)) {
10224 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10227 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
10231 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10232 _result
= (wxMetaFile
*)new_wxMetaFile(*_arg0
);
10234 wxPyEndAllowThreads(__tstate
);
10235 if (PyErr_Occurred()) return NULL
;
10237 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
10238 _resultobj
= Py_BuildValue("s",_ptemp
);
10240 Py_INCREF(Py_None
);
10241 _resultobj
= Py_None
;
10250 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
10251 static PyObject
*_wrap_delete_wxMetaFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10252 PyObject
* _resultobj
;
10253 wxMetaFile
* _arg0
;
10254 PyObject
* _argo0
= 0;
10255 char *_kwnames
[] = { "self", NULL
};
10258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxMetaFile",_kwnames
,&_argo0
))
10261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
10268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10269 delete_wxMetaFile(_arg0
);
10271 wxPyEndAllowThreads(__tstate
);
10272 if (PyErr_Occurred()) return NULL
;
10273 } Py_INCREF(Py_None
);
10274 _resultobj
= Py_None
;
10278 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
10279 static PyObject
*_wrap_wxMetaFile_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10280 PyObject
* _resultobj
;
10282 wxMetaFile
* _arg0
;
10283 PyObject
* _argo0
= 0;
10284 char *_kwnames
[] = { "self", NULL
};
10287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_Ok",_kwnames
,&_argo0
))
10290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
10297 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10298 _result
= (bool )wxMetaFile_Ok(_arg0
);
10300 wxPyEndAllowThreads(__tstate
);
10301 if (PyErr_Occurred()) return NULL
;
10302 } _resultobj
= Py_BuildValue("i",_result
);
10306 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
10307 static PyObject
*_wrap_wxMetaFile_SetClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10308 PyObject
* _resultobj
;
10310 wxMetaFile
* _arg0
;
10311 int _arg1
= (int ) 0;
10312 int _arg2
= (int ) 0;
10313 PyObject
* _argo0
= 0;
10314 char *_kwnames
[] = { "self","width","height", NULL
};
10317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:wxMetaFile_SetClipboard",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
10327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10328 _result
= (bool )wxMetaFile_SetClipboard(_arg0
,_arg1
,_arg2
);
10330 wxPyEndAllowThreads(__tstate
);
10331 if (PyErr_Occurred()) return NULL
;
10332 } _resultobj
= Py_BuildValue("i",_result
);
10336 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
10337 static PyObject
*_wrap_wxMetaFile_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10338 PyObject
* _resultobj
;
10340 wxMetaFile
* _arg0
;
10341 PyObject
* _argo0
= 0;
10342 char *_kwnames
[] = { "self", NULL
};
10346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetSize",_kwnames
,&_argo0
))
10349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
10356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10357 _result
= new wxSize (wxMetaFile_GetSize(_arg0
));
10359 wxPyEndAllowThreads(__tstate
);
10360 if (PyErr_Occurred()) return NULL
;
10361 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
10362 _resultobj
= Py_BuildValue("s",_ptemp
);
10366 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
10367 static PyObject
*_wrap_wxMetaFile_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10368 PyObject
* _resultobj
;
10370 wxMetaFile
* _arg0
;
10371 PyObject
* _argo0
= 0;
10372 char *_kwnames
[] = { "self", NULL
};
10375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetWidth",_kwnames
,&_argo0
))
10378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
10385 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10386 _result
= (int )wxMetaFile_GetWidth(_arg0
);
10388 wxPyEndAllowThreads(__tstate
);
10389 if (PyErr_Occurred()) return NULL
;
10390 } _resultobj
= Py_BuildValue("i",_result
);
10394 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
10395 static PyObject
*_wrap_wxMetaFile_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10396 PyObject
* _resultobj
;
10398 wxMetaFile
* _arg0
;
10399 PyObject
* _argo0
= 0;
10400 char *_kwnames
[] = { "self", NULL
};
10403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetHeight",_kwnames
,&_argo0
))
10406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
10413 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10414 _result
= (int )wxMetaFile_GetHeight(_arg0
);
10416 wxPyEndAllowThreads(__tstate
);
10417 if (PyErr_Occurred()) return NULL
;
10418 } _resultobj
= Py_BuildValue("i",_result
);
10422 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
10423 static PyObject
*_wrap_wxMetaFile_GetFileName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10424 PyObject
* _resultobj
;
10425 wxString
* _result
;
10426 wxMetaFile
* _arg0
;
10427 PyObject
* _argo0
= 0;
10428 char *_kwnames
[] = { "self", NULL
};
10431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetFileName",_kwnames
,&_argo0
))
10434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
10441 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10442 const wxString
& _result_ref
= wxMetaFile_GetFileName(_arg0
);
10443 _result
= (wxString
*) &_result_ref
;
10445 wxPyEndAllowThreads(__tstate
);
10446 if (PyErr_Occurred()) return NULL
;
10448 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
10453 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
10456 src
= (wxMetaFileDC
*) ptr
;
10457 dest
= (wxDC
*) src
;
10458 return (void *) dest
;
10461 static void *SwigwxMetaFileDCTowxObject(void *ptr
) {
10464 src
= (wxMetaFileDC
*) ptr
;
10465 dest
= (wxObject
*) src
;
10466 return (void *) dest
;
10469 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10470 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10471 PyObject
* _resultobj
;
10472 wxMetaFileDC
* _result
;
10473 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
10474 int _arg1
= (int ) 0;
10475 int _arg2
= (int ) 0;
10476 wxString
* _arg3
= (wxString
*) &wxEmptyString
;
10477 PyObject
* _obj0
= 0;
10478 PyObject
* _obj3
= 0;
10479 char *_kwnames
[] = { "filename","width","height","description", NULL
};
10483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiiO:new_wxMetaFileDC",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_obj3
))
10487 #if PYTHON_API_VERSION >= 1009
10488 char* tmpPtr
; int tmpSize
;
10489 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
10490 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10493 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
10495 _arg0
= new wxString(tmpPtr
, tmpSize
);
10497 if (!PyString_Check(_obj0
)) {
10498 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10501 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
10506 #if PYTHON_API_VERSION >= 1009
10507 char* tmpPtr
; int tmpSize
;
10508 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
10509 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10512 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
10514 _arg3
= new wxString(tmpPtr
, tmpSize
);
10516 if (!PyString_Check(_obj3
)) {
10517 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10520 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
10524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10525 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
,_arg1
,_arg2
,*_arg3
);
10527 wxPyEndAllowThreads(__tstate
);
10528 if (PyErr_Occurred()) return NULL
;
10530 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
10531 _resultobj
= Py_BuildValue("s",_ptemp
);
10533 Py_INCREF(Py_None
);
10534 _resultobj
= Py_None
;
10547 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
10548 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10549 PyObject
* _resultobj
;
10550 wxMetaFile
* _result
;
10551 wxMetaFileDC
* _arg0
;
10552 PyObject
* _argo0
= 0;
10553 char *_kwnames
[] = { "self", NULL
};
10557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
10560 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10561 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
10562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
10567 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10568 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
10570 wxPyEndAllowThreads(__tstate
);
10571 if (PyErr_Occurred()) return NULL
;
10573 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
10574 _resultobj
= Py_BuildValue("s",_ptemp
);
10576 Py_INCREF(Py_None
);
10577 _resultobj
= Py_None
;
10582 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
10585 src
= (wxPalette
*) ptr
;
10586 dest
= (wxGDIObject
*) src
;
10587 return (void *) dest
;
10590 static void *SwigwxPaletteTowxObject(void *ptr
) {
10593 src
= (wxPalette
*) ptr
;
10594 dest
= (wxObject
*) src
;
10595 return (void *) dest
;
10598 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10599 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10600 PyObject
* _resultobj
;
10601 wxPalette
* _result
;
10606 PyObject
* _obj1
= 0;
10607 PyObject
* _obj2
= 0;
10608 PyObject
* _obj3
= 0;
10609 char *_kwnames
[] = { "choices","choices","choices", NULL
};
10613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
10616 _arg1
= byte_LIST_helper(_obj1
);
10617 if (_arg1
== NULL
) {
10622 _arg2
= byte_LIST_helper(_obj2
);
10623 if (_arg2
== NULL
) {
10629 _arg3
= byte_LIST_helper(_obj3
);
10630 if (_arg3
== NULL
) {
10636 _arg0
= PyList_Size(_obj1
);
10643 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10644 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
10646 wxPyEndAllowThreads(__tstate
);
10647 if (PyErr_Occurred()) return NULL
;
10649 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
10650 _resultobj
= Py_BuildValue("s",_ptemp
);
10652 Py_INCREF(Py_None
);
10653 _resultobj
= Py_None
;
10667 #define delete_wxPalette(_swigobj) (delete _swigobj)
10668 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10669 PyObject
* _resultobj
;
10671 PyObject
* _argo0
= 0;
10672 char *_kwnames
[] = { "self", NULL
};
10675 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
10678 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10679 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10680 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10685 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10686 delete_wxPalette(_arg0
);
10688 wxPyEndAllowThreads(__tstate
);
10689 if (PyErr_Occurred()) return NULL
;
10690 } Py_INCREF(Py_None
);
10691 _resultobj
= Py_None
;
10695 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10696 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10697 PyObject
* _resultobj
;
10703 PyObject
* _argo0
= 0;
10704 char *_kwnames
[] = { "self","red","green","blue", NULL
};
10707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
10710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10717 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10718 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
10720 wxPyEndAllowThreads(__tstate
);
10721 if (PyErr_Occurred()) return NULL
;
10722 } _resultobj
= Py_BuildValue("i",_result
);
10726 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10727 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10728 PyObject
* _resultobj
;
10738 PyObject
* _argo0
= 0;
10739 char *_kwnames
[] = { "self","pixel", NULL
};
10743 _arg2
= (byte
*)&temp
;
10746 _arg3
= (byte
*)&temp0
;
10749 _arg4
= (byte
*)&temp1
;
10751 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
))
10754 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10755 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10761 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10762 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10764 wxPyEndAllowThreads(__tstate
);
10765 if (PyErr_Occurred()) return NULL
;
10766 } _resultobj
= Py_BuildValue("i",_result
);
10769 o
= PyInt_FromLong((long) (*_arg2
));
10770 _resultobj
= t_output_helper(_resultobj
, o
);
10774 o
= PyInt_FromLong((long) (*_arg3
));
10775 _resultobj
= t_output_helper(_resultobj
, o
);
10779 o
= PyInt_FromLong((long) (*_arg4
));
10780 _resultobj
= t_output_helper(_resultobj
, o
);
10785 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10786 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10787 PyObject
* _resultobj
;
10790 PyObject
* _argo0
= 0;
10791 char *_kwnames
[] = { "self", NULL
};
10794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
10797 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10798 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10804 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10805 _result
= (bool )wxPalette_Ok(_arg0
);
10807 wxPyEndAllowThreads(__tstate
);
10808 if (PyErr_Occurred()) return NULL
;
10809 } _resultobj
= Py_BuildValue("i",_result
);
10813 static void *SwigwxImageListTowxObject(void *ptr
) {
10816 src
= (wxImageList
*) ptr
;
10817 dest
= (wxObject
*) src
;
10818 return (void *) dest
;
10821 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10822 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10823 PyObject
* _resultobj
;
10824 wxImageList
* _result
;
10827 int _arg2
= (int ) TRUE
;
10828 int _arg3
= (int ) 1;
10829 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
10833 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10836 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10837 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
10839 wxPyEndAllowThreads(__tstate
);
10840 if (PyErr_Occurred()) return NULL
;
10842 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
10843 _resultobj
= Py_BuildValue("s",_ptemp
);
10845 Py_INCREF(Py_None
);
10846 _resultobj
= Py_None
;
10851 #define delete_wxImageList(_swigobj) (delete _swigobj)
10852 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10853 PyObject
* _resultobj
;
10854 wxImageList
* _arg0
;
10855 PyObject
* _argo0
= 0;
10856 char *_kwnames
[] = { "self", NULL
};
10859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
10862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10870 delete_wxImageList(_arg0
);
10872 wxPyEndAllowThreads(__tstate
);
10873 if (PyErr_Occurred()) return NULL
;
10874 } Py_INCREF(Py_None
);
10875 _resultobj
= Py_None
;
10879 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10880 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10881 PyObject
* _resultobj
;
10883 wxImageList
* _arg0
;
10885 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10886 PyObject
* _argo0
= 0;
10887 PyObject
* _argo1
= 0;
10888 PyObject
* _argo2
= 0;
10889 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
10892 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10895 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10896 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10902 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10903 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10909 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10910 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10916 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10917 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
10919 wxPyEndAllowThreads(__tstate
);
10920 if (PyErr_Occurred()) return NULL
;
10921 } _resultobj
= Py_BuildValue("i",_result
);
10925 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10926 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10927 PyObject
* _resultobj
;
10929 wxImageList
* _arg0
;
10932 PyObject
* _argo0
= 0;
10933 PyObject
* _argo1
= 0;
10935 PyObject
* _obj2
= 0;
10936 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
10939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
10942 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10943 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10944 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10949 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10950 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10957 if (! wxColour_helper(_obj2
, &_arg2
))
10961 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10962 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
10964 wxPyEndAllowThreads(__tstate
);
10965 if (PyErr_Occurred()) return NULL
;
10966 } _resultobj
= Py_BuildValue("i",_result
);
10970 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10971 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10972 PyObject
* _resultobj
;
10974 wxImageList
* _arg0
;
10976 PyObject
* _argo0
= 0;
10977 PyObject
* _argo1
= 0;
10978 char *_kwnames
[] = { "self","icon", NULL
};
10981 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
10984 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10985 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10991 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10992 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
10993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10998 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10999 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
11001 wxPyEndAllowThreads(__tstate
);
11002 if (PyErr_Occurred()) return NULL
;
11003 } _resultobj
= Py_BuildValue("i",_result
);
11007 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
11008 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11009 PyObject
* _resultobj
;
11011 wxImageList
* _arg0
;
11014 PyObject
* _argo0
= 0;
11015 PyObject
* _argo2
= 0;
11016 char *_kwnames
[] = { "self","index","bitmap", NULL
};
11019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
11022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
11029 if (_argo2
== Py_None
) { _arg2
= NULL
; }
11030 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
11031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
11036 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11037 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
11039 wxPyEndAllowThreads(__tstate
);
11040 if (PyErr_Occurred()) return NULL
;
11041 } _resultobj
= Py_BuildValue("i",_result
);
11045 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
11046 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11047 PyObject
* _resultobj
;
11049 wxImageList
* _arg0
;
11054 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
11055 bool _arg6
= (bool ) FALSE
;
11056 PyObject
* _argo0
= 0;
11057 PyObject
* _argo2
= 0;
11058 int tempbool6
= (int) FALSE
;
11059 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
11062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
11065 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11066 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
11072 if (_argo2
== Py_None
) { _arg2
= NULL
; }
11073 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
11074 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
11078 _arg6
= (bool ) tempbool6
;
11080 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11081 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
11083 wxPyEndAllowThreads(__tstate
);
11084 if (PyErr_Occurred()) return NULL
;
11085 } _resultobj
= Py_BuildValue("i",_result
);
11089 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
11090 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11091 PyObject
* _resultobj
;
11093 wxImageList
* _arg0
;
11094 PyObject
* _argo0
= 0;
11095 char *_kwnames
[] = { "self", NULL
};
11098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
11101 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11102 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
11108 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11109 _result
= (int )wxImageList_GetImageCount(_arg0
);
11111 wxPyEndAllowThreads(__tstate
);
11112 if (PyErr_Occurred()) return NULL
;
11113 } _resultobj
= Py_BuildValue("i",_result
);
11117 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
11118 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11119 PyObject
* _resultobj
;
11121 wxImageList
* _arg0
;
11123 PyObject
* _argo0
= 0;
11124 char *_kwnames
[] = { "self","index", NULL
};
11127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
11130 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11131 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11132 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
11137 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11138 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
11140 wxPyEndAllowThreads(__tstate
);
11141 if (PyErr_Occurred()) return NULL
;
11142 } _resultobj
= Py_BuildValue("i",_result
);
11146 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
11147 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11148 PyObject
* _resultobj
;
11150 wxImageList
* _arg0
;
11151 PyObject
* _argo0
= 0;
11152 char *_kwnames
[] = { "self", NULL
};
11155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
11158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
11165 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11166 _result
= (bool )wxImageList_RemoveAll(_arg0
);
11168 wxPyEndAllowThreads(__tstate
);
11169 if (PyErr_Occurred()) return NULL
;
11170 } _resultobj
= Py_BuildValue("i",_result
);
11174 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
11175 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11176 PyObject
* _resultobj
;
11177 wxImageList
* _arg0
;
11183 PyObject
* _argo0
= 0;
11184 char *_kwnames
[] = { "self","index", NULL
};
11193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
11196 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11197 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
11203 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11204 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
11206 wxPyEndAllowThreads(__tstate
);
11207 if (PyErr_Occurred()) return NULL
;
11208 } Py_INCREF(Py_None
);
11209 _resultobj
= Py_None
;
11212 o
= PyInt_FromLong((long) (*_arg2
));
11213 _resultobj
= t_output_helper(_resultobj
, o
);
11217 o
= PyInt_FromLong((long) (*_arg3
));
11218 _resultobj
= t_output_helper(_resultobj
, o
);
11223 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
11226 src
= (wxRegion
*) ptr
;
11227 dest
= (wxGDIObject
*) src
;
11228 return (void *) dest
;
11231 static void *SwigwxRegionTowxObject(void *ptr
) {
11234 src
= (wxRegion
*) ptr
;
11235 dest
= (wxObject
*) src
;
11236 return (void *) dest
;
11239 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11240 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11241 PyObject
* _resultobj
;
11242 wxRegion
* _result
;
11243 long _arg0
= (long ) 0;
11244 long _arg1
= (long ) 0;
11245 long _arg2
= (long ) 0;
11246 long _arg3
= (long ) 0;
11247 char *_kwnames
[] = { "x","y","width","height", NULL
};
11251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
11254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11255 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
11257 wxPyEndAllowThreads(__tstate
);
11258 if (PyErr_Occurred()) return NULL
;
11260 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
11261 _resultobj
= Py_BuildValue("s",_ptemp
);
11263 Py_INCREF(Py_None
);
11264 _resultobj
= Py_None
;
11269 #define delete_wxRegion(_swigobj) (delete _swigobj)
11270 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11271 PyObject
* _resultobj
;
11273 PyObject
* _argo0
= 0;
11274 char *_kwnames
[] = { "self", NULL
};
11277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
11280 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11281 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
11287 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11288 delete_wxRegion(_arg0
);
11290 wxPyEndAllowThreads(__tstate
);
11291 if (PyErr_Occurred()) return NULL
;
11292 } Py_INCREF(Py_None
);
11293 _resultobj
= Py_None
;
11297 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
11298 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11299 PyObject
* _resultobj
;
11301 PyObject
* _argo0
= 0;
11302 char *_kwnames
[] = { "self", NULL
};
11305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
11308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
11315 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11316 wxRegion_Clear(_arg0
);
11318 wxPyEndAllowThreads(__tstate
);
11319 if (PyErr_Occurred()) return NULL
;
11320 } Py_INCREF(Py_None
);
11321 _resultobj
= Py_None
;
11325 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
11326 static PyObject
*_wrap_wxRegion_Offset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11327 PyObject
* _resultobj
;
11332 PyObject
* _argo0
= 0;
11333 char *_kwnames
[] = { "self","x","y", NULL
};
11336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxRegion_Offset",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
11339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
11346 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11347 _result
= (bool )wxRegion_Offset(_arg0
,_arg1
,_arg2
);
11349 wxPyEndAllowThreads(__tstate
);
11350 if (PyErr_Occurred()) return NULL
;
11351 } _resultobj
= Py_BuildValue("i",_result
);
11355 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
11356 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11357 PyObject
* _resultobj
;
11358 wxRegionContain _result
;
11362 PyObject
* _argo0
= 0;
11363 char *_kwnames
[] = { "self","x","y", NULL
};
11366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
11369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
11376 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11377 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
11379 wxPyEndAllowThreads(__tstate
);
11380 if (PyErr_Occurred()) return NULL
;
11381 } _resultobj
= Py_BuildValue("i",_result
);
11385 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11386 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11387 PyObject
* _resultobj
;
11388 wxRegionContain _result
;
11391 PyObject
* _argo0
= 0;
11393 PyObject
* _obj1
= 0;
11394 char *_kwnames
[] = { "self","pt", NULL
};
11397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
11400 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11401 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
11408 if (! wxPoint_helper(_obj1
, &_arg1
))
11412 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11413 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
11415 wxPyEndAllowThreads(__tstate
);
11416 if (PyErr_Occurred()) return NULL
;
11417 } _resultobj
= Py_BuildValue("i",_result
);
11421 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11422 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11423 PyObject
* _resultobj
;
11424 wxRegionContain _result
;
11427 PyObject
* _argo0
= 0;
11429 PyObject
* _obj1
= 0;
11430 char *_kwnames
[] = { "self","rect", NULL
};
11433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
11436 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11437 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
11444 if (! wxRect_helper(_obj1
, &_arg1
))
11448 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11449 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
11451 wxPyEndAllowThreads(__tstate
);
11452 if (PyErr_Occurred()) return NULL
;
11453 } _resultobj
= Py_BuildValue("i",_result
);
11457 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11458 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11459 PyObject
* _resultobj
;
11460 wxRegionContain _result
;
11466 PyObject
* _argo0
= 0;
11467 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
11470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11473 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11474 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
11480 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11481 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11483 wxPyEndAllowThreads(__tstate
);
11484 if (PyErr_Occurred()) return NULL
;
11485 } _resultobj
= Py_BuildValue("i",_result
);
11489 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
11490 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11491 PyObject
* _resultobj
;
11494 PyObject
* _argo0
= 0;
11495 char *_kwnames
[] = { "self", NULL
};
11499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
11502 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11503 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
11509 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11510 _result
= new wxRect (wxRegion_GetBox(_arg0
));
11512 wxPyEndAllowThreads(__tstate
);
11513 if (PyErr_Occurred()) return NULL
;
11514 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
11515 _resultobj
= Py_BuildValue("s",_ptemp
);
11519 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11520 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11521 PyObject
* _resultobj
;
11528 PyObject
* _argo0
= 0;
11529 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
11542 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11543 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11545 wxPyEndAllowThreads(__tstate
);
11546 if (PyErr_Occurred()) return NULL
;
11547 } _resultobj
= Py_BuildValue("i",_result
);
11551 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11552 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11553 PyObject
* _resultobj
;
11557 PyObject
* _argo0
= 0;
11559 PyObject
* _obj1
= 0;
11560 char *_kwnames
[] = { "self","rect", NULL
};
11563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
11566 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11567 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11568 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
11574 if (! wxRect_helper(_obj1
, &_arg1
))
11578 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11579 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
11581 wxPyEndAllowThreads(__tstate
);
11582 if (PyErr_Occurred()) return NULL
;
11583 } _resultobj
= Py_BuildValue("i",_result
);
11587 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11588 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11589 PyObject
* _resultobj
;
11593 PyObject
* _argo0
= 0;
11594 PyObject
* _argo1
= 0;
11595 char *_kwnames
[] = { "self","region", NULL
};
11598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
11601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11608 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11609 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11615 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11616 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
11618 wxPyEndAllowThreads(__tstate
);
11619 if (PyErr_Occurred()) return NULL
;
11620 } _resultobj
= Py_BuildValue("i",_result
);
11624 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
11625 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11626 PyObject
* _resultobj
;
11629 PyObject
* _argo0
= 0;
11630 char *_kwnames
[] = { "self", NULL
};
11633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
11636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11643 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11644 _result
= (bool )wxRegion_IsEmpty(_arg0
);
11646 wxPyEndAllowThreads(__tstate
);
11647 if (PyErr_Occurred()) return NULL
;
11648 } _resultobj
= Py_BuildValue("i",_result
);
11652 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11653 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11654 PyObject
* _resultobj
;
11661 PyObject
* _argo0
= 0;
11662 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11668 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11669 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11670 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11675 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11676 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11678 wxPyEndAllowThreads(__tstate
);
11679 if (PyErr_Occurred()) return NULL
;
11680 } _resultobj
= Py_BuildValue("i",_result
);
11684 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11685 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11686 PyObject
* _resultobj
;
11690 PyObject
* _argo0
= 0;
11692 PyObject
* _obj1
= 0;
11693 char *_kwnames
[] = { "self","rect", NULL
};
11696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
11699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11707 if (! wxRect_helper(_obj1
, &_arg1
))
11711 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11712 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
11714 wxPyEndAllowThreads(__tstate
);
11715 if (PyErr_Occurred()) return NULL
;
11716 } _resultobj
= Py_BuildValue("i",_result
);
11720 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11721 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11722 PyObject
* _resultobj
;
11726 PyObject
* _argo0
= 0;
11727 PyObject
* _argo1
= 0;
11728 char *_kwnames
[] = { "self","region", NULL
};
11731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
11734 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11735 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11736 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11741 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11742 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11749 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
11751 wxPyEndAllowThreads(__tstate
);
11752 if (PyErr_Occurred()) return NULL
;
11753 } _resultobj
= Py_BuildValue("i",_result
);
11757 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11758 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11759 PyObject
* _resultobj
;
11766 PyObject
* _argo0
= 0;
11767 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11773 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11774 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11775 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11780 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11781 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11783 wxPyEndAllowThreads(__tstate
);
11784 if (PyErr_Occurred()) return NULL
;
11785 } _resultobj
= Py_BuildValue("i",_result
);
11789 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11790 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11791 PyObject
* _resultobj
;
11795 PyObject
* _argo0
= 0;
11797 PyObject
* _obj1
= 0;
11798 char *_kwnames
[] = { "self","rect", NULL
};
11801 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
11804 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11805 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11806 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11812 if (! wxRect_helper(_obj1
, &_arg1
))
11816 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11817 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
11819 wxPyEndAllowThreads(__tstate
);
11820 if (PyErr_Occurred()) return NULL
;
11821 } _resultobj
= Py_BuildValue("i",_result
);
11825 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11826 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11827 PyObject
* _resultobj
;
11831 PyObject
* _argo0
= 0;
11832 PyObject
* _argo1
= 0;
11833 char *_kwnames
[] = { "self","region", NULL
};
11836 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
11839 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11840 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11841 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11846 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11847 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11853 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11854 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
11856 wxPyEndAllowThreads(__tstate
);
11857 if (PyErr_Occurred()) return NULL
;
11858 } _resultobj
= Py_BuildValue("i",_result
);
11862 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11863 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11864 PyObject
* _resultobj
;
11871 PyObject
* _argo0
= 0;
11872 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11878 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11879 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11880 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11885 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11886 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11888 wxPyEndAllowThreads(__tstate
);
11889 if (PyErr_Occurred()) return NULL
;
11890 } _resultobj
= Py_BuildValue("i",_result
);
11894 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11895 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11896 PyObject
* _resultobj
;
11900 PyObject
* _argo0
= 0;
11902 PyObject
* _obj1
= 0;
11903 char *_kwnames
[] = { "self","rect", NULL
};
11906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
11909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11917 if (! wxRect_helper(_obj1
, &_arg1
))
11921 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11922 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
11924 wxPyEndAllowThreads(__tstate
);
11925 if (PyErr_Occurred()) return NULL
;
11926 } _resultobj
= Py_BuildValue("i",_result
);
11930 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11931 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11932 PyObject
* _resultobj
;
11936 PyObject
* _argo0
= 0;
11937 PyObject
* _argo1
= 0;
11938 char *_kwnames
[] = { "self","region", NULL
};
11941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
11944 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11945 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11951 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11952 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11959 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
11961 wxPyEndAllowThreads(__tstate
);
11962 if (PyErr_Occurred()) return NULL
;
11963 } _resultobj
= Py_BuildValue("i",_result
);
11967 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
11968 wxRegionIterator
*src
;
11970 src
= (wxRegionIterator
*) ptr
;
11971 dest
= (wxObject
*) src
;
11972 return (void *) dest
;
11975 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11976 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11977 PyObject
* _resultobj
;
11978 wxRegionIterator
* _result
;
11980 PyObject
* _argo0
= 0;
11981 char *_kwnames
[] = { "region", NULL
};
11985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
11988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11995 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11996 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
11998 wxPyEndAllowThreads(__tstate
);
11999 if (PyErr_Occurred()) return NULL
;
12001 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
12002 _resultobj
= Py_BuildValue("s",_ptemp
);
12004 Py_INCREF(Py_None
);
12005 _resultobj
= Py_None
;
12010 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
12011 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12012 PyObject
* _resultobj
;
12013 wxRegionIterator
* _arg0
;
12014 PyObject
* _argo0
= 0;
12015 char *_kwnames
[] = { "self", NULL
};
12018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
12021 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12022 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
12028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12029 delete_wxRegionIterator(_arg0
);
12031 wxPyEndAllowThreads(__tstate
);
12032 if (PyErr_Occurred()) return NULL
;
12033 } Py_INCREF(Py_None
);
12034 _resultobj
= Py_None
;
12038 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
12039 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12040 PyObject
* _resultobj
;
12042 wxRegionIterator
* _arg0
;
12043 PyObject
* _argo0
= 0;
12044 char *_kwnames
[] = { "self", NULL
};
12047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
12050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
12057 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12058 _result
= (long )wxRegionIterator_GetX(_arg0
);
12060 wxPyEndAllowThreads(__tstate
);
12061 if (PyErr_Occurred()) return NULL
;
12062 } _resultobj
= Py_BuildValue("l",_result
);
12066 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
12067 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12068 PyObject
* _resultobj
;
12070 wxRegionIterator
* _arg0
;
12071 PyObject
* _argo0
= 0;
12072 char *_kwnames
[] = { "self", NULL
};
12075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
12078 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12079 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
12085 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12086 _result
= (long )wxRegionIterator_GetY(_arg0
);
12088 wxPyEndAllowThreads(__tstate
);
12089 if (PyErr_Occurred()) return NULL
;
12090 } _resultobj
= Py_BuildValue("l",_result
);
12094 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
12095 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12096 PyObject
* _resultobj
;
12098 wxRegionIterator
* _arg0
;
12099 PyObject
* _argo0
= 0;
12100 char *_kwnames
[] = { "self", NULL
};
12103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
12106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
12113 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12114 _result
= (long )wxRegionIterator_GetW(_arg0
);
12116 wxPyEndAllowThreads(__tstate
);
12117 if (PyErr_Occurred()) return NULL
;
12118 } _resultobj
= Py_BuildValue("l",_result
);
12122 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
12123 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12124 PyObject
* _resultobj
;
12126 wxRegionIterator
* _arg0
;
12127 PyObject
* _argo0
= 0;
12128 char *_kwnames
[] = { "self", NULL
};
12131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
12134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
12141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12142 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
12144 wxPyEndAllowThreads(__tstate
);
12145 if (PyErr_Occurred()) return NULL
;
12146 } _resultobj
= Py_BuildValue("l",_result
);
12150 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
12151 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12152 PyObject
* _resultobj
;
12154 wxRegionIterator
* _arg0
;
12155 PyObject
* _argo0
= 0;
12156 char *_kwnames
[] = { "self", NULL
};
12159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
12162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
12169 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12170 _result
= (long )wxRegionIterator_GetH(_arg0
);
12172 wxPyEndAllowThreads(__tstate
);
12173 if (PyErr_Occurred()) return NULL
;
12174 } _resultobj
= Py_BuildValue("l",_result
);
12178 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
12179 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12180 PyObject
* _resultobj
;
12182 wxRegionIterator
* _arg0
;
12183 PyObject
* _argo0
= 0;
12184 char *_kwnames
[] = { "self", NULL
};
12187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
12190 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12191 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12192 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
12197 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12198 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
12200 wxPyEndAllowThreads(__tstate
);
12201 if (PyErr_Occurred()) return NULL
;
12202 } _resultobj
= Py_BuildValue("l",_result
);
12206 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
12207 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12208 PyObject
* _resultobj
;
12210 wxRegionIterator
* _arg0
;
12211 PyObject
* _argo0
= 0;
12212 char *_kwnames
[] = { "self", NULL
};
12216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
12219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
12226 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12227 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
12229 wxPyEndAllowThreads(__tstate
);
12230 if (PyErr_Occurred()) return NULL
;
12231 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
12232 _resultobj
= Py_BuildValue("s",_ptemp
);
12236 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
12237 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12238 PyObject
* _resultobj
;
12240 wxRegionIterator
* _arg0
;
12241 PyObject
* _argo0
= 0;
12242 char *_kwnames
[] = { "self", NULL
};
12245 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
12248 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12249 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12250 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
12255 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12256 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
12258 wxPyEndAllowThreads(__tstate
);
12259 if (PyErr_Occurred()) return NULL
;
12260 } _resultobj
= Py_BuildValue("i",_result
);
12264 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
12265 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12266 PyObject
* _resultobj
;
12267 wxRegionIterator
* _arg0
;
12268 PyObject
* _argo0
= 0;
12269 char *_kwnames
[] = { "self", NULL
};
12272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
12275 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12276 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
12282 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12283 wxRegionIterator_Reset(_arg0
);
12285 wxPyEndAllowThreads(__tstate
);
12286 if (PyErr_Occurred()) return NULL
;
12287 } Py_INCREF(Py_None
);
12288 _resultobj
= Py_None
;
12292 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
12295 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12296 PyObject
* _resultobj
;
12297 wxRegionIterator
* _arg0
;
12298 PyObject
* _argo0
= 0;
12299 char *_kwnames
[] = { "self", NULL
};
12302 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
12305 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12306 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12307 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
12312 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12313 wxRegionIterator_Next(_arg0
);
12315 wxPyEndAllowThreads(__tstate
);
12316 if (PyErr_Occurred()) return NULL
;
12317 } Py_INCREF(Py_None
);
12318 _resultobj
= Py_None
;
12322 static PyMethodDef gdicMethods
[] = {
12323 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
12324 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
12325 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
12326 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
12327 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12328 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
12329 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12330 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
12331 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
12332 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
12333 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
12334 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
12335 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
12336 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
12337 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
12338 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
12339 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
12340 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
12341 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
12342 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
12343 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
12344 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
12345 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
12346 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
12347 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
12348 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
12349 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
12350 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
12351 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
12352 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
12353 { "wxRegion_Offset", (PyCFunction
) _wrap_wxRegion_Offset
, METH_VARARGS
| METH_KEYWORDS
},
12354 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
12355 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
12356 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
12357 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
12358 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
12359 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
12360 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
12361 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
12362 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
12363 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
12364 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
12365 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
12366 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
12367 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
12368 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12369 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
12370 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
12371 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
12372 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
12373 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
12374 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
12375 { "wxMetaFile_GetFileName", (PyCFunction
) _wrap_wxMetaFile_GetFileName
, METH_VARARGS
| METH_KEYWORDS
},
12376 { "wxMetaFile_GetHeight", (PyCFunction
) _wrap_wxMetaFile_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12377 { "wxMetaFile_GetWidth", (PyCFunction
) _wrap_wxMetaFile_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12378 { "wxMetaFile_GetSize", (PyCFunction
) _wrap_wxMetaFile_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
12379 { "wxMetaFile_SetClipboard", (PyCFunction
) _wrap_wxMetaFile_SetClipboard
, METH_VARARGS
| METH_KEYWORDS
},
12380 { "wxMetaFile_Ok", (PyCFunction
) _wrap_wxMetaFile_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12381 { "delete_wxMetaFile", (PyCFunction
) _wrap_delete_wxMetaFile
, METH_VARARGS
| METH_KEYWORDS
},
12382 { "new_wxMetaFile", (PyCFunction
) _wrap_new_wxMetaFile
, METH_VARARGS
| METH_KEYWORDS
},
12383 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
12384 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
12385 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
12386 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
12387 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
12388 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
12389 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
12390 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
12391 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
12392 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
12393 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
12394 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
12395 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
12396 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
12397 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
12398 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12399 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12400 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12401 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
12402 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12403 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
12404 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12405 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12406 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
12407 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
12408 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
12409 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
12410 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
12411 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
12412 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
12413 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
12414 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
12415 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
12416 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
12417 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
12418 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
12419 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
12420 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
12421 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
12422 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
12423 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12424 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12425 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
12426 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
12427 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
12428 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
12429 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
12430 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
12431 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
12432 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
12433 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
12434 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
12435 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
12436 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
12437 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
12438 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
12439 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
12440 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
12441 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
12442 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
12443 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
12444 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
12445 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
12446 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
12447 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
12448 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
12449 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
12450 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
12451 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
12452 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
12453 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
12454 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
12455 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
12456 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
12457 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
12458 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
12459 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
12460 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
12461 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
12462 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
12463 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
12464 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
12465 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
12466 { "wxDC_DrawImageLabel", (PyCFunction
) _wrap_wxDC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
},
12467 { "wxDC_DrawLabel", (PyCFunction
) _wrap_wxDC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
},
12468 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
12469 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
12470 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
12471 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
12472 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
12473 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
12474 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
12475 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
12476 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
12477 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
12478 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
12479 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
12480 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
12481 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
12482 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
12483 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
12484 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
12485 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
12486 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
12487 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12488 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12489 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
12490 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12491 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12492 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12493 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
12494 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
12495 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
12496 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
12497 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
12498 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
12499 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
12500 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
12501 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
12502 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
12503 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
12504 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12505 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12506 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
12507 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
12508 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
12509 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12510 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12511 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12512 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
12513 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
12514 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
12515 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
12516 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
12517 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
12518 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
12519 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
12520 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
12521 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
12522 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12523 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
12524 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
12525 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
12526 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
12527 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
12528 { "wxFontList_GetCount", (PyCFunction
) _wrap_wxFontList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
12529 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
12530 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
12531 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
12532 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12533 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12534 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
12535 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
12536 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
12537 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_SetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
12538 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
12539 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12540 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
12541 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
12542 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
12543 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12544 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
12545 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
12546 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
12547 { "wxFont_GetNativeFontInfoDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoDesc
, METH_VARARGS
| METH_KEYWORDS
},
12548 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
12549 { "wxFont_IsFixedWidth", (PyCFunction
) _wrap_wxFont_IsFixedWidth
, METH_VARARGS
| METH_KEYWORDS
},
12550 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12551 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
12552 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
12553 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
12554 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12555 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
12556 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
12557 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12558 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
12559 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
12560 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
12561 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
12562 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
12563 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
12564 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
12565 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
12566 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
12567 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
12568 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12569 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
12570 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12571 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
12572 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
12573 { "wxNativeFontInfo_ToUserString", (PyCFunction
) _wrap_wxNativeFontInfo_ToUserString
, METH_VARARGS
| METH_KEYWORDS
},
12574 { "wxNativeFontInfo_FromUserString", (PyCFunction
) _wrap_wxNativeFontInfo_FromUserString
, METH_VARARGS
| METH_KEYWORDS
},
12575 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
12576 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
12577 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
12578 { "wxNativeFontInfo_SetEncoding", (PyCFunction
) _wrap_wxNativeFontInfo_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12579 { "wxNativeFontInfo_SetFamily", (PyCFunction
) _wrap_wxNativeFontInfo_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
12580 { "wxNativeFontInfo_SetFaceName", (PyCFunction
) _wrap_wxNativeFontInfo_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
12581 { "wxNativeFontInfo_SetUnderlined", (PyCFunction
) _wrap_wxNativeFontInfo_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
12582 { "wxNativeFontInfo_SetWeight", (PyCFunction
) _wrap_wxNativeFontInfo_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
12583 { "wxNativeFontInfo_SetStyle", (PyCFunction
) _wrap_wxNativeFontInfo_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12584 { "wxNativeFontInfo_SetPointSize", (PyCFunction
) _wrap_wxNativeFontInfo_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
12585 { "wxNativeFontInfo_GetEncoding", (PyCFunction
) _wrap_wxNativeFontInfo_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12586 { "wxNativeFontInfo_GetFamily", (PyCFunction
) _wrap_wxNativeFontInfo_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
12587 { "wxNativeFontInfo_GetFaceName", (PyCFunction
) _wrap_wxNativeFontInfo_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
12588 { "wxNativeFontInfo_GetUnderlined", (PyCFunction
) _wrap_wxNativeFontInfo_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
12589 { "wxNativeFontInfo_GetWeight", (PyCFunction
) _wrap_wxNativeFontInfo_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
12590 { "wxNativeFontInfo_GetStyle", (PyCFunction
) _wrap_wxNativeFontInfo_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12591 { "wxNativeFontInfo_GetPointSize", (PyCFunction
) _wrap_wxNativeFontInfo_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
12592 { "wxNativeFontInfo_Init", (PyCFunction
) _wrap_wxNativeFontInfo_Init
, METH_VARARGS
| METH_KEYWORDS
},
12593 { "new_wxNativeFontInfo", (PyCFunction
) _wrap_new_wxNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
12594 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12595 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
12596 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12597 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12598 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12599 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12600 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12601 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12602 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12603 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12604 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
12605 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
12606 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
12607 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
12608 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
12609 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12610 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12611 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12612 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12613 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12614 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12615 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12616 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12617 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
12618 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
12619 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
12620 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
12621 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
12622 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12623 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12624 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
12625 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
12626 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
12627 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
12628 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
12629 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
12630 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
12631 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
12632 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
12633 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
12634 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
12635 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
12636 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
12637 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
12638 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12645 * This table is used by the pointer type-checker
12647 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
12648 { "_signed_long","_long",0},
12649 { "_wxPrintQuality","_wxCoord",0},
12650 { "_wxPrintQuality","_int",0},
12651 { "_wxPrintQuality","_signed_int",0},
12652 { "_wxPrintQuality","_unsigned_int",0},
12653 { "_wxPrintQuality","_wxWindowID",0},
12654 { "_wxPrintQuality","_uint",0},
12655 { "_wxPrintQuality","_EBool",0},
12656 { "_wxPrintQuality","_size_t",0},
12657 { "_wxPrintQuality","_time_t",0},
12658 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
12659 { "_byte","_unsigned_char",0},
12660 { "_long","_unsigned_long",0},
12661 { "_long","_signed_long",0},
12662 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
12663 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
12664 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
12665 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
12666 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
12667 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
12668 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
12669 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
12670 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
12671 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
12672 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
12673 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
12674 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
12675 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
12676 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
12677 { "_size_t","_wxCoord",0},
12678 { "_size_t","_wxPrintQuality",0},
12679 { "_size_t","_time_t",0},
12680 { "_size_t","_unsigned_int",0},
12681 { "_size_t","_int",0},
12682 { "_size_t","_wxWindowID",0},
12683 { "_size_t","_uint",0},
12684 { "_uint","_wxCoord",0},
12685 { "_uint","_wxPrintQuality",0},
12686 { "_uint","_time_t",0},
12687 { "_uint","_size_t",0},
12688 { "_uint","_unsigned_int",0},
12689 { "_uint","_int",0},
12690 { "_uint","_wxWindowID",0},
12691 { "_wxChar","_char",0},
12692 { "_char","_wxChar",0},
12693 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12694 { "_EBool","_wxCoord",0},
12695 { "_EBool","_wxPrintQuality",0},
12696 { "_EBool","_signed_int",0},
12697 { "_EBool","_int",0},
12698 { "_EBool","_wxWindowID",0},
12699 { "_unsigned_long","_long",0},
12700 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12701 { "_signed_int","_wxCoord",0},
12702 { "_signed_int","_wxPrintQuality",0},
12703 { "_signed_int","_EBool",0},
12704 { "_signed_int","_wxWindowID",0},
12705 { "_signed_int","_int",0},
12706 { "_WXTYPE","_short",0},
12707 { "_WXTYPE","_signed_short",0},
12708 { "_WXTYPE","_unsigned_short",0},
12709 { "_unsigned_short","_WXTYPE",0},
12710 { "_unsigned_short","_short",0},
12711 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
12712 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
12713 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
12714 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
12715 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject
},
12716 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject
},
12717 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
12718 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
12719 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
12720 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
12721 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
12722 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
12723 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
12724 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
12725 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
12726 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
12727 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
12728 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
12729 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
12730 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
12731 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
12732 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
12733 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
12734 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
12735 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
12736 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
12737 { "_signed_short","_WXTYPE",0},
12738 { "_signed_short","_short",0},
12739 { "_unsigned_char","_byte",0},
12740 { "_unsigned_int","_wxCoord",0},
12741 { "_unsigned_int","_wxPrintQuality",0},
12742 { "_unsigned_int","_time_t",0},
12743 { "_unsigned_int","_size_t",0},
12744 { "_unsigned_int","_uint",0},
12745 { "_unsigned_int","_wxWindowID",0},
12746 { "_unsigned_int","_int",0},
12747 { "_short","_WXTYPE",0},
12748 { "_short","_unsigned_short",0},
12749 { "_short","_signed_short",0},
12750 { "_wxWindowID","_wxCoord",0},
12751 { "_wxWindowID","_wxPrintQuality",0},
12752 { "_wxWindowID","_time_t",0},
12753 { "_wxWindowID","_size_t",0},
12754 { "_wxWindowID","_EBool",0},
12755 { "_wxWindowID","_uint",0},
12756 { "_wxWindowID","_int",0},
12757 { "_wxWindowID","_signed_int",0},
12758 { "_wxWindowID","_unsigned_int",0},
12759 { "_int","_wxCoord",0},
12760 { "_int","_wxPrintQuality",0},
12761 { "_int","_time_t",0},
12762 { "_int","_size_t",0},
12763 { "_int","_EBool",0},
12764 { "_int","_uint",0},
12765 { "_int","_wxWindowID",0},
12766 { "_int","_unsigned_int",0},
12767 { "_int","_signed_int",0},
12768 { "_time_t","_wxCoord",0},
12769 { "_time_t","_wxPrintQuality",0},
12770 { "_time_t","_unsigned_int",0},
12771 { "_time_t","_int",0},
12772 { "_time_t","_wxWindowID",0},
12773 { "_time_t","_uint",0},
12774 { "_time_t","_size_t",0},
12775 { "_wxCoord","_int",0},
12776 { "_wxCoord","_signed_int",0},
12777 { "_wxCoord","_unsigned_int",0},
12778 { "_wxCoord","_wxWindowID",0},
12779 { "_wxCoord","_uint",0},
12780 { "_wxCoord","_EBool",0},
12781 { "_wxCoord","_size_t",0},
12782 { "_wxCoord","_time_t",0},
12783 { "_wxCoord","_wxPrintQuality",0},
12786 static PyObject
*SWIG_globals
;
12790 SWIGEXPORT(void) initgdic() {
12792 SWIG_globals
= SWIG_newvarlink();
12793 m
= Py_InitModule("gdic", gdicMethods
);
12794 d
= PyModule_GetDict(m
);
12795 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
12796 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
12797 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
12798 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
12799 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
12800 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
12801 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
12802 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
12803 PyDict_SetItemString(d
,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN
));
12804 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
12805 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
12806 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
12807 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
12808 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
12809 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
12810 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
12811 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
12812 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
12813 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
12814 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
12815 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
12816 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
12817 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
12818 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
12819 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
12820 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
12821 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
12822 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
12823 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
12824 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
12825 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
12826 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
12827 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
12828 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
12829 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
12830 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
12831 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
12832 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
12833 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
12834 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
12835 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
12836 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
12837 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
12838 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
12839 PyDict_SetItemString(d
,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932
));
12840 PyDict_SetItemString(d
,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936
));
12841 PyDict_SetItemString(d
,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949
));
12842 PyDict_SetItemString(d
,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950
));
12843 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
12844 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
12845 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
12846 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
12847 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
12848 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
12849 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
12850 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
12851 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
12852 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
12853 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
12854 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
12855 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
12856 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
12857 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
12858 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
12859 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
12860 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
12861 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
12862 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
12863 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
12864 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
12865 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
12866 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
12867 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
12868 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
12869 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
12870 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
12871 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
12872 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
12873 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
12874 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
12875 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
12876 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
12877 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
12878 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
12879 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
12880 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
12881 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
12882 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
12883 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
12884 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
12885 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
12886 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
12887 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
12888 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
12889 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
12890 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
12891 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
12892 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
12893 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
12894 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
12895 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
12896 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
12897 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
12898 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
12899 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
12900 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
12901 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
12902 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
12903 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
12904 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
12905 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
12906 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
12907 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
12908 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
12909 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
12910 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
12911 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
12912 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
12915 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
12916 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);