2 * FILE : src/gtk/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/metafile.h>
60 #include <wx/imaglist.h>
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 is required for parameter";
98 static wxString
wxPyEmptyStr("");
99 // Implementations of some alternate "constructors"
101 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
102 return new wxBitmap(width
, height
, depth
);
105 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
106 char** cArray
= NULL
;
109 if (!PyList_Check(listOfStrings
)) {
110 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
113 count
= PyList_Size(listOfStrings
);
114 cArray
= new char*[count
];
116 for(int x
=0; x
<count
; x
++) {
117 // TODO: Need some validation and error checking here
118 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
124 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
125 char** cArray
= NULL
;
128 cArray
= ConvertListOfStrings(listOfStrings
);
131 bmp
= new wxBitmap(cArray
);
137 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
138 return new wxBitmap(icon
);
142 wxBitmap
* wxBitmapFromBits(char* bits
, int width
, int height
, int depth
= 1 ) {
143 return new wxBitmap(bits
, width
, height
, depth
);
148 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
149 // int width, int height, int depth = 1) {
150 // if (! PyString_Check(data)) {
151 // PyErr_SetString(PyExc_TypeError, "Expected string object");
154 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
158 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
159 return new wxMask(bitmap
, colour
);
161 // Implementations of some alternate "constructors"
162 wxIcon
* wxEmptyIcon() {
166 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
167 char** cArray
= NULL
;
170 cArray
= ConvertListOfStrings(listOfStrings
);
173 icon
= new wxIcon(cArray
);
177 // Alternate 'constructor'
178 wxCursor
* wxPyStockCursor(int id
) {
179 return new wxCursor(id
);
182 wxFontEncoding
wxFont_GetDefaultEncoding() {
183 return wxFont::GetDefaultEncoding();
186 void wxFont_SetDefaultEncoding(wxFontEncoding encoding
) {
187 wxFont::SetDefaultEncoding(encoding
);
189 // Alternate 'constructor'
190 wxColour
* wxNamedColour(const wxString
& colorName
) {
191 return new wxColour(colorName
);
193 // Alternate 'constructor'
194 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
195 return new wxMemoryDC(oldDC
);
199 extern wxFont
* wxNORMAL_FONT
;
200 extern wxFont
* wxSMALL_FONT
;
201 extern wxFont
* wxITALIC_FONT
;
202 extern wxFont
* wxSWISS_FONT
;
203 extern wxPen
* wxRED_PEN
;
204 extern wxPen
* wxCYAN_PEN
;
205 extern wxPen
* wxGREEN_PEN
;
206 extern wxPen
* wxBLACK_PEN
;
207 extern wxPen
* wxWHITE_PEN
;
208 extern wxPen
* wxTRANSPARENT_PEN
;
209 extern wxPen
* wxBLACK_DASHED_PEN
;
210 extern wxPen
* wxGREY_PEN
;
211 extern wxPen
* wxMEDIUM_GREY_PEN
;
212 extern wxPen
* wxLIGHT_GREY_PEN
;
213 extern wxBrush
* wxBLUE_BRUSH
;
214 extern wxBrush
* wxGREEN_BRUSH
;
215 extern wxBrush
* wxWHITE_BRUSH
;
216 extern wxBrush
* wxBLACK_BRUSH
;
217 extern wxBrush
* wxTRANSPARENT_BRUSH
;
218 extern wxBrush
* wxCYAN_BRUSH
;
219 extern wxBrush
* wxRED_BRUSH
;
220 extern wxBrush
* wxGREY_BRUSH
;
221 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
222 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
223 extern wxColour
* wxBLACK
;
224 extern wxColour
* wxWHITE
;
225 extern wxColour
* wxRED
;
226 extern wxColour
* wxBLUE
;
227 extern wxColour
* wxGREEN
;
228 extern wxColour
* wxCYAN
;
229 extern wxColour
* wxLIGHT_GREY
;
230 extern wxCursor
* wxSTANDARD_CURSOR
;
231 extern wxCursor
* wxHOURGLASS_CURSOR
;
232 extern wxCursor
* wxCROSS_CURSOR
;
233 extern wxBitmap wxNullBitmap
;
234 extern wxIcon wxNullIcon
;
235 extern wxCursor wxNullCursor
;
236 extern wxPen wxNullPen
;
237 extern wxBrush wxNullBrush
;
238 extern wxPalette wxNullPalette
;
239 extern wxFont wxNullFont
;
240 extern wxColour wxNullColour
;
241 extern wxFontList
* wxTheFontList
;
242 extern wxPenList
* wxThePenList
;
243 extern wxBrushlist
* wxTheBrushList
;
244 extern wxColourDatabase
* wxTheColourDatabase
;
250 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
251 PyObject
* _resultobj
;
255 int _arg2
= (int ) -1;
256 char *_kwnames
[] = { "width","height","depth", NULL
};
260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
263 wxPy_BEGIN_ALLOW_THREADS
;
264 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
266 wxPy_END_ALLOW_THREADS
;
267 if (PyErr_Occurred()) return NULL
;
269 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
270 _resultobj
= Py_BuildValue("s",_ptemp
);
273 _resultobj
= Py_None
;
278 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
279 PyObject
* _resultobj
;
282 PyObject
* _obj0
= 0;
283 char *_kwnames
[] = { "listOfStrings", NULL
};
287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
293 wxPy_BEGIN_ALLOW_THREADS
;
294 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
296 wxPy_END_ALLOW_THREADS
;
297 if (PyErr_Occurred()) return NULL
;
299 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
300 _resultobj
= Py_BuildValue("s",_ptemp
);
303 _resultobj
= Py_None
;
308 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
309 PyObject
* _resultobj
;
312 PyObject
* _argo0
= 0;
313 char *_kwnames
[] = { "icon", NULL
};
317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
327 wxPy_BEGIN_ALLOW_THREADS
;
328 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
330 wxPy_END_ALLOW_THREADS
;
331 if (PyErr_Occurred()) return NULL
;
333 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
334 _resultobj
= Py_BuildValue("s",_ptemp
);
337 _resultobj
= Py_None
;
342 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
343 PyObject
* _resultobj
;
348 int _arg3
= (int ) 1;
349 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"sii|i:wxBitmapFromBits",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
356 wxPy_BEGIN_ALLOW_THREADS
;
357 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
359 wxPy_END_ALLOW_THREADS
;
360 if (PyErr_Occurred()) return NULL
;
362 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
363 _resultobj
= Py_BuildValue("s",_ptemp
);
366 _resultobj
= Py_None
;
371 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
372 PyObject
* _resultobj
;
376 PyObject
* _argo0
= 0;
378 PyObject
* _obj1
= 0;
379 char *_kwnames
[] = { "bitmap","colour", NULL
};
383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
394 if (! wxColour_helper(_obj1
, &_arg1
))
398 wxPy_BEGIN_ALLOW_THREADS
;
399 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
401 wxPy_END_ALLOW_THREADS
;
402 if (PyErr_Occurred()) return NULL
;
404 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
405 _resultobj
= Py_BuildValue("s",_ptemp
);
408 _resultobj
= Py_None
;
413 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
414 PyObject
* _resultobj
;
416 char *_kwnames
[] = { NULL
};
420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
423 wxPy_BEGIN_ALLOW_THREADS
;
424 _result
= (wxIcon
*)wxEmptyIcon();
426 wxPy_END_ALLOW_THREADS
;
427 if (PyErr_Occurred()) return NULL
;
429 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
430 _resultobj
= Py_BuildValue("s",_ptemp
);
433 _resultobj
= Py_None
;
438 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
439 PyObject
* _resultobj
;
442 PyObject
* _obj0
= 0;
443 char *_kwnames
[] = { "listOfStrings", NULL
};
447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
453 wxPy_BEGIN_ALLOW_THREADS
;
454 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
456 wxPy_END_ALLOW_THREADS
;
457 if (PyErr_Occurred()) return NULL
;
459 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
460 _resultobj
= Py_BuildValue("s",_ptemp
);
463 _resultobj
= Py_None
;
468 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
469 PyObject
* _resultobj
;
472 char *_kwnames
[] = { "id", NULL
};
476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
479 wxPy_BEGIN_ALLOW_THREADS
;
480 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
482 wxPy_END_ALLOW_THREADS
;
483 if (PyErr_Occurred()) return NULL
;
485 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
486 _resultobj
= Py_BuildValue("s",_ptemp
);
489 _resultobj
= Py_None
;
494 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
495 PyObject
* _resultobj
;
496 wxFontEncoding _result
;
497 char *_kwnames
[] = { NULL
};
500 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
503 wxPy_BEGIN_ALLOW_THREADS
;
504 _result
= (wxFontEncoding
)wxFont_GetDefaultEncoding();
506 wxPy_END_ALLOW_THREADS
;
507 if (PyErr_Occurred()) return NULL
;
508 } _resultobj
= Py_BuildValue("i",_result
);
512 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
513 PyObject
* _resultobj
;
514 wxFontEncoding _arg0
;
515 char *_kwnames
[] = { "encoding", NULL
};
518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
521 wxPy_BEGIN_ALLOW_THREADS
;
522 wxFont_SetDefaultEncoding(_arg0
);
524 wxPy_END_ALLOW_THREADS
;
525 if (PyErr_Occurred()) return NULL
;
526 } Py_INCREF(Py_None
);
527 _resultobj
= Py_None
;
531 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
532 PyObject
* _resultobj
;
535 PyObject
* _obj0
= 0;
536 char *_kwnames
[] = { "colorName", NULL
};
540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
543 #if PYTHON_API_VERSION >= 1009
544 char* tmpPtr
; int tmpSize
;
545 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
546 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
549 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
551 _arg0
= new wxString(tmpPtr
, tmpSize
);
553 if (!PyString_Check(_obj0
)) {
554 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
557 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
561 wxPy_BEGIN_ALLOW_THREADS
;
562 _result
= (wxColour
*)wxNamedColour(*_arg0
);
564 wxPy_END_ALLOW_THREADS
;
565 if (PyErr_Occurred()) return NULL
;
567 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
568 _resultobj
= Py_BuildValue("s",_ptemp
);
571 _resultobj
= Py_None
;
580 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
581 PyObject
* _resultobj
;
582 wxMemoryDC
* _result
;
584 PyObject
* _argo0
= 0;
585 char *_kwnames
[] = { "oldDC", NULL
};
589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
599 wxPy_BEGIN_ALLOW_THREADS
;
600 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
602 wxPy_END_ALLOW_THREADS
;
603 if (PyErr_Occurred()) return NULL
;
605 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
606 _resultobj
= Py_BuildValue("s",_ptemp
);
609 _resultobj
= Py_None
;
614 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
616 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
620 static PyObject
*_wrap_wxNORMAL_FONT_get() {
624 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
625 pyobj
= PyString_FromString(ptemp
);
629 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
631 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
635 static PyObject
*_wrap_wxSMALL_FONT_get() {
639 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
640 pyobj
= PyString_FromString(ptemp
);
644 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
646 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
650 static PyObject
*_wrap_wxITALIC_FONT_get() {
654 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
655 pyobj
= PyString_FromString(ptemp
);
659 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
661 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
665 static PyObject
*_wrap_wxSWISS_FONT_get() {
669 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
670 pyobj
= PyString_FromString(ptemp
);
674 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
676 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
680 static PyObject
*_wrap_wxRED_PEN_get() {
684 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
685 pyobj
= PyString_FromString(ptemp
);
689 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
691 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
695 static PyObject
*_wrap_wxCYAN_PEN_get() {
699 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
700 pyobj
= PyString_FromString(ptemp
);
704 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
706 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
710 static PyObject
*_wrap_wxGREEN_PEN_get() {
714 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
715 pyobj
= PyString_FromString(ptemp
);
719 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
721 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
725 static PyObject
*_wrap_wxBLACK_PEN_get() {
729 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
730 pyobj
= PyString_FromString(ptemp
);
734 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
736 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
740 static PyObject
*_wrap_wxWHITE_PEN_get() {
744 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
745 pyobj
= PyString_FromString(ptemp
);
749 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
751 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
755 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
759 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
760 pyobj
= PyString_FromString(ptemp
);
764 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
766 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
770 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
774 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
775 pyobj
= PyString_FromString(ptemp
);
779 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
781 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
785 static PyObject
*_wrap_wxGREY_PEN_get() {
789 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
790 pyobj
= PyString_FromString(ptemp
);
794 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
796 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
800 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
804 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
805 pyobj
= PyString_FromString(ptemp
);
809 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
811 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
815 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
819 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
820 pyobj
= PyString_FromString(ptemp
);
824 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
826 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
830 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
834 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
835 pyobj
= PyString_FromString(ptemp
);
839 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
841 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
845 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
849 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
850 pyobj
= PyString_FromString(ptemp
);
854 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
856 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
860 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
864 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
865 pyobj
= PyString_FromString(ptemp
);
869 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
871 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
875 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
879 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
880 pyobj
= PyString_FromString(ptemp
);
884 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
886 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
890 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
894 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
895 pyobj
= PyString_FromString(ptemp
);
899 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
901 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
905 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
909 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
910 pyobj
= PyString_FromString(ptemp
);
914 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
916 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
920 static PyObject
*_wrap_wxRED_BRUSH_get() {
924 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
925 pyobj
= PyString_FromString(ptemp
);
929 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
931 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
935 static PyObject
*_wrap_wxGREY_BRUSH_get() {
939 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
940 pyobj
= PyString_FromString(ptemp
);
944 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
946 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
950 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
954 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
955 pyobj
= PyString_FromString(ptemp
);
959 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
961 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
965 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
969 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
970 pyobj
= PyString_FromString(ptemp
);
974 static int _wrap_wxBLACK_set(PyObject
*val
) {
976 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
980 static PyObject
*_wrap_wxBLACK_get() {
984 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
985 pyobj
= PyString_FromString(ptemp
);
989 static int _wrap_wxWHITE_set(PyObject
*val
) {
991 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
995 static PyObject
*_wrap_wxWHITE_get() {
999 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
1000 pyobj
= PyString_FromString(ptemp
);
1004 static int _wrap_wxRED_set(PyObject
*val
) {
1006 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
1010 static PyObject
*_wrap_wxRED_get() {
1014 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1015 pyobj
= PyString_FromString(ptemp
);
1019 static int _wrap_wxBLUE_set(PyObject
*val
) {
1021 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1025 static PyObject
*_wrap_wxBLUE_get() {
1029 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1030 pyobj
= PyString_FromString(ptemp
);
1034 static int _wrap_wxGREEN_set(PyObject
*val
) {
1036 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1040 static PyObject
*_wrap_wxGREEN_get() {
1044 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1045 pyobj
= PyString_FromString(ptemp
);
1049 static int _wrap_wxCYAN_set(PyObject
*val
) {
1051 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1055 static PyObject
*_wrap_wxCYAN_get() {
1059 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1060 pyobj
= PyString_FromString(ptemp
);
1064 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1066 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1070 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1074 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1075 pyobj
= PyString_FromString(ptemp
);
1079 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1081 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1085 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1089 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1090 pyobj
= PyString_FromString(ptemp
);
1094 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1096 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1100 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1104 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1105 pyobj
= PyString_FromString(ptemp
);
1109 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1111 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1115 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1119 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1120 pyobj
= PyString_FromString(ptemp
);
1124 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1126 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1130 static PyObject
*_wrap_wxNullBitmap_get() {
1134 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1135 pyobj
= PyString_FromString(ptemp
);
1139 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1141 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1145 static PyObject
*_wrap_wxNullIcon_get() {
1149 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1150 pyobj
= PyString_FromString(ptemp
);
1154 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1156 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1160 static PyObject
*_wrap_wxNullCursor_get() {
1164 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1165 pyobj
= PyString_FromString(ptemp
);
1169 static int _wrap_wxNullPen_set(PyObject
*val
) {
1171 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1175 static PyObject
*_wrap_wxNullPen_get() {
1179 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1180 pyobj
= PyString_FromString(ptemp
);
1184 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1186 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1190 static PyObject
*_wrap_wxNullBrush_get() {
1194 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1195 pyobj
= PyString_FromString(ptemp
);
1199 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1201 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1205 static PyObject
*_wrap_wxNullPalette_get() {
1209 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1210 pyobj
= PyString_FromString(ptemp
);
1214 static int _wrap_wxNullFont_set(PyObject
*val
) {
1216 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1220 static PyObject
*_wrap_wxNullFont_get() {
1224 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1225 pyobj
= PyString_FromString(ptemp
);
1229 static int _wrap_wxNullColour_set(PyObject
*val
) {
1231 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1235 static PyObject
*_wrap_wxNullColour_get() {
1239 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1240 pyobj
= PyString_FromString(ptemp
);
1244 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1246 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1250 static PyObject
*_wrap_wxTheFontList_get() {
1254 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1255 pyobj
= PyString_FromString(ptemp
);
1259 static int _wrap_wxThePenList_set(PyObject
*val
) {
1261 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1265 static PyObject
*_wrap_wxThePenList_get() {
1269 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1270 pyobj
= PyString_FromString(ptemp
);
1274 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1276 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1280 static PyObject
*_wrap_wxTheBrushList_get() {
1284 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushlist_p");
1285 pyobj
= PyString_FromString(ptemp
);
1289 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1291 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1295 static PyObject
*_wrap_wxTheColourDatabase_get() {
1299 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1300 pyobj
= PyString_FromString(ptemp
);
1304 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1307 src
= (wxGDIObject
*) ptr
;
1308 dest
= (wxObject
*) src
;
1309 return (void *) dest
;
1312 #define new_wxGDIObject() (new wxGDIObject())
1313 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1314 PyObject
* _resultobj
;
1315 wxGDIObject
* _result
;
1316 char *_kwnames
[] = { NULL
};
1320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1323 wxPy_BEGIN_ALLOW_THREADS
;
1324 _result
= (wxGDIObject
*)new_wxGDIObject();
1326 wxPy_END_ALLOW_THREADS
;
1327 if (PyErr_Occurred()) return NULL
;
1329 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1330 _resultobj
= Py_BuildValue("s",_ptemp
);
1333 _resultobj
= Py_None
;
1338 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1339 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1340 PyObject
* _resultobj
;
1341 wxGDIObject
* _arg0
;
1342 PyObject
* _argo0
= 0;
1343 char *_kwnames
[] = { "self", NULL
};
1346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1356 wxPy_BEGIN_ALLOW_THREADS
;
1357 delete_wxGDIObject(_arg0
);
1359 wxPy_END_ALLOW_THREADS
;
1360 if (PyErr_Occurred()) return NULL
;
1361 } Py_INCREF(Py_None
);
1362 _resultobj
= Py_None
;
1366 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1367 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1368 PyObject
* _resultobj
;
1370 wxGDIObject
* _arg0
;
1371 PyObject
* _argo0
= 0;
1372 char *_kwnames
[] = { "self", NULL
};
1375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1385 wxPy_BEGIN_ALLOW_THREADS
;
1386 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1388 wxPy_END_ALLOW_THREADS
;
1389 if (PyErr_Occurred()) return NULL
;
1390 } _resultobj
= Py_BuildValue("i",_result
);
1394 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1395 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1396 PyObject
* _resultobj
;
1397 wxGDIObject
* _arg0
;
1399 PyObject
* _argo0
= 0;
1401 char *_kwnames
[] = { "self","visible", NULL
};
1404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1413 _arg1
= (bool ) tempbool1
;
1415 wxPy_BEGIN_ALLOW_THREADS
;
1416 wxGDIObject_SetVisible(_arg0
,_arg1
);
1418 wxPy_END_ALLOW_THREADS
;
1419 if (PyErr_Occurred()) return NULL
;
1420 } Py_INCREF(Py_None
);
1421 _resultobj
= Py_None
;
1425 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1426 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1427 PyObject
* _resultobj
;
1429 wxGDIObject
* _arg0
;
1430 PyObject
* _argo0
= 0;
1431 char *_kwnames
[] = { "self", NULL
};
1434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1444 wxPy_BEGIN_ALLOW_THREADS
;
1445 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1447 wxPy_END_ALLOW_THREADS
;
1448 if (PyErr_Occurred()) return NULL
;
1449 } _resultobj
= Py_BuildValue("i",_result
);
1453 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1456 src
= (wxBitmap
*) ptr
;
1457 dest
= (wxGDIObject
*) src
;
1458 return (void *) dest
;
1461 static void *SwigwxBitmapTowxObject(void *ptr
) {
1464 src
= (wxBitmap
*) ptr
;
1465 dest
= (wxObject
*) src
;
1466 return (void *) dest
;
1469 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1470 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1471 PyObject
* _resultobj
;
1475 PyObject
* _obj0
= 0;
1476 char *_kwnames
[] = { "name","type", NULL
};
1480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1483 #if PYTHON_API_VERSION >= 1009
1484 char* tmpPtr
; int tmpSize
;
1485 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1486 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1489 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1491 _arg0
= new wxString(tmpPtr
, tmpSize
);
1493 if (!PyString_Check(_obj0
)) {
1494 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1497 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1501 wxPy_BEGIN_ALLOW_THREADS
;
1502 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1504 wxPy_END_ALLOW_THREADS
;
1505 if (PyErr_Occurred()) return NULL
;
1507 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1508 _resultobj
= Py_BuildValue("s",_ptemp
);
1511 _resultobj
= Py_None
;
1520 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1521 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1522 PyObject
* _resultobj
;
1524 PyObject
* _argo0
= 0;
1525 char *_kwnames
[] = { "self", NULL
};
1528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1531 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1532 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1538 wxPy_BEGIN_ALLOW_THREADS
;
1539 delete_wxBitmap(_arg0
);
1541 wxPy_END_ALLOW_THREADS
;
1542 if (PyErr_Occurred()) return NULL
;
1543 } Py_INCREF(Py_None
);
1544 _resultobj
= Py_None
;
1548 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1549 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1550 PyObject
* _resultobj
;
1551 wxPalette
* _result
;
1553 PyObject
* _argo0
= 0;
1554 char *_kwnames
[] = { "self", NULL
};
1558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1561 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1562 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1563 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1568 wxPy_BEGIN_ALLOW_THREADS
;
1569 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1571 wxPy_END_ALLOW_THREADS
;
1572 if (PyErr_Occurred()) return NULL
;
1574 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1575 _resultobj
= Py_BuildValue("s",_ptemp
);
1578 _resultobj
= Py_None
;
1583 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1584 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1585 PyObject
* _resultobj
;
1588 PyObject
* _argo0
= 0;
1589 char *_kwnames
[] = { "self", NULL
};
1593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1603 wxPy_BEGIN_ALLOW_THREADS
;
1604 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1606 wxPy_END_ALLOW_THREADS
;
1607 if (PyErr_Occurred()) return NULL
;
1609 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1610 _resultobj
= Py_BuildValue("s",_ptemp
);
1613 _resultobj
= Py_None
;
1618 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1619 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1620 PyObject
* _resultobj
;
1625 PyObject
* _argo0
= 0;
1626 PyObject
* _obj1
= 0;
1627 char *_kwnames
[] = { "self","name","flags", NULL
};
1630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1640 #if PYTHON_API_VERSION >= 1009
1641 char* tmpPtr
; int tmpSize
;
1642 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1643 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1646 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1648 _arg1
= new wxString(tmpPtr
, tmpSize
);
1650 if (!PyString_Check(_obj1
)) {
1651 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1654 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1658 wxPy_BEGIN_ALLOW_THREADS
;
1659 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1661 wxPy_END_ALLOW_THREADS
;
1662 if (PyErr_Occurred()) return NULL
;
1663 } _resultobj
= Py_BuildValue("i",_result
);
1671 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1672 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1673 PyObject
* _resultobj
;
1678 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1679 PyObject
* _argo0
= 0;
1680 PyObject
* _obj1
= 0;
1681 PyObject
* _argo3
= 0;
1682 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1695 #if PYTHON_API_VERSION >= 1009
1696 char* tmpPtr
; int tmpSize
;
1697 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1698 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1701 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1703 _arg1
= new wxString(tmpPtr
, tmpSize
);
1705 if (!PyString_Check(_obj1
)) {
1706 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1709 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1713 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1714 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1720 wxPy_BEGIN_ALLOW_THREADS
;
1721 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1723 wxPy_END_ALLOW_THREADS
;
1724 if (PyErr_Occurred()) return NULL
;
1725 } _resultobj
= Py_BuildValue("i",_result
);
1733 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1734 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1735 PyObject
* _resultobj
;
1738 PyObject
* _argo0
= 0;
1739 PyObject
* _argo1
= 0;
1740 char *_kwnames
[] = { "self","mask", NULL
};
1743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1753 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1754 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1760 wxPy_BEGIN_ALLOW_THREADS
;
1761 wxBitmap_SetMask(_arg0
,_arg1
);
1763 wxPy_END_ALLOW_THREADS
;
1764 if (PyErr_Occurred()) return NULL
;
1765 } Py_INCREF(Py_None
);
1766 _resultobj
= Py_None
;
1770 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1771 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1772 PyObject
* _resultobj
;
1775 PyObject
* _argo0
= 0;
1776 char *_kwnames
[] = { "self", NULL
};
1779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1789 wxPy_BEGIN_ALLOW_THREADS
;
1790 _result
= (bool )wxBitmap_Ok(_arg0
);
1792 wxPy_END_ALLOW_THREADS
;
1793 if (PyErr_Occurred()) return NULL
;
1794 } _resultobj
= Py_BuildValue("i",_result
);
1798 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1799 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1800 PyObject
* _resultobj
;
1803 PyObject
* _argo0
= 0;
1804 char *_kwnames
[] = { "self", NULL
};
1807 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1810 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1811 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1812 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1817 wxPy_BEGIN_ALLOW_THREADS
;
1818 _result
= (int )wxBitmap_GetWidth(_arg0
);
1820 wxPy_END_ALLOW_THREADS
;
1821 if (PyErr_Occurred()) return NULL
;
1822 } _resultobj
= Py_BuildValue("i",_result
);
1826 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1827 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1828 PyObject
* _resultobj
;
1831 PyObject
* _argo0
= 0;
1832 char *_kwnames
[] = { "self", NULL
};
1835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1838 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1839 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1845 wxPy_BEGIN_ALLOW_THREADS
;
1846 _result
= (int )wxBitmap_GetHeight(_arg0
);
1848 wxPy_END_ALLOW_THREADS
;
1849 if (PyErr_Occurred()) return NULL
;
1850 } _resultobj
= Py_BuildValue("i",_result
);
1854 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1855 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1856 PyObject
* _resultobj
;
1859 PyObject
* _argo0
= 0;
1860 char *_kwnames
[] = { "self", NULL
};
1863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1866 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1867 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1868 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1873 wxPy_BEGIN_ALLOW_THREADS
;
1874 _result
= (int )wxBitmap_GetDepth(_arg0
);
1876 wxPy_END_ALLOW_THREADS
;
1877 if (PyErr_Occurred()) return NULL
;
1878 } _resultobj
= Py_BuildValue("i",_result
);
1882 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1883 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1884 PyObject
* _resultobj
;
1887 PyObject
* _argo0
= 0;
1888 char *_kwnames
[] = { "self","w", NULL
};
1891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1901 wxPy_BEGIN_ALLOW_THREADS
;
1902 wxBitmap_SetWidth(_arg0
,_arg1
);
1904 wxPy_END_ALLOW_THREADS
;
1905 if (PyErr_Occurred()) return NULL
;
1906 } Py_INCREF(Py_None
);
1907 _resultobj
= Py_None
;
1911 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1912 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1913 PyObject
* _resultobj
;
1916 PyObject
* _argo0
= 0;
1917 char *_kwnames
[] = { "self","h", NULL
};
1920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1930 wxPy_BEGIN_ALLOW_THREADS
;
1931 wxBitmap_SetHeight(_arg0
,_arg1
);
1933 wxPy_END_ALLOW_THREADS
;
1934 if (PyErr_Occurred()) return NULL
;
1935 } Py_INCREF(Py_None
);
1936 _resultobj
= Py_None
;
1940 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1941 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1942 PyObject
* _resultobj
;
1945 PyObject
* _argo0
= 0;
1946 char *_kwnames
[] = { "self","d", NULL
};
1949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1952 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1953 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1959 wxPy_BEGIN_ALLOW_THREADS
;
1960 wxBitmap_SetDepth(_arg0
,_arg1
);
1962 wxPy_END_ALLOW_THREADS
;
1963 if (PyErr_Occurred()) return NULL
;
1964 } Py_INCREF(Py_None
);
1965 _resultobj
= Py_None
;
1969 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1970 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1971 PyObject
* _resultobj
;
1975 PyObject
* _argo0
= 0;
1977 PyObject
* _obj1
= 0;
1978 char *_kwnames
[] = { "self","rect", NULL
};
1982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1993 if (! wxRect_helper(_obj1
, &_arg1
))
1997 wxPy_BEGIN_ALLOW_THREADS
;
1998 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2000 wxPy_END_ALLOW_THREADS
;
2001 if (PyErr_Occurred()) return NULL
;
2002 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2003 _resultobj
= Py_BuildValue("s",_ptemp
);
2007 static void *SwigwxMaskTowxObject(void *ptr
) {
2010 src
= (wxMask
*) ptr
;
2011 dest
= (wxObject
*) src
;
2012 return (void *) dest
;
2015 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2016 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2017 PyObject
* _resultobj
;
2020 PyObject
* _argo0
= 0;
2021 char *_kwnames
[] = { "bitmap", NULL
};
2025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2035 wxPy_BEGIN_ALLOW_THREADS
;
2036 _result
= (wxMask
*)new_wxMask(*_arg0
);
2038 wxPy_END_ALLOW_THREADS
;
2039 if (PyErr_Occurred()) return NULL
;
2041 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2042 _resultobj
= Py_BuildValue("s",_ptemp
);
2045 _resultobj
= Py_None
;
2050 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2051 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2052 PyObject
* _resultobj
;
2054 PyObject
* _argo0
= 0;
2055 char *_kwnames
[] = { "self", NULL
};
2058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2061 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2062 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2068 wxPy_BEGIN_ALLOW_THREADS
;
2069 wxMask_Destroy(_arg0
);
2071 wxPy_END_ALLOW_THREADS
;
2072 if (PyErr_Occurred()) return NULL
;
2073 } Py_INCREF(Py_None
);
2074 _resultobj
= Py_None
;
2078 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2081 src
= (wxIcon
*) ptr
;
2082 dest
= (wxGDIObject
*) src
;
2083 return (void *) dest
;
2086 static void *SwigwxIconTowxObject(void *ptr
) {
2089 src
= (wxIcon
*) ptr
;
2090 dest
= (wxObject
*) src
;
2091 return (void *) dest
;
2094 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2095 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2096 PyObject
* _resultobj
;
2100 int _arg2
= (int ) -1;
2101 int _arg3
= (int ) -1;
2102 PyObject
* _obj0
= 0;
2103 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2110 #if PYTHON_API_VERSION >= 1009
2111 char* tmpPtr
; int tmpSize
;
2112 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2113 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2116 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2118 _arg0
= new wxString(tmpPtr
, tmpSize
);
2120 if (!PyString_Check(_obj0
)) {
2121 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2124 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2128 wxPy_BEGIN_ALLOW_THREADS
;
2129 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2131 wxPy_END_ALLOW_THREADS
;
2132 if (PyErr_Occurred()) return NULL
;
2134 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2135 _resultobj
= Py_BuildValue("s",_ptemp
);
2138 _resultobj
= Py_None
;
2147 #define delete_wxIcon(_swigobj) (delete _swigobj)
2148 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2149 PyObject
* _resultobj
;
2151 PyObject
* _argo0
= 0;
2152 char *_kwnames
[] = { "self", NULL
};
2155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2165 wxPy_BEGIN_ALLOW_THREADS
;
2166 delete_wxIcon(_arg0
);
2168 wxPy_END_ALLOW_THREADS
;
2169 if (PyErr_Occurred()) return NULL
;
2170 } Py_INCREF(Py_None
);
2171 _resultobj
= Py_None
;
2175 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2176 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2177 PyObject
* _resultobj
;
2182 PyObject
* _argo0
= 0;
2183 PyObject
* _obj1
= 0;
2184 char *_kwnames
[] = { "self","name","flags", NULL
};
2187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2190 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2191 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2192 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2197 #if PYTHON_API_VERSION >= 1009
2198 char* tmpPtr
; int tmpSize
;
2199 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2200 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2203 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2205 _arg1
= new wxString(tmpPtr
, tmpSize
);
2207 if (!PyString_Check(_obj1
)) {
2208 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2211 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2215 wxPy_BEGIN_ALLOW_THREADS
;
2216 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2218 wxPy_END_ALLOW_THREADS
;
2219 if (PyErr_Occurred()) return NULL
;
2220 } _resultobj
= Py_BuildValue("i",_result
);
2228 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2229 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2230 PyObject
* _resultobj
;
2233 PyObject
* _argo0
= 0;
2234 char *_kwnames
[] = { "self", NULL
};
2237 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2240 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2241 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2242 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2247 wxPy_BEGIN_ALLOW_THREADS
;
2248 _result
= (bool )wxIcon_Ok(_arg0
);
2250 wxPy_END_ALLOW_THREADS
;
2251 if (PyErr_Occurred()) return NULL
;
2252 } _resultobj
= Py_BuildValue("i",_result
);
2256 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2257 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2258 PyObject
* _resultobj
;
2261 PyObject
* _argo0
= 0;
2262 char *_kwnames
[] = { "self", NULL
};
2265 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2268 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2269 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2270 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2275 wxPy_BEGIN_ALLOW_THREADS
;
2276 _result
= (int )wxIcon_GetWidth(_arg0
);
2278 wxPy_END_ALLOW_THREADS
;
2279 if (PyErr_Occurred()) return NULL
;
2280 } _resultobj
= Py_BuildValue("i",_result
);
2284 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2285 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2286 PyObject
* _resultobj
;
2289 PyObject
* _argo0
= 0;
2290 char *_kwnames
[] = { "self", NULL
};
2293 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2296 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2297 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2303 wxPy_BEGIN_ALLOW_THREADS
;
2304 _result
= (int )wxIcon_GetHeight(_arg0
);
2306 wxPy_END_ALLOW_THREADS
;
2307 if (PyErr_Occurred()) return NULL
;
2308 } _resultobj
= Py_BuildValue("i",_result
);
2312 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2313 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2314 PyObject
* _resultobj
;
2317 PyObject
* _argo0
= 0;
2318 char *_kwnames
[] = { "self", NULL
};
2321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2331 wxPy_BEGIN_ALLOW_THREADS
;
2332 _result
= (int )wxIcon_GetDepth(_arg0
);
2334 wxPy_END_ALLOW_THREADS
;
2335 if (PyErr_Occurred()) return NULL
;
2336 } _resultobj
= Py_BuildValue("i",_result
);
2340 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2341 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2342 PyObject
* _resultobj
;
2345 PyObject
* _argo0
= 0;
2346 char *_kwnames
[] = { "self","w", NULL
};
2349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2352 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2353 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2359 wxPy_BEGIN_ALLOW_THREADS
;
2360 wxIcon_SetWidth(_arg0
,_arg1
);
2362 wxPy_END_ALLOW_THREADS
;
2363 if (PyErr_Occurred()) return NULL
;
2364 } Py_INCREF(Py_None
);
2365 _resultobj
= Py_None
;
2369 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2370 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2371 PyObject
* _resultobj
;
2374 PyObject
* _argo0
= 0;
2375 char *_kwnames
[] = { "self","h", NULL
};
2378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2388 wxPy_BEGIN_ALLOW_THREADS
;
2389 wxIcon_SetHeight(_arg0
,_arg1
);
2391 wxPy_END_ALLOW_THREADS
;
2392 if (PyErr_Occurred()) return NULL
;
2393 } Py_INCREF(Py_None
);
2394 _resultobj
= Py_None
;
2398 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2399 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2400 PyObject
* _resultobj
;
2403 PyObject
* _argo0
= 0;
2404 char *_kwnames
[] = { "self","d", NULL
};
2407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
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_SetDepth. Expected _wxIcon_p.");
2417 wxPy_BEGIN_ALLOW_THREADS
;
2418 wxIcon_SetDepth(_arg0
,_arg1
);
2420 wxPy_END_ALLOW_THREADS
;
2421 if (PyErr_Occurred()) return NULL
;
2422 } Py_INCREF(Py_None
);
2423 _resultobj
= Py_None
;
2427 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2428 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2429 PyObject
* _resultobj
;
2432 PyObject
* _argo0
= 0;
2433 PyObject
* _argo1
= 0;
2434 char *_kwnames
[] = { "self","bmp", NULL
};
2437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2447 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2448 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2454 wxPy_BEGIN_ALLOW_THREADS
;
2455 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2457 wxPy_END_ALLOW_THREADS
;
2458 if (PyErr_Occurred()) return NULL
;
2459 } Py_INCREF(Py_None
);
2460 _resultobj
= Py_None
;
2464 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2467 src
= (wxCursor
*) ptr
;
2468 dest
= (wxGDIObject
*) src
;
2469 return (void *) dest
;
2472 static void *SwigwxCursorTowxObject(void *ptr
) {
2475 src
= (wxCursor
*) ptr
;
2476 dest
= (wxObject
*) src
;
2477 return (void *) dest
;
2480 #define delete_wxCursor(_swigobj) (delete _swigobj)
2481 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2482 PyObject
* _resultobj
;
2484 PyObject
* _argo0
= 0;
2485 char *_kwnames
[] = { "self", NULL
};
2488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2498 wxPy_BEGIN_ALLOW_THREADS
;
2499 delete_wxCursor(_arg0
);
2501 wxPy_END_ALLOW_THREADS
;
2502 if (PyErr_Occurred()) return NULL
;
2503 } Py_INCREF(Py_None
);
2504 _resultobj
= Py_None
;
2508 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2509 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2510 PyObject
* _resultobj
;
2513 PyObject
* _argo0
= 0;
2514 char *_kwnames
[] = { "self", NULL
};
2517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2527 wxPy_BEGIN_ALLOW_THREADS
;
2528 _result
= (bool )wxCursor_Ok(_arg0
);
2530 wxPy_END_ALLOW_THREADS
;
2531 if (PyErr_Occurred()) return NULL
;
2532 } _resultobj
= Py_BuildValue("i",_result
);
2536 static void *SwigwxFontTowxGDIObject(void *ptr
) {
2539 src
= (wxFont
*) ptr
;
2540 dest
= (wxGDIObject
*) src
;
2541 return (void *) dest
;
2544 static void *SwigwxFontTowxObject(void *ptr
) {
2547 src
= (wxFont
*) ptr
;
2548 dest
= (wxObject
*) src
;
2549 return (void *) dest
;
2552 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2553 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2554 PyObject
* _resultobj
;
2560 int _arg4
= (int ) FALSE
;
2561 char * _arg5
= (char *) "";
2562 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
2563 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
2567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
2570 wxPy_BEGIN_ALLOW_THREADS
;
2571 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2573 wxPy_END_ALLOW_THREADS
;
2574 if (PyErr_Occurred()) return NULL
;
2576 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
2577 _resultobj
= Py_BuildValue("s",_ptemp
);
2580 _resultobj
= Py_None
;
2585 #define delete_wxFont(_swigobj) (delete _swigobj)
2586 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2587 PyObject
* _resultobj
;
2589 PyObject
* _argo0
= 0;
2590 char *_kwnames
[] = { "self", NULL
};
2593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
2596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
2603 wxPy_BEGIN_ALLOW_THREADS
;
2604 delete_wxFont(_arg0
);
2606 wxPy_END_ALLOW_THREADS
;
2607 if (PyErr_Occurred()) return NULL
;
2608 } Py_INCREF(Py_None
);
2609 _resultobj
= Py_None
;
2613 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
2614 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2615 PyObject
* _resultobj
;
2618 PyObject
* _argo0
= 0;
2619 char *_kwnames
[] = { "self", NULL
};
2622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
2625 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2626 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
2632 wxPy_BEGIN_ALLOW_THREADS
;
2633 _result
= (bool )wxFont_Ok(_arg0
);
2635 wxPy_END_ALLOW_THREADS
;
2636 if (PyErr_Occurred()) return NULL
;
2637 } _resultobj
= Py_BuildValue("i",_result
);
2641 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
2642 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2643 PyObject
* _resultobj
;
2646 PyObject
* _argo0
= 0;
2647 char *_kwnames
[] = { "self", NULL
};
2650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
2653 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2654 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
2660 wxPy_BEGIN_ALLOW_THREADS
;
2661 _result
= new wxString (wxFont_GetFaceName(_arg0
));
2663 wxPy_END_ALLOW_THREADS
;
2664 if (PyErr_Occurred()) return NULL
;
2666 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2674 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
2675 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2676 PyObject
* _resultobj
;
2679 PyObject
* _argo0
= 0;
2680 char *_kwnames
[] = { "self", NULL
};
2683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
2686 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2687 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2688 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
2693 wxPy_BEGIN_ALLOW_THREADS
;
2694 _result
= (int )wxFont_GetFamily(_arg0
);
2696 wxPy_END_ALLOW_THREADS
;
2697 if (PyErr_Occurred()) return NULL
;
2698 } _resultobj
= Py_BuildValue("i",_result
);
2702 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
2703 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2704 PyObject
* _resultobj
;
2707 PyObject
* _argo0
= 0;
2708 char *_kwnames
[] = { "self", NULL
};
2711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
2714 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2715 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
2721 wxPy_BEGIN_ALLOW_THREADS
;
2722 _result
= (int )wxFont_GetPointSize(_arg0
);
2724 wxPy_END_ALLOW_THREADS
;
2725 if (PyErr_Occurred()) return NULL
;
2726 } _resultobj
= Py_BuildValue("i",_result
);
2730 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
2731 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2732 PyObject
* _resultobj
;
2735 PyObject
* _argo0
= 0;
2736 char *_kwnames
[] = { "self", NULL
};
2739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
2742 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2743 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2744 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
2749 wxPy_BEGIN_ALLOW_THREADS
;
2750 _result
= (int )wxFont_GetStyle(_arg0
);
2752 wxPy_END_ALLOW_THREADS
;
2753 if (PyErr_Occurred()) return NULL
;
2754 } _resultobj
= Py_BuildValue("i",_result
);
2758 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
2759 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2760 PyObject
* _resultobj
;
2763 PyObject
* _argo0
= 0;
2764 char *_kwnames
[] = { "self", NULL
};
2767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
2770 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2771 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
2777 wxPy_BEGIN_ALLOW_THREADS
;
2778 _result
= (bool )wxFont_GetUnderlined(_arg0
);
2780 wxPy_END_ALLOW_THREADS
;
2781 if (PyErr_Occurred()) return NULL
;
2782 } _resultobj
= Py_BuildValue("i",_result
);
2786 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
2787 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2788 PyObject
* _resultobj
;
2791 PyObject
* _argo0
= 0;
2792 char *_kwnames
[] = { "self", NULL
};
2795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
2798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
2805 wxPy_BEGIN_ALLOW_THREADS
;
2806 _result
= (int )wxFont_GetWeight(_arg0
);
2808 wxPy_END_ALLOW_THREADS
;
2809 if (PyErr_Occurred()) return NULL
;
2810 } _resultobj
= Py_BuildValue("i",_result
);
2814 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
2815 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2816 PyObject
* _resultobj
;
2817 wxFontEncoding _result
;
2819 PyObject
* _argo0
= 0;
2820 char *_kwnames
[] = { "self", NULL
};
2823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
2826 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2827 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
2833 wxPy_BEGIN_ALLOW_THREADS
;
2834 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
2836 wxPy_END_ALLOW_THREADS
;
2837 if (PyErr_Occurred()) return NULL
;
2838 } _resultobj
= Py_BuildValue("i",_result
);
2842 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
2843 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2844 PyObject
* _resultobj
;
2847 PyObject
* _argo0
= 0;
2848 PyObject
* _obj1
= 0;
2849 char *_kwnames
[] = { "self","faceName", NULL
};
2852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
2855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
2862 #if PYTHON_API_VERSION >= 1009
2863 char* tmpPtr
; int tmpSize
;
2864 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2865 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2868 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2870 _arg1
= new wxString(tmpPtr
, tmpSize
);
2872 if (!PyString_Check(_obj1
)) {
2873 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2876 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2880 wxPy_BEGIN_ALLOW_THREADS
;
2881 wxFont_SetFaceName(_arg0
,*_arg1
);
2883 wxPy_END_ALLOW_THREADS
;
2884 if (PyErr_Occurred()) return NULL
;
2885 } Py_INCREF(Py_None
);
2886 _resultobj
= Py_None
;
2894 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
2895 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2896 PyObject
* _resultobj
;
2899 PyObject
* _argo0
= 0;
2900 char *_kwnames
[] = { "self","family", NULL
};
2903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
2906 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2907 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
2913 wxPy_BEGIN_ALLOW_THREADS
;
2914 wxFont_SetFamily(_arg0
,_arg1
);
2916 wxPy_END_ALLOW_THREADS
;
2917 if (PyErr_Occurred()) return NULL
;
2918 } Py_INCREF(Py_None
);
2919 _resultobj
= Py_None
;
2923 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
2924 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2925 PyObject
* _resultobj
;
2928 PyObject
* _argo0
= 0;
2929 char *_kwnames
[] = { "self","pointSize", NULL
};
2932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
2935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
2942 wxPy_BEGIN_ALLOW_THREADS
;
2943 wxFont_SetPointSize(_arg0
,_arg1
);
2945 wxPy_END_ALLOW_THREADS
;
2946 if (PyErr_Occurred()) return NULL
;
2947 } Py_INCREF(Py_None
);
2948 _resultobj
= Py_None
;
2952 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
2953 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2954 PyObject
* _resultobj
;
2957 PyObject
* _argo0
= 0;
2958 char *_kwnames
[] = { "self","style", NULL
};
2961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
2964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
2971 wxPy_BEGIN_ALLOW_THREADS
;
2972 wxFont_SetStyle(_arg0
,_arg1
);
2974 wxPy_END_ALLOW_THREADS
;
2975 if (PyErr_Occurred()) return NULL
;
2976 } Py_INCREF(Py_None
);
2977 _resultobj
= Py_None
;
2981 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
2982 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2983 PyObject
* _resultobj
;
2986 PyObject
* _argo0
= 0;
2988 char *_kwnames
[] = { "self","underlined", NULL
};
2991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
2994 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2995 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
3000 _arg1
= (bool ) tempbool1
;
3002 wxPy_BEGIN_ALLOW_THREADS
;
3003 wxFont_SetUnderlined(_arg0
,_arg1
);
3005 wxPy_END_ALLOW_THREADS
;
3006 if (PyErr_Occurred()) return NULL
;
3007 } Py_INCREF(Py_None
);
3008 _resultobj
= Py_None
;
3012 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3013 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3014 PyObject
* _resultobj
;
3017 PyObject
* _argo0
= 0;
3018 char *_kwnames
[] = { "self","weight", NULL
};
3021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
3024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
3031 wxPy_BEGIN_ALLOW_THREADS
;
3032 wxFont_SetWeight(_arg0
,_arg1
);
3034 wxPy_END_ALLOW_THREADS
;
3035 if (PyErr_Occurred()) return NULL
;
3036 } Py_INCREF(Py_None
);
3037 _resultobj
= Py_None
;
3041 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3042 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3043 PyObject
* _resultobj
;
3045 wxFontEncoding _arg1
;
3046 PyObject
* _argo0
= 0;
3047 char *_kwnames
[] = { "self","encoding", NULL
};
3050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
3053 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3054 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
3060 wxPy_BEGIN_ALLOW_THREADS
;
3061 wxFont_SetEncoding(_arg0
,_arg1
);
3063 wxPy_END_ALLOW_THREADS
;
3064 if (PyErr_Occurred()) return NULL
;
3065 } Py_INCREF(Py_None
);
3066 _resultobj
= Py_None
;
3070 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
3071 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3072 PyObject
* _resultobj
;
3075 PyObject
* _argo0
= 0;
3076 char *_kwnames
[] = { "self", NULL
};
3079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
3082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
3089 wxPy_BEGIN_ALLOW_THREADS
;
3090 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
3092 wxPy_END_ALLOW_THREADS
;
3093 if (PyErr_Occurred()) return NULL
;
3095 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3103 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
3104 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3105 PyObject
* _resultobj
;
3108 PyObject
* _argo0
= 0;
3109 char *_kwnames
[] = { "self", NULL
};
3112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
3115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
3122 wxPy_BEGIN_ALLOW_THREADS
;
3123 _result
= new wxString (wxFont_GetStyleString(_arg0
));
3125 wxPy_END_ALLOW_THREADS
;
3126 if (PyErr_Occurred()) return NULL
;
3128 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3136 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
3137 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3138 PyObject
* _resultobj
;
3141 PyObject
* _argo0
= 0;
3142 char *_kwnames
[] = { "self", NULL
};
3145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
3148 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3149 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3150 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
3155 wxPy_BEGIN_ALLOW_THREADS
;
3156 _result
= new wxString (wxFont_GetWeightString(_arg0
));
3158 wxPy_END_ALLOW_THREADS
;
3159 if (PyErr_Occurred()) return NULL
;
3161 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3169 static void *SwigwxFontListTowxObject(void *ptr
) {
3172 src
= (wxFontList
*) ptr
;
3173 dest
= (wxObject
*) src
;
3174 return (void *) dest
;
3177 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
3178 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3179 PyObject
* _resultobj
;
3182 PyObject
* _argo0
= 0;
3183 PyObject
* _argo1
= 0;
3184 char *_kwnames
[] = { "self","font", NULL
};
3187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
3190 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3191 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3192 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
3197 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3198 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
3204 wxPy_BEGIN_ALLOW_THREADS
;
3205 wxFontList_AddFont(_arg0
,_arg1
);
3207 wxPy_END_ALLOW_THREADS
;
3208 if (PyErr_Occurred()) return NULL
;
3209 } Py_INCREF(Py_None
);
3210 _resultobj
= Py_None
;
3214 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3215 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3216 PyObject
* _resultobj
;
3223 bool _arg5
= (bool ) FALSE
;
3224 char * _arg6
= (char *) NULL
;
3225 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3226 PyObject
* _argo0
= 0;
3227 int tempbool5
= (int) FALSE
;
3228 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
3232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
3235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
3241 _arg5
= (bool ) tempbool5
;
3243 wxPy_BEGIN_ALLOW_THREADS
;
3244 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
3246 wxPy_END_ALLOW_THREADS
;
3247 if (PyErr_Occurred()) return NULL
;
3249 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3250 _resultobj
= Py_BuildValue("s",_ptemp
);
3253 _resultobj
= Py_None
;
3258 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
3259 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3260 PyObject
* _resultobj
;
3263 PyObject
* _argo0
= 0;
3264 PyObject
* _argo1
= 0;
3265 char *_kwnames
[] = { "self","font", NULL
};
3268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
3271 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3272 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
3278 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3279 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
3285 wxPy_BEGIN_ALLOW_THREADS
;
3286 wxFontList_RemoveFont(_arg0
,_arg1
);
3288 wxPy_END_ALLOW_THREADS
;
3289 if (PyErr_Occurred()) return NULL
;
3290 } Py_INCREF(Py_None
);
3291 _resultobj
= Py_None
;
3295 static void *SwigwxColourTowxObject(void *ptr
) {
3298 src
= (wxColour
*) ptr
;
3299 dest
= (wxObject
*) src
;
3300 return (void *) dest
;
3303 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
3304 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3305 PyObject
* _resultobj
;
3307 unsigned char _arg0
= (unsigned char ) 0;
3308 unsigned char _arg1
= (unsigned char ) 0;
3309 unsigned char _arg2
= (unsigned char ) 0;
3310 char *_kwnames
[] = { "red","green","blue", NULL
};
3314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
3317 wxPy_BEGIN_ALLOW_THREADS
;
3318 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
3320 wxPy_END_ALLOW_THREADS
;
3321 if (PyErr_Occurred()) return NULL
;
3323 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3324 _resultobj
= Py_BuildValue("s",_ptemp
);
3327 _resultobj
= Py_None
;
3332 #define delete_wxColour(_swigobj) (delete _swigobj)
3333 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3334 PyObject
* _resultobj
;
3337 PyObject
* _obj0
= 0;
3338 char *_kwnames
[] = { "self", NULL
};
3341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
3345 if (! wxColour_helper(_obj0
, &_arg0
))
3349 wxPy_BEGIN_ALLOW_THREADS
;
3350 delete_wxColour(_arg0
);
3352 wxPy_END_ALLOW_THREADS
;
3353 if (PyErr_Occurred()) return NULL
;
3354 } Py_INCREF(Py_None
);
3355 _resultobj
= Py_None
;
3359 #define wxColour_Red(_swigobj) (_swigobj->Red())
3360 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3361 PyObject
* _resultobj
;
3362 unsigned char _result
;
3365 PyObject
* _obj0
= 0;
3366 char *_kwnames
[] = { "self", NULL
};
3369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
3373 if (! wxColour_helper(_obj0
, &_arg0
))
3377 wxPy_BEGIN_ALLOW_THREADS
;
3378 _result
= (unsigned char )wxColour_Red(_arg0
);
3380 wxPy_END_ALLOW_THREADS
;
3381 if (PyErr_Occurred()) return NULL
;
3382 } _resultobj
= Py_BuildValue("b",_result
);
3386 #define wxColour_Green(_swigobj) (_swigobj->Green())
3387 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3388 PyObject
* _resultobj
;
3389 unsigned char _result
;
3392 PyObject
* _obj0
= 0;
3393 char *_kwnames
[] = { "self", NULL
};
3396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
3400 if (! wxColour_helper(_obj0
, &_arg0
))
3404 wxPy_BEGIN_ALLOW_THREADS
;
3405 _result
= (unsigned char )wxColour_Green(_arg0
);
3407 wxPy_END_ALLOW_THREADS
;
3408 if (PyErr_Occurred()) return NULL
;
3409 } _resultobj
= Py_BuildValue("b",_result
);
3413 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
3414 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3415 PyObject
* _resultobj
;
3416 unsigned char _result
;
3419 PyObject
* _obj0
= 0;
3420 char *_kwnames
[] = { "self", NULL
};
3423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
3427 if (! wxColour_helper(_obj0
, &_arg0
))
3431 wxPy_BEGIN_ALLOW_THREADS
;
3432 _result
= (unsigned char )wxColour_Blue(_arg0
);
3434 wxPy_END_ALLOW_THREADS
;
3435 if (PyErr_Occurred()) return NULL
;
3436 } _resultobj
= Py_BuildValue("b",_result
);
3440 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
3441 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3442 PyObject
* _resultobj
;
3446 PyObject
* _obj0
= 0;
3447 char *_kwnames
[] = { "self", NULL
};
3450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
3454 if (! wxColour_helper(_obj0
, &_arg0
))
3458 wxPy_BEGIN_ALLOW_THREADS
;
3459 _result
= (bool )wxColour_Ok(_arg0
);
3461 wxPy_END_ALLOW_THREADS
;
3462 if (PyErr_Occurred()) return NULL
;
3463 } _resultobj
= Py_BuildValue("i",_result
);
3467 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
3468 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3469 PyObject
* _resultobj
;
3471 unsigned char _arg1
;
3472 unsigned char _arg2
;
3473 unsigned char _arg3
;
3475 PyObject
* _obj0
= 0;
3476 char *_kwnames
[] = { "self","red","green","blue", NULL
};
3479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
3483 if (! wxColour_helper(_obj0
, &_arg0
))
3487 wxPy_BEGIN_ALLOW_THREADS
;
3488 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
3490 wxPy_END_ALLOW_THREADS
;
3491 if (PyErr_Occurred()) return NULL
;
3492 } Py_INCREF(Py_None
);
3493 _resultobj
= Py_None
;
3497 static PyObject
* wxColour_Get(wxColour
*self
) {
3498 PyObject
* rv
= PyTuple_New(3);
3499 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
3500 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
3501 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
3504 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3505 PyObject
* _resultobj
;
3509 PyObject
* _obj0
= 0;
3510 char *_kwnames
[] = { "self", NULL
};
3513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
3517 if (! wxColour_helper(_obj0
, &_arg0
))
3521 wxPy_BEGIN_ALLOW_THREADS
;
3522 _result
= (PyObject
*)wxColour_Get(_arg0
);
3524 wxPy_END_ALLOW_THREADS
;
3525 if (PyErr_Occurred()) return NULL
;
3527 _resultobj
= _result
;
3532 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
3533 wxColourDatabase
*src
;
3535 src
= (wxColourDatabase
*) ptr
;
3536 dest
= (wxObject
*) src
;
3537 return (void *) dest
;
3540 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
3541 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3542 PyObject
* _resultobj
;
3544 wxColourDatabase
* _arg0
;
3546 PyObject
* _argo0
= 0;
3547 PyObject
* _obj1
= 0;
3548 char *_kwnames
[] = { "self","colour", NULL
};
3552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
3555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
3562 #if PYTHON_API_VERSION >= 1009
3563 char* tmpPtr
; int tmpSize
;
3564 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3565 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3568 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3570 _arg1
= new wxString(tmpPtr
, tmpSize
);
3572 if (!PyString_Check(_obj1
)) {
3573 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3576 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3580 wxPy_BEGIN_ALLOW_THREADS
;
3581 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
3583 wxPy_END_ALLOW_THREADS
;
3584 if (PyErr_Occurred()) return NULL
;
3586 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3587 _resultobj
= Py_BuildValue("s",_ptemp
);
3590 _resultobj
= Py_None
;
3599 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3600 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3601 PyObject
* _resultobj
;
3603 wxColourDatabase
* _arg0
;
3605 PyObject
* _argo0
= 0;
3607 PyObject
* _obj1
= 0;
3608 char *_kwnames
[] = { "self","colour", NULL
};
3611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
3614 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3615 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3616 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
3622 if (! wxColour_helper(_obj1
, &_arg1
))
3626 wxPy_BEGIN_ALLOW_THREADS
;
3627 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
3629 wxPy_END_ALLOW_THREADS
;
3630 if (PyErr_Occurred()) return NULL
;
3632 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3640 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
3641 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
3643 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3644 PyObject
* _resultobj
;
3645 wxColourDatabase
* _arg0
;
3650 PyObject
* _argo0
= 0;
3651 PyObject
* _obj1
= 0;
3652 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
3655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
3658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
3665 #if PYTHON_API_VERSION >= 1009
3666 char* tmpPtr
; int tmpSize
;
3667 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3668 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3671 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3673 _arg1
= new wxString(tmpPtr
, tmpSize
);
3675 if (!PyString_Check(_obj1
)) {
3676 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3679 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3683 wxPy_BEGIN_ALLOW_THREADS
;
3684 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
3686 wxPy_END_ALLOW_THREADS
;
3687 if (PyErr_Occurred()) return NULL
;
3688 } Py_INCREF(Py_None
);
3689 _resultobj
= Py_None
;
3697 static void *SwigwxPenTowxGDIObject(void *ptr
) {
3700 src
= (wxPen
*) ptr
;
3701 dest
= (wxGDIObject
*) src
;
3702 return (void *) dest
;
3705 static void *SwigwxPenTowxObject(void *ptr
) {
3708 src
= (wxPen
*) ptr
;
3709 dest
= (wxObject
*) src
;
3710 return (void *) dest
;
3713 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
3714 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3715 PyObject
* _resultobj
;
3718 int _arg1
= (int ) 1;
3719 int _arg2
= (int ) wxSOLID
;
3721 PyObject
* _obj0
= 0;
3722 char *_kwnames
[] = { "colour","width","style", NULL
};
3726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
3730 if (! wxColour_helper(_obj0
, &_arg0
))
3734 wxPy_BEGIN_ALLOW_THREADS
;
3735 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
3737 wxPy_END_ALLOW_THREADS
;
3738 if (PyErr_Occurred()) return NULL
;
3740 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3741 _resultobj
= Py_BuildValue("s",_ptemp
);
3744 _resultobj
= Py_None
;
3749 #define delete_wxPen(_swigobj) (delete _swigobj)
3750 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3751 PyObject
* _resultobj
;
3753 PyObject
* _argo0
= 0;
3754 char *_kwnames
[] = { "self", NULL
};
3757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
3760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
3767 wxPy_BEGIN_ALLOW_THREADS
;
3768 delete_wxPen(_arg0
);
3770 wxPy_END_ALLOW_THREADS
;
3771 if (PyErr_Occurred()) return NULL
;
3772 } Py_INCREF(Py_None
);
3773 _resultobj
= Py_None
;
3777 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
3778 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3779 PyObject
* _resultobj
;
3782 PyObject
* _argo0
= 0;
3783 char *_kwnames
[] = { "self", NULL
};
3786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
3789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
3796 wxPy_BEGIN_ALLOW_THREADS
;
3797 _result
= (int )wxPen_GetCap(_arg0
);
3799 wxPy_END_ALLOW_THREADS
;
3800 if (PyErr_Occurred()) return NULL
;
3801 } _resultobj
= Py_BuildValue("i",_result
);
3805 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
3806 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3807 PyObject
* _resultobj
;
3810 PyObject
* _argo0
= 0;
3811 char *_kwnames
[] = { "self", NULL
};
3815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
3818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
3825 wxPy_BEGIN_ALLOW_THREADS
;
3826 _result
= new wxColour (wxPen_GetColour(_arg0
));
3828 wxPy_END_ALLOW_THREADS
;
3829 if (PyErr_Occurred()) return NULL
;
3830 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
3831 _resultobj
= Py_BuildValue("s",_ptemp
);
3835 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
3836 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3837 PyObject
* _resultobj
;
3840 PyObject
* _argo0
= 0;
3841 char *_kwnames
[] = { "self", NULL
};
3844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
3847 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3848 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3849 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
3854 wxPy_BEGIN_ALLOW_THREADS
;
3855 _result
= (int )wxPen_GetJoin(_arg0
);
3857 wxPy_END_ALLOW_THREADS
;
3858 if (PyErr_Occurred()) return NULL
;
3859 } _resultobj
= Py_BuildValue("i",_result
);
3863 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
3864 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3865 PyObject
* _resultobj
;
3868 PyObject
* _argo0
= 0;
3869 char *_kwnames
[] = { "self", NULL
};
3872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
3875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
3882 wxPy_BEGIN_ALLOW_THREADS
;
3883 _result
= (int )wxPen_GetStyle(_arg0
);
3885 wxPy_END_ALLOW_THREADS
;
3886 if (PyErr_Occurred()) return NULL
;
3887 } _resultobj
= Py_BuildValue("i",_result
);
3891 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
3892 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3893 PyObject
* _resultobj
;
3896 PyObject
* _argo0
= 0;
3897 char *_kwnames
[] = { "self", NULL
};
3900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
3903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
3910 wxPy_BEGIN_ALLOW_THREADS
;
3911 _result
= (int )wxPen_GetWidth(_arg0
);
3913 wxPy_END_ALLOW_THREADS
;
3914 if (PyErr_Occurred()) return NULL
;
3915 } _resultobj
= Py_BuildValue("i",_result
);
3919 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
3920 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3921 PyObject
* _resultobj
;
3924 PyObject
* _argo0
= 0;
3925 char *_kwnames
[] = { "self", NULL
};
3928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
3931 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3932 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3933 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
3938 wxPy_BEGIN_ALLOW_THREADS
;
3939 _result
= (bool )wxPen_Ok(_arg0
);
3941 wxPy_END_ALLOW_THREADS
;
3942 if (PyErr_Occurred()) return NULL
;
3943 } _resultobj
= Py_BuildValue("i",_result
);
3947 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
3948 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3949 PyObject
* _resultobj
;
3952 PyObject
* _argo0
= 0;
3953 char *_kwnames
[] = { "self","cap_style", NULL
};
3956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
3959 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3960 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
3966 wxPy_BEGIN_ALLOW_THREADS
;
3967 wxPen_SetCap(_arg0
,_arg1
);
3969 wxPy_END_ALLOW_THREADS
;
3970 if (PyErr_Occurred()) return NULL
;
3971 } Py_INCREF(Py_None
);
3972 _resultobj
= Py_None
;
3976 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
3977 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3978 PyObject
* _resultobj
;
3981 PyObject
* _argo0
= 0;
3983 PyObject
* _obj1
= 0;
3984 char *_kwnames
[] = { "self","colour", NULL
};
3987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
3990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
3998 if (! wxColour_helper(_obj1
, &_arg1
))
4002 wxPy_BEGIN_ALLOW_THREADS
;
4003 wxPen_SetColour(_arg0
,*_arg1
);
4005 wxPy_END_ALLOW_THREADS
;
4006 if (PyErr_Occurred()) return NULL
;
4007 } Py_INCREF(Py_None
);
4008 _resultobj
= Py_None
;
4012 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4013 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4014 PyObject
* _resultobj
;
4017 PyObject
* _argo0
= 0;
4018 char *_kwnames
[] = { "self","join_style", NULL
};
4021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
4024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4031 wxPy_BEGIN_ALLOW_THREADS
;
4032 wxPen_SetJoin(_arg0
,_arg1
);
4034 wxPy_END_ALLOW_THREADS
;
4035 if (PyErr_Occurred()) return NULL
;
4036 } Py_INCREF(Py_None
);
4037 _resultobj
= Py_None
;
4041 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4042 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4043 PyObject
* _resultobj
;
4046 PyObject
* _argo0
= 0;
4047 char *_kwnames
[] = { "self","style", NULL
};
4050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4053 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4054 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4060 wxPy_BEGIN_ALLOW_THREADS
;
4061 wxPen_SetStyle(_arg0
,_arg1
);
4063 wxPy_END_ALLOW_THREADS
;
4064 if (PyErr_Occurred()) return NULL
;
4065 } Py_INCREF(Py_None
);
4066 _resultobj
= Py_None
;
4070 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4071 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4072 PyObject
* _resultobj
;
4075 PyObject
* _argo0
= 0;
4076 char *_kwnames
[] = { "self","width", NULL
};
4079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4089 wxPy_BEGIN_ALLOW_THREADS
;
4090 wxPen_SetWidth(_arg0
,_arg1
);
4092 wxPy_END_ALLOW_THREADS
;
4093 if (PyErr_Occurred()) return NULL
;
4094 } Py_INCREF(Py_None
);
4095 _resultobj
= Py_None
;
4099 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
4100 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4101 PyObject
* _resultobj
;
4105 PyObject
* _argo0
= 0;
4106 PyObject
* _argo1
= 0;
4107 char *_kwnames
[] = { "self","dashes", NULL
};
4110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_GetDashes",_kwnames
,&_argo0
,&_argo1
))
4113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4120 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4121 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDash_pp")) {
4122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
4127 wxPy_BEGIN_ALLOW_THREADS
;
4128 _result
= (int )wxPen_GetDashes(_arg0
,_arg1
);
4130 wxPy_END_ALLOW_THREADS
;
4131 if (PyErr_Occurred()) return NULL
;
4132 } _resultobj
= Py_BuildValue("i",_result
);
4136 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4137 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4138 PyObject
* _resultobj
;
4142 PyObject
* _argo0
= 0;
4143 PyObject
* _obj2
= 0;
4144 char *_kwnames
[] = { "self","choices", NULL
};
4147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4150 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4151 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4158 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4159 if (_arg2
== NULL
) {
4165 _arg1
= PyList_Size(_obj2
);
4172 wxPy_BEGIN_ALLOW_THREADS
;
4173 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4175 wxPy_END_ALLOW_THREADS
;
4176 if (PyErr_Occurred()) return NULL
;
4177 } Py_INCREF(Py_None
);
4178 _resultobj
= Py_None
;
4185 static void *SwigwxPenListTowxObject(void *ptr
) {
4188 src
= (wxPenList
*) ptr
;
4189 dest
= (wxObject
*) src
;
4190 return (void *) dest
;
4193 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4194 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4195 PyObject
* _resultobj
;
4198 PyObject
* _argo0
= 0;
4199 PyObject
* _argo1
= 0;
4200 char *_kwnames
[] = { "self","pen", NULL
};
4203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
4206 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4207 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4208 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4213 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4214 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4220 wxPy_BEGIN_ALLOW_THREADS
;
4221 wxPenList_AddPen(_arg0
,_arg1
);
4223 wxPy_END_ALLOW_THREADS
;
4224 if (PyErr_Occurred()) return NULL
;
4225 } Py_INCREF(Py_None
);
4226 _resultobj
= Py_None
;
4230 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
4231 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4232 PyObject
* _resultobj
;
4238 PyObject
* _argo0
= 0;
4240 PyObject
* _obj1
= 0;
4241 char *_kwnames
[] = { "self","colour","width","style", NULL
};
4245 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
4248 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4249 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4250 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
4256 if (! wxColour_helper(_obj1
, &_arg1
))
4260 wxPy_BEGIN_ALLOW_THREADS
;
4261 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
4263 wxPy_END_ALLOW_THREADS
;
4264 if (PyErr_Occurred()) return NULL
;
4266 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4267 _resultobj
= Py_BuildValue("s",_ptemp
);
4270 _resultobj
= Py_None
;
4275 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
4276 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4277 PyObject
* _resultobj
;
4280 PyObject
* _argo0
= 0;
4281 PyObject
* _argo1
= 0;
4282 char *_kwnames
[] = { "self","pen", NULL
};
4285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
4288 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4289 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4290 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
4295 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4296 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
4302 wxPy_BEGIN_ALLOW_THREADS
;
4303 wxPenList_RemovePen(_arg0
,_arg1
);
4305 wxPy_END_ALLOW_THREADS
;
4306 if (PyErr_Occurred()) return NULL
;
4307 } Py_INCREF(Py_None
);
4308 _resultobj
= Py_None
;
4312 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
4315 src
= (wxBrush
*) ptr
;
4316 dest
= (wxGDIObject
*) src
;
4317 return (void *) dest
;
4320 static void *SwigwxBrushTowxObject(void *ptr
) {
4323 src
= (wxBrush
*) ptr
;
4324 dest
= (wxObject
*) src
;
4325 return (void *) dest
;
4328 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
4329 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4330 PyObject
* _resultobj
;
4333 int _arg1
= (int ) wxSOLID
;
4335 PyObject
* _obj0
= 0;
4336 char *_kwnames
[] = { "colour","style", NULL
};
4340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
4344 if (! wxColour_helper(_obj0
, &_arg0
))
4348 wxPy_BEGIN_ALLOW_THREADS
;
4349 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
4351 wxPy_END_ALLOW_THREADS
;
4352 if (PyErr_Occurred()) return NULL
;
4354 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4355 _resultobj
= Py_BuildValue("s",_ptemp
);
4358 _resultobj
= Py_None
;
4363 #define delete_wxBrush(_swigobj) (delete _swigobj)
4364 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4365 PyObject
* _resultobj
;
4367 PyObject
* _argo0
= 0;
4368 char *_kwnames
[] = { "self", NULL
};
4371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
4374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
4381 wxPy_BEGIN_ALLOW_THREADS
;
4382 delete_wxBrush(_arg0
);
4384 wxPy_END_ALLOW_THREADS
;
4385 if (PyErr_Occurred()) return NULL
;
4386 } Py_INCREF(Py_None
);
4387 _resultobj
= Py_None
;
4391 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
4392 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4393 PyObject
* _resultobj
;
4396 PyObject
* _argo0
= 0;
4397 char *_kwnames
[] = { "self", NULL
};
4401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
4404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4411 wxPy_BEGIN_ALLOW_THREADS
;
4412 _result
= new wxColour (wxBrush_GetColour(_arg0
));
4414 wxPy_END_ALLOW_THREADS
;
4415 if (PyErr_Occurred()) return NULL
;
4416 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4417 _resultobj
= Py_BuildValue("s",_ptemp
);
4421 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4422 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4423 PyObject
* _resultobj
;
4426 PyObject
* _argo0
= 0;
4427 char *_kwnames
[] = { "self", NULL
};
4431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
4434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4441 wxPy_BEGIN_ALLOW_THREADS
;
4442 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
4444 wxPy_END_ALLOW_THREADS
;
4445 if (PyErr_Occurred()) return NULL
;
4447 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4448 _resultobj
= Py_BuildValue("s",_ptemp
);
4451 _resultobj
= Py_None
;
4456 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4457 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4458 PyObject
* _resultobj
;
4461 PyObject
* _argo0
= 0;
4462 char *_kwnames
[] = { "self", NULL
};
4465 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
4468 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4469 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4475 wxPy_BEGIN_ALLOW_THREADS
;
4476 _result
= (int )wxBrush_GetStyle(_arg0
);
4478 wxPy_END_ALLOW_THREADS
;
4479 if (PyErr_Occurred()) return NULL
;
4480 } _resultobj
= Py_BuildValue("i",_result
);
4484 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4485 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4486 PyObject
* _resultobj
;
4489 PyObject
* _argo0
= 0;
4490 char *_kwnames
[] = { "self", NULL
};
4493 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
4496 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4497 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4498 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4503 wxPy_BEGIN_ALLOW_THREADS
;
4504 _result
= (bool )wxBrush_Ok(_arg0
);
4506 wxPy_END_ALLOW_THREADS
;
4507 if (PyErr_Occurred()) return NULL
;
4508 } _resultobj
= Py_BuildValue("i",_result
);
4512 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4513 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4514 PyObject
* _resultobj
;
4517 PyObject
* _argo0
= 0;
4519 PyObject
* _obj1
= 0;
4520 char *_kwnames
[] = { "self","colour", NULL
};
4523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
4526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4534 if (! wxColour_helper(_obj1
, &_arg1
))
4538 wxPy_BEGIN_ALLOW_THREADS
;
4539 wxBrush_SetColour(_arg0
,*_arg1
);
4541 wxPy_END_ALLOW_THREADS
;
4542 if (PyErr_Occurred()) return NULL
;
4543 } Py_INCREF(Py_None
);
4544 _resultobj
= Py_None
;
4548 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4549 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4550 PyObject
* _resultobj
;
4553 PyObject
* _argo0
= 0;
4554 PyObject
* _argo1
= 0;
4555 char *_kwnames
[] = { "self","bitmap", NULL
};
4558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4561 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4562 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4563 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4568 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4569 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4570 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4575 wxPy_BEGIN_ALLOW_THREADS
;
4576 wxBrush_SetStipple(_arg0
,*_arg1
);
4578 wxPy_END_ALLOW_THREADS
;
4579 if (PyErr_Occurred()) return NULL
;
4580 } Py_INCREF(Py_None
);
4581 _resultobj
= Py_None
;
4585 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4586 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4587 PyObject
* _resultobj
;
4590 PyObject
* _argo0
= 0;
4591 char *_kwnames
[] = { "self","style", NULL
};
4594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4597 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4598 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4604 wxPy_BEGIN_ALLOW_THREADS
;
4605 wxBrush_SetStyle(_arg0
,_arg1
);
4607 wxPy_END_ALLOW_THREADS
;
4608 if (PyErr_Occurred()) return NULL
;
4609 } Py_INCREF(Py_None
);
4610 _resultobj
= Py_None
;
4614 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
4615 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4616 PyObject
* _resultobj
;
4617 wxBrushList
* _arg0
;
4619 PyObject
* _argo0
= 0;
4620 PyObject
* _argo1
= 0;
4621 char *_kwnames
[] = { "self","brush", NULL
};
4624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
4627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
4634 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4635 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
4641 wxPy_BEGIN_ALLOW_THREADS
;
4642 wxBrushList_AddBrush(_arg0
,_arg1
);
4644 wxPy_END_ALLOW_THREADS
;
4645 if (PyErr_Occurred()) return NULL
;
4646 } Py_INCREF(Py_None
);
4647 _resultobj
= Py_None
;
4651 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
4652 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4653 PyObject
* _resultobj
;
4655 wxBrushList
* _arg0
;
4658 PyObject
* _argo0
= 0;
4660 PyObject
* _obj1
= 0;
4661 char *_kwnames
[] = { "self","colour","style", NULL
};
4665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4668 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4669 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4670 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
4676 if (! wxColour_helper(_obj1
, &_arg1
))
4680 wxPy_BEGIN_ALLOW_THREADS
;
4681 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
4683 wxPy_END_ALLOW_THREADS
;
4684 if (PyErr_Occurred()) return NULL
;
4686 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4687 _resultobj
= Py_BuildValue("s",_ptemp
);
4690 _resultobj
= Py_None
;
4695 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
4696 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4697 PyObject
* _resultobj
;
4698 wxBrushList
* _arg0
;
4700 PyObject
* _argo0
= 0;
4701 PyObject
* _argo1
= 0;
4702 char *_kwnames
[] = { "self","brush", NULL
};
4705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
4708 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4709 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4710 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
4715 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4716 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
4722 wxPy_BEGIN_ALLOW_THREADS
;
4723 wxBrushList_RemoveBrush(_arg0
,_arg1
);
4725 wxPy_END_ALLOW_THREADS
;
4726 if (PyErr_Occurred()) return NULL
;
4727 } Py_INCREF(Py_None
);
4728 _resultobj
= Py_None
;
4732 static void *SwigwxDCTowxObject(void *ptr
) {
4736 dest
= (wxObject
*) src
;
4737 return (void *) dest
;
4740 #define delete_wxDC(_swigobj) (delete _swigobj)
4741 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4742 PyObject
* _resultobj
;
4744 PyObject
* _argo0
= 0;
4745 char *_kwnames
[] = { "self", NULL
};
4748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
4751 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4752 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
4758 wxPy_BEGIN_ALLOW_THREADS
;
4761 wxPy_END_ALLOW_THREADS
;
4762 if (PyErr_Occurred()) return NULL
;
4763 } Py_INCREF(Py_None
);
4764 _resultobj
= Py_None
;
4768 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
4769 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4770 PyObject
* _resultobj
;
4772 PyObject
* _argo0
= 0;
4773 char *_kwnames
[] = { "self", NULL
};
4776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
4779 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4780 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
4786 wxPy_BEGIN_ALLOW_THREADS
;
4787 wxDC_BeginDrawing(_arg0
);
4789 wxPy_END_ALLOW_THREADS
;
4790 if (PyErr_Occurred()) return NULL
;
4791 } Py_INCREF(Py_None
);
4792 _resultobj
= Py_None
;
4796 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4797 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4798 PyObject
* _resultobj
;
4808 int _arg8
= (int ) wxCOPY
;
4809 int _arg9
= (int ) FALSE
;
4810 PyObject
* _argo0
= 0;
4811 PyObject
* _argo5
= 0;
4812 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
4815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
4818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
4825 if (_argo5
== Py_None
) { _arg5
= NULL
; }
4826 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
4827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
4832 wxPy_BEGIN_ALLOW_THREADS
;
4833 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
4835 wxPy_END_ALLOW_THREADS
;
4836 if (PyErr_Occurred()) return NULL
;
4837 } _resultobj
= Py_BuildValue("i",_result
);
4841 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
4842 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4843 PyObject
* _resultobj
;
4845 PyObject
* _argo0
= 0;
4846 char *_kwnames
[] = { "self", NULL
};
4849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
4852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
4859 wxPy_BEGIN_ALLOW_THREADS
;
4862 wxPy_END_ALLOW_THREADS
;
4863 if (PyErr_Occurred()) return NULL
;
4864 } Py_INCREF(Py_None
);
4865 _resultobj
= Py_None
;
4869 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
4870 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4871 PyObject
* _resultobj
;
4875 PyObject
* _argo0
= 0;
4876 char *_kwnames
[] = { "self","x","y", NULL
};
4879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
4889 wxPy_BEGIN_ALLOW_THREADS
;
4890 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
4892 wxPy_END_ALLOW_THREADS
;
4893 if (PyErr_Occurred()) return NULL
;
4894 } Py_INCREF(Py_None
);
4895 _resultobj
= Py_None
;
4899 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
4900 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4901 PyObject
* _resultobj
;
4903 PyObject
* _argo0
= 0;
4904 char *_kwnames
[] = { "self", NULL
};
4907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
4910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
4917 wxPy_BEGIN_ALLOW_THREADS
;
4918 wxDC_DestroyClippingRegion(_arg0
);
4920 wxPy_END_ALLOW_THREADS
;
4921 if (PyErr_Occurred()) return NULL
;
4922 } Py_INCREF(Py_None
);
4923 _resultobj
= Py_None
;
4927 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
4928 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4929 PyObject
* _resultobj
;
4933 PyObject
* _argo0
= 0;
4934 char *_kwnames
[] = { "self","x", NULL
};
4937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
4940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
4947 wxPy_BEGIN_ALLOW_THREADS
;
4948 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
4950 wxPy_END_ALLOW_THREADS
;
4951 if (PyErr_Occurred()) return NULL
;
4952 } _resultobj
= Py_BuildValue("l",_result
);
4956 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
4957 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4958 PyObject
* _resultobj
;
4962 PyObject
* _argo0
= 0;
4963 char *_kwnames
[] = { "self","x", NULL
};
4966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
4969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
4976 wxPy_BEGIN_ALLOW_THREADS
;
4977 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
4979 wxPy_END_ALLOW_THREADS
;
4980 if (PyErr_Occurred()) return NULL
;
4981 } _resultobj
= Py_BuildValue("l",_result
);
4985 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
4986 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4987 PyObject
* _resultobj
;
4991 PyObject
* _argo0
= 0;
4992 char *_kwnames
[] = { "self","y", NULL
};
4995 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
4998 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4999 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5000 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5005 wxPy_BEGIN_ALLOW_THREADS
;
5006 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
5008 wxPy_END_ALLOW_THREADS
;
5009 if (PyErr_Occurred()) return NULL
;
5010 } _resultobj
= Py_BuildValue("l",_result
);
5014 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5015 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5016 PyObject
* _resultobj
;
5020 PyObject
* _argo0
= 0;
5021 char *_kwnames
[] = { "self","y", NULL
};
5024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
5027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5034 wxPy_BEGIN_ALLOW_THREADS
;
5035 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5037 wxPy_END_ALLOW_THREADS
;
5038 if (PyErr_Occurred()) return NULL
;
5039 } _resultobj
= Py_BuildValue("l",_result
);
5043 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5044 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5045 PyObject
* _resultobj
;
5053 PyObject
* _argo0
= 0;
5054 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5060 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5061 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5067 wxPy_BEGIN_ALLOW_THREADS
;
5068 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5070 wxPy_END_ALLOW_THREADS
;
5071 if (PyErr_Occurred()) return NULL
;
5072 } Py_INCREF(Py_None
);
5073 _resultobj
= Py_None
;
5077 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5078 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5079 PyObject
* _resultobj
;
5084 PyObject
* _argo0
= 0;
5085 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5098 wxPy_BEGIN_ALLOW_THREADS
;
5099 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
5101 wxPy_END_ALLOW_THREADS
;
5102 if (PyErr_Occurred()) return NULL
;
5103 } Py_INCREF(Py_None
);
5104 _resultobj
= Py_None
;
5108 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5109 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5110 PyObject
* _resultobj
;
5116 PyObject
* _argo0
= 0;
5117 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5130 wxPy_BEGIN_ALLOW_THREADS
;
5131 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5133 wxPy_END_ALLOW_THREADS
;
5134 if (PyErr_Occurred()) return NULL
;
5135 } Py_INCREF(Py_None
);
5136 _resultobj
= Py_None
;
5140 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5141 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5142 PyObject
* _resultobj
;
5150 PyObject
* _argo0
= 0;
5151 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
5154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5157 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5158 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
5164 wxPy_BEGIN_ALLOW_THREADS
;
5165 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5167 wxPy_END_ALLOW_THREADS
;
5168 if (PyErr_Occurred()) return NULL
;
5169 } Py_INCREF(Py_None
);
5170 _resultobj
= Py_None
;
5174 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
5175 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5176 PyObject
* _resultobj
;
5181 PyObject
* _argo0
= 0;
5182 PyObject
* _argo1
= 0;
5183 char *_kwnames
[] = { "self","icon","x","y", NULL
};
5186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
5189 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5190 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5196 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5197 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
5198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5203 wxPy_BEGIN_ALLOW_THREADS
;
5204 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
5206 wxPy_END_ALLOW_THREADS
;
5207 if (PyErr_Occurred()) return NULL
;
5208 } Py_INCREF(Py_None
);
5209 _resultobj
= Py_None
;
5213 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5214 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5215 PyObject
* _resultobj
;
5221 PyObject
* _argo0
= 0;
5222 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
5225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5228 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5229 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5235 wxPy_BEGIN_ALLOW_THREADS
;
5236 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5238 wxPy_END_ALLOW_THREADS
;
5239 if (PyErr_Occurred()) return NULL
;
5240 } Py_INCREF(Py_None
);
5241 _resultobj
= Py_None
;
5245 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5246 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5247 PyObject
* _resultobj
;
5251 long _arg3
= (long ) 0;
5252 long _arg4
= (long ) 0;
5253 PyObject
* _argo0
= 0;
5255 PyObject
* _obj2
= 0;
5256 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
5259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
5262 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5263 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5270 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5271 if (_arg2
== NULL
) {
5279 wxPy_BEGIN_ALLOW_THREADS
;
5280 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5282 wxPy_END_ALLOW_THREADS
;
5283 if (PyErr_Occurred()) return NULL
;
5284 } Py_INCREF(Py_None
);
5285 _resultobj
= Py_None
;
5292 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5293 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5294 PyObject
* _resultobj
;
5298 long _arg3
= (long ) 0;
5299 long _arg4
= (long ) 0;
5300 int _arg5
= (int ) wxODDEVEN_RULE
;
5301 PyObject
* _argo0
= 0;
5303 PyObject
* _obj2
= 0;
5304 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
5307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
5310 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5311 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5312 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5318 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5319 if (_arg2
== NULL
) {
5327 wxPy_BEGIN_ALLOW_THREADS
;
5328 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5330 wxPy_END_ALLOW_THREADS
;
5331 if (PyErr_Occurred()) return NULL
;
5332 } Py_INCREF(Py_None
);
5333 _resultobj
= Py_None
;
5340 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
5341 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5342 PyObject
* _resultobj
;
5346 PyObject
* _argo0
= 0;
5347 char *_kwnames
[] = { "self","x","y", NULL
};
5350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
5360 wxPy_BEGIN_ALLOW_THREADS
;
5361 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
5363 wxPy_END_ALLOW_THREADS
;
5364 if (PyErr_Occurred()) return NULL
;
5365 } Py_INCREF(Py_None
);
5366 _resultobj
= Py_None
;
5370 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5371 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5372 PyObject
* _resultobj
;
5378 PyObject
* _argo0
= 0;
5379 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
5392 wxPy_BEGIN_ALLOW_THREADS
;
5393 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5395 wxPy_END_ALLOW_THREADS
;
5396 if (PyErr_Occurred()) return NULL
;
5397 } Py_INCREF(Py_None
);
5398 _resultobj
= Py_None
;
5402 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5403 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5404 PyObject
* _resultobj
;
5410 PyObject
* _argo0
= 0;
5411 PyObject
* _obj1
= 0;
5412 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
5415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5425 #if PYTHON_API_VERSION >= 1009
5426 char* tmpPtr
; int tmpSize
;
5427 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5428 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5431 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5433 _arg1
= new wxString(tmpPtr
, tmpSize
);
5435 if (!PyString_Check(_obj1
)) {
5436 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5439 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5443 wxPy_BEGIN_ALLOW_THREADS
;
5444 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5446 wxPy_END_ALLOW_THREADS
;
5447 if (PyErr_Occurred()) return NULL
;
5448 } Py_INCREF(Py_None
);
5449 _resultobj
= Py_None
;
5457 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5458 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5459 PyObject
* _resultobj
;
5465 long _arg5
= (long ) 20;
5466 PyObject
* _argo0
= 0;
5467 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
5470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
5473 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5474 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5480 wxPy_BEGIN_ALLOW_THREADS
;
5481 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5483 wxPy_END_ALLOW_THREADS
;
5484 if (PyErr_Occurred()) return NULL
;
5485 } Py_INCREF(Py_None
);
5486 _resultobj
= Py_None
;
5490 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5491 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5492 PyObject
* _resultobj
;
5496 PyObject
* _argo0
= 0;
5498 PyObject
* _obj2
= 0;
5499 char *_kwnames
[] = { "self","points", NULL
};
5502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
5505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5513 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5514 if (_arg2
== NULL
) {
5522 wxPy_BEGIN_ALLOW_THREADS
;
5523 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
5525 wxPy_END_ALLOW_THREADS
;
5526 if (PyErr_Occurred()) return NULL
;
5527 } Py_INCREF(Py_None
);
5528 _resultobj
= Py_None
;
5535 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5536 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5537 PyObject
* _resultobj
;
5542 PyObject
* _argo0
= 0;
5543 PyObject
* _obj1
= 0;
5544 char *_kwnames
[] = { "self","text","x","y", NULL
};
5547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5557 #if PYTHON_API_VERSION >= 1009
5558 char* tmpPtr
; int tmpSize
;
5559 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5560 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5563 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5565 _arg1
= new wxString(tmpPtr
, tmpSize
);
5567 if (!PyString_Check(_obj1
)) {
5568 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5571 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5575 wxPy_BEGIN_ALLOW_THREADS
;
5576 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
5578 wxPy_END_ALLOW_THREADS
;
5579 if (PyErr_Occurred()) return NULL
;
5580 } Py_INCREF(Py_None
);
5581 _resultobj
= Py_None
;
5589 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5590 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5591 PyObject
* _resultobj
;
5593 PyObject
* _argo0
= 0;
5594 char *_kwnames
[] = { "self", NULL
};
5597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
5600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5607 wxPy_BEGIN_ALLOW_THREADS
;
5610 wxPy_END_ALLOW_THREADS
;
5611 if (PyErr_Occurred()) return NULL
;
5612 } Py_INCREF(Py_None
);
5613 _resultobj
= Py_None
;
5617 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
5618 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5619 PyObject
* _resultobj
;
5621 PyObject
* _argo0
= 0;
5622 char *_kwnames
[] = { "self", NULL
};
5625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
5628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5635 wxPy_BEGIN_ALLOW_THREADS
;
5636 wxDC_EndDrawing(_arg0
);
5638 wxPy_END_ALLOW_THREADS
;
5639 if (PyErr_Occurred()) return NULL
;
5640 } Py_INCREF(Py_None
);
5641 _resultobj
= Py_None
;
5645 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
5646 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5647 PyObject
* _resultobj
;
5649 PyObject
* _argo0
= 0;
5650 char *_kwnames
[] = { "self", NULL
};
5653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
5656 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5657 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
5663 wxPy_BEGIN_ALLOW_THREADS
;
5664 wxDC_EndPage(_arg0
);
5666 wxPy_END_ALLOW_THREADS
;
5667 if (PyErr_Occurred()) return NULL
;
5668 } Py_INCREF(Py_None
);
5669 _resultobj
= Py_None
;
5673 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5674 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5675 PyObject
* _resultobj
;
5680 int _arg4
= (int ) wxFLOOD_SURFACE
;
5681 PyObject
* _argo0
= 0;
5683 PyObject
* _obj3
= 0;
5684 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
5687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
5690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
5698 if (! wxColour_helper(_obj3
, &_arg3
))
5702 wxPy_BEGIN_ALLOW_THREADS
;
5703 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
5705 wxPy_END_ALLOW_THREADS
;
5706 if (PyErr_Occurred()) return NULL
;
5707 } Py_INCREF(Py_None
);
5708 _resultobj
= Py_None
;
5712 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
5713 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5714 PyObject
* _resultobj
;
5717 PyObject
* _argo0
= 0;
5718 char *_kwnames
[] = { "self", NULL
};
5722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
5725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
5732 wxPy_BEGIN_ALLOW_THREADS
;
5733 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
5734 _result
= (wxBrush
*) &_result_ref
;
5736 wxPy_END_ALLOW_THREADS
;
5737 if (PyErr_Occurred()) return NULL
;
5739 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5740 _resultobj
= Py_BuildValue("s",_ptemp
);
5743 _resultobj
= Py_None
;
5748 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
5749 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5750 PyObject
* _resultobj
;
5753 PyObject
* _argo0
= 0;
5754 char *_kwnames
[] = { "self", NULL
};
5758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
5761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
5768 wxPy_BEGIN_ALLOW_THREADS
;
5769 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
5770 _result
= (wxBrush
*) &_result_ref
;
5772 wxPy_END_ALLOW_THREADS
;
5773 if (PyErr_Occurred()) return NULL
;
5775 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5776 _resultobj
= Py_BuildValue("s",_ptemp
);
5779 _resultobj
= Py_None
;
5784 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
5785 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5786 PyObject
* _resultobj
;
5789 PyObject
* _argo0
= 0;
5790 char *_kwnames
[] = { "self", NULL
};
5793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
5796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
5803 wxPy_BEGIN_ALLOW_THREADS
;
5804 _result
= (long )wxDC_GetCharHeight(_arg0
);
5806 wxPy_END_ALLOW_THREADS
;
5807 if (PyErr_Occurred()) return NULL
;
5808 } _resultobj
= Py_BuildValue("l",_result
);
5812 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
5813 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5814 PyObject
* _resultobj
;
5817 PyObject
* _argo0
= 0;
5818 char *_kwnames
[] = { "self", NULL
};
5821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
5824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
5831 wxPy_BEGIN_ALLOW_THREADS
;
5832 _result
= (long )wxDC_GetCharWidth(_arg0
);
5834 wxPy_END_ALLOW_THREADS
;
5835 if (PyErr_Occurred()) return NULL
;
5836 } _resultobj
= Py_BuildValue("l",_result
);
5840 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5841 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5842 PyObject
* _resultobj
;
5852 PyObject
* _argo0
= 0;
5853 char *_kwnames
[] = { "self", NULL
};
5868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
5871 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5872 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
5878 wxPy_BEGIN_ALLOW_THREADS
;
5879 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5881 wxPy_END_ALLOW_THREADS
;
5882 if (PyErr_Occurred()) return NULL
;
5883 } Py_INCREF(Py_None
);
5884 _resultobj
= Py_None
;
5887 o
= PyInt_FromLong((long) (*_arg1
));
5888 _resultobj
= t_output_helper(_resultobj
, o
);
5892 o
= PyInt_FromLong((long) (*_arg2
));
5893 _resultobj
= t_output_helper(_resultobj
, o
);
5897 o
= PyInt_FromLong((long) (*_arg3
));
5898 _resultobj
= t_output_helper(_resultobj
, o
);
5902 o
= PyInt_FromLong((long) (*_arg4
));
5903 _resultobj
= t_output_helper(_resultobj
, o
);
5908 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
5909 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5910 PyObject
* _resultobj
;
5913 PyObject
* _argo0
= 0;
5914 char *_kwnames
[] = { "self", NULL
};
5918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
5921 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5922 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5923 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
5928 wxPy_BEGIN_ALLOW_THREADS
;
5929 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
5930 _result
= (wxFont
*) &_result_ref
;
5932 wxPy_END_ALLOW_THREADS
;
5933 if (PyErr_Occurred()) return NULL
;
5935 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
5936 _resultobj
= Py_BuildValue("s",_ptemp
);
5939 _resultobj
= Py_None
;
5944 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
5945 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5946 PyObject
* _resultobj
;
5949 PyObject
* _argo0
= 0;
5950 char *_kwnames
[] = { "self", NULL
};
5953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
5956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
5963 wxPy_BEGIN_ALLOW_THREADS
;
5964 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
5966 wxPy_END_ALLOW_THREADS
;
5967 if (PyErr_Occurred()) return NULL
;
5968 } _resultobj
= Py_BuildValue("i",_result
);
5972 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
5973 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5974 PyObject
* _resultobj
;
5980 PyObject
* _argo0
= 0;
5981 char *_kwnames
[] = { "self", NULL
};
5990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
5993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
6000 wxPy_BEGIN_ALLOW_THREADS
;
6001 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
6003 wxPy_END_ALLOW_THREADS
;
6004 if (PyErr_Occurred()) return NULL
;
6005 } Py_INCREF(Py_None
);
6006 _resultobj
= Py_None
;
6009 o
= PyFloat_FromDouble((double) (*_arg1
));
6010 _resultobj
= t_output_helper(_resultobj
, o
);
6014 o
= PyFloat_FromDouble((double) (*_arg2
));
6015 _resultobj
= t_output_helper(_resultobj
, o
);
6020 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6021 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6022 PyObject
* _resultobj
;
6025 PyObject
* _argo0
= 0;
6026 char *_kwnames
[] = { "self", NULL
};
6029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
6032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6039 wxPy_BEGIN_ALLOW_THREADS
;
6040 _result
= (int )wxDC_GetMapMode(_arg0
);
6042 wxPy_END_ALLOW_THREADS
;
6043 if (PyErr_Occurred()) return NULL
;
6044 } _resultobj
= Py_BuildValue("i",_result
);
6048 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6049 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6050 PyObject
* _resultobj
;
6053 PyObject
* _argo0
= 0;
6054 char *_kwnames
[] = { "self", NULL
};
6057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
6060 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6061 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6067 wxPy_BEGIN_ALLOW_THREADS
;
6068 _result
= (bool )wxDC_GetOptimization(_arg0
);
6070 wxPy_END_ALLOW_THREADS
;
6071 if (PyErr_Occurred()) return NULL
;
6072 } _resultobj
= Py_BuildValue("i",_result
);
6076 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6077 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6078 PyObject
* _resultobj
;
6081 PyObject
* _argo0
= 0;
6082 char *_kwnames
[] = { "self", NULL
};
6086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
6089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6096 wxPy_BEGIN_ALLOW_THREADS
;
6097 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
6098 _result
= (wxPen
*) &_result_ref
;
6100 wxPy_END_ALLOW_THREADS
;
6101 if (PyErr_Occurred()) return NULL
;
6103 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6104 _resultobj
= Py_BuildValue("s",_ptemp
);
6107 _resultobj
= Py_None
;
6112 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
6113 wxColour
* wc
= new wxColour();
6114 self
->GetPixel(x
, y
, wc
);
6117 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6118 PyObject
* _resultobj
;
6123 PyObject
* _argo0
= 0;
6124 char *_kwnames
[] = { "self","x","y", NULL
};
6128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6138 wxPy_BEGIN_ALLOW_THREADS
;
6139 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
6141 wxPy_END_ALLOW_THREADS
;
6142 if (PyErr_Occurred()) return NULL
;
6144 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6145 _resultobj
= Py_BuildValue("s",_ptemp
);
6148 _resultobj
= Py_None
;
6153 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6154 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6155 PyObject
* _resultobj
;
6161 PyObject
* _argo0
= 0;
6162 char *_kwnames
[] = { "self", NULL
};
6171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
6174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6181 wxPy_BEGIN_ALLOW_THREADS
;
6182 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
6184 wxPy_END_ALLOW_THREADS
;
6185 if (PyErr_Occurred()) return NULL
;
6186 } Py_INCREF(Py_None
);
6187 _resultobj
= Py_None
;
6190 o
= PyInt_FromLong((long) (*_arg1
));
6191 _resultobj
= t_output_helper(_resultobj
, o
);
6195 o
= PyInt_FromLong((long) (*_arg2
));
6196 _resultobj
= t_output_helper(_resultobj
, o
);
6201 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6202 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6203 PyObject
* _resultobj
;
6206 PyObject
* _argo0
= 0;
6207 char *_kwnames
[] = { "self", NULL
};
6211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
6214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6221 wxPy_BEGIN_ALLOW_THREADS
;
6222 _result
= new wxSize (wxDC_GetSize(_arg0
));
6224 wxPy_END_ALLOW_THREADS
;
6225 if (PyErr_Occurred()) return NULL
;
6226 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6227 _resultobj
= Py_BuildValue("s",_ptemp
);
6231 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6232 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6233 PyObject
* _resultobj
;
6236 PyObject
* _argo0
= 0;
6237 char *_kwnames
[] = { "self", NULL
};
6241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
6244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6251 wxPy_BEGIN_ALLOW_THREADS
;
6252 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
6254 wxPy_END_ALLOW_THREADS
;
6255 if (PyErr_Occurred()) return NULL
;
6256 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6257 _resultobj
= Py_BuildValue("s",_ptemp
);
6261 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
6262 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6263 PyObject
* _resultobj
;
6266 PyObject
* _argo0
= 0;
6267 char *_kwnames
[] = { "self", NULL
};
6271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
6274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
6281 wxPy_BEGIN_ALLOW_THREADS
;
6282 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
6284 wxPy_END_ALLOW_THREADS
;
6285 if (PyErr_Occurred()) return NULL
;
6286 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6287 _resultobj
= Py_BuildValue("s",_ptemp
);
6291 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
6292 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6293 PyObject
* _resultobj
;
6300 PyObject
* _argo0
= 0;
6301 PyObject
* _obj1
= 0;
6302 char *_kwnames
[] = { "self","string", NULL
};
6311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
6314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6321 #if PYTHON_API_VERSION >= 1009
6322 char* tmpPtr
; int tmpSize
;
6323 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6324 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6327 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6329 _arg1
= new wxString(tmpPtr
, tmpSize
);
6331 if (!PyString_Check(_obj1
)) {
6332 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6335 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6339 wxPy_BEGIN_ALLOW_THREADS
;
6340 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
6342 wxPy_END_ALLOW_THREADS
;
6343 if (PyErr_Occurred()) return NULL
;
6344 } Py_INCREF(Py_None
);
6345 _resultobj
= Py_None
;
6348 o
= PyInt_FromLong((long) (*_arg2
));
6349 _resultobj
= t_output_helper(_resultobj
, o
);
6353 o
= PyInt_FromLong((long) (*_arg3
));
6354 _resultobj
= t_output_helper(_resultobj
, o
);
6363 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6364 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6365 PyObject
* _resultobj
;
6376 wxFont
* _arg6
= (wxFont
*) NULL
;
6377 PyObject
* _argo0
= 0;
6378 PyObject
* _obj1
= 0;
6379 PyObject
* _argo6
= 0;
6380 char *_kwnames
[] = { "self","string","font", NULL
};
6395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
6398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
6405 #if PYTHON_API_VERSION >= 1009
6406 char* tmpPtr
; int tmpSize
;
6407 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6408 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6411 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6413 _arg1
= new wxString(tmpPtr
, tmpSize
);
6415 if (!PyString_Check(_obj1
)) {
6416 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6419 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6423 if (_argo6
== Py_None
) { _arg6
= NULL
; }
6424 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
6425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6430 wxPy_BEGIN_ALLOW_THREADS
;
6431 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6433 wxPy_END_ALLOW_THREADS
;
6434 if (PyErr_Occurred()) return NULL
;
6435 } Py_INCREF(Py_None
);
6436 _resultobj
= Py_None
;
6439 o
= PyInt_FromLong((long) (*_arg2
));
6440 _resultobj
= t_output_helper(_resultobj
, o
);
6444 o
= PyInt_FromLong((long) (*_arg3
));
6445 _resultobj
= t_output_helper(_resultobj
, o
);
6449 o
= PyInt_FromLong((long) (*_arg4
));
6450 _resultobj
= t_output_helper(_resultobj
, o
);
6454 o
= PyInt_FromLong((long) (*_arg5
));
6455 _resultobj
= t_output_helper(_resultobj
, o
);
6464 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6465 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6466 PyObject
* _resultobj
;
6469 PyObject
* _argo0
= 0;
6470 char *_kwnames
[] = { "self", NULL
};
6474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
6477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6484 wxPy_BEGIN_ALLOW_THREADS
;
6485 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
6487 wxPy_END_ALLOW_THREADS
;
6488 if (PyErr_Occurred()) return NULL
;
6489 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6490 _resultobj
= Py_BuildValue("s",_ptemp
);
6494 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6495 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6496 PyObject
* _resultobj
;
6502 PyObject
* _argo0
= 0;
6503 char *_kwnames
[] = { "self", NULL
};
6512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
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_GetUserScale. Expected _wxDC_p.");
6522 wxPy_BEGIN_ALLOW_THREADS
;
6523 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
6525 wxPy_END_ALLOW_THREADS
;
6526 if (PyErr_Occurred()) return NULL
;
6527 } Py_INCREF(Py_None
);
6528 _resultobj
= Py_None
;
6531 o
= PyFloat_FromDouble((double) (*_arg1
));
6532 _resultobj
= t_output_helper(_resultobj
, o
);
6536 o
= PyFloat_FromDouble((double) (*_arg2
));
6537 _resultobj
= t_output_helper(_resultobj
, o
);
6542 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6543 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6544 PyObject
* _resultobj
;
6548 PyObject
* _argo0
= 0;
6549 char *_kwnames
[] = { "self","x", NULL
};
6552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
6555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6562 wxPy_BEGIN_ALLOW_THREADS
;
6563 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
6565 wxPy_END_ALLOW_THREADS
;
6566 if (PyErr_Occurred()) return NULL
;
6567 } _resultobj
= Py_BuildValue("l",_result
);
6571 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6572 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6573 PyObject
* _resultobj
;
6577 PyObject
* _argo0
= 0;
6578 char *_kwnames
[] = { "self","x", NULL
};
6581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
6584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6591 wxPy_BEGIN_ALLOW_THREADS
;
6592 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
6594 wxPy_END_ALLOW_THREADS
;
6595 if (PyErr_Occurred()) return NULL
;
6596 } _resultobj
= Py_BuildValue("l",_result
);
6600 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
6601 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6602 PyObject
* _resultobj
;
6606 PyObject
* _argo0
= 0;
6607 char *_kwnames
[] = { "self","y", NULL
};
6610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
6613 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6614 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
6620 wxPy_BEGIN_ALLOW_THREADS
;
6621 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
6623 wxPy_END_ALLOW_THREADS
;
6624 if (PyErr_Occurred()) return NULL
;
6625 } _resultobj
= Py_BuildValue("l",_result
);
6629 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
6630 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6631 PyObject
* _resultobj
;
6635 PyObject
* _argo0
= 0;
6636 char *_kwnames
[] = { "self","y", NULL
};
6639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
6642 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6643 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6644 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
6649 wxPy_BEGIN_ALLOW_THREADS
;
6650 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
6652 wxPy_END_ALLOW_THREADS
;
6653 if (PyErr_Occurred()) return NULL
;
6654 } _resultobj
= Py_BuildValue("l",_result
);
6658 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
6659 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6660 PyObject
* _resultobj
;
6663 PyObject
* _argo0
= 0;
6664 char *_kwnames
[] = { "self", NULL
};
6667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
6670 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6671 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
6677 wxPy_BEGIN_ALLOW_THREADS
;
6678 _result
= (long )wxDC_MaxX(_arg0
);
6680 wxPy_END_ALLOW_THREADS
;
6681 if (PyErr_Occurred()) return NULL
;
6682 } _resultobj
= Py_BuildValue("l",_result
);
6686 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
6687 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6688 PyObject
* _resultobj
;
6691 PyObject
* _argo0
= 0;
6692 char *_kwnames
[] = { "self", NULL
};
6695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
6698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
6705 wxPy_BEGIN_ALLOW_THREADS
;
6706 _result
= (long )wxDC_MaxY(_arg0
);
6708 wxPy_END_ALLOW_THREADS
;
6709 if (PyErr_Occurred()) return NULL
;
6710 } _resultobj
= Py_BuildValue("l",_result
);
6714 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
6715 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6716 PyObject
* _resultobj
;
6719 PyObject
* _argo0
= 0;
6720 char *_kwnames
[] = { "self", NULL
};
6723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
6726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
6733 wxPy_BEGIN_ALLOW_THREADS
;
6734 _result
= (long )wxDC_MinX(_arg0
);
6736 wxPy_END_ALLOW_THREADS
;
6737 if (PyErr_Occurred()) return NULL
;
6738 } _resultobj
= Py_BuildValue("l",_result
);
6742 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
6743 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6744 PyObject
* _resultobj
;
6747 PyObject
* _argo0
= 0;
6748 char *_kwnames
[] = { "self", NULL
};
6751 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
6754 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6755 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
6761 wxPy_BEGIN_ALLOW_THREADS
;
6762 _result
= (long )wxDC_MinY(_arg0
);
6764 wxPy_END_ALLOW_THREADS
;
6765 if (PyErr_Occurred()) return NULL
;
6766 } _resultobj
= Py_BuildValue("l",_result
);
6770 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
6771 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6772 PyObject
* _resultobj
;
6775 PyObject
* _argo0
= 0;
6776 char *_kwnames
[] = { "self", NULL
};
6779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
6782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
6789 wxPy_BEGIN_ALLOW_THREADS
;
6790 _result
= (bool )wxDC_Ok(_arg0
);
6792 wxPy_END_ALLOW_THREADS
;
6793 if (PyErr_Occurred()) return NULL
;
6794 } _resultobj
= Py_BuildValue("i",_result
);
6798 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
6799 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6800 PyObject
* _resultobj
;
6804 PyObject
* _argo0
= 0;
6805 char *_kwnames
[] = { "self","x","y", NULL
};
6808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
6818 wxPy_BEGIN_ALLOW_THREADS
;
6819 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
6821 wxPy_END_ALLOW_THREADS
;
6822 if (PyErr_Occurred()) return NULL
;
6823 } Py_INCREF(Py_None
);
6824 _resultobj
= Py_None
;
6828 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
6829 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6830 PyObject
* _resultobj
;
6833 PyObject
* _argo0
= 0;
6834 PyObject
* _argo1
= 0;
6835 char *_kwnames
[] = { "self","brush", NULL
};
6838 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
6841 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6842 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6843 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
6848 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6849 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
6855 wxPy_BEGIN_ALLOW_THREADS
;
6856 wxDC_SetBackground(_arg0
,*_arg1
);
6858 wxPy_END_ALLOW_THREADS
;
6859 if (PyErr_Occurred()) return NULL
;
6860 } Py_INCREF(Py_None
);
6861 _resultobj
= Py_None
;
6865 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
6866 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6867 PyObject
* _resultobj
;
6870 PyObject
* _argo0
= 0;
6871 char *_kwnames
[] = { "self","mode", NULL
};
6874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
6877 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6878 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
6884 wxPy_BEGIN_ALLOW_THREADS
;
6885 wxDC_SetBackgroundMode(_arg0
,_arg1
);
6887 wxPy_END_ALLOW_THREADS
;
6888 if (PyErr_Occurred()) return NULL
;
6889 } Py_INCREF(Py_None
);
6890 _resultobj
= Py_None
;
6894 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6895 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6896 PyObject
* _resultobj
;
6902 PyObject
* _argo0
= 0;
6903 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
6916 wxPy_BEGIN_ALLOW_THREADS
;
6917 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6919 wxPy_END_ALLOW_THREADS
;
6920 if (PyErr_Occurred()) return NULL
;
6921 } Py_INCREF(Py_None
);
6922 _resultobj
= Py_None
;
6926 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
6927 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6928 PyObject
* _resultobj
;
6931 PyObject
* _argo0
= 0;
6932 PyObject
* _argo1
= 0;
6933 char *_kwnames
[] = { "self","colourMap", NULL
};
6936 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
6939 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6940 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6941 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
6946 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6947 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
6948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
6953 wxPy_BEGIN_ALLOW_THREADS
;
6954 wxDC_SetPalette(_arg0
,*_arg1
);
6956 wxPy_END_ALLOW_THREADS
;
6957 if (PyErr_Occurred()) return NULL
;
6958 } Py_INCREF(Py_None
);
6959 _resultobj
= Py_None
;
6963 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
6964 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6965 PyObject
* _resultobj
;
6968 PyObject
* _argo0
= 0;
6969 PyObject
* _argo1
= 0;
6970 char *_kwnames
[] = { "self","brush", NULL
};
6973 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
6976 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6977 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6978 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
6983 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6984 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
6990 wxPy_BEGIN_ALLOW_THREADS
;
6991 wxDC_SetBrush(_arg0
,*_arg1
);
6993 wxPy_END_ALLOW_THREADS
;
6994 if (PyErr_Occurred()) return NULL
;
6995 } Py_INCREF(Py_None
);
6996 _resultobj
= Py_None
;
7000 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7001 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7002 PyObject
* _resultobj
;
7005 PyObject
* _argo0
= 0;
7006 PyObject
* _argo1
= 0;
7007 char *_kwnames
[] = { "self","font", NULL
};
7010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
7013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7020 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7021 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
7022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7027 wxPy_BEGIN_ALLOW_THREADS
;
7028 wxDC_SetFont(_arg0
,*_arg1
);
7030 wxPy_END_ALLOW_THREADS
;
7031 if (PyErr_Occurred()) return NULL
;
7032 } Py_INCREF(Py_None
);
7033 _resultobj
= Py_None
;
7037 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7038 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7039 PyObject
* _resultobj
;
7042 PyObject
* _argo0
= 0;
7043 char *_kwnames
[] = { "self","function", NULL
};
7046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7056 wxPy_BEGIN_ALLOW_THREADS
;
7057 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7059 wxPy_END_ALLOW_THREADS
;
7060 if (PyErr_Occurred()) return NULL
;
7061 } Py_INCREF(Py_None
);
7062 _resultobj
= Py_None
;
7066 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7067 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7068 PyObject
* _resultobj
;
7072 PyObject
* _argo0
= 0;
7073 char *_kwnames
[] = { "self","x","y", NULL
};
7076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7086 wxPy_BEGIN_ALLOW_THREADS
;
7087 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7089 wxPy_END_ALLOW_THREADS
;
7090 if (PyErr_Occurred()) return NULL
;
7091 } Py_INCREF(Py_None
);
7092 _resultobj
= Py_None
;
7096 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7097 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7098 PyObject
* _resultobj
;
7101 PyObject
* _argo0
= 0;
7102 char *_kwnames
[] = { "self","mode", NULL
};
7105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
7108 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7109 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7110 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7115 wxPy_BEGIN_ALLOW_THREADS
;
7116 wxDC_SetMapMode(_arg0
,_arg1
);
7118 wxPy_END_ALLOW_THREADS
;
7119 if (PyErr_Occurred()) return NULL
;
7120 } Py_INCREF(Py_None
);
7121 _resultobj
= Py_None
;
7125 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7126 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7127 PyObject
* _resultobj
;
7130 PyObject
* _argo0
= 0;
7132 char *_kwnames
[] = { "self","optimize", NULL
};
7135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
7138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7144 _arg1
= (bool ) tempbool1
;
7146 wxPy_BEGIN_ALLOW_THREADS
;
7147 wxDC_SetOptimization(_arg0
,_arg1
);
7149 wxPy_END_ALLOW_THREADS
;
7150 if (PyErr_Occurred()) return NULL
;
7151 } Py_INCREF(Py_None
);
7152 _resultobj
= Py_None
;
7156 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7157 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7158 PyObject
* _resultobj
;
7161 PyObject
* _argo0
= 0;
7162 PyObject
* _argo1
= 0;
7163 char *_kwnames
[] = { "self","pen", NULL
};
7166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
7169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7176 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7177 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
7178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7183 wxPy_BEGIN_ALLOW_THREADS
;
7184 wxDC_SetPen(_arg0
,*_arg1
);
7186 wxPy_END_ALLOW_THREADS
;
7187 if (PyErr_Occurred()) return NULL
;
7188 } Py_INCREF(Py_None
);
7189 _resultobj
= Py_None
;
7193 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7194 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7195 PyObject
* _resultobj
;
7198 PyObject
* _argo0
= 0;
7200 PyObject
* _obj1
= 0;
7201 char *_kwnames
[] = { "self","colour", NULL
};
7204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
7207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7215 if (! wxColour_helper(_obj1
, &_arg1
))
7219 wxPy_BEGIN_ALLOW_THREADS
;
7220 wxDC_SetTextBackground(_arg0
,*_arg1
);
7222 wxPy_END_ALLOW_THREADS
;
7223 if (PyErr_Occurred()) return NULL
;
7224 } Py_INCREF(Py_None
);
7225 _resultobj
= Py_None
;
7229 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
7230 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7231 PyObject
* _resultobj
;
7234 PyObject
* _argo0
= 0;
7236 PyObject
* _obj1
= 0;
7237 char *_kwnames
[] = { "self","colour", NULL
};
7240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
7243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7251 if (! wxColour_helper(_obj1
, &_arg1
))
7255 wxPy_BEGIN_ALLOW_THREADS
;
7256 wxDC_SetTextForeground(_arg0
,*_arg1
);
7258 wxPy_END_ALLOW_THREADS
;
7259 if (PyErr_Occurred()) return NULL
;
7260 } Py_INCREF(Py_None
);
7261 _resultobj
= Py_None
;
7265 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
7266 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7267 PyObject
* _resultobj
;
7271 PyObject
* _argo0
= 0;
7272 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
7275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7278 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7279 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
7285 wxPy_BEGIN_ALLOW_THREADS
;
7286 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
7288 wxPy_END_ALLOW_THREADS
;
7289 if (PyErr_Occurred()) return NULL
;
7290 } Py_INCREF(Py_None
);
7291 _resultobj
= Py_None
;
7295 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
7296 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7297 PyObject
* _resultobj
;
7301 PyObject
* _argo0
= 0;
7302 PyObject
* _obj1
= 0;
7303 char *_kwnames
[] = { "self","message", NULL
};
7306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
7309 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7310 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7316 #if PYTHON_API_VERSION >= 1009
7317 char* tmpPtr
; int tmpSize
;
7318 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7319 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7322 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7324 _arg1
= new wxString(tmpPtr
, tmpSize
);
7326 if (!PyString_Check(_obj1
)) {
7327 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7330 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7334 wxPy_BEGIN_ALLOW_THREADS
;
7335 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
7337 wxPy_END_ALLOW_THREADS
;
7338 if (PyErr_Occurred()) return NULL
;
7339 } _resultobj
= Py_BuildValue("i",_result
);
7347 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
7348 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7349 PyObject
* _resultobj
;
7351 PyObject
* _argo0
= 0;
7352 char *_kwnames
[] = { "self", NULL
};
7355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
7358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7365 wxPy_BEGIN_ALLOW_THREADS
;
7366 wxDC_StartPage(_arg0
);
7368 wxPy_END_ALLOW_THREADS
;
7369 if (PyErr_Occurred()) return NULL
;
7370 } Py_INCREF(Py_None
);
7371 _resultobj
= Py_None
;
7375 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7376 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7377 PyObject
* _resultobj
;
7382 int _arg4
= (int ) FALSE
;
7383 PyObject
* _argo0
= 0;
7384 PyObject
* _argo1
= 0;
7385 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
7388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
7391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
7398 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7399 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
7405 wxPy_BEGIN_ALLOW_THREADS
;
7406 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7408 wxPy_END_ALLOW_THREADS
;
7409 if (PyErr_Occurred()) return NULL
;
7410 } Py_INCREF(Py_None
);
7411 _resultobj
= Py_None
;
7415 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
7416 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7417 PyObject
* _resultobj
;
7420 PyObject
* _argo0
= 0;
7421 char *_kwnames
[] = { "self", NULL
};
7424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
7427 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7428 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
7434 wxPy_BEGIN_ALLOW_THREADS
;
7435 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
7437 wxPy_END_ALLOW_THREADS
;
7438 if (PyErr_Occurred()) return NULL
;
7439 } _resultobj
= Py_BuildValue("i",_result
);
7443 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
7444 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7445 PyObject
* _resultobj
;
7448 PyObject
* _argo0
= 0;
7449 char *_kwnames
[] = { "self", NULL
};
7452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
7455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
7462 wxPy_BEGIN_ALLOW_THREADS
;
7463 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
7465 wxPy_END_ALLOW_THREADS
;
7466 if (PyErr_Occurred()) return NULL
;
7467 } _resultobj
= Py_BuildValue("i",_result
);
7471 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7472 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7473 PyObject
* _resultobj
;
7476 PyObject
* _argo0
= 0;
7477 char *_kwnames
[] = { "self", NULL
};
7480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
7483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7490 wxPy_BEGIN_ALLOW_THREADS
;
7491 _result
= (int )wxDC_GetDepth(_arg0
);
7493 wxPy_END_ALLOW_THREADS
;
7494 if (PyErr_Occurred()) return NULL
;
7495 } _resultobj
= Py_BuildValue("i",_result
);
7499 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7500 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7501 PyObject
* _resultobj
;
7504 PyObject
* _argo0
= 0;
7505 char *_kwnames
[] = { "self", NULL
};
7509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
7512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7519 wxPy_BEGIN_ALLOW_THREADS
;
7520 _result
= new wxSize (wxDC_GetPPI(_arg0
));
7522 wxPy_END_ALLOW_THREADS
;
7523 if (PyErr_Occurred()) return NULL
;
7524 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7525 _resultobj
= Py_BuildValue("s",_ptemp
);
7529 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7530 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7531 PyObject
* _resultobj
;
7537 PyObject
* _argo0
= 0;
7538 char *_kwnames
[] = { "self", NULL
};
7547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
7550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
7557 wxPy_BEGIN_ALLOW_THREADS
;
7558 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7560 wxPy_END_ALLOW_THREADS
;
7561 if (PyErr_Occurred()) return NULL
;
7562 } Py_INCREF(Py_None
);
7563 _resultobj
= Py_None
;
7566 o
= PyInt_FromLong((long) (*_arg1
));
7567 _resultobj
= t_output_helper(_resultobj
, o
);
7571 o
= PyInt_FromLong((long) (*_arg2
));
7572 _resultobj
= t_output_helper(_resultobj
, o
);
7577 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7578 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7579 PyObject
* _resultobj
;
7583 PyObject
* _argo0
= 0;
7584 char *_kwnames
[] = { "self","x","y", NULL
};
7587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7590 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7591 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7597 wxPy_BEGIN_ALLOW_THREADS
;
7598 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7600 wxPy_END_ALLOW_THREADS
;
7601 if (PyErr_Occurred()) return NULL
;
7602 } Py_INCREF(Py_None
);
7603 _resultobj
= Py_None
;
7607 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7608 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7609 PyObject
* _resultobj
;
7615 PyObject
* _argo0
= 0;
7616 char *_kwnames
[] = { "self", NULL
};
7625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
7628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7635 wxPy_BEGIN_ALLOW_THREADS
;
7636 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7638 wxPy_END_ALLOW_THREADS
;
7639 if (PyErr_Occurred()) return NULL
;
7640 } Py_INCREF(Py_None
);
7641 _resultobj
= Py_None
;
7644 o
= PyInt_FromLong((long) (*_arg1
));
7645 _resultobj
= t_output_helper(_resultobj
, o
);
7649 o
= PyInt_FromLong((long) (*_arg2
));
7650 _resultobj
= t_output_helper(_resultobj
, o
);
7655 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7656 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7657 PyObject
* _resultobj
;
7661 PyObject
* _argo0
= 0;
7664 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
7667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
7670 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7671 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7676 _arg1
= (bool ) tempbool1
;
7677 _arg2
= (bool ) tempbool2
;
7679 wxPy_BEGIN_ALLOW_THREADS
;
7680 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
7682 wxPy_END_ALLOW_THREADS
;
7683 if (PyErr_Occurred()) return NULL
;
7684 } Py_INCREF(Py_None
);
7685 _resultobj
= Py_None
;
7689 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7690 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7691 PyObject
* _resultobj
;
7695 PyObject
* _argo0
= 0;
7696 char *_kwnames
[] = { "self","x","y", NULL
};
7699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7702 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7703 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7704 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
7709 wxPy_BEGIN_ALLOW_THREADS
;
7710 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
7712 wxPy_END_ALLOW_THREADS
;
7713 if (PyErr_Occurred()) return NULL
;
7714 } Py_INCREF(Py_None
);
7715 _resultobj
= Py_None
;
7719 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
7720 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7721 PyObject
* _resultobj
;
7723 PyObject
* _argo0
= 0;
7724 char *_kwnames
[] = { "self", NULL
};
7727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
7730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
7737 wxPy_BEGIN_ALLOW_THREADS
;
7738 wxDC_ResetBoundingBox(_arg0
);
7740 wxPy_END_ALLOW_THREADS
;
7741 if (PyErr_Occurred()) return NULL
;
7742 } Py_INCREF(Py_None
);
7743 _resultobj
= Py_None
;
7747 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
7750 src
= (wxMemoryDC
*) ptr
;
7751 dest
= (wxDC
*) src
;
7752 return (void *) dest
;
7755 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
7758 src
= (wxMemoryDC
*) ptr
;
7759 dest
= (wxObject
*) src
;
7760 return (void *) dest
;
7763 #define new_wxMemoryDC() (new wxMemoryDC())
7764 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7765 PyObject
* _resultobj
;
7766 wxMemoryDC
* _result
;
7767 char *_kwnames
[] = { NULL
};
7771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
7774 wxPy_BEGIN_ALLOW_THREADS
;
7775 _result
= (wxMemoryDC
*)new_wxMemoryDC();
7777 wxPy_END_ALLOW_THREADS
;
7778 if (PyErr_Occurred()) return NULL
;
7780 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
7781 _resultobj
= Py_BuildValue("s",_ptemp
);
7784 _resultobj
= Py_None
;
7789 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
7790 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7791 PyObject
* _resultobj
;
7794 PyObject
* _argo0
= 0;
7795 PyObject
* _argo1
= 0;
7796 char *_kwnames
[] = { "self","bitmap", NULL
};
7799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
7802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
7804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
7809 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7810 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
7816 wxPy_BEGIN_ALLOW_THREADS
;
7817 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
7819 wxPy_END_ALLOW_THREADS
;
7820 if (PyErr_Occurred()) return NULL
;
7821 } Py_INCREF(Py_None
);
7822 _resultobj
= Py_None
;
7826 static void *SwigwxScreenDCTowxDC(void *ptr
) {
7829 src
= (wxScreenDC
*) ptr
;
7830 dest
= (wxDC
*) src
;
7831 return (void *) dest
;
7834 static void *SwigwxScreenDCTowxObject(void *ptr
) {
7837 src
= (wxScreenDC
*) ptr
;
7838 dest
= (wxObject
*) src
;
7839 return (void *) dest
;
7842 #define new_wxScreenDC() (new wxScreenDC())
7843 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7844 PyObject
* _resultobj
;
7845 wxScreenDC
* _result
;
7846 char *_kwnames
[] = { NULL
};
7850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
7853 wxPy_BEGIN_ALLOW_THREADS
;
7854 _result
= (wxScreenDC
*)new_wxScreenDC();
7856 wxPy_END_ALLOW_THREADS
;
7857 if (PyErr_Occurred()) return NULL
;
7859 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
7860 _resultobj
= Py_BuildValue("s",_ptemp
);
7863 _resultobj
= Py_None
;
7868 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7869 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7870 PyObject
* _resultobj
;
7874 PyObject
* _argo0
= 0;
7875 PyObject
* _argo1
= 0;
7876 char *_kwnames
[] = { "self","window", NULL
};
7879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
7882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
7889 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7890 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
7891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
7896 wxPy_BEGIN_ALLOW_THREADS
;
7897 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
7899 wxPy_END_ALLOW_THREADS
;
7900 if (PyErr_Occurred()) return NULL
;
7901 } _resultobj
= Py_BuildValue("i",_result
);
7905 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7906 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7907 PyObject
* _resultobj
;
7910 wxRect
* _arg1
= (wxRect
*) NULL
;
7911 PyObject
* _argo0
= 0;
7913 PyObject
* _obj1
= 0;
7914 char *_kwnames
[] = { "self","rect", NULL
};
7917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
7920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
7929 if (! wxRect_helper(_obj1
, &_arg1
))
7933 wxPy_BEGIN_ALLOW_THREADS
;
7934 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
7936 wxPy_END_ALLOW_THREADS
;
7937 if (PyErr_Occurred()) return NULL
;
7938 } _resultobj
= Py_BuildValue("i",_result
);
7942 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
7943 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7944 PyObject
* _resultobj
;
7947 PyObject
* _argo0
= 0;
7948 char *_kwnames
[] = { "self", NULL
};
7951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
7954 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7955 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
7961 wxPy_BEGIN_ALLOW_THREADS
;
7962 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
7964 wxPy_END_ALLOW_THREADS
;
7965 if (PyErr_Occurred()) return NULL
;
7966 } _resultobj
= Py_BuildValue("i",_result
);
7970 static void *SwigwxClientDCTowxDC(void *ptr
) {
7973 src
= (wxClientDC
*) ptr
;
7974 dest
= (wxDC
*) src
;
7975 return (void *) dest
;
7978 static void *SwigwxClientDCTowxObject(void *ptr
) {
7981 src
= (wxClientDC
*) ptr
;
7982 dest
= (wxObject
*) src
;
7983 return (void *) dest
;
7986 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
7987 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7988 PyObject
* _resultobj
;
7989 wxClientDC
* _result
;
7991 PyObject
* _argo0
= 0;
7992 char *_kwnames
[] = { "win", NULL
};
7996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
7999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8006 wxPy_BEGIN_ALLOW_THREADS
;
8007 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
8009 wxPy_END_ALLOW_THREADS
;
8010 if (PyErr_Occurred()) return NULL
;
8012 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
8013 _resultobj
= Py_BuildValue("s",_ptemp
);
8016 _resultobj
= Py_None
;
8021 static void *SwigwxPaintDCTowxDC(void *ptr
) {
8024 src
= (wxPaintDC
*) ptr
;
8025 dest
= (wxDC
*) src
;
8026 return (void *) dest
;
8029 static void *SwigwxPaintDCTowxObject(void *ptr
) {
8032 src
= (wxPaintDC
*) ptr
;
8033 dest
= (wxObject
*) src
;
8034 return (void *) dest
;
8037 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8038 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8039 PyObject
* _resultobj
;
8040 wxPaintDC
* _result
;
8042 PyObject
* _argo0
= 0;
8043 char *_kwnames
[] = { "win", NULL
};
8047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8057 wxPy_BEGIN_ALLOW_THREADS
;
8058 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8060 wxPy_END_ALLOW_THREADS
;
8061 if (PyErr_Occurred()) return NULL
;
8063 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8064 _resultobj
= Py_BuildValue("s",_ptemp
);
8067 _resultobj
= Py_None
;
8072 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8075 src
= (wxWindowDC
*) ptr
;
8076 dest
= (wxDC
*) src
;
8077 return (void *) dest
;
8080 static void *SwigwxWindowDCTowxObject(void *ptr
) {
8083 src
= (wxWindowDC
*) ptr
;
8084 dest
= (wxObject
*) src
;
8085 return (void *) dest
;
8088 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8089 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8090 PyObject
* _resultobj
;
8091 wxWindowDC
* _result
;
8093 PyObject
* _argo0
= 0;
8094 char *_kwnames
[] = { "win", NULL
};
8098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
8101 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8102 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8108 wxPy_BEGIN_ALLOW_THREADS
;
8109 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
8111 wxPy_END_ALLOW_THREADS
;
8112 if (PyErr_Occurred()) return NULL
;
8114 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
8115 _resultobj
= Py_BuildValue("s",_ptemp
);
8118 _resultobj
= Py_None
;
8123 static void *SwigwxPostScriptDCTowxDC(void *ptr
) {
8124 wxPostScriptDC
*src
;
8126 src
= (wxPostScriptDC
*) ptr
;
8127 dest
= (wxDC
*) src
;
8128 return (void *) dest
;
8131 static void *SwigwxPostScriptDCTowxObject(void *ptr
) {
8132 wxPostScriptDC
*src
;
8134 src
= (wxPostScriptDC
*) ptr
;
8135 dest
= (wxObject
*) src
;
8136 return (void *) dest
;
8139 #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2))
8140 static PyObject
*_wrap_new_wxPostScriptDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8141 PyObject
* _resultobj
;
8142 wxPostScriptDC
* _result
;
8144 bool _arg1
= (bool ) TRUE
;
8145 wxWindow
* _arg2
= (wxWindow
*) NULL
;
8146 PyObject
* _obj0
= 0;
8147 int tempbool1
= (int) TRUE
;
8148 PyObject
* _argo2
= 0;
8149 char *_kwnames
[] = { "output","interactive","win", NULL
};
8153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:new_wxPostScriptDC",_kwnames
,&_obj0
,&tempbool1
,&_argo2
))
8156 #if PYTHON_API_VERSION >= 1009
8157 char* tmpPtr
; int tmpSize
;
8158 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
8159 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8162 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
8164 _arg0
= new wxString(tmpPtr
, tmpSize
);
8166 if (!PyString_Check(_obj0
)) {
8167 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8170 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
8173 _arg1
= (bool ) tempbool1
;
8175 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8176 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
8177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p.");
8182 wxPy_BEGIN_ALLOW_THREADS
;
8183 _result
= (wxPostScriptDC
*)new_wxPostScriptDC(*_arg0
,_arg1
,_arg2
);
8185 wxPy_END_ALLOW_THREADS
;
8186 if (PyErr_Occurred()) return NULL
;
8188 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPostScriptDC_p");
8189 _resultobj
= Py_BuildValue("s",_ptemp
);
8192 _resultobj
= Py_None
;
8201 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
8204 src
= (wxPalette
*) ptr
;
8205 dest
= (wxGDIObject
*) src
;
8206 return (void *) dest
;
8209 static void *SwigwxPaletteTowxObject(void *ptr
) {
8212 src
= (wxPalette
*) ptr
;
8213 dest
= (wxObject
*) src
;
8214 return (void *) dest
;
8217 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8218 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8219 PyObject
* _resultobj
;
8220 wxPalette
* _result
;
8225 PyObject
* _obj1
= 0;
8226 PyObject
* _obj2
= 0;
8227 PyObject
* _obj3
= 0;
8228 char *_kwnames
[] = { "choices","choices","choices", NULL
};
8232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
8235 _arg1
= byte_LIST_helper(_obj1
);
8236 if (_arg1
== NULL
) {
8241 _arg2
= byte_LIST_helper(_obj2
);
8242 if (_arg2
== NULL
) {
8248 _arg3
= byte_LIST_helper(_obj3
);
8249 if (_arg3
== NULL
) {
8255 _arg0
= PyList_Size(_obj1
);
8262 wxPy_BEGIN_ALLOW_THREADS
;
8263 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
8265 wxPy_END_ALLOW_THREADS
;
8266 if (PyErr_Occurred()) return NULL
;
8268 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
8269 _resultobj
= Py_BuildValue("s",_ptemp
);
8272 _resultobj
= Py_None
;
8286 #define delete_wxPalette(_swigobj) (delete _swigobj)
8287 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8288 PyObject
* _resultobj
;
8290 PyObject
* _argo0
= 0;
8291 char *_kwnames
[] = { "self", NULL
};
8294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
8297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
8304 wxPy_BEGIN_ALLOW_THREADS
;
8305 delete_wxPalette(_arg0
);
8307 wxPy_END_ALLOW_THREADS
;
8308 if (PyErr_Occurred()) return NULL
;
8309 } Py_INCREF(Py_None
);
8310 _resultobj
= Py_None
;
8314 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
8315 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8316 PyObject
* _resultobj
;
8322 PyObject
* _argo0
= 0;
8323 char *_kwnames
[] = { "self","red","green","blue", NULL
};
8326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
8329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
8336 wxPy_BEGIN_ALLOW_THREADS
;
8337 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
8339 wxPy_END_ALLOW_THREADS
;
8340 if (PyErr_Occurred()) return NULL
;
8341 } _resultobj
= Py_BuildValue("i",_result
);
8345 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8346 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8347 PyObject
* _resultobj
;
8354 PyObject
* _argo0
= 0;
8355 PyObject
* _argo2
= 0;
8356 PyObject
* _argo3
= 0;
8357 PyObject
* _argo4
= 0;
8358 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
8361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
8364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
8371 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8372 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
8373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
8378 if (_argo3
== Py_None
) { _arg3
= NULL
; }
8379 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
8380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
8385 if (_argo4
== Py_None
) { _arg4
= NULL
; }
8386 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
8387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
8392 wxPy_BEGIN_ALLOW_THREADS
;
8393 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8395 wxPy_END_ALLOW_THREADS
;
8396 if (PyErr_Occurred()) return NULL
;
8397 } _resultobj
= Py_BuildValue("i",_result
);
8401 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
8402 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8403 PyObject
* _resultobj
;
8406 PyObject
* _argo0
= 0;
8407 char *_kwnames
[] = { "self", NULL
};
8410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
8413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
8420 wxPy_BEGIN_ALLOW_THREADS
;
8421 _result
= (bool )wxPalette_Ok(_arg0
);
8423 wxPy_END_ALLOW_THREADS
;
8424 if (PyErr_Occurred()) return NULL
;
8425 } _resultobj
= Py_BuildValue("i",_result
);
8429 static void *SwigwxImageListTowxObject(void *ptr
) {
8432 src
= (wxImageList
*) ptr
;
8433 dest
= (wxObject
*) src
;
8434 return (void *) dest
;
8437 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8438 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8439 PyObject
* _resultobj
;
8440 wxImageList
* _result
;
8443 int _arg2
= (int ) TRUE
;
8444 int _arg3
= (int ) 1;
8445 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
8449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
8452 wxPy_BEGIN_ALLOW_THREADS
;
8453 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
8455 wxPy_END_ALLOW_THREADS
;
8456 if (PyErr_Occurred()) return NULL
;
8458 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
8459 _resultobj
= Py_BuildValue("s",_ptemp
);
8462 _resultobj
= Py_None
;
8467 #define delete_wxImageList(_swigobj) (delete _swigobj)
8468 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8469 PyObject
* _resultobj
;
8470 wxImageList
* _arg0
;
8471 PyObject
* _argo0
= 0;
8472 char *_kwnames
[] = { "self", NULL
};
8475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
8478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
8485 wxPy_BEGIN_ALLOW_THREADS
;
8486 delete_wxImageList(_arg0
);
8488 wxPy_END_ALLOW_THREADS
;
8489 if (PyErr_Occurred()) return NULL
;
8490 } Py_INCREF(Py_None
);
8491 _resultobj
= Py_None
;
8495 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8496 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8497 PyObject
* _resultobj
;
8499 wxImageList
* _arg0
;
8501 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
8502 PyObject
* _argo0
= 0;
8503 PyObject
* _argo1
= 0;
8504 PyObject
* _argo2
= 0;
8505 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
8508 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
8511 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8512 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8513 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
8518 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8519 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
8525 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8526 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
8532 wxPy_BEGIN_ALLOW_THREADS
;
8533 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
8535 wxPy_END_ALLOW_THREADS
;
8536 if (PyErr_Occurred()) return NULL
;
8537 } _resultobj
= Py_BuildValue("i",_result
);
8541 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8542 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8543 PyObject
* _resultobj
;
8545 wxImageList
* _arg0
;
8548 PyObject
* _argo0
= 0;
8549 PyObject
* _argo1
= 0;
8551 PyObject
* _obj2
= 0;
8552 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
8555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
8565 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8566 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8573 if (! wxColour_helper(_obj2
, &_arg2
))
8577 wxPy_BEGIN_ALLOW_THREADS
;
8578 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
8580 wxPy_END_ALLOW_THREADS
;
8581 if (PyErr_Occurred()) return NULL
;
8582 } _resultobj
= Py_BuildValue("i",_result
);
8586 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8587 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8588 PyObject
* _resultobj
;
8590 wxImageList
* _arg0
;
8592 PyObject
* _argo0
= 0;
8593 PyObject
* _argo1
= 0;
8594 char *_kwnames
[] = { "self","icon", NULL
};
8597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
8600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8607 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8608 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
8609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8614 wxPy_BEGIN_ALLOW_THREADS
;
8615 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
8617 wxPy_END_ALLOW_THREADS
;
8618 if (PyErr_Occurred()) return NULL
;
8619 } _resultobj
= Py_BuildValue("i",_result
);
8623 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
8624 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8625 PyObject
* _resultobj
;
8627 wxImageList
* _arg0
;
8630 PyObject
* _argo0
= 0;
8631 PyObject
* _argo2
= 0;
8632 char *_kwnames
[] = { "self","index","bitmap", NULL
};
8635 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
8638 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8639 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8640 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8645 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8646 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8652 wxPy_BEGIN_ALLOW_THREADS
;
8653 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
8655 wxPy_END_ALLOW_THREADS
;
8656 if (PyErr_Occurred()) return NULL
;
8657 } _resultobj
= Py_BuildValue("i",_result
);
8661 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8662 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8663 PyObject
* _resultobj
;
8665 wxImageList
* _arg0
;
8670 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
8671 bool _arg6
= (bool ) FALSE
;
8672 PyObject
* _argo0
= 0;
8673 PyObject
* _argo2
= 0;
8674 int tempbool6
= (int) FALSE
;
8675 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
8678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
8681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8688 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8689 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
8690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8694 _arg6
= (bool ) tempbool6
;
8696 wxPy_BEGIN_ALLOW_THREADS
;
8697 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8699 wxPy_END_ALLOW_THREADS
;
8700 if (PyErr_Occurred()) return NULL
;
8701 } _resultobj
= Py_BuildValue("i",_result
);
8705 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
8706 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8707 PyObject
* _resultobj
;
8709 wxImageList
* _arg0
;
8710 PyObject
* _argo0
= 0;
8711 char *_kwnames
[] = { "self", NULL
};
8714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
8717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8724 wxPy_BEGIN_ALLOW_THREADS
;
8725 _result
= (int )wxImageList_GetImageCount(_arg0
);
8727 wxPy_END_ALLOW_THREADS
;
8728 if (PyErr_Occurred()) return NULL
;
8729 } _resultobj
= Py_BuildValue("i",_result
);
8733 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8734 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8735 PyObject
* _resultobj
;
8737 wxImageList
* _arg0
;
8739 PyObject
* _argo0
= 0;
8740 char *_kwnames
[] = { "self","index", NULL
};
8743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
8746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
8753 wxPy_BEGIN_ALLOW_THREADS
;
8754 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
8756 wxPy_END_ALLOW_THREADS
;
8757 if (PyErr_Occurred()) return NULL
;
8758 } _resultobj
= Py_BuildValue("i",_result
);
8762 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
8763 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8764 PyObject
* _resultobj
;
8766 wxImageList
* _arg0
;
8767 PyObject
* _argo0
= 0;
8768 char *_kwnames
[] = { "self", NULL
};
8771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
8774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
8781 wxPy_BEGIN_ALLOW_THREADS
;
8782 _result
= (bool )wxImageList_RemoveAll(_arg0
);
8784 wxPy_END_ALLOW_THREADS
;
8785 if (PyErr_Occurred()) return NULL
;
8786 } _resultobj
= Py_BuildValue("i",_result
);
8790 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
8791 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8792 PyObject
* _resultobj
;
8793 wxImageList
* _arg0
;
8799 PyObject
* _argo0
= 0;
8800 char *_kwnames
[] = { "self","index", NULL
};
8809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
8812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
8819 wxPy_BEGIN_ALLOW_THREADS
;
8820 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
8822 wxPy_END_ALLOW_THREADS
;
8823 if (PyErr_Occurred()) return NULL
;
8824 } Py_INCREF(Py_None
);
8825 _resultobj
= Py_None
;
8828 o
= PyInt_FromLong((long) (*_arg2
));
8829 _resultobj
= t_output_helper(_resultobj
, o
);
8833 o
= PyInt_FromLong((long) (*_arg3
));
8834 _resultobj
= t_output_helper(_resultobj
, o
);
8839 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
8842 src
= (wxRegion
*) ptr
;
8843 dest
= (wxGDIObject
*) src
;
8844 return (void *) dest
;
8847 static void *SwigwxRegionTowxObject(void *ptr
) {
8850 src
= (wxRegion
*) ptr
;
8851 dest
= (wxObject
*) src
;
8852 return (void *) dest
;
8855 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8856 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8857 PyObject
* _resultobj
;
8859 long _arg0
= (long ) 0;
8860 long _arg1
= (long ) 0;
8861 long _arg2
= (long ) 0;
8862 long _arg3
= (long ) 0;
8863 char *_kwnames
[] = { "x","y","width","height", NULL
};
8867 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
8870 wxPy_BEGIN_ALLOW_THREADS
;
8871 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
8873 wxPy_END_ALLOW_THREADS
;
8874 if (PyErr_Occurred()) return NULL
;
8876 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
8877 _resultobj
= Py_BuildValue("s",_ptemp
);
8880 _resultobj
= Py_None
;
8885 #define delete_wxRegion(_swigobj) (delete _swigobj)
8886 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8887 PyObject
* _resultobj
;
8889 PyObject
* _argo0
= 0;
8890 char *_kwnames
[] = { "self", NULL
};
8893 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
8896 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8897 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
8898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
8903 wxPy_BEGIN_ALLOW_THREADS
;
8904 delete_wxRegion(_arg0
);
8906 wxPy_END_ALLOW_THREADS
;
8907 if (PyErr_Occurred()) return NULL
;
8908 } Py_INCREF(Py_None
);
8909 _resultobj
= Py_None
;
8913 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
8914 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8915 PyObject
* _resultobj
;
8917 PyObject
* _argo0
= 0;
8918 char *_kwnames
[] = { "self", NULL
};
8921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
8924 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8925 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
8926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
8931 wxPy_BEGIN_ALLOW_THREADS
;
8932 wxRegion_Clear(_arg0
);
8934 wxPy_END_ALLOW_THREADS
;
8935 if (PyErr_Occurred()) return NULL
;
8936 } Py_INCREF(Py_None
);
8937 _resultobj
= Py_None
;
8941 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
8942 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8943 PyObject
* _resultobj
;
8944 wxRegionContain _result
;
8948 PyObject
* _argo0
= 0;
8949 char *_kwnames
[] = { "self","x","y", NULL
};
8952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
8957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
8962 wxPy_BEGIN_ALLOW_THREADS
;
8963 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
8965 wxPy_END_ALLOW_THREADS
;
8966 if (PyErr_Occurred()) return NULL
;
8967 } _resultobj
= Py_BuildValue("i",_result
);
8971 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
8972 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8973 PyObject
* _resultobj
;
8974 wxRegionContain _result
;
8977 PyObject
* _argo0
= 0;
8979 PyObject
* _obj1
= 0;
8980 char *_kwnames
[] = { "self","pt", NULL
};
8983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
8986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
8988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
8994 if (! wxPoint_helper(_obj1
, &_arg1
))
8998 wxPy_BEGIN_ALLOW_THREADS
;
8999 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
9001 wxPy_END_ALLOW_THREADS
;
9002 if (PyErr_Occurred()) return NULL
;
9003 } _resultobj
= Py_BuildValue("i",_result
);
9007 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9008 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9009 PyObject
* _resultobj
;
9010 wxRegionContain _result
;
9013 PyObject
* _argo0
= 0;
9015 PyObject
* _obj1
= 0;
9016 char *_kwnames
[] = { "self","rect", NULL
};
9019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
9022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9030 if (! wxRect_helper(_obj1
, &_arg1
))
9034 wxPy_BEGIN_ALLOW_THREADS
;
9035 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
9037 wxPy_END_ALLOW_THREADS
;
9038 if (PyErr_Occurred()) return NULL
;
9039 } _resultobj
= Py_BuildValue("i",_result
);
9043 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9044 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9045 PyObject
* _resultobj
;
9046 wxRegionContain _result
;
9052 PyObject
* _argo0
= 0;
9053 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
9056 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9059 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9060 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9066 wxPy_BEGIN_ALLOW_THREADS
;
9067 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9069 wxPy_END_ALLOW_THREADS
;
9070 if (PyErr_Occurred()) return NULL
;
9071 } _resultobj
= Py_BuildValue("i",_result
);
9075 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9076 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9077 PyObject
* _resultobj
;
9080 PyObject
* _argo0
= 0;
9081 char *_kwnames
[] = { "self", NULL
};
9085 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
9088 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9089 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9090 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9095 wxPy_BEGIN_ALLOW_THREADS
;
9096 _result
= new wxRect (wxRegion_GetBox(_arg0
));
9098 wxPy_END_ALLOW_THREADS
;
9099 if (PyErr_Occurred()) return NULL
;
9100 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9101 _resultobj
= Py_BuildValue("s",_ptemp
);
9105 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9106 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9107 PyObject
* _resultobj
;
9114 PyObject
* _argo0
= 0;
9115 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9121 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9122 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9123 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9128 wxPy_BEGIN_ALLOW_THREADS
;
9129 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9131 wxPy_END_ALLOW_THREADS
;
9132 if (PyErr_Occurred()) return NULL
;
9133 } _resultobj
= Py_BuildValue("i",_result
);
9137 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9138 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9139 PyObject
* _resultobj
;
9143 PyObject
* _argo0
= 0;
9145 PyObject
* _obj1
= 0;
9146 char *_kwnames
[] = { "self","rect", NULL
};
9149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
9152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9160 if (! wxRect_helper(_obj1
, &_arg1
))
9164 wxPy_BEGIN_ALLOW_THREADS
;
9165 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
9167 wxPy_END_ALLOW_THREADS
;
9168 if (PyErr_Occurred()) return NULL
;
9169 } _resultobj
= Py_BuildValue("i",_result
);
9173 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9174 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9175 PyObject
* _resultobj
;
9179 PyObject
* _argo0
= 0;
9180 PyObject
* _argo1
= 0;
9181 char *_kwnames
[] = { "self","region", NULL
};
9184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
9187 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9188 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9194 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9195 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9201 wxPy_BEGIN_ALLOW_THREADS
;
9202 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
9204 wxPy_END_ALLOW_THREADS
;
9205 if (PyErr_Occurred()) return NULL
;
9206 } _resultobj
= Py_BuildValue("i",_result
);
9210 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
9211 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9212 PyObject
* _resultobj
;
9215 PyObject
* _argo0
= 0;
9216 char *_kwnames
[] = { "self", NULL
};
9219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
9222 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9223 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9224 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
9229 wxPy_BEGIN_ALLOW_THREADS
;
9230 _result
= (bool )wxRegion_IsEmpty(_arg0
);
9232 wxPy_END_ALLOW_THREADS
;
9233 if (PyErr_Occurred()) return NULL
;
9234 } _resultobj
= Py_BuildValue("i",_result
);
9238 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9239 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9240 PyObject
* _resultobj
;
9247 PyObject
* _argo0
= 0;
9248 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
9261 wxPy_BEGIN_ALLOW_THREADS
;
9262 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9264 wxPy_END_ALLOW_THREADS
;
9265 if (PyErr_Occurred()) return NULL
;
9266 } _resultobj
= Py_BuildValue("i",_result
);
9270 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9271 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9272 PyObject
* _resultobj
;
9276 PyObject
* _argo0
= 0;
9278 PyObject
* _obj1
= 0;
9279 char *_kwnames
[] = { "self","rect", NULL
};
9282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
9285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
9293 if (! wxRect_helper(_obj1
, &_arg1
))
9297 wxPy_BEGIN_ALLOW_THREADS
;
9298 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
9300 wxPy_END_ALLOW_THREADS
;
9301 if (PyErr_Occurred()) return NULL
;
9302 } _resultobj
= Py_BuildValue("i",_result
);
9306 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9307 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9308 PyObject
* _resultobj
;
9312 PyObject
* _argo0
= 0;
9313 PyObject
* _argo1
= 0;
9314 char *_kwnames
[] = { "self","region", NULL
};
9317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
9320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9327 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9328 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9334 wxPy_BEGIN_ALLOW_THREADS
;
9335 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
9337 wxPy_END_ALLOW_THREADS
;
9338 if (PyErr_Occurred()) return NULL
;
9339 } _resultobj
= Py_BuildValue("i",_result
);
9343 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9344 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9345 PyObject
* _resultobj
;
9352 PyObject
* _argo0
= 0;
9353 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
9366 wxPy_BEGIN_ALLOW_THREADS
;
9367 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9369 wxPy_END_ALLOW_THREADS
;
9370 if (PyErr_Occurred()) return NULL
;
9371 } _resultobj
= Py_BuildValue("i",_result
);
9375 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9376 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9377 PyObject
* _resultobj
;
9381 PyObject
* _argo0
= 0;
9383 PyObject
* _obj1
= 0;
9384 char *_kwnames
[] = { "self","rect", NULL
};
9387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
9390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
9398 if (! wxRect_helper(_obj1
, &_arg1
))
9402 wxPy_BEGIN_ALLOW_THREADS
;
9403 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
9405 wxPy_END_ALLOW_THREADS
;
9406 if (PyErr_Occurred()) return NULL
;
9407 } _resultobj
= Py_BuildValue("i",_result
);
9411 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9412 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9413 PyObject
* _resultobj
;
9417 PyObject
* _argo0
= 0;
9418 PyObject
* _argo1
= 0;
9419 char *_kwnames
[] = { "self","region", NULL
};
9422 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
9425 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9426 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9432 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9433 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9434 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9439 wxPy_BEGIN_ALLOW_THREADS
;
9440 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
9442 wxPy_END_ALLOW_THREADS
;
9443 if (PyErr_Occurred()) return NULL
;
9444 } _resultobj
= Py_BuildValue("i",_result
);
9448 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9449 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9450 PyObject
* _resultobj
;
9457 PyObject
* _argo0
= 0;
9458 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9464 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9465 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9466 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
9471 wxPy_BEGIN_ALLOW_THREADS
;
9472 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9474 wxPy_END_ALLOW_THREADS
;
9475 if (PyErr_Occurred()) return NULL
;
9476 } _resultobj
= Py_BuildValue("i",_result
);
9480 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9481 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9482 PyObject
* _resultobj
;
9486 PyObject
* _argo0
= 0;
9488 PyObject
* _obj1
= 0;
9489 char *_kwnames
[] = { "self","rect", NULL
};
9492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
9495 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9496 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
9503 if (! wxRect_helper(_obj1
, &_arg1
))
9507 wxPy_BEGIN_ALLOW_THREADS
;
9508 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
9510 wxPy_END_ALLOW_THREADS
;
9511 if (PyErr_Occurred()) return NULL
;
9512 } _resultobj
= Py_BuildValue("i",_result
);
9516 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9517 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9518 PyObject
* _resultobj
;
9522 PyObject
* _argo0
= 0;
9523 PyObject
* _argo1
= 0;
9524 char *_kwnames
[] = { "self","region", NULL
};
9527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
9530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
9537 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9538 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
9544 wxPy_BEGIN_ALLOW_THREADS
;
9545 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
9547 wxPy_END_ALLOW_THREADS
;
9548 if (PyErr_Occurred()) return NULL
;
9549 } _resultobj
= Py_BuildValue("i",_result
);
9553 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
9554 wxRegionIterator
*src
;
9556 src
= (wxRegionIterator
*) ptr
;
9557 dest
= (wxObject
*) src
;
9558 return (void *) dest
;
9561 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
9562 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9563 PyObject
* _resultobj
;
9564 wxRegionIterator
* _result
;
9566 PyObject
* _argo0
= 0;
9567 char *_kwnames
[] = { "region", NULL
};
9571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
9574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
9581 wxPy_BEGIN_ALLOW_THREADS
;
9582 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
9584 wxPy_END_ALLOW_THREADS
;
9585 if (PyErr_Occurred()) return NULL
;
9587 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
9588 _resultobj
= Py_BuildValue("s",_ptemp
);
9591 _resultobj
= Py_None
;
9596 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
9597 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9598 PyObject
* _resultobj
;
9599 wxRegionIterator
* _arg0
;
9600 PyObject
* _argo0
= 0;
9601 char *_kwnames
[] = { "self", NULL
};
9604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
9607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
9614 wxPy_BEGIN_ALLOW_THREADS
;
9615 delete_wxRegionIterator(_arg0
);
9617 wxPy_END_ALLOW_THREADS
;
9618 if (PyErr_Occurred()) return NULL
;
9619 } Py_INCREF(Py_None
);
9620 _resultobj
= Py_None
;
9624 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
9625 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9626 PyObject
* _resultobj
;
9628 wxRegionIterator
* _arg0
;
9629 PyObject
* _argo0
= 0;
9630 char *_kwnames
[] = { "self", NULL
};
9633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
9636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
9643 wxPy_BEGIN_ALLOW_THREADS
;
9644 _result
= (long )wxRegionIterator_GetX(_arg0
);
9646 wxPy_END_ALLOW_THREADS
;
9647 if (PyErr_Occurred()) return NULL
;
9648 } _resultobj
= Py_BuildValue("l",_result
);
9652 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
9653 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9654 PyObject
* _resultobj
;
9656 wxRegionIterator
* _arg0
;
9657 PyObject
* _argo0
= 0;
9658 char *_kwnames
[] = { "self", NULL
};
9661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
9664 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9665 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9666 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
9671 wxPy_BEGIN_ALLOW_THREADS
;
9672 _result
= (long )wxRegionIterator_GetY(_arg0
);
9674 wxPy_END_ALLOW_THREADS
;
9675 if (PyErr_Occurred()) return NULL
;
9676 } _resultobj
= Py_BuildValue("l",_result
);
9680 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
9681 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9682 PyObject
* _resultobj
;
9684 wxRegionIterator
* _arg0
;
9685 PyObject
* _argo0
= 0;
9686 char *_kwnames
[] = { "self", NULL
};
9689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
9692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
9699 wxPy_BEGIN_ALLOW_THREADS
;
9700 _result
= (long )wxRegionIterator_GetW(_arg0
);
9702 wxPy_END_ALLOW_THREADS
;
9703 if (PyErr_Occurred()) return NULL
;
9704 } _resultobj
= Py_BuildValue("l",_result
);
9708 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
9709 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9710 PyObject
* _resultobj
;
9712 wxRegionIterator
* _arg0
;
9713 PyObject
* _argo0
= 0;
9714 char *_kwnames
[] = { "self", NULL
};
9717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
9720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
9727 wxPy_BEGIN_ALLOW_THREADS
;
9728 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
9730 wxPy_END_ALLOW_THREADS
;
9731 if (PyErr_Occurred()) return NULL
;
9732 } _resultobj
= Py_BuildValue("l",_result
);
9736 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
9737 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9738 PyObject
* _resultobj
;
9740 wxRegionIterator
* _arg0
;
9741 PyObject
* _argo0
= 0;
9742 char *_kwnames
[] = { "self", NULL
};
9745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
9748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
9755 wxPy_BEGIN_ALLOW_THREADS
;
9756 _result
= (long )wxRegionIterator_GetH(_arg0
);
9758 wxPy_END_ALLOW_THREADS
;
9759 if (PyErr_Occurred()) return NULL
;
9760 } _resultobj
= Py_BuildValue("l",_result
);
9764 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
9765 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9766 PyObject
* _resultobj
;
9768 wxRegionIterator
* _arg0
;
9769 PyObject
* _argo0
= 0;
9770 char *_kwnames
[] = { "self", NULL
};
9773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
9776 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9777 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
9783 wxPy_BEGIN_ALLOW_THREADS
;
9784 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
9786 wxPy_END_ALLOW_THREADS
;
9787 if (PyErr_Occurred()) return NULL
;
9788 } _resultobj
= Py_BuildValue("l",_result
);
9792 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
9793 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9794 PyObject
* _resultobj
;
9796 wxRegionIterator
* _arg0
;
9797 PyObject
* _argo0
= 0;
9798 char *_kwnames
[] = { "self", NULL
};
9802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
9805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
9812 wxPy_BEGIN_ALLOW_THREADS
;
9813 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
9815 wxPy_END_ALLOW_THREADS
;
9816 if (PyErr_Occurred()) return NULL
;
9817 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9818 _resultobj
= Py_BuildValue("s",_ptemp
);
9822 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
9823 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9824 PyObject
* _resultobj
;
9826 wxRegionIterator
* _arg0
;
9827 PyObject
* _argo0
= 0;
9828 char *_kwnames
[] = { "self", NULL
};
9831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
9834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
9841 wxPy_BEGIN_ALLOW_THREADS
;
9842 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
9844 wxPy_END_ALLOW_THREADS
;
9845 if (PyErr_Occurred()) return NULL
;
9846 } _resultobj
= Py_BuildValue("i",_result
);
9850 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
9851 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9852 PyObject
* _resultobj
;
9853 wxRegionIterator
* _arg0
;
9854 PyObject
* _argo0
= 0;
9855 char *_kwnames
[] = { "self", NULL
};
9858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
9861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
9868 wxPy_BEGIN_ALLOW_THREADS
;
9869 wxRegionIterator_Reset(_arg0
);
9871 wxPy_END_ALLOW_THREADS
;
9872 if (PyErr_Occurred()) return NULL
;
9873 } Py_INCREF(Py_None
);
9874 _resultobj
= Py_None
;
9878 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
9881 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9882 PyObject
* _resultobj
;
9883 wxRegionIterator
* _arg0
;
9884 PyObject
* _argo0
= 0;
9885 char *_kwnames
[] = { "self", NULL
};
9888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
9891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
9898 wxPy_BEGIN_ALLOW_THREADS
;
9899 wxRegionIterator_Next(_arg0
);
9901 wxPy_END_ALLOW_THREADS
;
9902 if (PyErr_Occurred()) return NULL
;
9903 } Py_INCREF(Py_None
);
9904 _resultobj
= Py_None
;
9908 static PyMethodDef gdicMethods
[] = {
9909 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
9910 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
9911 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
9912 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
9913 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9914 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
9915 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9916 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
9917 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
9918 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
9919 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
9920 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
9921 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
9922 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
9923 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
9924 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
9925 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
9926 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
9927 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
9928 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
9929 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
9930 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
9931 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
9932 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
9933 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
9934 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
9935 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
9936 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
9937 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
9938 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
9939 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
9940 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
9941 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
9942 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
9943 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
9944 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9945 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
9946 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
9947 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
9948 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
9949 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
9950 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
9951 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
9952 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
9953 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9954 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
9955 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
9956 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
9957 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
9958 { "new_wxPostScriptDC", (PyCFunction
) _wrap_new_wxPostScriptDC
, METH_VARARGS
| METH_KEYWORDS
},
9959 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
9960 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
9961 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
9962 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
9963 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
9964 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
9965 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
9966 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
9967 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
9968 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
9969 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
9970 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
9971 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9972 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9973 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9974 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
9975 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9976 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
9977 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9978 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9979 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
9980 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
9981 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
9982 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
9983 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
9984 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
9985 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
9986 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
9987 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
9988 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
9989 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
9990 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
9991 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
9992 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
9993 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
9994 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
9995 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9996 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9997 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
9998 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
9999 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
10000 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
10001 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
10002 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
10003 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
10004 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
10005 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10006 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10007 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10008 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10009 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10010 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
10011 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10012 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10013 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10014 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
10015 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10016 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10017 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10018 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10019 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10020 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
10021 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10022 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10023 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10024 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10025 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
10026 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
10027 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10028 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
10029 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
10030 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
10031 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10032 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
10033 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10034 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
10035 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
10036 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
10037 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
10038 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
10039 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
10040 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
10041 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
10042 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
10043 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
10044 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
10045 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
10046 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
10047 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10048 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
10049 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10050 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
10051 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10052 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
10053 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
10054 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
10055 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
10056 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10057 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10058 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10059 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10060 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10061 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10062 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10063 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10064 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10065 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
10066 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
10067 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
10068 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10069 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10070 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10071 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10072 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10073 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10074 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
10075 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10076 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10077 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10078 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10079 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10080 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
10081 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10082 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10083 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
10084 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
10085 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
10086 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
10087 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
10088 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10089 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
10090 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
10091 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
10092 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10093 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10094 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
10095 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
10096 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
10097 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
10098 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
10099 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
10100 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10101 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
10102 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
10103 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10104 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
10105 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
10106 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
10107 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10108 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
10109 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
10110 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10111 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
10112 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
10113 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
10114 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10115 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
10116 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
10117 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10118 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
10119 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10120 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10121 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10122 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10123 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10124 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10125 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10126 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10127 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10128 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10129 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10130 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10131 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
10132 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10133 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10134 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10135 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10136 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10137 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10138 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10139 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10140 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
10141 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
10142 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10143 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
10144 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10145 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10146 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10147 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
10148 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10149 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10150 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10151 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10152 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
10153 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
10154 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10155 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10156 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
10157 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10158 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
10159 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
10160 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
10161 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10162 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10163 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10170 * This table is used by the pointer type-checker
10172 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10173 { "_signed_long","_long",0},
10174 { "_wxPrintQuality","_wxCoord",0},
10175 { "_wxPrintQuality","_int",0},
10176 { "_wxPrintQuality","_signed_int",0},
10177 { "_wxPrintQuality","_unsigned_int",0},
10178 { "_wxPrintQuality","_wxWindowID",0},
10179 { "_wxPrintQuality","_uint",0},
10180 { "_wxPrintQuality","_EBool",0},
10181 { "_wxPrintQuality","_size_t",0},
10182 { "_wxPrintQuality","_time_t",0},
10183 { "_byte","_unsigned_char",0},
10184 { "_long","_unsigned_long",0},
10185 { "_long","_signed_long",0},
10186 { "_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject
},
10187 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
10188 { "_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject
},
10189 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
10190 { "_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject
},
10191 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
10192 { "_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject
},
10193 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
10194 { "_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject
},
10195 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
10196 { "_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject
},
10197 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
10198 { "_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject
},
10199 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
10200 { "_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject
},
10201 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
10202 { "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
10203 { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
10204 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
10205 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
10206 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
10207 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
10208 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
10209 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
10210 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
10211 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
10212 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10213 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10214 { "_class_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10215 { "_class_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10216 { "_class_wxObject","_class_wxRegion",SwigwxRegionTowxObject
},
10217 { "_class_wxObject","_wxRegion",SwigwxRegionTowxObject
},
10218 { "_class_wxObject","_class_wxImageList",SwigwxImageListTowxObject
},
10219 { "_class_wxObject","_wxImageList",SwigwxImageListTowxObject
},
10220 { "_class_wxObject","_class_wxPalette",SwigwxPaletteTowxObject
},
10221 { "_class_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
10222 { "_class_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
10223 { "_class_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
10224 { "_class_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject
},
10225 { "_class_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
10226 { "_class_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject
},
10227 { "_class_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
10228 { "_class_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject
},
10229 { "_class_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
10230 { "_class_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject
},
10231 { "_class_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
10232 { "_class_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10233 { "_class_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10234 { "_class_wxObject","_class_wxDC",SwigwxDCTowxObject
},
10235 { "_class_wxObject","_wxDC",SwigwxDCTowxObject
},
10236 { "_class_wxObject","_class_wxBrush",SwigwxBrushTowxObject
},
10237 { "_class_wxObject","_wxBrush",SwigwxBrushTowxObject
},
10238 { "_class_wxObject","_class_wxPenList",SwigwxPenListTowxObject
},
10239 { "_class_wxObject","_wxPenList",SwigwxPenListTowxObject
},
10240 { "_class_wxObject","_class_wxPen",SwigwxPenTowxObject
},
10241 { "_class_wxObject","_wxPen",SwigwxPenTowxObject
},
10242 { "_class_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10243 { "_class_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10244 { "_class_wxObject","_class_wxColour",SwigwxColourTowxObject
},
10245 { "_class_wxObject","_wxColour",SwigwxColourTowxObject
},
10246 { "_class_wxObject","_class_wxFontList",SwigwxFontListTowxObject
},
10247 { "_class_wxObject","_wxFontList",SwigwxFontListTowxObject
},
10248 { "_class_wxObject","_class_wxFont",SwigwxFontTowxObject
},
10249 { "_class_wxObject","_wxFont",SwigwxFontTowxObject
},
10250 { "_class_wxObject","_class_wxCursor",SwigwxCursorTowxObject
},
10251 { "_class_wxObject","_wxCursor",SwigwxCursorTowxObject
},
10252 { "_class_wxObject","_class_wxIcon",SwigwxIconTowxObject
},
10253 { "_class_wxObject","_wxIcon",SwigwxIconTowxObject
},
10254 { "_class_wxObject","_class_wxMask",SwigwxMaskTowxObject
},
10255 { "_class_wxObject","_wxMask",SwigwxMaskTowxObject
},
10256 { "_class_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject
},
10257 { "_class_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
10258 { "_class_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject
},
10259 { "_class_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
10260 { "_size_t","_wxCoord",0},
10261 { "_size_t","_wxPrintQuality",0},
10262 { "_size_t","_time_t",0},
10263 { "_size_t","_unsigned_int",0},
10264 { "_size_t","_int",0},
10265 { "_size_t","_wxWindowID",0},
10266 { "_size_t","_uint",0},
10267 { "_uint","_wxCoord",0},
10268 { "_uint","_wxPrintQuality",0},
10269 { "_uint","_time_t",0},
10270 { "_uint","_size_t",0},
10271 { "_uint","_unsigned_int",0},
10272 { "_uint","_int",0},
10273 { "_uint","_wxWindowID",0},
10274 { "_wxChar","_char",0},
10275 { "_char","_wxChar",0},
10276 { "_EBool","_wxCoord",0},
10277 { "_EBool","_wxPrintQuality",0},
10278 { "_EBool","_signed_int",0},
10279 { "_EBool","_int",0},
10280 { "_EBool","_wxWindowID",0},
10281 { "_unsigned_long","_long",0},
10282 { "_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
10283 { "_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
10284 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
10285 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
10286 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
10287 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
10288 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
10289 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
10290 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
10291 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
10292 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10293 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10294 { "_signed_int","_wxCoord",0},
10295 { "_signed_int","_wxPrintQuality",0},
10296 { "_signed_int","_EBool",0},
10297 { "_signed_int","_wxWindowID",0},
10298 { "_signed_int","_int",0},
10299 { "_WXTYPE","_short",0},
10300 { "_WXTYPE","_signed_short",0},
10301 { "_WXTYPE","_unsigned_short",0},
10302 { "_unsigned_short","_WXTYPE",0},
10303 { "_unsigned_short","_short",0},
10304 { "_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10305 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10306 { "_wxObject","_class_wxRegion",SwigwxRegionTowxObject
},
10307 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
10308 { "_wxObject","_class_wxImageList",SwigwxImageListTowxObject
},
10309 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
10310 { "_wxObject","_class_wxPalette",SwigwxPaletteTowxObject
},
10311 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
10312 { "_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
10313 { "_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
10314 { "_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject
},
10315 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
10316 { "_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject
},
10317 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
10318 { "_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject
},
10319 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
10320 { "_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject
},
10321 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
10322 { "_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10323 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10324 { "_wxObject","_class_wxDC",SwigwxDCTowxObject
},
10325 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
10326 { "_wxObject","_class_wxBrush",SwigwxBrushTowxObject
},
10327 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
10328 { "_wxObject","_class_wxPenList",SwigwxPenListTowxObject
},
10329 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
10330 { "_wxObject","_class_wxPen",SwigwxPenTowxObject
},
10331 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
10332 { "_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10333 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10334 { "_wxObject","_class_wxColour",SwigwxColourTowxObject
},
10335 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
10336 { "_wxObject","_class_wxFontList",SwigwxFontListTowxObject
},
10337 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
10338 { "_wxObject","_class_wxFont",SwigwxFontTowxObject
},
10339 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
10340 { "_wxObject","_class_wxCursor",SwigwxCursorTowxObject
},
10341 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
10342 { "_wxObject","_class_wxIcon",SwigwxIconTowxObject
},
10343 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
10344 { "_wxObject","_class_wxMask",SwigwxMaskTowxObject
},
10345 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
10346 { "_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject
},
10347 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
10348 { "_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject
},
10349 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
10350 { "_signed_short","_WXTYPE",0},
10351 { "_signed_short","_short",0},
10352 { "_unsigned_char","_byte",0},
10353 { "_unsigned_int","_wxCoord",0},
10354 { "_unsigned_int","_wxPrintQuality",0},
10355 { "_unsigned_int","_time_t",0},
10356 { "_unsigned_int","_size_t",0},
10357 { "_unsigned_int","_uint",0},
10358 { "_unsigned_int","_wxWindowID",0},
10359 { "_unsigned_int","_int",0},
10360 { "_short","_WXTYPE",0},
10361 { "_short","_unsigned_short",0},
10362 { "_short","_signed_short",0},
10363 { "_wxWindowID","_wxCoord",0},
10364 { "_wxWindowID","_wxPrintQuality",0},
10365 { "_wxWindowID","_time_t",0},
10366 { "_wxWindowID","_size_t",0},
10367 { "_wxWindowID","_EBool",0},
10368 { "_wxWindowID","_uint",0},
10369 { "_wxWindowID","_int",0},
10370 { "_wxWindowID","_signed_int",0},
10371 { "_wxWindowID","_unsigned_int",0},
10372 { "_class_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject
},
10373 { "_class_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
10374 { "_class_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject
},
10375 { "_class_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
10376 { "_class_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject
},
10377 { "_class_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
10378 { "_class_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject
},
10379 { "_class_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
10380 { "_class_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject
},
10381 { "_class_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
10382 { "_class_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject
},
10383 { "_class_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
10384 { "_class_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject
},
10385 { "_class_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
10386 { "_class_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject
},
10387 { "_class_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
10388 { "_int","_wxCoord",0},
10389 { "_int","_wxPrintQuality",0},
10390 { "_int","_time_t",0},
10391 { "_int","_size_t",0},
10392 { "_int","_EBool",0},
10393 { "_int","_uint",0},
10394 { "_int","_wxWindowID",0},
10395 { "_int","_unsigned_int",0},
10396 { "_int","_signed_int",0},
10397 { "_time_t","_wxCoord",0},
10398 { "_time_t","_wxPrintQuality",0},
10399 { "_time_t","_unsigned_int",0},
10400 { "_time_t","_int",0},
10401 { "_time_t","_wxWindowID",0},
10402 { "_time_t","_uint",0},
10403 { "_time_t","_size_t",0},
10404 { "_wxCoord","_int",0},
10405 { "_wxCoord","_signed_int",0},
10406 { "_wxCoord","_unsigned_int",0},
10407 { "_wxCoord","_wxWindowID",0},
10408 { "_wxCoord","_uint",0},
10409 { "_wxCoord","_EBool",0},
10410 { "_wxCoord","_size_t",0},
10411 { "_wxCoord","_time_t",0},
10412 { "_wxCoord","_wxPrintQuality",0},
10415 static PyObject
*SWIG_globals
;
10419 SWIGEXPORT(void) initgdic() {
10421 SWIG_globals
= SWIG_newvarlink();
10422 m
= Py_InitModule("gdic", gdicMethods
);
10423 d
= PyModule_GetDict(m
);
10424 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
10425 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
10426 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
10427 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
10428 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
10429 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
10430 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
10431 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
10432 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
10433 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
10434 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
10435 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
10436 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
10437 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
10438 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
10439 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
10440 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
10441 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
10442 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
10443 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
10444 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
10445 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
10446 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
10447 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
10448 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
10449 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
10450 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
10451 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
10452 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
10453 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
10454 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
10455 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
10456 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
10457 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
10458 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
10459 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
10460 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
10461 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
10462 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
10463 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
10464 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
10465 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
10466 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
10467 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
10468 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
10469 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
10470 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
10471 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
10472 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
10473 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
10474 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
10475 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
10476 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
10477 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
10478 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
10479 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
10480 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
10481 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
10482 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
10483 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
10484 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
10485 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
10486 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
10487 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
10488 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
10489 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
10490 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
10491 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
10492 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
10493 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
10494 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
10495 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
10496 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
10497 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
10498 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
10499 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
10500 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
10501 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
10502 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
10503 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
10504 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
10505 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
10506 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
10507 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
10508 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
10509 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
10512 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10513 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);