2 * FILE : src/gtk/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/metafile.h>
60 #include <wx/imaglist.h>
64 #include <wx/fontmap.h>
65 #include <wx/fontenc.h>
66 #include <wx/fontmap.h>
67 #include <wx/fontutil.h>
70 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
76 } else if (target
== Py_None
) {
80 if (!PyTuple_Check(target
)) {
82 target
= PyTuple_New(1);
83 PyTuple_SetItem(target
, 0, o2
);
86 PyTuple_SetItem(o3
, 0, o
);
89 target
= PySequence_Concat(o2
, o3
);
96 #if PYTHON_API_VERSION >= 1009
97 static char* wxStringErrorMsg
= "String or Unicode type required";
99 static char* wxStringErrorMsg
= "string type is required for parameter";
102 static wxString
wxPyEmptyStr("");
103 // Implementations of some alternate "constructors"
105 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
106 return new wxBitmap(width
, height
, depth
);
109 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
110 char** cArray
= NULL
;
113 if (!PyList_Check(listOfStrings
)) {
114 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
117 count
= PyList_Size(listOfStrings
);
118 cArray
= new char*[count
];
120 for(int x
=0; x
<count
; x
++) {
121 // TODO: Need some validation and error checking here
122 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
128 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
129 char** cArray
= NULL
;
132 cArray
= ConvertListOfStrings(listOfStrings
);
135 bmp
= new wxBitmap(cArray
);
141 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
142 return new wxBitmap(icon
);
146 wxBitmap
* wxBitmapFromBits(char* bits
, int width
, int height
, int depth
= 1 ) {
147 return new wxBitmap(bits
, width
, height
, depth
);
152 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
153 // int width, int height, int depth = 1) {
154 // if (! PyString_Check(data)) {
155 // PyErr_SetString(PyExc_TypeError, "Expected string object");
158 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
162 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
163 return new wxMask(bitmap
, colour
);
165 // Implementations of some alternate "constructors"
166 wxIcon
* wxEmptyIcon() {
170 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
171 char** cArray
= NULL
;
174 cArray
= ConvertListOfStrings(listOfStrings
);
177 icon
= new wxIcon(cArray
);
181 // Alternate 'constructor'
182 wxCursor
* wxPyStockCursor(int id
) {
183 return new wxCursor(id
);
185 // Alternate 'constructor'
186 wxColour
* wxNamedColour(const wxString
& colorName
) {
187 return new wxColour(colorName
);
189 // Alternate 'constructor'
190 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
191 return new wxMemoryDC(oldDC
);
195 extern wxFont
* wxNORMAL_FONT
;
196 extern wxFont
* wxSMALL_FONT
;
197 extern wxFont
* wxITALIC_FONT
;
198 extern wxFont
* wxSWISS_FONT
;
199 extern wxPen
* wxRED_PEN
;
200 extern wxPen
* wxCYAN_PEN
;
201 extern wxPen
* wxGREEN_PEN
;
202 extern wxPen
* wxBLACK_PEN
;
203 extern wxPen
* wxWHITE_PEN
;
204 extern wxPen
* wxTRANSPARENT_PEN
;
205 extern wxPen
* wxBLACK_DASHED_PEN
;
206 extern wxPen
* wxGREY_PEN
;
207 extern wxPen
* wxMEDIUM_GREY_PEN
;
208 extern wxPen
* wxLIGHT_GREY_PEN
;
209 extern wxBrush
* wxBLUE_BRUSH
;
210 extern wxBrush
* wxGREEN_BRUSH
;
211 extern wxBrush
* wxWHITE_BRUSH
;
212 extern wxBrush
* wxBLACK_BRUSH
;
213 extern wxBrush
* wxTRANSPARENT_BRUSH
;
214 extern wxBrush
* wxCYAN_BRUSH
;
215 extern wxBrush
* wxRED_BRUSH
;
216 extern wxBrush
* wxGREY_BRUSH
;
217 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
218 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
219 extern wxColour
* wxBLACK
;
220 extern wxColour
* wxWHITE
;
221 extern wxColour
* wxRED
;
222 extern wxColour
* wxBLUE
;
223 extern wxColour
* wxGREEN
;
224 extern wxColour
* wxCYAN
;
225 extern wxColour
* wxLIGHT_GREY
;
226 extern wxCursor
* wxSTANDARD_CURSOR
;
227 extern wxCursor
* wxHOURGLASS_CURSOR
;
228 extern wxCursor
* wxCROSS_CURSOR
;
229 extern wxBitmap wxNullBitmap
;
230 extern wxIcon wxNullIcon
;
231 extern wxCursor wxNullCursor
;
232 extern wxPen wxNullPen
;
233 extern wxBrush wxNullBrush
;
234 extern wxPalette wxNullPalette
;
235 extern wxFont wxNullFont
;
236 extern wxColour wxNullColour
;
237 extern wxFontList
* wxTheFontList
;
238 extern wxPenList
* wxThePenList
;
239 extern wxBrushlist
* wxTheBrushList
;
240 extern wxColourDatabase
* wxTheColourDatabase
;
246 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
247 PyObject
* _resultobj
;
251 int _arg2
= (int ) -1;
252 char *_kwnames
[] = { "width","height","depth", NULL
};
256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
259 wxPy_BEGIN_ALLOW_THREADS
;
260 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
262 wxPy_END_ALLOW_THREADS
;
263 if (PyErr_Occurred()) return NULL
;
265 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
266 _resultobj
= Py_BuildValue("s",_ptemp
);
269 _resultobj
= Py_None
;
274 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
275 PyObject
* _resultobj
;
278 PyObject
* _obj0
= 0;
279 char *_kwnames
[] = { "listOfStrings", NULL
};
283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
289 wxPy_BEGIN_ALLOW_THREADS
;
290 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
292 wxPy_END_ALLOW_THREADS
;
293 if (PyErr_Occurred()) return NULL
;
295 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
296 _resultobj
= Py_BuildValue("s",_ptemp
);
299 _resultobj
= Py_None
;
304 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
305 PyObject
* _resultobj
;
308 PyObject
* _argo0
= 0;
309 char *_kwnames
[] = { "icon", NULL
};
313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
323 wxPy_BEGIN_ALLOW_THREADS
;
324 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
326 wxPy_END_ALLOW_THREADS
;
327 if (PyErr_Occurred()) return NULL
;
329 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
330 _resultobj
= Py_BuildValue("s",_ptemp
);
333 _resultobj
= Py_None
;
338 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
339 PyObject
* _resultobj
;
344 int _arg3
= (int ) 1;
345 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"sii|i:wxBitmapFromBits",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
352 wxPy_BEGIN_ALLOW_THREADS
;
353 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
355 wxPy_END_ALLOW_THREADS
;
356 if (PyErr_Occurred()) return NULL
;
358 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
359 _resultobj
= Py_BuildValue("s",_ptemp
);
362 _resultobj
= Py_None
;
367 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
368 PyObject
* _resultobj
;
372 PyObject
* _argo0
= 0;
374 PyObject
* _obj1
= 0;
375 char *_kwnames
[] = { "bitmap","colour", NULL
};
379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
390 if (! wxColour_helper(_obj1
, &_arg1
))
394 wxPy_BEGIN_ALLOW_THREADS
;
395 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
397 wxPy_END_ALLOW_THREADS
;
398 if (PyErr_Occurred()) return NULL
;
400 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
401 _resultobj
= Py_BuildValue("s",_ptemp
);
404 _resultobj
= Py_None
;
409 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
410 PyObject
* _resultobj
;
412 char *_kwnames
[] = { NULL
};
416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
419 wxPy_BEGIN_ALLOW_THREADS
;
420 _result
= (wxIcon
*)wxEmptyIcon();
422 wxPy_END_ALLOW_THREADS
;
423 if (PyErr_Occurred()) return NULL
;
425 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
426 _resultobj
= Py_BuildValue("s",_ptemp
);
429 _resultobj
= Py_None
;
434 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
435 PyObject
* _resultobj
;
438 PyObject
* _obj0
= 0;
439 char *_kwnames
[] = { "listOfStrings", NULL
};
443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
449 wxPy_BEGIN_ALLOW_THREADS
;
450 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
452 wxPy_END_ALLOW_THREADS
;
453 if (PyErr_Occurred()) return NULL
;
455 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
456 _resultobj
= Py_BuildValue("s",_ptemp
);
459 _resultobj
= Py_None
;
464 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
465 PyObject
* _resultobj
;
468 char *_kwnames
[] = { "id", NULL
};
472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
475 wxPy_BEGIN_ALLOW_THREADS
;
476 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
478 wxPy_END_ALLOW_THREADS
;
479 if (PyErr_Occurred()) return NULL
;
481 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
482 _resultobj
= Py_BuildValue("s",_ptemp
);
485 _resultobj
= Py_None
;
490 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
491 PyObject
* _resultobj
;
494 PyObject
* _obj0
= 0;
495 char *_kwnames
[] = { "colorName", NULL
};
499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
502 #if PYTHON_API_VERSION >= 1009
503 char* tmpPtr
; int tmpSize
;
504 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
505 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
508 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
510 _arg0
= new wxString(tmpPtr
, tmpSize
);
512 if (!PyString_Check(_obj0
)) {
513 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
516 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
520 wxPy_BEGIN_ALLOW_THREADS
;
521 _result
= (wxColour
*)wxNamedColour(*_arg0
);
523 wxPy_END_ALLOW_THREADS
;
524 if (PyErr_Occurred()) return NULL
;
526 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
527 _resultobj
= Py_BuildValue("s",_ptemp
);
530 _resultobj
= Py_None
;
539 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
540 PyObject
* _resultobj
;
541 wxMemoryDC
* _result
;
543 PyObject
* _argo0
= 0;
544 char *_kwnames
[] = { "oldDC", NULL
};
548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
558 wxPy_BEGIN_ALLOW_THREADS
;
559 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
561 wxPy_END_ALLOW_THREADS
;
562 if (PyErr_Occurred()) return NULL
;
564 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
565 _resultobj
= Py_BuildValue("s",_ptemp
);
568 _resultobj
= Py_None
;
573 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
575 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
579 static PyObject
*_wrap_wxNORMAL_FONT_get() {
583 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
584 pyobj
= PyString_FromString(ptemp
);
588 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
590 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
594 static PyObject
*_wrap_wxSMALL_FONT_get() {
598 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
599 pyobj
= PyString_FromString(ptemp
);
603 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
605 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
609 static PyObject
*_wrap_wxITALIC_FONT_get() {
613 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
614 pyobj
= PyString_FromString(ptemp
);
618 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
620 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
624 static PyObject
*_wrap_wxSWISS_FONT_get() {
628 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
629 pyobj
= PyString_FromString(ptemp
);
633 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
635 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
639 static PyObject
*_wrap_wxRED_PEN_get() {
643 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
644 pyobj
= PyString_FromString(ptemp
);
648 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
650 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
654 static PyObject
*_wrap_wxCYAN_PEN_get() {
658 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
659 pyobj
= PyString_FromString(ptemp
);
663 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
665 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
669 static PyObject
*_wrap_wxGREEN_PEN_get() {
673 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
674 pyobj
= PyString_FromString(ptemp
);
678 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
680 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
684 static PyObject
*_wrap_wxBLACK_PEN_get() {
688 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
689 pyobj
= PyString_FromString(ptemp
);
693 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
695 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
699 static PyObject
*_wrap_wxWHITE_PEN_get() {
703 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
704 pyobj
= PyString_FromString(ptemp
);
708 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
710 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
714 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
718 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
719 pyobj
= PyString_FromString(ptemp
);
723 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
725 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
729 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
733 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
734 pyobj
= PyString_FromString(ptemp
);
738 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
740 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
744 static PyObject
*_wrap_wxGREY_PEN_get() {
748 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
749 pyobj
= PyString_FromString(ptemp
);
753 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
755 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
759 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
763 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
764 pyobj
= PyString_FromString(ptemp
);
768 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
770 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
774 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
778 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
779 pyobj
= PyString_FromString(ptemp
);
783 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
785 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
789 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
793 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
794 pyobj
= PyString_FromString(ptemp
);
798 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
800 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
804 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
808 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
809 pyobj
= PyString_FromString(ptemp
);
813 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
815 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
819 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
823 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
824 pyobj
= PyString_FromString(ptemp
);
828 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
830 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
834 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
838 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
839 pyobj
= PyString_FromString(ptemp
);
843 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
845 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
849 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
853 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
854 pyobj
= PyString_FromString(ptemp
);
858 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
860 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
864 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
868 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
869 pyobj
= PyString_FromString(ptemp
);
873 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
875 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
879 static PyObject
*_wrap_wxRED_BRUSH_get() {
883 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
884 pyobj
= PyString_FromString(ptemp
);
888 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
890 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
894 static PyObject
*_wrap_wxGREY_BRUSH_get() {
898 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
899 pyobj
= PyString_FromString(ptemp
);
903 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
905 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
909 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
913 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
914 pyobj
= PyString_FromString(ptemp
);
918 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
920 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
924 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
928 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
929 pyobj
= PyString_FromString(ptemp
);
933 static int _wrap_wxBLACK_set(PyObject
*val
) {
935 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
939 static PyObject
*_wrap_wxBLACK_get() {
943 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
944 pyobj
= PyString_FromString(ptemp
);
948 static int _wrap_wxWHITE_set(PyObject
*val
) {
950 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
954 static PyObject
*_wrap_wxWHITE_get() {
958 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
959 pyobj
= PyString_FromString(ptemp
);
963 static int _wrap_wxRED_set(PyObject
*val
) {
965 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
969 static PyObject
*_wrap_wxRED_get() {
973 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
974 pyobj
= PyString_FromString(ptemp
);
978 static int _wrap_wxBLUE_set(PyObject
*val
) {
980 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
984 static PyObject
*_wrap_wxBLUE_get() {
988 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
989 pyobj
= PyString_FromString(ptemp
);
993 static int _wrap_wxGREEN_set(PyObject
*val
) {
995 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
999 static PyObject
*_wrap_wxGREEN_get() {
1003 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1004 pyobj
= PyString_FromString(ptemp
);
1008 static int _wrap_wxCYAN_set(PyObject
*val
) {
1010 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1014 static PyObject
*_wrap_wxCYAN_get() {
1018 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1019 pyobj
= PyString_FromString(ptemp
);
1023 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1025 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1029 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1033 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1034 pyobj
= PyString_FromString(ptemp
);
1038 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1040 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1044 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1048 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1049 pyobj
= PyString_FromString(ptemp
);
1053 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1055 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1059 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1063 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1064 pyobj
= PyString_FromString(ptemp
);
1068 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1070 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1074 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1078 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1079 pyobj
= PyString_FromString(ptemp
);
1083 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1085 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1089 static PyObject
*_wrap_wxNullBitmap_get() {
1093 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1094 pyobj
= PyString_FromString(ptemp
);
1098 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1100 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1104 static PyObject
*_wrap_wxNullIcon_get() {
1108 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1109 pyobj
= PyString_FromString(ptemp
);
1113 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1115 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1119 static PyObject
*_wrap_wxNullCursor_get() {
1123 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1124 pyobj
= PyString_FromString(ptemp
);
1128 static int _wrap_wxNullPen_set(PyObject
*val
) {
1130 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1134 static PyObject
*_wrap_wxNullPen_get() {
1138 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1139 pyobj
= PyString_FromString(ptemp
);
1143 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1145 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1149 static PyObject
*_wrap_wxNullBrush_get() {
1153 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1154 pyobj
= PyString_FromString(ptemp
);
1158 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1160 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1164 static PyObject
*_wrap_wxNullPalette_get() {
1168 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1169 pyobj
= PyString_FromString(ptemp
);
1173 static int _wrap_wxNullFont_set(PyObject
*val
) {
1175 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1179 static PyObject
*_wrap_wxNullFont_get() {
1183 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1184 pyobj
= PyString_FromString(ptemp
);
1188 static int _wrap_wxNullColour_set(PyObject
*val
) {
1190 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1194 static PyObject
*_wrap_wxNullColour_get() {
1198 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1199 pyobj
= PyString_FromString(ptemp
);
1203 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1205 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1209 static PyObject
*_wrap_wxTheFontList_get() {
1213 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1214 pyobj
= PyString_FromString(ptemp
);
1218 static int _wrap_wxThePenList_set(PyObject
*val
) {
1220 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1224 static PyObject
*_wrap_wxThePenList_get() {
1228 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1229 pyobj
= PyString_FromString(ptemp
);
1233 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1235 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1239 static PyObject
*_wrap_wxTheBrushList_get() {
1243 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushlist_p");
1244 pyobj
= PyString_FromString(ptemp
);
1248 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1250 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1254 static PyObject
*_wrap_wxTheColourDatabase_get() {
1258 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1259 pyobj
= PyString_FromString(ptemp
);
1263 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1266 src
= (wxGDIObject
*) ptr
;
1267 dest
= (wxObject
*) src
;
1268 return (void *) dest
;
1271 #define new_wxGDIObject() (new wxGDIObject())
1272 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1273 PyObject
* _resultobj
;
1274 wxGDIObject
* _result
;
1275 char *_kwnames
[] = { NULL
};
1279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1282 wxPy_BEGIN_ALLOW_THREADS
;
1283 _result
= (wxGDIObject
*)new_wxGDIObject();
1285 wxPy_END_ALLOW_THREADS
;
1286 if (PyErr_Occurred()) return NULL
;
1288 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1289 _resultobj
= Py_BuildValue("s",_ptemp
);
1292 _resultobj
= Py_None
;
1297 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1298 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1299 PyObject
* _resultobj
;
1300 wxGDIObject
* _arg0
;
1301 PyObject
* _argo0
= 0;
1302 char *_kwnames
[] = { "self", NULL
};
1305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1315 wxPy_BEGIN_ALLOW_THREADS
;
1316 delete_wxGDIObject(_arg0
);
1318 wxPy_END_ALLOW_THREADS
;
1319 if (PyErr_Occurred()) return NULL
;
1320 } Py_INCREF(Py_None
);
1321 _resultobj
= Py_None
;
1325 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1326 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1327 PyObject
* _resultobj
;
1329 wxGDIObject
* _arg0
;
1330 PyObject
* _argo0
= 0;
1331 char *_kwnames
[] = { "self", NULL
};
1334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1337 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1338 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1339 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1344 wxPy_BEGIN_ALLOW_THREADS
;
1345 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1347 wxPy_END_ALLOW_THREADS
;
1348 if (PyErr_Occurred()) return NULL
;
1349 } _resultobj
= Py_BuildValue("i",_result
);
1353 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1354 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1355 PyObject
* _resultobj
;
1356 wxGDIObject
* _arg0
;
1358 PyObject
* _argo0
= 0;
1360 char *_kwnames
[] = { "self","visible", NULL
};
1363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1372 _arg1
= (bool ) tempbool1
;
1374 wxPy_BEGIN_ALLOW_THREADS
;
1375 wxGDIObject_SetVisible(_arg0
,_arg1
);
1377 wxPy_END_ALLOW_THREADS
;
1378 if (PyErr_Occurred()) return NULL
;
1379 } Py_INCREF(Py_None
);
1380 _resultobj
= Py_None
;
1384 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1385 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1386 PyObject
* _resultobj
;
1388 wxGDIObject
* _arg0
;
1389 PyObject
* _argo0
= 0;
1390 char *_kwnames
[] = { "self", NULL
};
1393 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1396 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1397 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1398 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1403 wxPy_BEGIN_ALLOW_THREADS
;
1404 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1406 wxPy_END_ALLOW_THREADS
;
1407 if (PyErr_Occurred()) return NULL
;
1408 } _resultobj
= Py_BuildValue("i",_result
);
1412 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1415 src
= (wxBitmap
*) ptr
;
1416 dest
= (wxGDIObject
*) src
;
1417 return (void *) dest
;
1420 static void *SwigwxBitmapTowxObject(void *ptr
) {
1423 src
= (wxBitmap
*) ptr
;
1424 dest
= (wxObject
*) src
;
1425 return (void *) dest
;
1428 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1429 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1430 PyObject
* _resultobj
;
1434 PyObject
* _obj0
= 0;
1435 char *_kwnames
[] = { "name","type", NULL
};
1439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1442 #if PYTHON_API_VERSION >= 1009
1443 char* tmpPtr
; int tmpSize
;
1444 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1445 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1448 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1450 _arg0
= new wxString(tmpPtr
, tmpSize
);
1452 if (!PyString_Check(_obj0
)) {
1453 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1456 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1460 wxPy_BEGIN_ALLOW_THREADS
;
1461 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1463 wxPy_END_ALLOW_THREADS
;
1464 if (PyErr_Occurred()) return NULL
;
1466 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1467 _resultobj
= Py_BuildValue("s",_ptemp
);
1470 _resultobj
= Py_None
;
1479 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1480 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1481 PyObject
* _resultobj
;
1483 PyObject
* _argo0
= 0;
1484 char *_kwnames
[] = { "self", NULL
};
1487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1497 wxPy_BEGIN_ALLOW_THREADS
;
1498 delete_wxBitmap(_arg0
);
1500 wxPy_END_ALLOW_THREADS
;
1501 if (PyErr_Occurred()) return NULL
;
1502 } Py_INCREF(Py_None
);
1503 _resultobj
= Py_None
;
1507 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1508 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1509 PyObject
* _resultobj
;
1510 wxPalette
* _result
;
1512 PyObject
* _argo0
= 0;
1513 char *_kwnames
[] = { "self", NULL
};
1517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1527 wxPy_BEGIN_ALLOW_THREADS
;
1528 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1530 wxPy_END_ALLOW_THREADS
;
1531 if (PyErr_Occurred()) return NULL
;
1533 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1534 _resultobj
= Py_BuildValue("s",_ptemp
);
1537 _resultobj
= Py_None
;
1542 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1543 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1544 PyObject
* _resultobj
;
1547 PyObject
* _argo0
= 0;
1548 char *_kwnames
[] = { "self", NULL
};
1552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1562 wxPy_BEGIN_ALLOW_THREADS
;
1563 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1565 wxPy_END_ALLOW_THREADS
;
1566 if (PyErr_Occurred()) return NULL
;
1568 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1569 _resultobj
= Py_BuildValue("s",_ptemp
);
1572 _resultobj
= Py_None
;
1577 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1578 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1579 PyObject
* _resultobj
;
1584 PyObject
* _argo0
= 0;
1585 PyObject
* _obj1
= 0;
1586 char *_kwnames
[] = { "self","name","flags", NULL
};
1589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1599 #if PYTHON_API_VERSION >= 1009
1600 char* tmpPtr
; int tmpSize
;
1601 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1602 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1605 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1607 _arg1
= new wxString(tmpPtr
, tmpSize
);
1609 if (!PyString_Check(_obj1
)) {
1610 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1613 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1617 wxPy_BEGIN_ALLOW_THREADS
;
1618 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1620 wxPy_END_ALLOW_THREADS
;
1621 if (PyErr_Occurred()) return NULL
;
1622 } _resultobj
= Py_BuildValue("i",_result
);
1630 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1631 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1632 PyObject
* _resultobj
;
1637 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1638 PyObject
* _argo0
= 0;
1639 PyObject
* _obj1
= 0;
1640 PyObject
* _argo3
= 0;
1641 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1654 #if PYTHON_API_VERSION >= 1009
1655 char* tmpPtr
; int tmpSize
;
1656 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1657 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1660 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1662 _arg1
= new wxString(tmpPtr
, tmpSize
);
1664 if (!PyString_Check(_obj1
)) {
1665 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1668 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1672 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1673 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1679 wxPy_BEGIN_ALLOW_THREADS
;
1680 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1682 wxPy_END_ALLOW_THREADS
;
1683 if (PyErr_Occurred()) return NULL
;
1684 } _resultobj
= Py_BuildValue("i",_result
);
1692 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1693 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1694 PyObject
* _resultobj
;
1697 PyObject
* _argo0
= 0;
1698 PyObject
* _argo1
= 0;
1699 char *_kwnames
[] = { "self","mask", NULL
};
1702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1712 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1713 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1719 wxPy_BEGIN_ALLOW_THREADS
;
1720 wxBitmap_SetMask(_arg0
,_arg1
);
1722 wxPy_END_ALLOW_THREADS
;
1723 if (PyErr_Occurred()) return NULL
;
1724 } Py_INCREF(Py_None
);
1725 _resultobj
= Py_None
;
1729 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1730 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1731 PyObject
* _resultobj
;
1734 PyObject
* _argo0
= 0;
1735 char *_kwnames
[] = { "self", NULL
};
1738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1741 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1742 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1748 wxPy_BEGIN_ALLOW_THREADS
;
1749 _result
= (bool )wxBitmap_Ok(_arg0
);
1751 wxPy_END_ALLOW_THREADS
;
1752 if (PyErr_Occurred()) return NULL
;
1753 } _resultobj
= Py_BuildValue("i",_result
);
1757 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1758 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1759 PyObject
* _resultobj
;
1762 PyObject
* _argo0
= 0;
1763 char *_kwnames
[] = { "self", NULL
};
1766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1776 wxPy_BEGIN_ALLOW_THREADS
;
1777 _result
= (int )wxBitmap_GetWidth(_arg0
);
1779 wxPy_END_ALLOW_THREADS
;
1780 if (PyErr_Occurred()) return NULL
;
1781 } _resultobj
= Py_BuildValue("i",_result
);
1785 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1786 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1787 PyObject
* _resultobj
;
1790 PyObject
* _argo0
= 0;
1791 char *_kwnames
[] = { "self", NULL
};
1794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1797 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1798 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1804 wxPy_BEGIN_ALLOW_THREADS
;
1805 _result
= (int )wxBitmap_GetHeight(_arg0
);
1807 wxPy_END_ALLOW_THREADS
;
1808 if (PyErr_Occurred()) return NULL
;
1809 } _resultobj
= Py_BuildValue("i",_result
);
1813 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1814 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1815 PyObject
* _resultobj
;
1818 PyObject
* _argo0
= 0;
1819 char *_kwnames
[] = { "self", NULL
};
1822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1832 wxPy_BEGIN_ALLOW_THREADS
;
1833 _result
= (int )wxBitmap_GetDepth(_arg0
);
1835 wxPy_END_ALLOW_THREADS
;
1836 if (PyErr_Occurred()) return NULL
;
1837 } _resultobj
= Py_BuildValue("i",_result
);
1841 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1842 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1843 PyObject
* _resultobj
;
1846 PyObject
* _argo0
= 0;
1847 char *_kwnames
[] = { "self","w", NULL
};
1850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1853 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1854 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1860 wxPy_BEGIN_ALLOW_THREADS
;
1861 wxBitmap_SetWidth(_arg0
,_arg1
);
1863 wxPy_END_ALLOW_THREADS
;
1864 if (PyErr_Occurred()) return NULL
;
1865 } Py_INCREF(Py_None
);
1866 _resultobj
= Py_None
;
1870 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1871 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1872 PyObject
* _resultobj
;
1875 PyObject
* _argo0
= 0;
1876 char *_kwnames
[] = { "self","h", NULL
};
1879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1889 wxPy_BEGIN_ALLOW_THREADS
;
1890 wxBitmap_SetHeight(_arg0
,_arg1
);
1892 wxPy_END_ALLOW_THREADS
;
1893 if (PyErr_Occurred()) return NULL
;
1894 } Py_INCREF(Py_None
);
1895 _resultobj
= Py_None
;
1899 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1900 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1901 PyObject
* _resultobj
;
1904 PyObject
* _argo0
= 0;
1905 char *_kwnames
[] = { "self","d", NULL
};
1908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1911 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1912 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1913 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1918 wxPy_BEGIN_ALLOW_THREADS
;
1919 wxBitmap_SetDepth(_arg0
,_arg1
);
1921 wxPy_END_ALLOW_THREADS
;
1922 if (PyErr_Occurred()) return NULL
;
1923 } Py_INCREF(Py_None
);
1924 _resultobj
= Py_None
;
1928 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1929 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1930 PyObject
* _resultobj
;
1934 PyObject
* _argo0
= 0;
1936 PyObject
* _obj1
= 0;
1937 char *_kwnames
[] = { "self","rect", NULL
};
1941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1944 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1945 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1952 if (! wxRect_helper(_obj1
, &_arg1
))
1956 wxPy_BEGIN_ALLOW_THREADS
;
1957 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
1959 wxPy_END_ALLOW_THREADS
;
1960 if (PyErr_Occurred()) return NULL
;
1961 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1962 _resultobj
= Py_BuildValue("s",_ptemp
);
1966 static void *SwigwxMaskTowxObject(void *ptr
) {
1969 src
= (wxMask
*) ptr
;
1970 dest
= (wxObject
*) src
;
1971 return (void *) dest
;
1974 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
1975 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1976 PyObject
* _resultobj
;
1979 PyObject
* _argo0
= 0;
1980 char *_kwnames
[] = { "bitmap", NULL
};
1984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
1987 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1988 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
1994 wxPy_BEGIN_ALLOW_THREADS
;
1995 _result
= (wxMask
*)new_wxMask(*_arg0
);
1997 wxPy_END_ALLOW_THREADS
;
1998 if (PyErr_Occurred()) return NULL
;
2000 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2001 _resultobj
= Py_BuildValue("s",_ptemp
);
2004 _resultobj
= Py_None
;
2009 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2010 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2011 PyObject
* _resultobj
;
2013 PyObject
* _argo0
= 0;
2014 char *_kwnames
[] = { "self", NULL
};
2017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2027 wxPy_BEGIN_ALLOW_THREADS
;
2028 wxMask_Destroy(_arg0
);
2030 wxPy_END_ALLOW_THREADS
;
2031 if (PyErr_Occurred()) return NULL
;
2032 } Py_INCREF(Py_None
);
2033 _resultobj
= Py_None
;
2037 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2040 src
= (wxIcon
*) ptr
;
2041 dest
= (wxGDIObject
*) src
;
2042 return (void *) dest
;
2045 static void *SwigwxIconTowxObject(void *ptr
) {
2048 src
= (wxIcon
*) ptr
;
2049 dest
= (wxObject
*) src
;
2050 return (void *) dest
;
2053 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2054 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2055 PyObject
* _resultobj
;
2059 int _arg2
= (int ) -1;
2060 int _arg3
= (int ) -1;
2061 PyObject
* _obj0
= 0;
2062 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2066 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2069 #if PYTHON_API_VERSION >= 1009
2070 char* tmpPtr
; int tmpSize
;
2071 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2072 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2075 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2077 _arg0
= new wxString(tmpPtr
, tmpSize
);
2079 if (!PyString_Check(_obj0
)) {
2080 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2083 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2087 wxPy_BEGIN_ALLOW_THREADS
;
2088 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2090 wxPy_END_ALLOW_THREADS
;
2091 if (PyErr_Occurred()) return NULL
;
2093 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2094 _resultobj
= Py_BuildValue("s",_ptemp
);
2097 _resultobj
= Py_None
;
2106 #define delete_wxIcon(_swigobj) (delete _swigobj)
2107 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2108 PyObject
* _resultobj
;
2110 PyObject
* _argo0
= 0;
2111 char *_kwnames
[] = { "self", NULL
};
2114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2124 wxPy_BEGIN_ALLOW_THREADS
;
2125 delete_wxIcon(_arg0
);
2127 wxPy_END_ALLOW_THREADS
;
2128 if (PyErr_Occurred()) return NULL
;
2129 } Py_INCREF(Py_None
);
2130 _resultobj
= Py_None
;
2134 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2135 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2136 PyObject
* _resultobj
;
2141 PyObject
* _argo0
= 0;
2142 PyObject
* _obj1
= 0;
2143 char *_kwnames
[] = { "self","name","flags", NULL
};
2146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2149 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2150 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2156 #if PYTHON_API_VERSION >= 1009
2157 char* tmpPtr
; int tmpSize
;
2158 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2159 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2162 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2164 _arg1
= new wxString(tmpPtr
, tmpSize
);
2166 if (!PyString_Check(_obj1
)) {
2167 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2170 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2174 wxPy_BEGIN_ALLOW_THREADS
;
2175 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2177 wxPy_END_ALLOW_THREADS
;
2178 if (PyErr_Occurred()) return NULL
;
2179 } _resultobj
= Py_BuildValue("i",_result
);
2187 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2188 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2189 PyObject
* _resultobj
;
2192 PyObject
* _argo0
= 0;
2193 char *_kwnames
[] = { "self", NULL
};
2196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2206 wxPy_BEGIN_ALLOW_THREADS
;
2207 _result
= (bool )wxIcon_Ok(_arg0
);
2209 wxPy_END_ALLOW_THREADS
;
2210 if (PyErr_Occurred()) return NULL
;
2211 } _resultobj
= Py_BuildValue("i",_result
);
2215 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2216 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2217 PyObject
* _resultobj
;
2220 PyObject
* _argo0
= 0;
2221 char *_kwnames
[] = { "self", NULL
};
2224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2234 wxPy_BEGIN_ALLOW_THREADS
;
2235 _result
= (int )wxIcon_GetWidth(_arg0
);
2237 wxPy_END_ALLOW_THREADS
;
2238 if (PyErr_Occurred()) return NULL
;
2239 } _resultobj
= Py_BuildValue("i",_result
);
2243 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2244 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2245 PyObject
* _resultobj
;
2248 PyObject
* _argo0
= 0;
2249 char *_kwnames
[] = { "self", NULL
};
2252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2262 wxPy_BEGIN_ALLOW_THREADS
;
2263 _result
= (int )wxIcon_GetHeight(_arg0
);
2265 wxPy_END_ALLOW_THREADS
;
2266 if (PyErr_Occurred()) return NULL
;
2267 } _resultobj
= Py_BuildValue("i",_result
);
2271 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2272 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2273 PyObject
* _resultobj
;
2276 PyObject
* _argo0
= 0;
2277 char *_kwnames
[] = { "self", NULL
};
2280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2290 wxPy_BEGIN_ALLOW_THREADS
;
2291 _result
= (int )wxIcon_GetDepth(_arg0
);
2293 wxPy_END_ALLOW_THREADS
;
2294 if (PyErr_Occurred()) return NULL
;
2295 } _resultobj
= Py_BuildValue("i",_result
);
2299 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2300 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2301 PyObject
* _resultobj
;
2304 PyObject
* _argo0
= 0;
2305 char *_kwnames
[] = { "self","w", NULL
};
2308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2318 wxPy_BEGIN_ALLOW_THREADS
;
2319 wxIcon_SetWidth(_arg0
,_arg1
);
2321 wxPy_END_ALLOW_THREADS
;
2322 if (PyErr_Occurred()) return NULL
;
2323 } Py_INCREF(Py_None
);
2324 _resultobj
= Py_None
;
2328 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2329 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2330 PyObject
* _resultobj
;
2333 PyObject
* _argo0
= 0;
2334 char *_kwnames
[] = { "self","h", NULL
};
2337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2340 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2341 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2342 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2347 wxPy_BEGIN_ALLOW_THREADS
;
2348 wxIcon_SetHeight(_arg0
,_arg1
);
2350 wxPy_END_ALLOW_THREADS
;
2351 if (PyErr_Occurred()) return NULL
;
2352 } Py_INCREF(Py_None
);
2353 _resultobj
= Py_None
;
2357 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2358 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2359 PyObject
* _resultobj
;
2362 PyObject
* _argo0
= 0;
2363 char *_kwnames
[] = { "self","d", NULL
};
2366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2376 wxPy_BEGIN_ALLOW_THREADS
;
2377 wxIcon_SetDepth(_arg0
,_arg1
);
2379 wxPy_END_ALLOW_THREADS
;
2380 if (PyErr_Occurred()) return NULL
;
2381 } Py_INCREF(Py_None
);
2382 _resultobj
= Py_None
;
2386 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2387 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2388 PyObject
* _resultobj
;
2391 PyObject
* _argo0
= 0;
2392 PyObject
* _argo1
= 0;
2393 char *_kwnames
[] = { "self","bmp", NULL
};
2396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2406 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2407 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2413 wxPy_BEGIN_ALLOW_THREADS
;
2414 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2416 wxPy_END_ALLOW_THREADS
;
2417 if (PyErr_Occurred()) return NULL
;
2418 } Py_INCREF(Py_None
);
2419 _resultobj
= Py_None
;
2423 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2426 src
= (wxCursor
*) ptr
;
2427 dest
= (wxGDIObject
*) src
;
2428 return (void *) dest
;
2431 static void *SwigwxCursorTowxObject(void *ptr
) {
2434 src
= (wxCursor
*) ptr
;
2435 dest
= (wxObject
*) src
;
2436 return (void *) dest
;
2439 #define delete_wxCursor(_swigobj) (delete _swigobj)
2440 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2441 PyObject
* _resultobj
;
2443 PyObject
* _argo0
= 0;
2444 char *_kwnames
[] = { "self", NULL
};
2447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2457 wxPy_BEGIN_ALLOW_THREADS
;
2458 delete_wxCursor(_arg0
);
2460 wxPy_END_ALLOW_THREADS
;
2461 if (PyErr_Occurred()) return NULL
;
2462 } Py_INCREF(Py_None
);
2463 _resultobj
= Py_None
;
2467 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2468 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2469 PyObject
* _resultobj
;
2472 PyObject
* _argo0
= 0;
2473 char *_kwnames
[] = { "self", NULL
};
2476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2486 wxPy_BEGIN_ALLOW_THREADS
;
2487 _result
= (bool )wxCursor_Ok(_arg0
);
2489 wxPy_END_ALLOW_THREADS
;
2490 if (PyErr_Occurred()) return NULL
;
2491 } _resultobj
= Py_BuildValue("i",_result
);
2495 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
2496 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2497 PyObject
* _resultobj
;
2499 wxNativeFontInfo
* _arg0
;
2501 PyObject
* _argo0
= 0;
2502 PyObject
* _obj1
= 0;
2503 char *_kwnames
[] = { "self","s", NULL
};
2506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
2509 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2510 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
2516 #if PYTHON_API_VERSION >= 1009
2517 char* tmpPtr
; int tmpSize
;
2518 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2519 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2522 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2524 _arg1
= new wxString(tmpPtr
, tmpSize
);
2526 if (!PyString_Check(_obj1
)) {
2527 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2530 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2534 wxPy_BEGIN_ALLOW_THREADS
;
2535 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
2537 wxPy_END_ALLOW_THREADS
;
2538 if (PyErr_Occurred()) return NULL
;
2539 } _resultobj
= Py_BuildValue("i",_result
);
2547 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
2548 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2549 PyObject
* _resultobj
;
2551 wxNativeFontInfo
* _arg0
;
2552 PyObject
* _argo0
= 0;
2553 char *_kwnames
[] = { "self", NULL
};
2556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
2559 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2560 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
2566 wxPy_BEGIN_ALLOW_THREADS
;
2567 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
2569 wxPy_END_ALLOW_THREADS
;
2570 if (PyErr_Occurred()) return NULL
;
2572 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2580 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
2581 return self
->ToString();
2583 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2584 PyObject
* _resultobj
;
2586 wxNativeFontInfo
* _arg0
;
2587 PyObject
* _argo0
= 0;
2588 char *_kwnames
[] = { "self", NULL
};
2591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
2594 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2595 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
2601 wxPy_BEGIN_ALLOW_THREADS
;
2602 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
2604 wxPy_END_ALLOW_THREADS
;
2605 if (PyErr_Occurred()) return NULL
;
2607 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2615 #define new_wxFontMapper() (new wxFontMapper())
2616 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2617 PyObject
* _resultobj
;
2618 wxFontMapper
* _result
;
2619 char *_kwnames
[] = { NULL
};
2623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
2626 wxPy_BEGIN_ALLOW_THREADS
;
2627 _result
= (wxFontMapper
*)new_wxFontMapper();
2629 wxPy_END_ALLOW_THREADS
;
2630 if (PyErr_Occurred()) return NULL
;
2632 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
2633 _resultobj
= Py_BuildValue("s",_ptemp
);
2636 _resultobj
= Py_None
;
2641 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
2642 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2643 PyObject
* _resultobj
;
2644 wxFontMapper
* _arg0
;
2645 PyObject
* _argo0
= 0;
2646 char *_kwnames
[] = { "self", NULL
};
2649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
2652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
2659 wxPy_BEGIN_ALLOW_THREADS
;
2660 delete_wxFontMapper(_arg0
);
2662 wxPy_END_ALLOW_THREADS
;
2663 if (PyErr_Occurred()) return NULL
;
2664 } Py_INCREF(Py_None
);
2665 _resultobj
= Py_None
;
2669 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
2670 wxFontEncoding alt_enc
;
2671 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
2672 return PyInt_FromLong(alt_enc
);
2678 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2679 PyObject
* _resultobj
;
2681 wxFontMapper
* _arg0
;
2682 wxFontEncoding _arg1
;
2683 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
2684 bool _arg3
= (bool ) TRUE
;
2685 PyObject
* _argo0
= 0;
2686 PyObject
* _obj2
= 0;
2687 int tempbool3
= (int) TRUE
;
2688 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
2691 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
2694 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2695 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
2702 #if PYTHON_API_VERSION >= 1009
2703 char* tmpPtr
; int tmpSize
;
2704 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2705 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2708 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2710 _arg2
= new wxString(tmpPtr
, tmpSize
);
2712 if (!PyString_Check(_obj2
)) {
2713 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2716 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2719 _arg3
= (bool ) tempbool3
;
2721 wxPy_BEGIN_ALLOW_THREADS
;
2722 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
2724 wxPy_END_ALLOW_THREADS
;
2725 if (PyErr_Occurred()) return NULL
;
2727 _resultobj
= _result
;
2736 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
2737 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2738 PyObject
* _resultobj
;
2740 wxFontMapper
* _arg0
;
2741 wxFontEncoding _arg1
;
2742 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
2743 PyObject
* _argo0
= 0;
2744 PyObject
* _obj2
= 0;
2745 char *_kwnames
[] = { "self","encoding","facename", NULL
};
2748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2751 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2752 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
2759 #if PYTHON_API_VERSION >= 1009
2760 char* tmpPtr
; int tmpSize
;
2761 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2762 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2765 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2767 _arg2
= new wxString(tmpPtr
, tmpSize
);
2769 if (!PyString_Check(_obj2
)) {
2770 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2773 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2777 wxPy_BEGIN_ALLOW_THREADS
;
2778 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
2780 wxPy_END_ALLOW_THREADS
;
2781 if (PyErr_Occurred()) return NULL
;
2782 } _resultobj
= Py_BuildValue("i",_result
);
2790 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
2791 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2792 PyObject
* _resultobj
;
2793 wxFontEncoding _result
;
2794 wxFontMapper
* _arg0
;
2796 bool _arg2
= (bool ) TRUE
;
2797 PyObject
* _argo0
= 0;
2798 PyObject
* _obj1
= 0;
2799 int tempbool2
= (int) TRUE
;
2800 char *_kwnames
[] = { "self","charset","interactive", NULL
};
2803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
2806 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2807 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
2813 #if PYTHON_API_VERSION >= 1009
2814 char* tmpPtr
; int tmpSize
;
2815 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2816 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2819 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2821 _arg1
= new wxString(tmpPtr
, tmpSize
);
2823 if (!PyString_Check(_obj1
)) {
2824 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2827 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2830 _arg2
= (bool ) tempbool2
;
2832 wxPy_BEGIN_ALLOW_THREADS
;
2833 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
2835 wxPy_END_ALLOW_THREADS
;
2836 if (PyErr_Occurred()) return NULL
;
2837 } _resultobj
= Py_BuildValue("i",_result
);
2845 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2846 PyObject
* _resultobj
;
2848 wxFontEncoding _arg0
;
2849 char *_kwnames
[] = { "encoding", NULL
};
2852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
2855 wxPy_BEGIN_ALLOW_THREADS
;
2856 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
2858 wxPy_END_ALLOW_THREADS
;
2859 if (PyErr_Occurred()) return NULL
;
2861 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2869 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2870 PyObject
* _resultobj
;
2872 wxFontEncoding _arg0
;
2873 char *_kwnames
[] = { "encoding", NULL
};
2876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
2879 wxPy_BEGIN_ALLOW_THREADS
;
2880 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
2882 wxPy_END_ALLOW_THREADS
;
2883 if (PyErr_Occurred()) return NULL
;
2885 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2893 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
2894 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2895 PyObject
* _resultobj
;
2896 wxFontMapper
* _arg0
;
2898 PyObject
* _argo0
= 0;
2899 PyObject
* _argo1
= 0;
2900 char *_kwnames
[] = { "self","parent", NULL
};
2903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
2906 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2907 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
2913 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2914 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
2915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
2920 wxPy_BEGIN_ALLOW_THREADS
;
2921 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
2923 wxPy_END_ALLOW_THREADS
;
2924 if (PyErr_Occurred()) return NULL
;
2925 } Py_INCREF(Py_None
);
2926 _resultobj
= Py_None
;
2930 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
2931 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2932 PyObject
* _resultobj
;
2933 wxFontMapper
* _arg0
;
2935 PyObject
* _argo0
= 0;
2936 PyObject
* _obj1
= 0;
2937 char *_kwnames
[] = { "self","title", NULL
};
2940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
2943 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2944 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
2950 #if PYTHON_API_VERSION >= 1009
2951 char* tmpPtr
; int tmpSize
;
2952 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2953 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2956 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2958 _arg1
= new wxString(tmpPtr
, tmpSize
);
2960 if (!PyString_Check(_obj1
)) {
2961 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2964 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2968 wxPy_BEGIN_ALLOW_THREADS
;
2969 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
2971 wxPy_END_ALLOW_THREADS
;
2972 if (PyErr_Occurred()) return NULL
;
2973 } Py_INCREF(Py_None
);
2974 _resultobj
= Py_None
;
2982 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
2983 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2984 PyObject
* _resultobj
;
2985 wxFontMapper
* _arg0
;
2986 wxConfigBase
* _arg1
;
2987 PyObject
* _argo0
= 0;
2988 PyObject
* _argo1
= 0;
2989 char *_kwnames
[] = { "self","config", NULL
};
2992 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
2995 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2996 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
2997 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3002 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3003 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
3004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3009 wxPy_BEGIN_ALLOW_THREADS
;
3010 wxFontMapper_SetConfig(_arg0
,_arg1
);
3012 wxPy_END_ALLOW_THREADS
;
3013 if (PyErr_Occurred()) return NULL
;
3014 } Py_INCREF(Py_None
);
3015 _resultobj
= Py_None
;
3019 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3020 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3021 PyObject
* _resultobj
;
3022 wxFontMapper
* _arg0
;
3024 PyObject
* _argo0
= 0;
3025 PyObject
* _obj1
= 0;
3026 char *_kwnames
[] = { "self","prefix", NULL
};
3029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
3032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3039 #if PYTHON_API_VERSION >= 1009
3040 char* tmpPtr
; int tmpSize
;
3041 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3042 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3045 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3047 _arg1
= new wxString(tmpPtr
, tmpSize
);
3049 if (!PyString_Check(_obj1
)) {
3050 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3053 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3057 wxPy_BEGIN_ALLOW_THREADS
;
3058 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
3060 wxPy_END_ALLOW_THREADS
;
3061 if (PyErr_Occurred()) return NULL
;
3062 } Py_INCREF(Py_None
);
3063 _resultobj
= Py_None
;
3071 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3072 PyObject
* _resultobj
;
3074 char *_kwnames
[] = { NULL
};
3077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
3080 wxPy_BEGIN_ALLOW_THREADS
;
3081 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
3083 wxPy_END_ALLOW_THREADS
;
3084 if (PyErr_Occurred()) return NULL
;
3085 } _resultobj
= Py_BuildValue("s", _result
);
3089 static void *SwigwxFontTowxGDIObject(void *ptr
) {
3092 src
= (wxFont
*) ptr
;
3093 dest
= (wxGDIObject
*) src
;
3094 return (void *) dest
;
3097 static void *SwigwxFontTowxObject(void *ptr
) {
3100 src
= (wxFont
*) ptr
;
3101 dest
= (wxObject
*) src
;
3102 return (void *) dest
;
3105 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3106 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3107 PyObject
* _resultobj
;
3113 int _arg4
= (int ) FALSE
;
3114 char * _arg5
= (char *) "";
3115 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3116 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
3120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3123 wxPy_BEGIN_ALLOW_THREADS
;
3124 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3126 wxPy_END_ALLOW_THREADS
;
3127 if (PyErr_Occurred()) return NULL
;
3129 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3130 _resultobj
= Py_BuildValue("s",_ptemp
);
3133 _resultobj
= Py_None
;
3138 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3139 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3140 PyObject
* _resultobj
;
3142 wxNativeFontInfo
* _arg0
;
3143 PyObject
* _argo0
= 0;
3144 char *_kwnames
[] = { "info", NULL
};
3148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
3151 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3152 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3153 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3158 wxPy_BEGIN_ALLOW_THREADS
;
3159 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
3161 wxPy_END_ALLOW_THREADS
;
3162 if (PyErr_Occurred()) return NULL
;
3164 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3165 _resultobj
= Py_BuildValue("s",_ptemp
);
3168 _resultobj
= Py_None
;
3173 #define delete_wxFont(_swigobj) (delete _swigobj)
3174 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3175 PyObject
* _resultobj
;
3177 PyObject
* _argo0
= 0;
3178 char *_kwnames
[] = { "self", NULL
};
3181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3184 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3185 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3191 wxPy_BEGIN_ALLOW_THREADS
;
3192 delete_wxFont(_arg0
);
3194 wxPy_END_ALLOW_THREADS
;
3195 if (PyErr_Occurred()) return NULL
;
3196 } Py_INCREF(Py_None
);
3197 _resultobj
= Py_None
;
3201 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3202 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3203 PyObject
* _resultobj
;
3206 PyObject
* _argo0
= 0;
3207 char *_kwnames
[] = { "self", NULL
};
3210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3220 wxPy_BEGIN_ALLOW_THREADS
;
3221 _result
= (bool )wxFont_Ok(_arg0
);
3223 wxPy_END_ALLOW_THREADS
;
3224 if (PyErr_Occurred()) return NULL
;
3225 } _resultobj
= Py_BuildValue("i",_result
);
3229 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3230 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3231 PyObject
* _resultobj
;
3234 PyObject
* _argo0
= 0;
3235 char *_kwnames
[] = { "self", NULL
};
3238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3241 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3242 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3243 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3248 wxPy_BEGIN_ALLOW_THREADS
;
3249 _result
= (int )wxFont_GetPointSize(_arg0
);
3251 wxPy_END_ALLOW_THREADS
;
3252 if (PyErr_Occurred()) return NULL
;
3253 } _resultobj
= Py_BuildValue("i",_result
);
3257 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3258 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3259 PyObject
* _resultobj
;
3262 PyObject
* _argo0
= 0;
3263 char *_kwnames
[] = { "self", NULL
};
3266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3276 wxPy_BEGIN_ALLOW_THREADS
;
3277 _result
= (int )wxFont_GetFamily(_arg0
);
3279 wxPy_END_ALLOW_THREADS
;
3280 if (PyErr_Occurred()) return NULL
;
3281 } _resultobj
= Py_BuildValue("i",_result
);
3285 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3286 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3287 PyObject
* _resultobj
;
3290 PyObject
* _argo0
= 0;
3291 char *_kwnames
[] = { "self", NULL
};
3294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3304 wxPy_BEGIN_ALLOW_THREADS
;
3305 _result
= (int )wxFont_GetStyle(_arg0
);
3307 wxPy_END_ALLOW_THREADS
;
3308 if (PyErr_Occurred()) return NULL
;
3309 } _resultobj
= Py_BuildValue("i",_result
);
3313 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3314 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3315 PyObject
* _resultobj
;
3318 PyObject
* _argo0
= 0;
3319 char *_kwnames
[] = { "self", NULL
};
3322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
3325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3332 wxPy_BEGIN_ALLOW_THREADS
;
3333 _result
= (int )wxFont_GetWeight(_arg0
);
3335 wxPy_END_ALLOW_THREADS
;
3336 if (PyErr_Occurred()) return NULL
;
3337 } _resultobj
= Py_BuildValue("i",_result
);
3341 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3342 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3343 PyObject
* _resultobj
;
3346 PyObject
* _argo0
= 0;
3347 char *_kwnames
[] = { "self", NULL
};
3350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
3353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3360 wxPy_BEGIN_ALLOW_THREADS
;
3361 _result
= (bool )wxFont_GetUnderlined(_arg0
);
3363 wxPy_END_ALLOW_THREADS
;
3364 if (PyErr_Occurred()) return NULL
;
3365 } _resultobj
= Py_BuildValue("i",_result
);
3369 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3370 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3371 PyObject
* _resultobj
;
3374 PyObject
* _argo0
= 0;
3375 char *_kwnames
[] = { "self", NULL
};
3378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
3381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3388 wxPy_BEGIN_ALLOW_THREADS
;
3389 _result
= new wxString (wxFont_GetFaceName(_arg0
));
3391 wxPy_END_ALLOW_THREADS
;
3392 if (PyErr_Occurred()) return NULL
;
3394 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3402 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3403 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3404 PyObject
* _resultobj
;
3405 wxFontEncoding _result
;
3407 PyObject
* _argo0
= 0;
3408 char *_kwnames
[] = { "self", NULL
};
3411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
3414 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3415 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3421 wxPy_BEGIN_ALLOW_THREADS
;
3422 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
3424 wxPy_END_ALLOW_THREADS
;
3425 if (PyErr_Occurred()) return NULL
;
3426 } _resultobj
= Py_BuildValue("i",_result
);
3430 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
3431 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3432 PyObject
* _resultobj
;
3433 wxNativeFontInfo
* _result
;
3435 PyObject
* _argo0
= 0;
3436 char *_kwnames
[] = { "self", NULL
};
3440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
3443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
3450 wxPy_BEGIN_ALLOW_THREADS
;
3451 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
3453 wxPy_END_ALLOW_THREADS
;
3454 if (PyErr_Occurred()) return NULL
;
3456 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
3457 _resultobj
= Py_BuildValue("s",_ptemp
);
3460 _resultobj
= Py_None
;
3465 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3466 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3467 PyObject
* _resultobj
;
3470 PyObject
* _argo0
= 0;
3471 char *_kwnames
[] = { "self","pointSize", NULL
};
3474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
3477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
3484 wxPy_BEGIN_ALLOW_THREADS
;
3485 wxFont_SetPointSize(_arg0
,_arg1
);
3487 wxPy_END_ALLOW_THREADS
;
3488 if (PyErr_Occurred()) return NULL
;
3489 } Py_INCREF(Py_None
);
3490 _resultobj
= Py_None
;
3494 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3495 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3496 PyObject
* _resultobj
;
3499 PyObject
* _argo0
= 0;
3500 char *_kwnames
[] = { "self","family", NULL
};
3503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
3506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
3513 wxPy_BEGIN_ALLOW_THREADS
;
3514 wxFont_SetFamily(_arg0
,_arg1
);
3516 wxPy_END_ALLOW_THREADS
;
3517 if (PyErr_Occurred()) return NULL
;
3518 } Py_INCREF(Py_None
);
3519 _resultobj
= Py_None
;
3523 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3524 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3525 PyObject
* _resultobj
;
3528 PyObject
* _argo0
= 0;
3529 char *_kwnames
[] = { "self","style", NULL
};
3532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
3542 wxPy_BEGIN_ALLOW_THREADS
;
3543 wxFont_SetStyle(_arg0
,_arg1
);
3545 wxPy_END_ALLOW_THREADS
;
3546 if (PyErr_Occurred()) return NULL
;
3547 } Py_INCREF(Py_None
);
3548 _resultobj
= Py_None
;
3552 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3553 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3554 PyObject
* _resultobj
;
3557 PyObject
* _argo0
= 0;
3558 char *_kwnames
[] = { "self","weight", NULL
};
3561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
3564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
3571 wxPy_BEGIN_ALLOW_THREADS
;
3572 wxFont_SetWeight(_arg0
,_arg1
);
3574 wxPy_END_ALLOW_THREADS
;
3575 if (PyErr_Occurred()) return NULL
;
3576 } Py_INCREF(Py_None
);
3577 _resultobj
= Py_None
;
3581 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3582 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3583 PyObject
* _resultobj
;
3586 PyObject
* _argo0
= 0;
3587 PyObject
* _obj1
= 0;
3588 char *_kwnames
[] = { "self","faceName", NULL
};
3591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
3594 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3595 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
3601 #if PYTHON_API_VERSION >= 1009
3602 char* tmpPtr
; int tmpSize
;
3603 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3604 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3607 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3609 _arg1
= new wxString(tmpPtr
, tmpSize
);
3611 if (!PyString_Check(_obj1
)) {
3612 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3615 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3619 wxPy_BEGIN_ALLOW_THREADS
;
3620 wxFont_SetFaceName(_arg0
,*_arg1
);
3622 wxPy_END_ALLOW_THREADS
;
3623 if (PyErr_Occurred()) return NULL
;
3624 } Py_INCREF(Py_None
);
3625 _resultobj
= Py_None
;
3633 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3634 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3635 PyObject
* _resultobj
;
3638 PyObject
* _argo0
= 0;
3640 char *_kwnames
[] = { "self","underlined", NULL
};
3643 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
3646 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3647 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
3652 _arg1
= (bool ) tempbool1
;
3654 wxPy_BEGIN_ALLOW_THREADS
;
3655 wxFont_SetUnderlined(_arg0
,_arg1
);
3657 wxPy_END_ALLOW_THREADS
;
3658 if (PyErr_Occurred()) return NULL
;
3659 } Py_INCREF(Py_None
);
3660 _resultobj
= Py_None
;
3664 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3665 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3666 PyObject
* _resultobj
;
3668 wxFontEncoding _arg1
;
3669 PyObject
* _argo0
= 0;
3670 char *_kwnames
[] = { "self","encoding", NULL
};
3673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
3676 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3677 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
3683 wxPy_BEGIN_ALLOW_THREADS
;
3684 wxFont_SetEncoding(_arg0
,_arg1
);
3686 wxPy_END_ALLOW_THREADS
;
3687 if (PyErr_Occurred()) return NULL
;
3688 } Py_INCREF(Py_None
);
3689 _resultobj
= Py_None
;
3693 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
3694 static PyObject
*_wrap_wxFont_SetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3695 PyObject
* _resultobj
;
3697 wxNativeFontInfo
* _arg1
;
3698 PyObject
* _argo0
= 0;
3699 PyObject
* _argo1
= 0;
3700 char *_kwnames
[] = { "self","info", NULL
};
3703 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfo",_kwnames
,&_argo0
,&_argo1
))
3706 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3707 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3708 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
3713 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3714 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxNativeFontInfo_p")) {
3715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
3720 wxPy_BEGIN_ALLOW_THREADS
;
3721 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
3723 wxPy_END_ALLOW_THREADS
;
3724 if (PyErr_Occurred()) return NULL
;
3725 } Py_INCREF(Py_None
);
3726 _resultobj
= Py_None
;
3730 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
3731 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3732 PyObject
* _resultobj
;
3735 PyObject
* _argo0
= 0;
3736 char *_kwnames
[] = { "self", NULL
};
3739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
3742 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3743 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3744 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
3749 wxPy_BEGIN_ALLOW_THREADS
;
3750 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
3752 wxPy_END_ALLOW_THREADS
;
3753 if (PyErr_Occurred()) return NULL
;
3755 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3763 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
3764 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3765 PyObject
* _resultobj
;
3768 PyObject
* _argo0
= 0;
3769 char *_kwnames
[] = { "self", NULL
};
3772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
3775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
3782 wxPy_BEGIN_ALLOW_THREADS
;
3783 _result
= new wxString (wxFont_GetStyleString(_arg0
));
3785 wxPy_END_ALLOW_THREADS
;
3786 if (PyErr_Occurred()) return NULL
;
3788 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3796 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
3797 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3798 PyObject
* _resultobj
;
3801 PyObject
* _argo0
= 0;
3802 char *_kwnames
[] = { "self", NULL
};
3805 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
3808 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3809 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3810 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
3815 wxPy_BEGIN_ALLOW_THREADS
;
3816 _result
= new wxString (wxFont_GetWeightString(_arg0
));
3818 wxPy_END_ALLOW_THREADS
;
3819 if (PyErr_Occurred()) return NULL
;
3821 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3829 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3830 PyObject
* _resultobj
;
3831 wxFontEncoding _result
;
3832 char *_kwnames
[] = { NULL
};
3835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
3838 wxPy_BEGIN_ALLOW_THREADS
;
3839 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
3841 wxPy_END_ALLOW_THREADS
;
3842 if (PyErr_Occurred()) return NULL
;
3843 } _resultobj
= Py_BuildValue("i",_result
);
3847 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3848 PyObject
* _resultobj
;
3849 wxFontEncoding _arg0
;
3850 char *_kwnames
[] = { "encoding", NULL
};
3853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
3856 wxPy_BEGIN_ALLOW_THREADS
;
3857 wxFont::SetDefaultEncoding(_arg0
);
3859 wxPy_END_ALLOW_THREADS
;
3860 if (PyErr_Occurred()) return NULL
;
3861 } Py_INCREF(Py_None
);
3862 _resultobj
= Py_None
;
3866 static void *SwigwxFontListTowxObject(void *ptr
) {
3869 src
= (wxFontList
*) ptr
;
3870 dest
= (wxObject
*) src
;
3871 return (void *) dest
;
3874 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
3875 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3876 PyObject
* _resultobj
;
3879 PyObject
* _argo0
= 0;
3880 PyObject
* _argo1
= 0;
3881 char *_kwnames
[] = { "self","font", NULL
};
3884 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
3887 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3888 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3889 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
3894 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3895 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
3901 wxPy_BEGIN_ALLOW_THREADS
;
3902 wxFontList_AddFont(_arg0
,_arg1
);
3904 wxPy_END_ALLOW_THREADS
;
3905 if (PyErr_Occurred()) return NULL
;
3906 } Py_INCREF(Py_None
);
3907 _resultobj
= Py_None
;
3911 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3912 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3913 PyObject
* _resultobj
;
3920 bool _arg5
= (bool ) FALSE
;
3921 char * _arg6
= (char *) NULL
;
3922 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3923 PyObject
* _argo0
= 0;
3924 int tempbool5
= (int) FALSE
;
3925 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
3929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
3932 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3933 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
3938 _arg5
= (bool ) tempbool5
;
3940 wxPy_BEGIN_ALLOW_THREADS
;
3941 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
3943 wxPy_END_ALLOW_THREADS
;
3944 if (PyErr_Occurred()) return NULL
;
3946 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3947 _resultobj
= Py_BuildValue("s",_ptemp
);
3950 _resultobj
= Py_None
;
3955 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
3956 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3957 PyObject
* _resultobj
;
3960 PyObject
* _argo0
= 0;
3961 PyObject
* _argo1
= 0;
3962 char *_kwnames
[] = { "self","font", NULL
};
3965 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
3968 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3969 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3970 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
3975 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3976 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
3982 wxPy_BEGIN_ALLOW_THREADS
;
3983 wxFontList_RemoveFont(_arg0
,_arg1
);
3985 wxPy_END_ALLOW_THREADS
;
3986 if (PyErr_Occurred()) return NULL
;
3987 } Py_INCREF(Py_None
);
3988 _resultobj
= Py_None
;
3992 static void *SwigwxColourTowxObject(void *ptr
) {
3995 src
= (wxColour
*) ptr
;
3996 dest
= (wxObject
*) src
;
3997 return (void *) dest
;
4000 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4001 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4002 PyObject
* _resultobj
;
4004 unsigned char _arg0
= (unsigned char ) 0;
4005 unsigned char _arg1
= (unsigned char ) 0;
4006 unsigned char _arg2
= (unsigned char ) 0;
4007 char *_kwnames
[] = { "red","green","blue", NULL
};
4011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
4014 wxPy_BEGIN_ALLOW_THREADS
;
4015 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
4017 wxPy_END_ALLOW_THREADS
;
4018 if (PyErr_Occurred()) return NULL
;
4020 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4021 _resultobj
= Py_BuildValue("s",_ptemp
);
4024 _resultobj
= Py_None
;
4029 #define delete_wxColour(_swigobj) (delete _swigobj)
4030 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4031 PyObject
* _resultobj
;
4034 PyObject
* _obj0
= 0;
4035 char *_kwnames
[] = { "self", NULL
};
4038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
4042 if (! wxColour_helper(_obj0
, &_arg0
))
4046 wxPy_BEGIN_ALLOW_THREADS
;
4047 delete_wxColour(_arg0
);
4049 wxPy_END_ALLOW_THREADS
;
4050 if (PyErr_Occurred()) return NULL
;
4051 } Py_INCREF(Py_None
);
4052 _resultobj
= Py_None
;
4056 #define wxColour_Red(_swigobj) (_swigobj->Red())
4057 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4058 PyObject
* _resultobj
;
4059 unsigned char _result
;
4062 PyObject
* _obj0
= 0;
4063 char *_kwnames
[] = { "self", NULL
};
4066 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
4070 if (! wxColour_helper(_obj0
, &_arg0
))
4074 wxPy_BEGIN_ALLOW_THREADS
;
4075 _result
= (unsigned char )wxColour_Red(_arg0
);
4077 wxPy_END_ALLOW_THREADS
;
4078 if (PyErr_Occurred()) return NULL
;
4079 } _resultobj
= Py_BuildValue("b",_result
);
4083 #define wxColour_Green(_swigobj) (_swigobj->Green())
4084 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4085 PyObject
* _resultobj
;
4086 unsigned char _result
;
4089 PyObject
* _obj0
= 0;
4090 char *_kwnames
[] = { "self", NULL
};
4093 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
4097 if (! wxColour_helper(_obj0
, &_arg0
))
4101 wxPy_BEGIN_ALLOW_THREADS
;
4102 _result
= (unsigned char )wxColour_Green(_arg0
);
4104 wxPy_END_ALLOW_THREADS
;
4105 if (PyErr_Occurred()) return NULL
;
4106 } _resultobj
= Py_BuildValue("b",_result
);
4110 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4111 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4112 PyObject
* _resultobj
;
4113 unsigned char _result
;
4116 PyObject
* _obj0
= 0;
4117 char *_kwnames
[] = { "self", NULL
};
4120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
4124 if (! wxColour_helper(_obj0
, &_arg0
))
4128 wxPy_BEGIN_ALLOW_THREADS
;
4129 _result
= (unsigned char )wxColour_Blue(_arg0
);
4131 wxPy_END_ALLOW_THREADS
;
4132 if (PyErr_Occurred()) return NULL
;
4133 } _resultobj
= Py_BuildValue("b",_result
);
4137 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4138 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4139 PyObject
* _resultobj
;
4143 PyObject
* _obj0
= 0;
4144 char *_kwnames
[] = { "self", NULL
};
4147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
4151 if (! wxColour_helper(_obj0
, &_arg0
))
4155 wxPy_BEGIN_ALLOW_THREADS
;
4156 _result
= (bool )wxColour_Ok(_arg0
);
4158 wxPy_END_ALLOW_THREADS
;
4159 if (PyErr_Occurred()) return NULL
;
4160 } _resultobj
= Py_BuildValue("i",_result
);
4164 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4165 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4166 PyObject
* _resultobj
;
4168 unsigned char _arg1
;
4169 unsigned char _arg2
;
4170 unsigned char _arg3
;
4172 PyObject
* _obj0
= 0;
4173 char *_kwnames
[] = { "self","red","green","blue", NULL
};
4176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
4180 if (! wxColour_helper(_obj0
, &_arg0
))
4184 wxPy_BEGIN_ALLOW_THREADS
;
4185 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
4187 wxPy_END_ALLOW_THREADS
;
4188 if (PyErr_Occurred()) return NULL
;
4189 } Py_INCREF(Py_None
);
4190 _resultobj
= Py_None
;
4194 static PyObject
* wxColour_Get(wxColour
*self
) {
4195 PyObject
* rv
= PyTuple_New(3);
4196 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
4197 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
4198 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
4201 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4202 PyObject
* _resultobj
;
4206 PyObject
* _obj0
= 0;
4207 char *_kwnames
[] = { "self", NULL
};
4210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
4214 if (! wxColour_helper(_obj0
, &_arg0
))
4218 wxPy_BEGIN_ALLOW_THREADS
;
4219 _result
= (PyObject
*)wxColour_Get(_arg0
);
4221 wxPy_END_ALLOW_THREADS
;
4222 if (PyErr_Occurred()) return NULL
;
4224 _resultobj
= _result
;
4229 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4230 wxColourDatabase
*src
;
4232 src
= (wxColourDatabase
*) ptr
;
4233 dest
= (wxObject
*) src
;
4234 return (void *) dest
;
4237 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4238 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4239 PyObject
* _resultobj
;
4241 wxColourDatabase
* _arg0
;
4243 PyObject
* _argo0
= 0;
4244 PyObject
* _obj1
= 0;
4245 char *_kwnames
[] = { "self","colour", NULL
};
4249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
4252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4259 #if PYTHON_API_VERSION >= 1009
4260 char* tmpPtr
; int tmpSize
;
4261 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4262 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4265 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4267 _arg1
= new wxString(tmpPtr
, tmpSize
);
4269 if (!PyString_Check(_obj1
)) {
4270 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4273 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4277 wxPy_BEGIN_ALLOW_THREADS
;
4278 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
4280 wxPy_END_ALLOW_THREADS
;
4281 if (PyErr_Occurred()) return NULL
;
4283 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4284 _resultobj
= Py_BuildValue("s",_ptemp
);
4287 _resultobj
= Py_None
;
4296 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4297 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4298 PyObject
* _resultobj
;
4300 wxColourDatabase
* _arg0
;
4302 PyObject
* _argo0
= 0;
4304 PyObject
* _obj1
= 0;
4305 char *_kwnames
[] = { "self","colour", NULL
};
4308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
4311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
4319 if (! wxColour_helper(_obj1
, &_arg1
))
4323 wxPy_BEGIN_ALLOW_THREADS
;
4324 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
4326 wxPy_END_ALLOW_THREADS
;
4327 if (PyErr_Occurred()) return NULL
;
4329 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4337 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
4338 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
4340 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4341 PyObject
* _resultobj
;
4342 wxColourDatabase
* _arg0
;
4347 PyObject
* _argo0
= 0;
4348 PyObject
* _obj1
= 0;
4349 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
4352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4362 #if PYTHON_API_VERSION >= 1009
4363 char* tmpPtr
; int tmpSize
;
4364 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4365 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4368 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4370 _arg1
= new wxString(tmpPtr
, tmpSize
);
4372 if (!PyString_Check(_obj1
)) {
4373 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4376 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4380 wxPy_BEGIN_ALLOW_THREADS
;
4381 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
4383 wxPy_END_ALLOW_THREADS
;
4384 if (PyErr_Occurred()) return NULL
;
4385 } Py_INCREF(Py_None
);
4386 _resultobj
= Py_None
;
4394 static void *SwigwxPenTowxGDIObject(void *ptr
) {
4397 src
= (wxPen
*) ptr
;
4398 dest
= (wxGDIObject
*) src
;
4399 return (void *) dest
;
4402 static void *SwigwxPenTowxObject(void *ptr
) {
4405 src
= (wxPen
*) ptr
;
4406 dest
= (wxObject
*) src
;
4407 return (void *) dest
;
4410 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4411 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4412 PyObject
* _resultobj
;
4415 int _arg1
= (int ) 1;
4416 int _arg2
= (int ) wxSOLID
;
4418 PyObject
* _obj0
= 0;
4419 char *_kwnames
[] = { "colour","width","style", NULL
};
4423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4427 if (! wxColour_helper(_obj0
, &_arg0
))
4431 wxPy_BEGIN_ALLOW_THREADS
;
4432 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
4434 wxPy_END_ALLOW_THREADS
;
4435 if (PyErr_Occurred()) return NULL
;
4437 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4438 _resultobj
= Py_BuildValue("s",_ptemp
);
4441 _resultobj
= Py_None
;
4446 #define delete_wxPen(_swigobj) (delete _swigobj)
4447 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4448 PyObject
* _resultobj
;
4450 PyObject
* _argo0
= 0;
4451 char *_kwnames
[] = { "self", NULL
};
4454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
4457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4464 wxPy_BEGIN_ALLOW_THREADS
;
4465 delete_wxPen(_arg0
);
4467 wxPy_END_ALLOW_THREADS
;
4468 if (PyErr_Occurred()) return NULL
;
4469 } Py_INCREF(Py_None
);
4470 _resultobj
= Py_None
;
4474 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4475 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4476 PyObject
* _resultobj
;
4479 PyObject
* _argo0
= 0;
4480 char *_kwnames
[] = { "self", NULL
};
4483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
4486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4493 wxPy_BEGIN_ALLOW_THREADS
;
4494 _result
= (int )wxPen_GetCap(_arg0
);
4496 wxPy_END_ALLOW_THREADS
;
4497 if (PyErr_Occurred()) return NULL
;
4498 } _resultobj
= Py_BuildValue("i",_result
);
4502 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4503 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4504 PyObject
* _resultobj
;
4507 PyObject
* _argo0
= 0;
4508 char *_kwnames
[] = { "self", NULL
};
4512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
4515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4522 wxPy_BEGIN_ALLOW_THREADS
;
4523 _result
= new wxColour (wxPen_GetColour(_arg0
));
4525 wxPy_END_ALLOW_THREADS
;
4526 if (PyErr_Occurred()) return NULL
;
4527 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4528 _resultobj
= Py_BuildValue("s",_ptemp
);
4532 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
4533 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4534 PyObject
* _resultobj
;
4537 PyObject
* _argo0
= 0;
4538 char *_kwnames
[] = { "self", NULL
};
4541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
4544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4551 wxPy_BEGIN_ALLOW_THREADS
;
4552 _result
= (int )wxPen_GetJoin(_arg0
);
4554 wxPy_END_ALLOW_THREADS
;
4555 if (PyErr_Occurred()) return NULL
;
4556 } _resultobj
= Py_BuildValue("i",_result
);
4560 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
4561 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4562 PyObject
* _resultobj
;
4565 PyObject
* _argo0
= 0;
4566 char *_kwnames
[] = { "self", NULL
};
4569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
4572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4579 wxPy_BEGIN_ALLOW_THREADS
;
4580 _result
= (int )wxPen_GetStyle(_arg0
);
4582 wxPy_END_ALLOW_THREADS
;
4583 if (PyErr_Occurred()) return NULL
;
4584 } _resultobj
= Py_BuildValue("i",_result
);
4588 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
4589 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4590 PyObject
* _resultobj
;
4593 PyObject
* _argo0
= 0;
4594 char *_kwnames
[] = { "self", NULL
};
4597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
4600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
4607 wxPy_BEGIN_ALLOW_THREADS
;
4608 _result
= (int )wxPen_GetWidth(_arg0
);
4610 wxPy_END_ALLOW_THREADS
;
4611 if (PyErr_Occurred()) return NULL
;
4612 } _resultobj
= Py_BuildValue("i",_result
);
4616 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
4617 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4618 PyObject
* _resultobj
;
4621 PyObject
* _argo0
= 0;
4622 char *_kwnames
[] = { "self", NULL
};
4625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
4628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
4635 wxPy_BEGIN_ALLOW_THREADS
;
4636 _result
= (bool )wxPen_Ok(_arg0
);
4638 wxPy_END_ALLOW_THREADS
;
4639 if (PyErr_Occurred()) return NULL
;
4640 } _resultobj
= Py_BuildValue("i",_result
);
4644 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
4645 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4646 PyObject
* _resultobj
;
4649 PyObject
* _argo0
= 0;
4650 char *_kwnames
[] = { "self","cap_style", NULL
};
4653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
4656 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4657 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4663 wxPy_BEGIN_ALLOW_THREADS
;
4664 wxPen_SetCap(_arg0
,_arg1
);
4666 wxPy_END_ALLOW_THREADS
;
4667 if (PyErr_Occurred()) return NULL
;
4668 } Py_INCREF(Py_None
);
4669 _resultobj
= Py_None
;
4673 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4674 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4675 PyObject
* _resultobj
;
4678 PyObject
* _argo0
= 0;
4680 PyObject
* _obj1
= 0;
4681 char *_kwnames
[] = { "self","colour", NULL
};
4684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
4687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4695 if (! wxColour_helper(_obj1
, &_arg1
))
4699 wxPy_BEGIN_ALLOW_THREADS
;
4700 wxPen_SetColour(_arg0
,*_arg1
);
4702 wxPy_END_ALLOW_THREADS
;
4703 if (PyErr_Occurred()) return NULL
;
4704 } Py_INCREF(Py_None
);
4705 _resultobj
= Py_None
;
4709 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4710 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4711 PyObject
* _resultobj
;
4714 PyObject
* _argo0
= 0;
4715 char *_kwnames
[] = { "self","join_style", NULL
};
4718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
4721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4728 wxPy_BEGIN_ALLOW_THREADS
;
4729 wxPen_SetJoin(_arg0
,_arg1
);
4731 wxPy_END_ALLOW_THREADS
;
4732 if (PyErr_Occurred()) return NULL
;
4733 } Py_INCREF(Py_None
);
4734 _resultobj
= Py_None
;
4738 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4739 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4740 PyObject
* _resultobj
;
4743 PyObject
* _argo0
= 0;
4744 char *_kwnames
[] = { "self","style", NULL
};
4747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4750 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4751 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4757 wxPy_BEGIN_ALLOW_THREADS
;
4758 wxPen_SetStyle(_arg0
,_arg1
);
4760 wxPy_END_ALLOW_THREADS
;
4761 if (PyErr_Occurred()) return NULL
;
4762 } Py_INCREF(Py_None
);
4763 _resultobj
= Py_None
;
4767 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4768 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4769 PyObject
* _resultobj
;
4772 PyObject
* _argo0
= 0;
4773 char *_kwnames
[] = { "self","width", NULL
};
4776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4779 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4780 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4786 wxPy_BEGIN_ALLOW_THREADS
;
4787 wxPen_SetWidth(_arg0
,_arg1
);
4789 wxPy_END_ALLOW_THREADS
;
4790 if (PyErr_Occurred()) return NULL
;
4791 } Py_INCREF(Py_None
);
4792 _resultobj
= Py_None
;
4796 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
4797 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4798 PyObject
* _resultobj
;
4802 PyObject
* _argo0
= 0;
4803 PyObject
* _argo1
= 0;
4804 char *_kwnames
[] = { "self","dashes", NULL
};
4807 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_GetDashes",_kwnames
,&_argo0
,&_argo1
))
4810 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4811 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4812 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4817 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4818 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDash_pp")) {
4819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
4824 wxPy_BEGIN_ALLOW_THREADS
;
4825 _result
= (int )wxPen_GetDashes(_arg0
,_arg1
);
4827 wxPy_END_ALLOW_THREADS
;
4828 if (PyErr_Occurred()) return NULL
;
4829 } _resultobj
= Py_BuildValue("i",_result
);
4833 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4834 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4835 PyObject
* _resultobj
;
4839 PyObject
* _argo0
= 0;
4840 PyObject
* _obj2
= 0;
4841 char *_kwnames
[] = { "self","choices", NULL
};
4844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4847 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4848 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4849 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4855 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4856 if (_arg2
== NULL
) {
4862 _arg1
= PyList_Size(_obj2
);
4869 wxPy_BEGIN_ALLOW_THREADS
;
4870 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4872 wxPy_END_ALLOW_THREADS
;
4873 if (PyErr_Occurred()) return NULL
;
4874 } Py_INCREF(Py_None
);
4875 _resultobj
= Py_None
;
4882 static void *SwigwxPenListTowxObject(void *ptr
) {
4885 src
= (wxPenList
*) ptr
;
4886 dest
= (wxObject
*) src
;
4887 return (void *) dest
;
4890 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4891 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4892 PyObject
* _resultobj
;
4895 PyObject
* _argo0
= 0;
4896 PyObject
* _argo1
= 0;
4897 char *_kwnames
[] = { "self","pen", NULL
};
4900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
4903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4910 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4911 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4917 wxPy_BEGIN_ALLOW_THREADS
;
4918 wxPenList_AddPen(_arg0
,_arg1
);
4920 wxPy_END_ALLOW_THREADS
;
4921 if (PyErr_Occurred()) return NULL
;
4922 } Py_INCREF(Py_None
);
4923 _resultobj
= Py_None
;
4927 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
4928 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4929 PyObject
* _resultobj
;
4935 PyObject
* _argo0
= 0;
4937 PyObject
* _obj1
= 0;
4938 char *_kwnames
[] = { "self","colour","width","style", NULL
};
4942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
4945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
4953 if (! wxColour_helper(_obj1
, &_arg1
))
4957 wxPy_BEGIN_ALLOW_THREADS
;
4958 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
4960 wxPy_END_ALLOW_THREADS
;
4961 if (PyErr_Occurred()) return NULL
;
4963 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4964 _resultobj
= Py_BuildValue("s",_ptemp
);
4967 _resultobj
= Py_None
;
4972 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
4973 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4974 PyObject
* _resultobj
;
4977 PyObject
* _argo0
= 0;
4978 PyObject
* _argo1
= 0;
4979 char *_kwnames
[] = { "self","pen", NULL
};
4982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
4985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
4992 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4993 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
4999 wxPy_BEGIN_ALLOW_THREADS
;
5000 wxPenList_RemovePen(_arg0
,_arg1
);
5002 wxPy_END_ALLOW_THREADS
;
5003 if (PyErr_Occurred()) return NULL
;
5004 } Py_INCREF(Py_None
);
5005 _resultobj
= Py_None
;
5009 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5012 src
= (wxBrush
*) ptr
;
5013 dest
= (wxGDIObject
*) src
;
5014 return (void *) dest
;
5017 static void *SwigwxBrushTowxObject(void *ptr
) {
5020 src
= (wxBrush
*) ptr
;
5021 dest
= (wxObject
*) src
;
5022 return (void *) dest
;
5025 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5026 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5027 PyObject
* _resultobj
;
5030 int _arg1
= (int ) wxSOLID
;
5032 PyObject
* _obj0
= 0;
5033 char *_kwnames
[] = { "colour","style", NULL
};
5037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5041 if (! wxColour_helper(_obj0
, &_arg0
))
5045 wxPy_BEGIN_ALLOW_THREADS
;
5046 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5048 wxPy_END_ALLOW_THREADS
;
5049 if (PyErr_Occurred()) return NULL
;
5051 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5052 _resultobj
= Py_BuildValue("s",_ptemp
);
5055 _resultobj
= Py_None
;
5060 #define delete_wxBrush(_swigobj) (delete _swigobj)
5061 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5062 PyObject
* _resultobj
;
5064 PyObject
* _argo0
= 0;
5065 char *_kwnames
[] = { "self", NULL
};
5068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5071 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5072 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5073 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5078 wxPy_BEGIN_ALLOW_THREADS
;
5079 delete_wxBrush(_arg0
);
5081 wxPy_END_ALLOW_THREADS
;
5082 if (PyErr_Occurred()) return NULL
;
5083 } Py_INCREF(Py_None
);
5084 _resultobj
= Py_None
;
5088 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5089 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5090 PyObject
* _resultobj
;
5093 PyObject
* _argo0
= 0;
5094 char *_kwnames
[] = { "self", NULL
};
5098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5101 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5102 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5108 wxPy_BEGIN_ALLOW_THREADS
;
5109 _result
= new wxColour (wxBrush_GetColour(_arg0
));
5111 wxPy_END_ALLOW_THREADS
;
5112 if (PyErr_Occurred()) return NULL
;
5113 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5114 _resultobj
= Py_BuildValue("s",_ptemp
);
5118 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5119 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5120 PyObject
* _resultobj
;
5123 PyObject
* _argo0
= 0;
5124 char *_kwnames
[] = { "self", NULL
};
5128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
5131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5138 wxPy_BEGIN_ALLOW_THREADS
;
5139 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
5141 wxPy_END_ALLOW_THREADS
;
5142 if (PyErr_Occurred()) return NULL
;
5144 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5145 _resultobj
= Py_BuildValue("s",_ptemp
);
5148 _resultobj
= Py_None
;
5153 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5154 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5155 PyObject
* _resultobj
;
5158 PyObject
* _argo0
= 0;
5159 char *_kwnames
[] = { "self", NULL
};
5162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
5165 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5166 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5172 wxPy_BEGIN_ALLOW_THREADS
;
5173 _result
= (int )wxBrush_GetStyle(_arg0
);
5175 wxPy_END_ALLOW_THREADS
;
5176 if (PyErr_Occurred()) return NULL
;
5177 } _resultobj
= Py_BuildValue("i",_result
);
5181 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5182 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5183 PyObject
* _resultobj
;
5186 PyObject
* _argo0
= 0;
5187 char *_kwnames
[] = { "self", NULL
};
5190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
5193 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5194 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5200 wxPy_BEGIN_ALLOW_THREADS
;
5201 _result
= (bool )wxBrush_Ok(_arg0
);
5203 wxPy_END_ALLOW_THREADS
;
5204 if (PyErr_Occurred()) return NULL
;
5205 } _resultobj
= Py_BuildValue("i",_result
);
5209 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5210 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5211 PyObject
* _resultobj
;
5214 PyObject
* _argo0
= 0;
5216 PyObject
* _obj1
= 0;
5217 char *_kwnames
[] = { "self","colour", NULL
};
5220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
5223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5231 if (! wxColour_helper(_obj1
, &_arg1
))
5235 wxPy_BEGIN_ALLOW_THREADS
;
5236 wxBrush_SetColour(_arg0
,*_arg1
);
5238 wxPy_END_ALLOW_THREADS
;
5239 if (PyErr_Occurred()) return NULL
;
5240 } Py_INCREF(Py_None
);
5241 _resultobj
= Py_None
;
5245 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5246 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5247 PyObject
* _resultobj
;
5250 PyObject
* _argo0
= 0;
5251 PyObject
* _argo1
= 0;
5252 char *_kwnames
[] = { "self","bitmap", NULL
};
5255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5258 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5259 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5265 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5266 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5272 wxPy_BEGIN_ALLOW_THREADS
;
5273 wxBrush_SetStipple(_arg0
,*_arg1
);
5275 wxPy_END_ALLOW_THREADS
;
5276 if (PyErr_Occurred()) return NULL
;
5277 } Py_INCREF(Py_None
);
5278 _resultobj
= Py_None
;
5282 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5283 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5284 PyObject
* _resultobj
;
5287 PyObject
* _argo0
= 0;
5288 char *_kwnames
[] = { "self","style", NULL
};
5291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5301 wxPy_BEGIN_ALLOW_THREADS
;
5302 wxBrush_SetStyle(_arg0
,_arg1
);
5304 wxPy_END_ALLOW_THREADS
;
5305 if (PyErr_Occurred()) return NULL
;
5306 } Py_INCREF(Py_None
);
5307 _resultobj
= Py_None
;
5311 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5312 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5313 PyObject
* _resultobj
;
5314 wxBrushList
* _arg0
;
5316 PyObject
* _argo0
= 0;
5317 PyObject
* _argo1
= 0;
5318 char *_kwnames
[] = { "self","brush", NULL
};
5321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
5324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5331 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5332 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5333 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5338 wxPy_BEGIN_ALLOW_THREADS
;
5339 wxBrushList_AddBrush(_arg0
,_arg1
);
5341 wxPy_END_ALLOW_THREADS
;
5342 if (PyErr_Occurred()) return NULL
;
5343 } Py_INCREF(Py_None
);
5344 _resultobj
= Py_None
;
5348 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5349 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5350 PyObject
* _resultobj
;
5352 wxBrushList
* _arg0
;
5355 PyObject
* _argo0
= 0;
5357 PyObject
* _obj1
= 0;
5358 char *_kwnames
[] = { "self","colour","style", NULL
};
5362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
5365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5373 if (! wxColour_helper(_obj1
, &_arg1
))
5377 wxPy_BEGIN_ALLOW_THREADS
;
5378 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
5380 wxPy_END_ALLOW_THREADS
;
5381 if (PyErr_Occurred()) return NULL
;
5383 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5384 _resultobj
= Py_BuildValue("s",_ptemp
);
5387 _resultobj
= Py_None
;
5392 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5393 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5394 PyObject
* _resultobj
;
5395 wxBrushList
* _arg0
;
5397 PyObject
* _argo0
= 0;
5398 PyObject
* _argo1
= 0;
5399 char *_kwnames
[] = { "self","brush", NULL
};
5402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
5405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5412 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5413 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5419 wxPy_BEGIN_ALLOW_THREADS
;
5420 wxBrushList_RemoveBrush(_arg0
,_arg1
);
5422 wxPy_END_ALLOW_THREADS
;
5423 if (PyErr_Occurred()) return NULL
;
5424 } Py_INCREF(Py_None
);
5425 _resultobj
= Py_None
;
5429 static void *SwigwxDCTowxObject(void *ptr
) {
5433 dest
= (wxObject
*) src
;
5434 return (void *) dest
;
5437 #define delete_wxDC(_swigobj) (delete _swigobj)
5438 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5439 PyObject
* _resultobj
;
5441 PyObject
* _argo0
= 0;
5442 char *_kwnames
[] = { "self", NULL
};
5445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
5448 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5449 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5450 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5455 wxPy_BEGIN_ALLOW_THREADS
;
5458 wxPy_END_ALLOW_THREADS
;
5459 if (PyErr_Occurred()) return NULL
;
5460 } Py_INCREF(Py_None
);
5461 _resultobj
= Py_None
;
5465 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
5466 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5467 PyObject
* _resultobj
;
5469 PyObject
* _argo0
= 0;
5470 char *_kwnames
[] = { "self", NULL
};
5473 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
5476 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5477 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5478 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5483 wxPy_BEGIN_ALLOW_THREADS
;
5484 wxDC_BeginDrawing(_arg0
);
5486 wxPy_END_ALLOW_THREADS
;
5487 if (PyErr_Occurred()) return NULL
;
5488 } Py_INCREF(Py_None
);
5489 _resultobj
= Py_None
;
5493 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5494 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5495 PyObject
* _resultobj
;
5505 int _arg8
= (int ) wxCOPY
;
5506 int _arg9
= (int ) FALSE
;
5507 PyObject
* _argo0
= 0;
5508 PyObject
* _argo5
= 0;
5509 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
5512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
5515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5522 if (_argo5
== Py_None
) { _arg5
= NULL
; }
5523 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
5524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5529 wxPy_BEGIN_ALLOW_THREADS
;
5530 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
5532 wxPy_END_ALLOW_THREADS
;
5533 if (PyErr_Occurred()) return NULL
;
5534 } _resultobj
= Py_BuildValue("i",_result
);
5538 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
5539 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5540 PyObject
* _resultobj
;
5542 PyObject
* _argo0
= 0;
5543 char *_kwnames
[] = { "self", NULL
};
5546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
5549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5556 wxPy_BEGIN_ALLOW_THREADS
;
5559 wxPy_END_ALLOW_THREADS
;
5560 if (PyErr_Occurred()) return NULL
;
5561 } Py_INCREF(Py_None
);
5562 _resultobj
= Py_None
;
5566 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5567 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5568 PyObject
* _resultobj
;
5572 PyObject
* _argo0
= 0;
5573 char *_kwnames
[] = { "self","x","y", NULL
};
5576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5586 wxPy_BEGIN_ALLOW_THREADS
;
5587 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
5589 wxPy_END_ALLOW_THREADS
;
5590 if (PyErr_Occurred()) return NULL
;
5591 } Py_INCREF(Py_None
);
5592 _resultobj
= Py_None
;
5596 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5597 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5598 PyObject
* _resultobj
;
5600 PyObject
* _argo0
= 0;
5601 char *_kwnames
[] = { "self", NULL
};
5604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
5607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5614 wxPy_BEGIN_ALLOW_THREADS
;
5615 wxDC_DestroyClippingRegion(_arg0
);
5617 wxPy_END_ALLOW_THREADS
;
5618 if (PyErr_Occurred()) return NULL
;
5619 } Py_INCREF(Py_None
);
5620 _resultobj
= Py_None
;
5624 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5625 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5626 PyObject
* _resultobj
;
5630 PyObject
* _argo0
= 0;
5631 char *_kwnames
[] = { "self","x", NULL
};
5634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
5637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5644 wxPy_BEGIN_ALLOW_THREADS
;
5645 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
5647 wxPy_END_ALLOW_THREADS
;
5648 if (PyErr_Occurred()) return NULL
;
5649 } _resultobj
= Py_BuildValue("l",_result
);
5653 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5654 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5655 PyObject
* _resultobj
;
5659 PyObject
* _argo0
= 0;
5660 char *_kwnames
[] = { "self","x", NULL
};
5663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
5666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5673 wxPy_BEGIN_ALLOW_THREADS
;
5674 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
5676 wxPy_END_ALLOW_THREADS
;
5677 if (PyErr_Occurred()) return NULL
;
5678 } _resultobj
= Py_BuildValue("l",_result
);
5682 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5683 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5684 PyObject
* _resultobj
;
5688 PyObject
* _argo0
= 0;
5689 char *_kwnames
[] = { "self","y", NULL
};
5692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
5695 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5696 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5697 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5702 wxPy_BEGIN_ALLOW_THREADS
;
5703 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
5705 wxPy_END_ALLOW_THREADS
;
5706 if (PyErr_Occurred()) return NULL
;
5707 } _resultobj
= Py_BuildValue("l",_result
);
5711 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5712 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5713 PyObject
* _resultobj
;
5717 PyObject
* _argo0
= 0;
5718 char *_kwnames
[] = { "self","y", NULL
};
5721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
5724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5731 wxPy_BEGIN_ALLOW_THREADS
;
5732 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5734 wxPy_END_ALLOW_THREADS
;
5735 if (PyErr_Occurred()) return NULL
;
5736 } _resultobj
= Py_BuildValue("l",_result
);
5740 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5741 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5742 PyObject
* _resultobj
;
5750 PyObject
* _argo0
= 0;
5751 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5754 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5757 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5758 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5759 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5764 wxPy_BEGIN_ALLOW_THREADS
;
5765 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5767 wxPy_END_ALLOW_THREADS
;
5768 if (PyErr_Occurred()) return NULL
;
5769 } Py_INCREF(Py_None
);
5770 _resultobj
= Py_None
;
5774 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5775 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5776 PyObject
* _resultobj
;
5781 PyObject
* _argo0
= 0;
5782 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5795 wxPy_BEGIN_ALLOW_THREADS
;
5796 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
5798 wxPy_END_ALLOW_THREADS
;
5799 if (PyErr_Occurred()) return NULL
;
5800 } Py_INCREF(Py_None
);
5801 _resultobj
= Py_None
;
5805 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5806 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5807 PyObject
* _resultobj
;
5813 PyObject
* _argo0
= 0;
5814 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5827 wxPy_BEGIN_ALLOW_THREADS
;
5828 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5830 wxPy_END_ALLOW_THREADS
;
5831 if (PyErr_Occurred()) return NULL
;
5832 } Py_INCREF(Py_None
);
5833 _resultobj
= Py_None
;
5837 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5838 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5839 PyObject
* _resultobj
;
5847 PyObject
* _argo0
= 0;
5848 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
5851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
5861 wxPy_BEGIN_ALLOW_THREADS
;
5862 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5864 wxPy_END_ALLOW_THREADS
;
5865 if (PyErr_Occurred()) return NULL
;
5866 } Py_INCREF(Py_None
);
5867 _resultobj
= Py_None
;
5871 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
5872 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5873 PyObject
* _resultobj
;
5878 PyObject
* _argo0
= 0;
5879 PyObject
* _argo1
= 0;
5880 char *_kwnames
[] = { "self","icon","x","y", NULL
};
5883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
5886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5893 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5894 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
5895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5900 wxPy_BEGIN_ALLOW_THREADS
;
5901 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
5903 wxPy_END_ALLOW_THREADS
;
5904 if (PyErr_Occurred()) return NULL
;
5905 } Py_INCREF(Py_None
);
5906 _resultobj
= Py_None
;
5910 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5911 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5912 PyObject
* _resultobj
;
5918 PyObject
* _argo0
= 0;
5919 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
5922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5932 wxPy_BEGIN_ALLOW_THREADS
;
5933 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5935 wxPy_END_ALLOW_THREADS
;
5936 if (PyErr_Occurred()) return NULL
;
5937 } Py_INCREF(Py_None
);
5938 _resultobj
= Py_None
;
5942 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5943 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5944 PyObject
* _resultobj
;
5948 long _arg3
= (long ) 0;
5949 long _arg4
= (long ) 0;
5950 PyObject
* _argo0
= 0;
5952 PyObject
* _obj2
= 0;
5953 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
5956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
5959 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5960 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5967 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5968 if (_arg2
== NULL
) {
5976 wxPy_BEGIN_ALLOW_THREADS
;
5977 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5979 wxPy_END_ALLOW_THREADS
;
5980 if (PyErr_Occurred()) return NULL
;
5981 } Py_INCREF(Py_None
);
5982 _resultobj
= Py_None
;
5989 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5990 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5991 PyObject
* _resultobj
;
5995 long _arg3
= (long ) 0;
5996 long _arg4
= (long ) 0;
5997 int _arg5
= (int ) wxODDEVEN_RULE
;
5998 PyObject
* _argo0
= 0;
6000 PyObject
* _obj2
= 0;
6001 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6004 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6007 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6008 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6009 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6015 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6016 if (_arg2
== NULL
) {
6024 wxPy_BEGIN_ALLOW_THREADS
;
6025 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6027 wxPy_END_ALLOW_THREADS
;
6028 if (PyErr_Occurred()) return NULL
;
6029 } Py_INCREF(Py_None
);
6030 _resultobj
= Py_None
;
6037 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6038 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6039 PyObject
* _resultobj
;
6043 PyObject
* _argo0
= 0;
6044 char *_kwnames
[] = { "self","x","y", NULL
};
6047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6057 wxPy_BEGIN_ALLOW_THREADS
;
6058 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6060 wxPy_END_ALLOW_THREADS
;
6061 if (PyErr_Occurred()) return NULL
;
6062 } Py_INCREF(Py_None
);
6063 _resultobj
= Py_None
;
6067 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6068 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6069 PyObject
* _resultobj
;
6075 PyObject
* _argo0
= 0;
6076 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6089 wxPy_BEGIN_ALLOW_THREADS
;
6090 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6092 wxPy_END_ALLOW_THREADS
;
6093 if (PyErr_Occurred()) return NULL
;
6094 } Py_INCREF(Py_None
);
6095 _resultobj
= Py_None
;
6099 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6100 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6101 PyObject
* _resultobj
;
6107 PyObject
* _argo0
= 0;
6108 PyObject
* _obj1
= 0;
6109 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6122 #if PYTHON_API_VERSION >= 1009
6123 char* tmpPtr
; int tmpSize
;
6124 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6125 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6128 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6130 _arg1
= new wxString(tmpPtr
, tmpSize
);
6132 if (!PyString_Check(_obj1
)) {
6133 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6136 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6140 wxPy_BEGIN_ALLOW_THREADS
;
6141 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
6143 wxPy_END_ALLOW_THREADS
;
6144 if (PyErr_Occurred()) return NULL
;
6145 } Py_INCREF(Py_None
);
6146 _resultobj
= Py_None
;
6154 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6155 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6156 PyObject
* _resultobj
;
6162 long _arg5
= (long ) 20;
6163 PyObject
* _argo0
= 0;
6164 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
6167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
6170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6177 wxPy_BEGIN_ALLOW_THREADS
;
6178 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6180 wxPy_END_ALLOW_THREADS
;
6181 if (PyErr_Occurred()) return NULL
;
6182 } Py_INCREF(Py_None
);
6183 _resultobj
= Py_None
;
6187 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
6188 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6189 PyObject
* _resultobj
;
6193 PyObject
* _argo0
= 0;
6195 PyObject
* _obj2
= 0;
6196 char *_kwnames
[] = { "self","points", NULL
};
6199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
6202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6210 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6211 if (_arg2
== NULL
) {
6219 wxPy_BEGIN_ALLOW_THREADS
;
6220 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
6222 wxPy_END_ALLOW_THREADS
;
6223 if (PyErr_Occurred()) return NULL
;
6224 } Py_INCREF(Py_None
);
6225 _resultobj
= Py_None
;
6232 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
6233 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6234 PyObject
* _resultobj
;
6239 PyObject
* _argo0
= 0;
6240 PyObject
* _obj1
= 0;
6241 char *_kwnames
[] = { "self","text","x","y", NULL
};
6244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
6247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6254 #if PYTHON_API_VERSION >= 1009
6255 char* tmpPtr
; int tmpSize
;
6256 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6257 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6260 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6262 _arg1
= new wxString(tmpPtr
, tmpSize
);
6264 if (!PyString_Check(_obj1
)) {
6265 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6268 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6272 wxPy_BEGIN_ALLOW_THREADS
;
6273 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
6275 wxPy_END_ALLOW_THREADS
;
6276 if (PyErr_Occurred()) return NULL
;
6277 } Py_INCREF(Py_None
);
6278 _resultobj
= Py_None
;
6286 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
6287 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6288 PyObject
* _resultobj
;
6290 PyObject
* _argo0
= 0;
6291 char *_kwnames
[] = { "self", NULL
};
6294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
6297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6304 wxPy_BEGIN_ALLOW_THREADS
;
6307 wxPy_END_ALLOW_THREADS
;
6308 if (PyErr_Occurred()) return NULL
;
6309 } Py_INCREF(Py_None
);
6310 _resultobj
= Py_None
;
6314 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
6315 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6316 PyObject
* _resultobj
;
6318 PyObject
* _argo0
= 0;
6319 char *_kwnames
[] = { "self", NULL
};
6322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
6325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6332 wxPy_BEGIN_ALLOW_THREADS
;
6333 wxDC_EndDrawing(_arg0
);
6335 wxPy_END_ALLOW_THREADS
;
6336 if (PyErr_Occurred()) return NULL
;
6337 } Py_INCREF(Py_None
);
6338 _resultobj
= Py_None
;
6342 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
6343 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6344 PyObject
* _resultobj
;
6346 PyObject
* _argo0
= 0;
6347 char *_kwnames
[] = { "self", NULL
};
6350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
6353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6360 wxPy_BEGIN_ALLOW_THREADS
;
6361 wxDC_EndPage(_arg0
);
6363 wxPy_END_ALLOW_THREADS
;
6364 if (PyErr_Occurred()) return NULL
;
6365 } Py_INCREF(Py_None
);
6366 _resultobj
= Py_None
;
6370 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6371 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6372 PyObject
* _resultobj
;
6377 int _arg4
= (int ) wxFLOOD_SURFACE
;
6378 PyObject
* _argo0
= 0;
6380 PyObject
* _obj3
= 0;
6381 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
6384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
6387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6395 if (! wxColour_helper(_obj3
, &_arg3
))
6399 wxPy_BEGIN_ALLOW_THREADS
;
6400 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
6402 wxPy_END_ALLOW_THREADS
;
6403 if (PyErr_Occurred()) return NULL
;
6404 } Py_INCREF(Py_None
);
6405 _resultobj
= Py_None
;
6409 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
6410 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6411 PyObject
* _resultobj
;
6414 PyObject
* _argo0
= 0;
6415 char *_kwnames
[] = { "self", NULL
};
6419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
6422 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6423 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6429 wxPy_BEGIN_ALLOW_THREADS
;
6430 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
6431 _result
= (wxBrush
*) &_result_ref
;
6433 wxPy_END_ALLOW_THREADS
;
6434 if (PyErr_Occurred()) return NULL
;
6436 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6437 _resultobj
= Py_BuildValue("s",_ptemp
);
6440 _resultobj
= Py_None
;
6445 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
6446 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6447 PyObject
* _resultobj
;
6450 PyObject
* _argo0
= 0;
6451 char *_kwnames
[] = { "self", NULL
};
6455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
6458 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6459 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6465 wxPy_BEGIN_ALLOW_THREADS
;
6466 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
6467 _result
= (wxBrush
*) &_result_ref
;
6469 wxPy_END_ALLOW_THREADS
;
6470 if (PyErr_Occurred()) return NULL
;
6472 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6473 _resultobj
= Py_BuildValue("s",_ptemp
);
6476 _resultobj
= Py_None
;
6481 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
6482 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6483 PyObject
* _resultobj
;
6486 PyObject
* _argo0
= 0;
6487 char *_kwnames
[] = { "self", NULL
};
6490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
6493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6500 wxPy_BEGIN_ALLOW_THREADS
;
6501 _result
= (long )wxDC_GetCharHeight(_arg0
);
6503 wxPy_END_ALLOW_THREADS
;
6504 if (PyErr_Occurred()) return NULL
;
6505 } _resultobj
= Py_BuildValue("l",_result
);
6509 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
6510 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6511 PyObject
* _resultobj
;
6514 PyObject
* _argo0
= 0;
6515 char *_kwnames
[] = { "self", NULL
};
6518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
6521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6528 wxPy_BEGIN_ALLOW_THREADS
;
6529 _result
= (long )wxDC_GetCharWidth(_arg0
);
6531 wxPy_END_ALLOW_THREADS
;
6532 if (PyErr_Occurred()) return NULL
;
6533 } _resultobj
= Py_BuildValue("l",_result
);
6537 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6538 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6539 PyObject
* _resultobj
;
6549 PyObject
* _argo0
= 0;
6550 char *_kwnames
[] = { "self", NULL
};
6565 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
6568 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6569 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6570 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6575 wxPy_BEGIN_ALLOW_THREADS
;
6576 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6578 wxPy_END_ALLOW_THREADS
;
6579 if (PyErr_Occurred()) return NULL
;
6580 } Py_INCREF(Py_None
);
6581 _resultobj
= Py_None
;
6584 o
= PyInt_FromLong((long) (*_arg1
));
6585 _resultobj
= t_output_helper(_resultobj
, o
);
6589 o
= PyInt_FromLong((long) (*_arg2
));
6590 _resultobj
= t_output_helper(_resultobj
, o
);
6594 o
= PyInt_FromLong((long) (*_arg3
));
6595 _resultobj
= t_output_helper(_resultobj
, o
);
6599 o
= PyInt_FromLong((long) (*_arg4
));
6600 _resultobj
= t_output_helper(_resultobj
, o
);
6605 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6606 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6607 PyObject
* _resultobj
;
6610 PyObject
* _argo0
= 0;
6611 char *_kwnames
[] = { "self", NULL
};
6615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
6618 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6619 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6625 wxPy_BEGIN_ALLOW_THREADS
;
6626 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
6627 _result
= (wxFont
*) &_result_ref
;
6629 wxPy_END_ALLOW_THREADS
;
6630 if (PyErr_Occurred()) return NULL
;
6632 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
6633 _resultobj
= Py_BuildValue("s",_ptemp
);
6636 _resultobj
= Py_None
;
6641 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6642 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6643 PyObject
* _resultobj
;
6646 PyObject
* _argo0
= 0;
6647 char *_kwnames
[] = { "self", NULL
};
6650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
6653 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6654 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6660 wxPy_BEGIN_ALLOW_THREADS
;
6661 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
6663 wxPy_END_ALLOW_THREADS
;
6664 if (PyErr_Occurred()) return NULL
;
6665 } _resultobj
= Py_BuildValue("i",_result
);
6669 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6670 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6671 PyObject
* _resultobj
;
6677 PyObject
* _argo0
= 0;
6678 char *_kwnames
[] = { "self", NULL
};
6687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
6690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
6697 wxPy_BEGIN_ALLOW_THREADS
;
6698 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
6700 wxPy_END_ALLOW_THREADS
;
6701 if (PyErr_Occurred()) return NULL
;
6702 } Py_INCREF(Py_None
);
6703 _resultobj
= Py_None
;
6706 o
= PyFloat_FromDouble((double) (*_arg1
));
6707 _resultobj
= t_output_helper(_resultobj
, o
);
6711 o
= PyFloat_FromDouble((double) (*_arg2
));
6712 _resultobj
= t_output_helper(_resultobj
, o
);
6717 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6718 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6719 PyObject
* _resultobj
;
6722 PyObject
* _argo0
= 0;
6723 char *_kwnames
[] = { "self", NULL
};
6726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
6729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6736 wxPy_BEGIN_ALLOW_THREADS
;
6737 _result
= (int )wxDC_GetMapMode(_arg0
);
6739 wxPy_END_ALLOW_THREADS
;
6740 if (PyErr_Occurred()) return NULL
;
6741 } _resultobj
= Py_BuildValue("i",_result
);
6745 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6746 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6747 PyObject
* _resultobj
;
6750 PyObject
* _argo0
= 0;
6751 char *_kwnames
[] = { "self", NULL
};
6754 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
6757 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6758 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6759 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6764 wxPy_BEGIN_ALLOW_THREADS
;
6765 _result
= (bool )wxDC_GetOptimization(_arg0
);
6767 wxPy_END_ALLOW_THREADS
;
6768 if (PyErr_Occurred()) return NULL
;
6769 } _resultobj
= Py_BuildValue("i",_result
);
6773 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6774 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6775 PyObject
* _resultobj
;
6778 PyObject
* _argo0
= 0;
6779 char *_kwnames
[] = { "self", NULL
};
6783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
6786 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6787 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6793 wxPy_BEGIN_ALLOW_THREADS
;
6794 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
6795 _result
= (wxPen
*) &_result_ref
;
6797 wxPy_END_ALLOW_THREADS
;
6798 if (PyErr_Occurred()) return NULL
;
6800 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6801 _resultobj
= Py_BuildValue("s",_ptemp
);
6804 _resultobj
= Py_None
;
6809 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
6810 wxColour
* wc
= new wxColour();
6811 self
->GetPixel(x
, y
, wc
);
6814 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6815 PyObject
* _resultobj
;
6820 PyObject
* _argo0
= 0;
6821 char *_kwnames
[] = { "self","x","y", NULL
};
6825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6828 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6829 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6835 wxPy_BEGIN_ALLOW_THREADS
;
6836 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
6838 wxPy_END_ALLOW_THREADS
;
6839 if (PyErr_Occurred()) return NULL
;
6841 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6842 _resultobj
= Py_BuildValue("s",_ptemp
);
6845 _resultobj
= Py_None
;
6850 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6851 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6852 PyObject
* _resultobj
;
6858 PyObject
* _argo0
= 0;
6859 char *_kwnames
[] = { "self", NULL
};
6868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
6871 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6872 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6878 wxPy_BEGIN_ALLOW_THREADS
;
6879 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
6881 wxPy_END_ALLOW_THREADS
;
6882 if (PyErr_Occurred()) return NULL
;
6883 } Py_INCREF(Py_None
);
6884 _resultobj
= Py_None
;
6887 o
= PyInt_FromLong((long) (*_arg1
));
6888 _resultobj
= t_output_helper(_resultobj
, o
);
6892 o
= PyInt_FromLong((long) (*_arg2
));
6893 _resultobj
= t_output_helper(_resultobj
, o
);
6898 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6899 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6900 PyObject
* _resultobj
;
6903 PyObject
* _argo0
= 0;
6904 char *_kwnames
[] = { "self", NULL
};
6908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
6911 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6912 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6913 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6918 wxPy_BEGIN_ALLOW_THREADS
;
6919 _result
= new wxSize (wxDC_GetSize(_arg0
));
6921 wxPy_END_ALLOW_THREADS
;
6922 if (PyErr_Occurred()) return NULL
;
6923 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6924 _resultobj
= Py_BuildValue("s",_ptemp
);
6928 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6929 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6930 PyObject
* _resultobj
;
6933 PyObject
* _argo0
= 0;
6934 char *_kwnames
[] = { "self", NULL
};
6938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
6941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6948 wxPy_BEGIN_ALLOW_THREADS
;
6949 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
6951 wxPy_END_ALLOW_THREADS
;
6952 if (PyErr_Occurred()) return NULL
;
6953 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6954 _resultobj
= Py_BuildValue("s",_ptemp
);
6958 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
6959 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6960 PyObject
* _resultobj
;
6963 PyObject
* _argo0
= 0;
6964 char *_kwnames
[] = { "self", NULL
};
6968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
6971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
6978 wxPy_BEGIN_ALLOW_THREADS
;
6979 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
6981 wxPy_END_ALLOW_THREADS
;
6982 if (PyErr_Occurred()) return NULL
;
6983 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6984 _resultobj
= Py_BuildValue("s",_ptemp
);
6988 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
6989 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6990 PyObject
* _resultobj
;
6997 PyObject
* _argo0
= 0;
6998 PyObject
* _obj1
= 0;
6999 char *_kwnames
[] = { "self","string", NULL
};
7008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7011 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7012 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7018 #if PYTHON_API_VERSION >= 1009
7019 char* tmpPtr
; int tmpSize
;
7020 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7021 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7024 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7026 _arg1
= new wxString(tmpPtr
, tmpSize
);
7028 if (!PyString_Check(_obj1
)) {
7029 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7032 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7036 wxPy_BEGIN_ALLOW_THREADS
;
7037 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7039 wxPy_END_ALLOW_THREADS
;
7040 if (PyErr_Occurred()) return NULL
;
7041 } Py_INCREF(Py_None
);
7042 _resultobj
= Py_None
;
7045 o
= PyInt_FromLong((long) (*_arg2
));
7046 _resultobj
= t_output_helper(_resultobj
, o
);
7050 o
= PyInt_FromLong((long) (*_arg3
));
7051 _resultobj
= t_output_helper(_resultobj
, o
);
7060 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7061 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7062 PyObject
* _resultobj
;
7073 wxFont
* _arg6
= (wxFont
*) NULL
;
7074 PyObject
* _argo0
= 0;
7075 PyObject
* _obj1
= 0;
7076 PyObject
* _argo6
= 0;
7077 char *_kwnames
[] = { "self","string","font", NULL
};
7092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7095 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7096 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7097 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7102 #if PYTHON_API_VERSION >= 1009
7103 char* tmpPtr
; int tmpSize
;
7104 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7105 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7108 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7110 _arg1
= new wxString(tmpPtr
, tmpSize
);
7112 if (!PyString_Check(_obj1
)) {
7113 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7116 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7120 if (_argo6
== Py_None
) { _arg6
= NULL
; }
7121 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
7122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7127 wxPy_BEGIN_ALLOW_THREADS
;
7128 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7130 wxPy_END_ALLOW_THREADS
;
7131 if (PyErr_Occurred()) return NULL
;
7132 } Py_INCREF(Py_None
);
7133 _resultobj
= Py_None
;
7136 o
= PyInt_FromLong((long) (*_arg2
));
7137 _resultobj
= t_output_helper(_resultobj
, o
);
7141 o
= PyInt_FromLong((long) (*_arg3
));
7142 _resultobj
= t_output_helper(_resultobj
, o
);
7146 o
= PyInt_FromLong((long) (*_arg4
));
7147 _resultobj
= t_output_helper(_resultobj
, o
);
7151 o
= PyInt_FromLong((long) (*_arg5
));
7152 _resultobj
= t_output_helper(_resultobj
, o
);
7161 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
7162 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7163 PyObject
* _resultobj
;
7166 PyObject
* _argo0
= 0;
7167 char *_kwnames
[] = { "self", NULL
};
7171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
7174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7181 wxPy_BEGIN_ALLOW_THREADS
;
7182 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
7184 wxPy_END_ALLOW_THREADS
;
7185 if (PyErr_Occurred()) return NULL
;
7186 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7187 _resultobj
= Py_BuildValue("s",_ptemp
);
7191 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7192 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7193 PyObject
* _resultobj
;
7199 PyObject
* _argo0
= 0;
7200 char *_kwnames
[] = { "self", NULL
};
7209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
7212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7219 wxPy_BEGIN_ALLOW_THREADS
;
7220 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
7222 wxPy_END_ALLOW_THREADS
;
7223 if (PyErr_Occurred()) return NULL
;
7224 } Py_INCREF(Py_None
);
7225 _resultobj
= Py_None
;
7228 o
= PyFloat_FromDouble((double) (*_arg1
));
7229 _resultobj
= t_output_helper(_resultobj
, o
);
7233 o
= PyFloat_FromDouble((double) (*_arg2
));
7234 _resultobj
= t_output_helper(_resultobj
, o
);
7239 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
7240 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7241 PyObject
* _resultobj
;
7245 PyObject
* _argo0
= 0;
7246 char *_kwnames
[] = { "self","x", NULL
};
7249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
7252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7259 wxPy_BEGIN_ALLOW_THREADS
;
7260 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
7262 wxPy_END_ALLOW_THREADS
;
7263 if (PyErr_Occurred()) return NULL
;
7264 } _resultobj
= Py_BuildValue("l",_result
);
7268 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
7269 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7270 PyObject
* _resultobj
;
7274 PyObject
* _argo0
= 0;
7275 char *_kwnames
[] = { "self","x", NULL
};
7278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
7281 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7282 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7288 wxPy_BEGIN_ALLOW_THREADS
;
7289 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
7291 wxPy_END_ALLOW_THREADS
;
7292 if (PyErr_Occurred()) return NULL
;
7293 } _resultobj
= Py_BuildValue("l",_result
);
7297 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
7298 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7299 PyObject
* _resultobj
;
7303 PyObject
* _argo0
= 0;
7304 char *_kwnames
[] = { "self","y", NULL
};
7307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
7310 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7311 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7312 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7317 wxPy_BEGIN_ALLOW_THREADS
;
7318 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
7320 wxPy_END_ALLOW_THREADS
;
7321 if (PyErr_Occurred()) return NULL
;
7322 } _resultobj
= Py_BuildValue("l",_result
);
7326 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
7327 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7328 PyObject
* _resultobj
;
7332 PyObject
* _argo0
= 0;
7333 char *_kwnames
[] = { "self","y", NULL
};
7336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
7339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7346 wxPy_BEGIN_ALLOW_THREADS
;
7347 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
7349 wxPy_END_ALLOW_THREADS
;
7350 if (PyErr_Occurred()) return NULL
;
7351 } _resultobj
= Py_BuildValue("l",_result
);
7355 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
7356 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7357 PyObject
* _resultobj
;
7360 PyObject
* _argo0
= 0;
7361 char *_kwnames
[] = { "self", NULL
};
7364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
7367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7374 wxPy_BEGIN_ALLOW_THREADS
;
7375 _result
= (long )wxDC_MaxX(_arg0
);
7377 wxPy_END_ALLOW_THREADS
;
7378 if (PyErr_Occurred()) return NULL
;
7379 } _resultobj
= Py_BuildValue("l",_result
);
7383 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7384 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7385 PyObject
* _resultobj
;
7388 PyObject
* _argo0
= 0;
7389 char *_kwnames
[] = { "self", NULL
};
7392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
7395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7402 wxPy_BEGIN_ALLOW_THREADS
;
7403 _result
= (long )wxDC_MaxY(_arg0
);
7405 wxPy_END_ALLOW_THREADS
;
7406 if (PyErr_Occurred()) return NULL
;
7407 } _resultobj
= Py_BuildValue("l",_result
);
7411 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
7412 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7413 PyObject
* _resultobj
;
7416 PyObject
* _argo0
= 0;
7417 char *_kwnames
[] = { "self", NULL
};
7420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
7423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7430 wxPy_BEGIN_ALLOW_THREADS
;
7431 _result
= (long )wxDC_MinX(_arg0
);
7433 wxPy_END_ALLOW_THREADS
;
7434 if (PyErr_Occurred()) return NULL
;
7435 } _resultobj
= Py_BuildValue("l",_result
);
7439 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
7440 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7441 PyObject
* _resultobj
;
7444 PyObject
* _argo0
= 0;
7445 char *_kwnames
[] = { "self", NULL
};
7448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
7451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7458 wxPy_BEGIN_ALLOW_THREADS
;
7459 _result
= (long )wxDC_MinY(_arg0
);
7461 wxPy_END_ALLOW_THREADS
;
7462 if (PyErr_Occurred()) return NULL
;
7463 } _resultobj
= Py_BuildValue("l",_result
);
7467 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
7468 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7469 PyObject
* _resultobj
;
7472 PyObject
* _argo0
= 0;
7473 char *_kwnames
[] = { "self", NULL
};
7476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
7479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7486 wxPy_BEGIN_ALLOW_THREADS
;
7487 _result
= (bool )wxDC_Ok(_arg0
);
7489 wxPy_END_ALLOW_THREADS
;
7490 if (PyErr_Occurred()) return NULL
;
7491 } _resultobj
= Py_BuildValue("i",_result
);
7495 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
7496 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7497 PyObject
* _resultobj
;
7501 PyObject
* _argo0
= 0;
7502 char *_kwnames
[] = { "self","x","y", NULL
};
7505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7515 wxPy_BEGIN_ALLOW_THREADS
;
7516 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7518 wxPy_END_ALLOW_THREADS
;
7519 if (PyErr_Occurred()) return NULL
;
7520 } Py_INCREF(Py_None
);
7521 _resultobj
= Py_None
;
7525 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
7526 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7527 PyObject
* _resultobj
;
7530 PyObject
* _argo0
= 0;
7531 PyObject
* _argo1
= 0;
7532 char *_kwnames
[] = { "self","brush", NULL
};
7535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
7538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7545 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7546 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7552 wxPy_BEGIN_ALLOW_THREADS
;
7553 wxDC_SetBackground(_arg0
,*_arg1
);
7555 wxPy_END_ALLOW_THREADS
;
7556 if (PyErr_Occurred()) return NULL
;
7557 } Py_INCREF(Py_None
);
7558 _resultobj
= Py_None
;
7562 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
7563 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7564 PyObject
* _resultobj
;
7567 PyObject
* _argo0
= 0;
7568 char *_kwnames
[] = { "self","mode", NULL
};
7571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
7574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
7581 wxPy_BEGIN_ALLOW_THREADS
;
7582 wxDC_SetBackgroundMode(_arg0
,_arg1
);
7584 wxPy_END_ALLOW_THREADS
;
7585 if (PyErr_Occurred()) return NULL
;
7586 } Py_INCREF(Py_None
);
7587 _resultobj
= Py_None
;
7591 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7592 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7593 PyObject
* _resultobj
;
7599 PyObject
* _argo0
= 0;
7600 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7613 wxPy_BEGIN_ALLOW_THREADS
;
7614 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7616 wxPy_END_ALLOW_THREADS
;
7617 if (PyErr_Occurred()) return NULL
;
7618 } Py_INCREF(Py_None
);
7619 _resultobj
= Py_None
;
7623 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
7624 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7625 PyObject
* _resultobj
;
7628 PyObject
* _argo0
= 0;
7629 PyObject
* _argo1
= 0;
7630 char *_kwnames
[] = { "self","region", NULL
};
7633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
7636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
7643 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7644 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
7645 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
7650 wxPy_BEGIN_ALLOW_THREADS
;
7651 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
7653 wxPy_END_ALLOW_THREADS
;
7654 if (PyErr_Occurred()) return NULL
;
7655 } Py_INCREF(Py_None
);
7656 _resultobj
= Py_None
;
7660 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
7661 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7662 PyObject
* _resultobj
;
7665 PyObject
* _argo0
= 0;
7666 PyObject
* _argo1
= 0;
7667 char *_kwnames
[] = { "self","colourMap", NULL
};
7670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
7673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
7680 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7681 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
7682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
7687 wxPy_BEGIN_ALLOW_THREADS
;
7688 wxDC_SetPalette(_arg0
,*_arg1
);
7690 wxPy_END_ALLOW_THREADS
;
7691 if (PyErr_Occurred()) return NULL
;
7692 } Py_INCREF(Py_None
);
7693 _resultobj
= Py_None
;
7697 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
7698 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7699 PyObject
* _resultobj
;
7702 PyObject
* _argo0
= 0;
7703 PyObject
* _argo1
= 0;
7704 char *_kwnames
[] = { "self","brush", NULL
};
7707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
7710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
7717 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7718 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
7724 wxPy_BEGIN_ALLOW_THREADS
;
7725 wxDC_SetBrush(_arg0
,*_arg1
);
7727 wxPy_END_ALLOW_THREADS
;
7728 if (PyErr_Occurred()) return NULL
;
7729 } Py_INCREF(Py_None
);
7730 _resultobj
= Py_None
;
7734 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7735 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7736 PyObject
* _resultobj
;
7739 PyObject
* _argo0
= 0;
7740 PyObject
* _argo1
= 0;
7741 char *_kwnames
[] = { "self","font", NULL
};
7744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
7747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7754 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7755 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
7756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7761 wxPy_BEGIN_ALLOW_THREADS
;
7762 wxDC_SetFont(_arg0
,*_arg1
);
7764 wxPy_END_ALLOW_THREADS
;
7765 if (PyErr_Occurred()) return NULL
;
7766 } Py_INCREF(Py_None
);
7767 _resultobj
= Py_None
;
7771 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7772 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7773 PyObject
* _resultobj
;
7776 PyObject
* _argo0
= 0;
7777 char *_kwnames
[] = { "self","function", NULL
};
7780 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7783 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7784 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7785 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7790 wxPy_BEGIN_ALLOW_THREADS
;
7791 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7793 wxPy_END_ALLOW_THREADS
;
7794 if (PyErr_Occurred()) return NULL
;
7795 } Py_INCREF(Py_None
);
7796 _resultobj
= Py_None
;
7800 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7801 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7802 PyObject
* _resultobj
;
7806 PyObject
* _argo0
= 0;
7807 char *_kwnames
[] = { "self","x","y", NULL
};
7810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7813 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7814 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7820 wxPy_BEGIN_ALLOW_THREADS
;
7821 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7823 wxPy_END_ALLOW_THREADS
;
7824 if (PyErr_Occurred()) return NULL
;
7825 } Py_INCREF(Py_None
);
7826 _resultobj
= Py_None
;
7830 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7831 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7832 PyObject
* _resultobj
;
7835 PyObject
* _argo0
= 0;
7836 char *_kwnames
[] = { "self","mode", NULL
};
7839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
7842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7849 wxPy_BEGIN_ALLOW_THREADS
;
7850 wxDC_SetMapMode(_arg0
,_arg1
);
7852 wxPy_END_ALLOW_THREADS
;
7853 if (PyErr_Occurred()) return NULL
;
7854 } Py_INCREF(Py_None
);
7855 _resultobj
= Py_None
;
7859 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7860 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7861 PyObject
* _resultobj
;
7864 PyObject
* _argo0
= 0;
7866 char *_kwnames
[] = { "self","optimize", NULL
};
7869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
7872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7878 _arg1
= (bool ) tempbool1
;
7880 wxPy_BEGIN_ALLOW_THREADS
;
7881 wxDC_SetOptimization(_arg0
,_arg1
);
7883 wxPy_END_ALLOW_THREADS
;
7884 if (PyErr_Occurred()) return NULL
;
7885 } Py_INCREF(Py_None
);
7886 _resultobj
= Py_None
;
7890 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7891 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7892 PyObject
* _resultobj
;
7895 PyObject
* _argo0
= 0;
7896 PyObject
* _argo1
= 0;
7897 char *_kwnames
[] = { "self","pen", NULL
};
7900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
7903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7910 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7911 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
7912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7917 wxPy_BEGIN_ALLOW_THREADS
;
7918 wxDC_SetPen(_arg0
,*_arg1
);
7920 wxPy_END_ALLOW_THREADS
;
7921 if (PyErr_Occurred()) return NULL
;
7922 } Py_INCREF(Py_None
);
7923 _resultobj
= Py_None
;
7927 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7928 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7929 PyObject
* _resultobj
;
7932 PyObject
* _argo0
= 0;
7934 PyObject
* _obj1
= 0;
7935 char *_kwnames
[] = { "self","colour", NULL
};
7938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
7941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7949 if (! wxColour_helper(_obj1
, &_arg1
))
7953 wxPy_BEGIN_ALLOW_THREADS
;
7954 wxDC_SetTextBackground(_arg0
,*_arg1
);
7956 wxPy_END_ALLOW_THREADS
;
7957 if (PyErr_Occurred()) return NULL
;
7958 } Py_INCREF(Py_None
);
7959 _resultobj
= Py_None
;
7963 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
7964 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7965 PyObject
* _resultobj
;
7968 PyObject
* _argo0
= 0;
7970 PyObject
* _obj1
= 0;
7971 char *_kwnames
[] = { "self","colour", NULL
};
7974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
7977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7985 if (! wxColour_helper(_obj1
, &_arg1
))
7989 wxPy_BEGIN_ALLOW_THREADS
;
7990 wxDC_SetTextForeground(_arg0
,*_arg1
);
7992 wxPy_END_ALLOW_THREADS
;
7993 if (PyErr_Occurred()) return NULL
;
7994 } Py_INCREF(Py_None
);
7995 _resultobj
= Py_None
;
7999 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8000 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8001 PyObject
* _resultobj
;
8005 PyObject
* _argo0
= 0;
8006 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8012 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8013 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8014 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8019 wxPy_BEGIN_ALLOW_THREADS
;
8020 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8022 wxPy_END_ALLOW_THREADS
;
8023 if (PyErr_Occurred()) return NULL
;
8024 } Py_INCREF(Py_None
);
8025 _resultobj
= Py_None
;
8029 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8030 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8031 PyObject
* _resultobj
;
8035 PyObject
* _argo0
= 0;
8036 PyObject
* _obj1
= 0;
8037 char *_kwnames
[] = { "self","message", NULL
};
8040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8043 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8044 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8050 #if PYTHON_API_VERSION >= 1009
8051 char* tmpPtr
; int tmpSize
;
8052 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8053 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8056 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8058 _arg1
= new wxString(tmpPtr
, tmpSize
);
8060 if (!PyString_Check(_obj1
)) {
8061 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8064 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8068 wxPy_BEGIN_ALLOW_THREADS
;
8069 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8071 wxPy_END_ALLOW_THREADS
;
8072 if (PyErr_Occurred()) return NULL
;
8073 } _resultobj
= Py_BuildValue("i",_result
);
8081 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8082 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8083 PyObject
* _resultobj
;
8085 PyObject
* _argo0
= 0;
8086 char *_kwnames
[] = { "self", NULL
};
8089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8092 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8093 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8099 wxPy_BEGIN_ALLOW_THREADS
;
8100 wxDC_StartPage(_arg0
);
8102 wxPy_END_ALLOW_THREADS
;
8103 if (PyErr_Occurred()) return NULL
;
8104 } Py_INCREF(Py_None
);
8105 _resultobj
= Py_None
;
8109 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8110 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8111 PyObject
* _resultobj
;
8116 int _arg4
= (int ) FALSE
;
8117 PyObject
* _argo0
= 0;
8118 PyObject
* _argo1
= 0;
8119 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
8122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
8125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8132 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8133 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8134 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8139 wxPy_BEGIN_ALLOW_THREADS
;
8140 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
8142 wxPy_END_ALLOW_THREADS
;
8143 if (PyErr_Occurred()) return NULL
;
8144 } Py_INCREF(Py_None
);
8145 _resultobj
= Py_None
;
8149 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8150 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8151 PyObject
* _resultobj
;
8154 PyObject
* _argo0
= 0;
8155 char *_kwnames
[] = { "self", NULL
};
8158 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
8161 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8162 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8163 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8168 wxPy_BEGIN_ALLOW_THREADS
;
8169 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
8171 wxPy_END_ALLOW_THREADS
;
8172 if (PyErr_Occurred()) return NULL
;
8173 } _resultobj
= Py_BuildValue("i",_result
);
8177 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8178 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8179 PyObject
* _resultobj
;
8182 PyObject
* _argo0
= 0;
8183 char *_kwnames
[] = { "self", NULL
};
8186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
8189 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8190 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8196 wxPy_BEGIN_ALLOW_THREADS
;
8197 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
8199 wxPy_END_ALLOW_THREADS
;
8200 if (PyErr_Occurred()) return NULL
;
8201 } _resultobj
= Py_BuildValue("i",_result
);
8205 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8206 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8207 PyObject
* _resultobj
;
8210 PyObject
* _argo0
= 0;
8211 char *_kwnames
[] = { "self", NULL
};
8214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
8217 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8218 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8224 wxPy_BEGIN_ALLOW_THREADS
;
8225 _result
= (int )wxDC_GetDepth(_arg0
);
8227 wxPy_END_ALLOW_THREADS
;
8228 if (PyErr_Occurred()) return NULL
;
8229 } _resultobj
= Py_BuildValue("i",_result
);
8233 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8234 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8235 PyObject
* _resultobj
;
8238 PyObject
* _argo0
= 0;
8239 char *_kwnames
[] = { "self", NULL
};
8243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
8246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8253 wxPy_BEGIN_ALLOW_THREADS
;
8254 _result
= new wxSize (wxDC_GetPPI(_arg0
));
8256 wxPy_END_ALLOW_THREADS
;
8257 if (PyErr_Occurred()) return NULL
;
8258 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8259 _resultobj
= Py_BuildValue("s",_ptemp
);
8263 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8264 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8265 PyObject
* _resultobj
;
8271 PyObject
* _argo0
= 0;
8272 char *_kwnames
[] = { "self", NULL
};
8281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
8284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8291 wxPy_BEGIN_ALLOW_THREADS
;
8292 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8294 wxPy_END_ALLOW_THREADS
;
8295 if (PyErr_Occurred()) return NULL
;
8296 } Py_INCREF(Py_None
);
8297 _resultobj
= Py_None
;
8300 o
= PyInt_FromLong((long) (*_arg1
));
8301 _resultobj
= t_output_helper(_resultobj
, o
);
8305 o
= PyInt_FromLong((long) (*_arg2
));
8306 _resultobj
= t_output_helper(_resultobj
, o
);
8311 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8312 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8313 PyObject
* _resultobj
;
8317 PyObject
* _argo0
= 0;
8318 char *_kwnames
[] = { "self","x","y", NULL
};
8321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8331 wxPy_BEGIN_ALLOW_THREADS
;
8332 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8334 wxPy_END_ALLOW_THREADS
;
8335 if (PyErr_Occurred()) return NULL
;
8336 } Py_INCREF(Py_None
);
8337 _resultobj
= Py_None
;
8341 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8342 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8343 PyObject
* _resultobj
;
8349 PyObject
* _argo0
= 0;
8350 char *_kwnames
[] = { "self", NULL
};
8359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
8362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8369 wxPy_BEGIN_ALLOW_THREADS
;
8370 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8372 wxPy_END_ALLOW_THREADS
;
8373 if (PyErr_Occurred()) return NULL
;
8374 } Py_INCREF(Py_None
);
8375 _resultobj
= Py_None
;
8378 o
= PyInt_FromLong((long) (*_arg1
));
8379 _resultobj
= t_output_helper(_resultobj
, o
);
8383 o
= PyInt_FromLong((long) (*_arg2
));
8384 _resultobj
= t_output_helper(_resultobj
, o
);
8389 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8390 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8391 PyObject
* _resultobj
;
8395 PyObject
* _argo0
= 0;
8398 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
8401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
8404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8410 _arg1
= (bool ) tempbool1
;
8411 _arg2
= (bool ) tempbool2
;
8413 wxPy_BEGIN_ALLOW_THREADS
;
8414 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
8416 wxPy_END_ALLOW_THREADS
;
8417 if (PyErr_Occurred()) return NULL
;
8418 } Py_INCREF(Py_None
);
8419 _resultobj
= Py_None
;
8423 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
8424 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8425 PyObject
* _resultobj
;
8429 PyObject
* _argo0
= 0;
8430 char *_kwnames
[] = { "self","x","y", NULL
};
8433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8436 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8437 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8443 wxPy_BEGIN_ALLOW_THREADS
;
8444 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
8446 wxPy_END_ALLOW_THREADS
;
8447 if (PyErr_Occurred()) return NULL
;
8448 } Py_INCREF(Py_None
);
8449 _resultobj
= Py_None
;
8453 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8454 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8455 PyObject
* _resultobj
;
8457 PyObject
* _argo0
= 0;
8458 char *_kwnames
[] = { "self", NULL
};
8461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
8464 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8465 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8466 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8471 wxPy_BEGIN_ALLOW_THREADS
;
8472 wxDC_ResetBoundingBox(_arg0
);
8474 wxPy_END_ALLOW_THREADS
;
8475 if (PyErr_Occurred()) return NULL
;
8476 } Py_INCREF(Py_None
);
8477 _resultobj
= Py_None
;
8481 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
8484 src
= (wxMemoryDC
*) ptr
;
8485 dest
= (wxDC
*) src
;
8486 return (void *) dest
;
8489 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
8492 src
= (wxMemoryDC
*) ptr
;
8493 dest
= (wxObject
*) src
;
8494 return (void *) dest
;
8497 #define new_wxMemoryDC() (new wxMemoryDC())
8498 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8499 PyObject
* _resultobj
;
8500 wxMemoryDC
* _result
;
8501 char *_kwnames
[] = { NULL
};
8505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
8508 wxPy_BEGIN_ALLOW_THREADS
;
8509 _result
= (wxMemoryDC
*)new_wxMemoryDC();
8511 wxPy_END_ALLOW_THREADS
;
8512 if (PyErr_Occurred()) return NULL
;
8514 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
8515 _resultobj
= Py_BuildValue("s",_ptemp
);
8518 _resultobj
= Py_None
;
8523 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
8524 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8525 PyObject
* _resultobj
;
8528 PyObject
* _argo0
= 0;
8529 PyObject
* _argo1
= 0;
8530 char *_kwnames
[] = { "self","bitmap", NULL
};
8533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
8536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
8538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
8543 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8544 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
8550 wxPy_BEGIN_ALLOW_THREADS
;
8551 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
8553 wxPy_END_ALLOW_THREADS
;
8554 if (PyErr_Occurred()) return NULL
;
8555 } Py_INCREF(Py_None
);
8556 _resultobj
= Py_None
;
8560 static void *SwigwxScreenDCTowxDC(void *ptr
) {
8563 src
= (wxScreenDC
*) ptr
;
8564 dest
= (wxDC
*) src
;
8565 return (void *) dest
;
8568 static void *SwigwxScreenDCTowxObject(void *ptr
) {
8571 src
= (wxScreenDC
*) ptr
;
8572 dest
= (wxObject
*) src
;
8573 return (void *) dest
;
8576 #define new_wxScreenDC() (new wxScreenDC())
8577 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8578 PyObject
* _resultobj
;
8579 wxScreenDC
* _result
;
8580 char *_kwnames
[] = { NULL
};
8584 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
8587 wxPy_BEGIN_ALLOW_THREADS
;
8588 _result
= (wxScreenDC
*)new_wxScreenDC();
8590 wxPy_END_ALLOW_THREADS
;
8591 if (PyErr_Occurred()) return NULL
;
8593 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
8594 _resultobj
= Py_BuildValue("s",_ptemp
);
8597 _resultobj
= Py_None
;
8602 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8603 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8604 PyObject
* _resultobj
;
8608 PyObject
* _argo0
= 0;
8609 PyObject
* _argo1
= 0;
8610 char *_kwnames
[] = { "self","window", NULL
};
8613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
8616 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8617 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8618 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
8623 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8624 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
8630 wxPy_BEGIN_ALLOW_THREADS
;
8631 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
8633 wxPy_END_ALLOW_THREADS
;
8634 if (PyErr_Occurred()) return NULL
;
8635 } _resultobj
= Py_BuildValue("i",_result
);
8639 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8640 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8641 PyObject
* _resultobj
;
8644 wxRect
* _arg1
= (wxRect
*) NULL
;
8645 PyObject
* _argo0
= 0;
8647 PyObject
* _obj1
= 0;
8648 char *_kwnames
[] = { "self","rect", NULL
};
8651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
8654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
8663 if (! wxRect_helper(_obj1
, &_arg1
))
8667 wxPy_BEGIN_ALLOW_THREADS
;
8668 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
8670 wxPy_END_ALLOW_THREADS
;
8671 if (PyErr_Occurred()) return NULL
;
8672 } _resultobj
= Py_BuildValue("i",_result
);
8676 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
8677 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8678 PyObject
* _resultobj
;
8681 PyObject
* _argo0
= 0;
8682 char *_kwnames
[] = { "self", NULL
};
8685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
8688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8695 wxPy_BEGIN_ALLOW_THREADS
;
8696 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
8698 wxPy_END_ALLOW_THREADS
;
8699 if (PyErr_Occurred()) return NULL
;
8700 } _resultobj
= Py_BuildValue("i",_result
);
8704 static void *SwigwxClientDCTowxDC(void *ptr
) {
8707 src
= (wxClientDC
*) ptr
;
8708 dest
= (wxDC
*) src
;
8709 return (void *) dest
;
8712 static void *SwigwxClientDCTowxObject(void *ptr
) {
8715 src
= (wxClientDC
*) ptr
;
8716 dest
= (wxObject
*) src
;
8717 return (void *) dest
;
8720 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
8721 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8722 PyObject
* _resultobj
;
8723 wxClientDC
* _result
;
8725 PyObject
* _argo0
= 0;
8726 char *_kwnames
[] = { "win", NULL
};
8730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
8733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8740 wxPy_BEGIN_ALLOW_THREADS
;
8741 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
8743 wxPy_END_ALLOW_THREADS
;
8744 if (PyErr_Occurred()) return NULL
;
8746 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
8747 _resultobj
= Py_BuildValue("s",_ptemp
);
8750 _resultobj
= Py_None
;
8755 static void *SwigwxPaintDCTowxDC(void *ptr
) {
8758 src
= (wxPaintDC
*) ptr
;
8759 dest
= (wxDC
*) src
;
8760 return (void *) dest
;
8763 static void *SwigwxPaintDCTowxObject(void *ptr
) {
8766 src
= (wxPaintDC
*) ptr
;
8767 dest
= (wxObject
*) src
;
8768 return (void *) dest
;
8771 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8772 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8773 PyObject
* _resultobj
;
8774 wxPaintDC
* _result
;
8776 PyObject
* _argo0
= 0;
8777 char *_kwnames
[] = { "win", NULL
};
8781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8784 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8785 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8786 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8791 wxPy_BEGIN_ALLOW_THREADS
;
8792 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8794 wxPy_END_ALLOW_THREADS
;
8795 if (PyErr_Occurred()) return NULL
;
8797 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8798 _resultobj
= Py_BuildValue("s",_ptemp
);
8801 _resultobj
= Py_None
;
8806 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8809 src
= (wxWindowDC
*) ptr
;
8810 dest
= (wxDC
*) src
;
8811 return (void *) dest
;
8814 static void *SwigwxWindowDCTowxObject(void *ptr
) {
8817 src
= (wxWindowDC
*) ptr
;
8818 dest
= (wxObject
*) src
;
8819 return (void *) dest
;
8822 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8823 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8824 PyObject
* _resultobj
;
8825 wxWindowDC
* _result
;
8827 PyObject
* _argo0
= 0;
8828 char *_kwnames
[] = { "win", NULL
};
8832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
8835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8842 wxPy_BEGIN_ALLOW_THREADS
;
8843 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
8845 wxPy_END_ALLOW_THREADS
;
8846 if (PyErr_Occurred()) return NULL
;
8848 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
8849 _resultobj
= Py_BuildValue("s",_ptemp
);
8852 _resultobj
= Py_None
;
8857 static void *SwigwxPostScriptDCTowxDC(void *ptr
) {
8858 wxPostScriptDC
*src
;
8860 src
= (wxPostScriptDC
*) ptr
;
8861 dest
= (wxDC
*) src
;
8862 return (void *) dest
;
8865 static void *SwigwxPostScriptDCTowxObject(void *ptr
) {
8866 wxPostScriptDC
*src
;
8868 src
= (wxPostScriptDC
*) ptr
;
8869 dest
= (wxObject
*) src
;
8870 return (void *) dest
;
8873 #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2))
8874 static PyObject
*_wrap_new_wxPostScriptDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8875 PyObject
* _resultobj
;
8876 wxPostScriptDC
* _result
;
8878 bool _arg1
= (bool ) TRUE
;
8879 wxWindow
* _arg2
= (wxWindow
*) NULL
;
8880 PyObject
* _obj0
= 0;
8881 int tempbool1
= (int) TRUE
;
8882 PyObject
* _argo2
= 0;
8883 char *_kwnames
[] = { "output","interactive","win", NULL
};
8887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:new_wxPostScriptDC",_kwnames
,&_obj0
,&tempbool1
,&_argo2
))
8890 #if PYTHON_API_VERSION >= 1009
8891 char* tmpPtr
; int tmpSize
;
8892 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
8893 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8896 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
8898 _arg0
= new wxString(tmpPtr
, tmpSize
);
8900 if (!PyString_Check(_obj0
)) {
8901 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8904 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
8907 _arg1
= (bool ) tempbool1
;
8909 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8910 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
8911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p.");
8916 wxPy_BEGIN_ALLOW_THREADS
;
8917 _result
= (wxPostScriptDC
*)new_wxPostScriptDC(*_arg0
,_arg1
,_arg2
);
8919 wxPy_END_ALLOW_THREADS
;
8920 if (PyErr_Occurred()) return NULL
;
8922 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPostScriptDC_p");
8923 _resultobj
= Py_BuildValue("s",_ptemp
);
8926 _resultobj
= Py_None
;
8935 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
8938 src
= (wxPalette
*) ptr
;
8939 dest
= (wxGDIObject
*) src
;
8940 return (void *) dest
;
8943 static void *SwigwxPaletteTowxObject(void *ptr
) {
8946 src
= (wxPalette
*) ptr
;
8947 dest
= (wxObject
*) src
;
8948 return (void *) dest
;
8951 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8952 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8953 PyObject
* _resultobj
;
8954 wxPalette
* _result
;
8959 PyObject
* _obj1
= 0;
8960 PyObject
* _obj2
= 0;
8961 PyObject
* _obj3
= 0;
8962 char *_kwnames
[] = { "choices","choices","choices", NULL
};
8966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
8969 _arg1
= byte_LIST_helper(_obj1
);
8970 if (_arg1
== NULL
) {
8975 _arg2
= byte_LIST_helper(_obj2
);
8976 if (_arg2
== NULL
) {
8982 _arg3
= byte_LIST_helper(_obj3
);
8983 if (_arg3
== NULL
) {
8989 _arg0
= PyList_Size(_obj1
);
8996 wxPy_BEGIN_ALLOW_THREADS
;
8997 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
8999 wxPy_END_ALLOW_THREADS
;
9000 if (PyErr_Occurred()) return NULL
;
9002 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
9003 _resultobj
= Py_BuildValue("s",_ptemp
);
9006 _resultobj
= Py_None
;
9020 #define delete_wxPalette(_swigobj) (delete _swigobj)
9021 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9022 PyObject
* _resultobj
;
9024 PyObject
* _argo0
= 0;
9025 char *_kwnames
[] = { "self", NULL
};
9028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
9031 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9032 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9033 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
9038 wxPy_BEGIN_ALLOW_THREADS
;
9039 delete_wxPalette(_arg0
);
9041 wxPy_END_ALLOW_THREADS
;
9042 if (PyErr_Occurred()) return NULL
;
9043 } Py_INCREF(Py_None
);
9044 _resultobj
= Py_None
;
9048 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
9049 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9050 PyObject
* _resultobj
;
9056 PyObject
* _argo0
= 0;
9057 char *_kwnames
[] = { "self","red","green","blue", NULL
};
9060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
9063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
9070 wxPy_BEGIN_ALLOW_THREADS
;
9071 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
9073 wxPy_END_ALLOW_THREADS
;
9074 if (PyErr_Occurred()) return NULL
;
9075 } _resultobj
= Py_BuildValue("i",_result
);
9079 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9080 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9081 PyObject
* _resultobj
;
9088 PyObject
* _argo0
= 0;
9089 PyObject
* _argo2
= 0;
9090 PyObject
* _argo3
= 0;
9091 PyObject
* _argo4
= 0;
9092 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
9095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
9098 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9099 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9100 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
9105 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9106 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
9107 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
9112 if (_argo3
== Py_None
) { _arg3
= NULL
; }
9113 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
9114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
9119 if (_argo4
== Py_None
) { _arg4
= NULL
; }
9120 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
9121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
9126 wxPy_BEGIN_ALLOW_THREADS
;
9127 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9129 wxPy_END_ALLOW_THREADS
;
9130 if (PyErr_Occurred()) return NULL
;
9131 } _resultobj
= Py_BuildValue("i",_result
);
9135 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
9136 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9137 PyObject
* _resultobj
;
9140 PyObject
* _argo0
= 0;
9141 char *_kwnames
[] = { "self", NULL
};
9144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
9147 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9148 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
9154 wxPy_BEGIN_ALLOW_THREADS
;
9155 _result
= (bool )wxPalette_Ok(_arg0
);
9157 wxPy_END_ALLOW_THREADS
;
9158 if (PyErr_Occurred()) return NULL
;
9159 } _resultobj
= Py_BuildValue("i",_result
);
9163 static void *SwigwxImageListTowxObject(void *ptr
) {
9166 src
= (wxImageList
*) ptr
;
9167 dest
= (wxObject
*) src
;
9168 return (void *) dest
;
9171 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9172 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9173 PyObject
* _resultobj
;
9174 wxImageList
* _result
;
9177 int _arg2
= (int ) TRUE
;
9178 int _arg3
= (int ) 1;
9179 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
9183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9186 wxPy_BEGIN_ALLOW_THREADS
;
9187 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
9189 wxPy_END_ALLOW_THREADS
;
9190 if (PyErr_Occurred()) return NULL
;
9192 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
9193 _resultobj
= Py_BuildValue("s",_ptemp
);
9196 _resultobj
= Py_None
;
9201 #define delete_wxImageList(_swigobj) (delete _swigobj)
9202 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9203 PyObject
* _resultobj
;
9204 wxImageList
* _arg0
;
9205 PyObject
* _argo0
= 0;
9206 char *_kwnames
[] = { "self", NULL
};
9209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
9212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
9219 wxPy_BEGIN_ALLOW_THREADS
;
9220 delete_wxImageList(_arg0
);
9222 wxPy_END_ALLOW_THREADS
;
9223 if (PyErr_Occurred()) return NULL
;
9224 } Py_INCREF(Py_None
);
9225 _resultobj
= Py_None
;
9229 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9230 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9231 PyObject
* _resultobj
;
9233 wxImageList
* _arg0
;
9235 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
9236 PyObject
* _argo0
= 0;
9237 PyObject
* _argo1
= 0;
9238 PyObject
* _argo2
= 0;
9239 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
9242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
9245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
9252 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9253 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
9259 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9260 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
9266 wxPy_BEGIN_ALLOW_THREADS
;
9267 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
9269 wxPy_END_ALLOW_THREADS
;
9270 if (PyErr_Occurred()) return NULL
;
9271 } _resultobj
= Py_BuildValue("i",_result
);
9275 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9276 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9277 PyObject
* _resultobj
;
9279 wxImageList
* _arg0
;
9282 PyObject
* _argo0
= 0;
9283 PyObject
* _argo1
= 0;
9285 PyObject
* _obj2
= 0;
9286 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
9289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
9292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
9299 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9300 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
9307 if (! wxColour_helper(_obj2
, &_arg2
))
9311 wxPy_BEGIN_ALLOW_THREADS
;
9312 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
9314 wxPy_END_ALLOW_THREADS
;
9315 if (PyErr_Occurred()) return NULL
;
9316 } _resultobj
= Py_BuildValue("i",_result
);
9320 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
9321 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9322 PyObject
* _resultobj
;
9324 wxImageList
* _arg0
;
9326 PyObject
* _argo0
= 0;
9327 PyObject
* _argo1
= 0;
9328 char *_kwnames
[] = { "self","icon", NULL
};
9331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
9334 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9335 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9336 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
9341 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9342 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
9343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
9348 wxPy_BEGIN_ALLOW_THREADS
;
9349 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
9351 wxPy_END_ALLOW_THREADS
;
9352 if (PyErr_Occurred()) return NULL
;
9353 } _resultobj
= Py_BuildValue("i",_result
);
9357 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
9358 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9359 PyObject
* _resultobj
;
9361 wxImageList
* _arg0
;
9364 PyObject
* _argo0
= 0;
9365 PyObject
* _argo2
= 0;
9366 char *_kwnames
[] = { "self","index","bitmap", NULL
};
9369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
9372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
9379 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9380 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9381 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
9386 wxPy_BEGIN_ALLOW_THREADS
;
9387 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
9389 wxPy_END_ALLOW_THREADS
;
9390 if (PyErr_Occurred()) return NULL
;
9391 } _resultobj
= Py_BuildValue("i",_result
);
9395 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9396 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9397 PyObject
* _resultobj
;
9399 wxImageList
* _arg0
;
9404 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
9405 bool _arg6
= (bool ) FALSE
;
9406 PyObject
* _argo0
= 0;
9407 PyObject
* _argo2
= 0;
9408 int tempbool6
= (int) FALSE
;
9409 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
9412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
9415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
9422 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9423 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
9424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
9428 _arg6
= (bool ) tempbool6
;
9430 wxPy_BEGIN_ALLOW_THREADS
;
9431 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
9433 wxPy_END_ALLOW_THREADS
;
9434 if (PyErr_Occurred()) return NULL
;
9435 } _resultobj
= Py_BuildValue("i",_result
);
9439 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
9440 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9441 PyObject
* _resultobj
;
9443 wxImageList
* _arg0
;
9444 PyObject
* _argo0
= 0;
9445 char *_kwnames
[] = { "self", NULL
};
9448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
9451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
9458 wxPy_BEGIN_ALLOW_THREADS
;
9459 _result
= (int )wxImageList_GetImageCount(_arg0
);
9461 wxPy_END_ALLOW_THREADS
;
9462 if (PyErr_Occurred()) return NULL
;
9463 } _resultobj
= Py_BuildValue("i",_result
);
9467 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
9468 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9469 PyObject
* _resultobj
;
9471 wxImageList
* _arg0
;
9473 PyObject
* _argo0
= 0;
9474 char *_kwnames
[] = { "self","index", NULL
};
9477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
9480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
9487 wxPy_BEGIN_ALLOW_THREADS
;
9488 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
9490 wxPy_END_ALLOW_THREADS
;
9491 if (PyErr_Occurred()) return NULL
;
9492 } _resultobj
= Py_BuildValue("i",_result
);
9496 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
9497 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9498 PyObject
* _resultobj
;
9500 wxImageList
* _arg0
;
9501 PyObject
* _argo0
= 0;
9502 char *_kwnames
[] = { "self", NULL
};
9505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
9508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9515 wxPy_BEGIN_ALLOW_THREADS
;
9516 _result
= (bool )wxImageList_RemoveAll(_arg0
);
9518 wxPy_END_ALLOW_THREADS
;
9519 if (PyErr_Occurred()) return NULL
;
9520 } _resultobj
= Py_BuildValue("i",_result
);
9524 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9525 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9526 PyObject
* _resultobj
;
9527 wxImageList
* _arg0
;
9533 PyObject
* _argo0
= 0;
9534 char *_kwnames
[] = { "self","index", NULL
};
9543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
9546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9553 wxPy_BEGIN_ALLOW_THREADS
;
9554 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
9556 wxPy_END_ALLOW_THREADS
;
9557 if (PyErr_Occurred()) return NULL
;
9558 } Py_INCREF(Py_None
);
9559 _resultobj
= Py_None
;
9562 o
= PyInt_FromLong((long) (*_arg2
));
9563 _resultobj
= t_output_helper(_resultobj
, o
);
9567 o
= PyInt_FromLong((long) (*_arg3
));
9568 _resultobj
= t_output_helper(_resultobj
, o
);
9573 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
9576 src
= (wxRegion
*) ptr
;
9577 dest
= (wxGDIObject
*) src
;
9578 return (void *) dest
;
9581 static void *SwigwxRegionTowxObject(void *ptr
) {
9584 src
= (wxRegion
*) ptr
;
9585 dest
= (wxObject
*) src
;
9586 return (void *) dest
;
9589 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9590 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9591 PyObject
* _resultobj
;
9593 long _arg0
= (long ) 0;
9594 long _arg1
= (long ) 0;
9595 long _arg2
= (long ) 0;
9596 long _arg3
= (long ) 0;
9597 char *_kwnames
[] = { "x","y","width","height", NULL
};
9601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9604 wxPy_BEGIN_ALLOW_THREADS
;
9605 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
9607 wxPy_END_ALLOW_THREADS
;
9608 if (PyErr_Occurred()) return NULL
;
9610 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
9611 _resultobj
= Py_BuildValue("s",_ptemp
);
9614 _resultobj
= Py_None
;
9619 #define delete_wxRegion(_swigobj) (delete _swigobj)
9620 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9621 PyObject
* _resultobj
;
9623 PyObject
* _argo0
= 0;
9624 char *_kwnames
[] = { "self", NULL
};
9627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
9630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
9637 wxPy_BEGIN_ALLOW_THREADS
;
9638 delete_wxRegion(_arg0
);
9640 wxPy_END_ALLOW_THREADS
;
9641 if (PyErr_Occurred()) return NULL
;
9642 } Py_INCREF(Py_None
);
9643 _resultobj
= Py_None
;
9647 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
9648 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9649 PyObject
* _resultobj
;
9651 PyObject
* _argo0
= 0;
9652 char *_kwnames
[] = { "self", NULL
};
9655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
9658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
9665 wxPy_BEGIN_ALLOW_THREADS
;
9666 wxRegion_Clear(_arg0
);
9668 wxPy_END_ALLOW_THREADS
;
9669 if (PyErr_Occurred()) return NULL
;
9670 } Py_INCREF(Py_None
);
9671 _resultobj
= Py_None
;
9675 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
9676 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9677 PyObject
* _resultobj
;
9678 wxRegionContain _result
;
9682 PyObject
* _argo0
= 0;
9683 char *_kwnames
[] = { "self","x","y", NULL
};
9686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
9696 wxPy_BEGIN_ALLOW_THREADS
;
9697 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
9699 wxPy_END_ALLOW_THREADS
;
9700 if (PyErr_Occurred()) return NULL
;
9701 } _resultobj
= Py_BuildValue("i",_result
);
9705 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9706 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9707 PyObject
* _resultobj
;
9708 wxRegionContain _result
;
9711 PyObject
* _argo0
= 0;
9713 PyObject
* _obj1
= 0;
9714 char *_kwnames
[] = { "self","pt", NULL
};
9717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
9720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
9728 if (! wxPoint_helper(_obj1
, &_arg1
))
9732 wxPy_BEGIN_ALLOW_THREADS
;
9733 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
9735 wxPy_END_ALLOW_THREADS
;
9736 if (PyErr_Occurred()) return NULL
;
9737 } _resultobj
= Py_BuildValue("i",_result
);
9741 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9742 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9743 PyObject
* _resultobj
;
9744 wxRegionContain _result
;
9747 PyObject
* _argo0
= 0;
9749 PyObject
* _obj1
= 0;
9750 char *_kwnames
[] = { "self","rect", NULL
};
9753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
9756 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9757 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9764 if (! wxRect_helper(_obj1
, &_arg1
))
9768 wxPy_BEGIN_ALLOW_THREADS
;
9769 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
9771 wxPy_END_ALLOW_THREADS
;
9772 if (PyErr_Occurred()) return NULL
;
9773 } _resultobj
= Py_BuildValue("i",_result
);
9777 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9778 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9779 PyObject
* _resultobj
;
9780 wxRegionContain _result
;
9786 PyObject
* _argo0
= 0;
9787 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
9790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9793 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9794 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9800 wxPy_BEGIN_ALLOW_THREADS
;
9801 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9803 wxPy_END_ALLOW_THREADS
;
9804 if (PyErr_Occurred()) return NULL
;
9805 } _resultobj
= Py_BuildValue("i",_result
);
9809 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9810 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9811 PyObject
* _resultobj
;
9814 PyObject
* _argo0
= 0;
9815 char *_kwnames
[] = { "self", NULL
};
9819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
9822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9829 wxPy_BEGIN_ALLOW_THREADS
;
9830 _result
= new wxRect (wxRegion_GetBox(_arg0
));
9832 wxPy_END_ALLOW_THREADS
;
9833 if (PyErr_Occurred()) return NULL
;
9834 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9835 _resultobj
= Py_BuildValue("s",_ptemp
);
9839 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9840 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9841 PyObject
* _resultobj
;
9848 PyObject
* _argo0
= 0;
9849 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9862 wxPy_BEGIN_ALLOW_THREADS
;
9863 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9865 wxPy_END_ALLOW_THREADS
;
9866 if (PyErr_Occurred()) return NULL
;
9867 } _resultobj
= Py_BuildValue("i",_result
);
9871 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9872 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9873 PyObject
* _resultobj
;
9877 PyObject
* _argo0
= 0;
9879 PyObject
* _obj1
= 0;
9880 char *_kwnames
[] = { "self","rect", NULL
};
9883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
9886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9894 if (! wxRect_helper(_obj1
, &_arg1
))
9898 wxPy_BEGIN_ALLOW_THREADS
;
9899 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
9901 wxPy_END_ALLOW_THREADS
;
9902 if (PyErr_Occurred()) return NULL
;
9903 } _resultobj
= Py_BuildValue("i",_result
);
9907 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9908 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9909 PyObject
* _resultobj
;
9913 PyObject
* _argo0
= 0;
9914 PyObject
* _argo1
= 0;
9915 char *_kwnames
[] = { "self","region", NULL
};
9918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
9921 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9922 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9923 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9928 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9929 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9930 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9935 wxPy_BEGIN_ALLOW_THREADS
;
9936 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
9938 wxPy_END_ALLOW_THREADS
;
9939 if (PyErr_Occurred()) return NULL
;
9940 } _resultobj
= Py_BuildValue("i",_result
);
9944 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
9945 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9946 PyObject
* _resultobj
;
9949 PyObject
* _argo0
= 0;
9950 char *_kwnames
[] = { "self", NULL
};
9953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
9956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
9963 wxPy_BEGIN_ALLOW_THREADS
;
9964 _result
= (bool )wxRegion_IsEmpty(_arg0
);
9966 wxPy_END_ALLOW_THREADS
;
9967 if (PyErr_Occurred()) return NULL
;
9968 } _resultobj
= Py_BuildValue("i",_result
);
9972 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9973 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9974 PyObject
* _resultobj
;
9981 PyObject
* _argo0
= 0;
9982 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
9995 wxPy_BEGIN_ALLOW_THREADS
;
9996 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9998 wxPy_END_ALLOW_THREADS
;
9999 if (PyErr_Occurred()) return NULL
;
10000 } _resultobj
= Py_BuildValue("i",_result
);
10004 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10005 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10006 PyObject
* _resultobj
;
10010 PyObject
* _argo0
= 0;
10012 PyObject
* _obj1
= 0;
10013 char *_kwnames
[] = { "self","rect", NULL
};
10016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
10019 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10020 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
10027 if (! wxRect_helper(_obj1
, &_arg1
))
10031 wxPy_BEGIN_ALLOW_THREADS
;
10032 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
10034 wxPy_END_ALLOW_THREADS
;
10035 if (PyErr_Occurred()) return NULL
;
10036 } _resultobj
= Py_BuildValue("i",_result
);
10040 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10041 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10042 PyObject
* _resultobj
;
10046 PyObject
* _argo0
= 0;
10047 PyObject
* _argo1
= 0;
10048 char *_kwnames
[] = { "self","region", NULL
};
10051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
10054 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10055 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10061 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10062 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10068 wxPy_BEGIN_ALLOW_THREADS
;
10069 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
10071 wxPy_END_ALLOW_THREADS
;
10072 if (PyErr_Occurred()) return NULL
;
10073 } _resultobj
= Py_BuildValue("i",_result
);
10077 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10078 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10079 PyObject
* _resultobj
;
10086 PyObject
* _argo0
= 0;
10087 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
10100 wxPy_BEGIN_ALLOW_THREADS
;
10101 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10103 wxPy_END_ALLOW_THREADS
;
10104 if (PyErr_Occurred()) return NULL
;
10105 } _resultobj
= Py_BuildValue("i",_result
);
10109 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10110 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10111 PyObject
* _resultobj
;
10115 PyObject
* _argo0
= 0;
10117 PyObject
* _obj1
= 0;
10118 char *_kwnames
[] = { "self","rect", NULL
};
10121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
10124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
10132 if (! wxRect_helper(_obj1
, &_arg1
))
10136 wxPy_BEGIN_ALLOW_THREADS
;
10137 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
10139 wxPy_END_ALLOW_THREADS
;
10140 if (PyErr_Occurred()) return NULL
;
10141 } _resultobj
= Py_BuildValue("i",_result
);
10145 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10146 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10147 PyObject
* _resultobj
;
10151 PyObject
* _argo0
= 0;
10152 PyObject
* _argo1
= 0;
10153 char *_kwnames
[] = { "self","region", NULL
};
10156 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
10159 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10160 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10161 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10166 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10167 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10168 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10173 wxPy_BEGIN_ALLOW_THREADS
;
10174 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
10176 wxPy_END_ALLOW_THREADS
;
10177 if (PyErr_Occurred()) return NULL
;
10178 } _resultobj
= Py_BuildValue("i",_result
);
10182 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10183 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10184 PyObject
* _resultobj
;
10191 PyObject
* _argo0
= 0;
10192 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
10205 wxPy_BEGIN_ALLOW_THREADS
;
10206 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10208 wxPy_END_ALLOW_THREADS
;
10209 if (PyErr_Occurred()) return NULL
;
10210 } _resultobj
= Py_BuildValue("i",_result
);
10214 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10215 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10216 PyObject
* _resultobj
;
10220 PyObject
* _argo0
= 0;
10222 PyObject
* _obj1
= 0;
10223 char *_kwnames
[] = { "self","rect", NULL
};
10226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
10229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
10237 if (! wxRect_helper(_obj1
, &_arg1
))
10241 wxPy_BEGIN_ALLOW_THREADS
;
10242 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
10244 wxPy_END_ALLOW_THREADS
;
10245 if (PyErr_Occurred()) return NULL
;
10246 } _resultobj
= Py_BuildValue("i",_result
);
10250 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10251 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10252 PyObject
* _resultobj
;
10256 PyObject
* _argo0
= 0;
10257 PyObject
* _argo1
= 0;
10258 char *_kwnames
[] = { "self","region", NULL
};
10261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
10264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
10271 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10272 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
10278 wxPy_BEGIN_ALLOW_THREADS
;
10279 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
10281 wxPy_END_ALLOW_THREADS
;
10282 if (PyErr_Occurred()) return NULL
;
10283 } _resultobj
= Py_BuildValue("i",_result
);
10287 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
10288 wxRegionIterator
*src
;
10290 src
= (wxRegionIterator
*) ptr
;
10291 dest
= (wxObject
*) src
;
10292 return (void *) dest
;
10295 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
10296 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10297 PyObject
* _resultobj
;
10298 wxRegionIterator
* _result
;
10300 PyObject
* _argo0
= 0;
10301 char *_kwnames
[] = { "region", NULL
};
10305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
10308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
10315 wxPy_BEGIN_ALLOW_THREADS
;
10316 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
10318 wxPy_END_ALLOW_THREADS
;
10319 if (PyErr_Occurred()) return NULL
;
10321 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
10322 _resultobj
= Py_BuildValue("s",_ptemp
);
10324 Py_INCREF(Py_None
);
10325 _resultobj
= Py_None
;
10330 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
10331 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10332 PyObject
* _resultobj
;
10333 wxRegionIterator
* _arg0
;
10334 PyObject
* _argo0
= 0;
10335 char *_kwnames
[] = { "self", NULL
};
10338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
10341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
10348 wxPy_BEGIN_ALLOW_THREADS
;
10349 delete_wxRegionIterator(_arg0
);
10351 wxPy_END_ALLOW_THREADS
;
10352 if (PyErr_Occurred()) return NULL
;
10353 } Py_INCREF(Py_None
);
10354 _resultobj
= Py_None
;
10358 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
10359 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10360 PyObject
* _resultobj
;
10362 wxRegionIterator
* _arg0
;
10363 PyObject
* _argo0
= 0;
10364 char *_kwnames
[] = { "self", NULL
};
10367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
10370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
10377 wxPy_BEGIN_ALLOW_THREADS
;
10378 _result
= (long )wxRegionIterator_GetX(_arg0
);
10380 wxPy_END_ALLOW_THREADS
;
10381 if (PyErr_Occurred()) return NULL
;
10382 } _resultobj
= Py_BuildValue("l",_result
);
10386 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
10387 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10388 PyObject
* _resultobj
;
10390 wxRegionIterator
* _arg0
;
10391 PyObject
* _argo0
= 0;
10392 char *_kwnames
[] = { "self", NULL
};
10395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
10398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
10405 wxPy_BEGIN_ALLOW_THREADS
;
10406 _result
= (long )wxRegionIterator_GetY(_arg0
);
10408 wxPy_END_ALLOW_THREADS
;
10409 if (PyErr_Occurred()) return NULL
;
10410 } _resultobj
= Py_BuildValue("l",_result
);
10414 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
10415 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10416 PyObject
* _resultobj
;
10418 wxRegionIterator
* _arg0
;
10419 PyObject
* _argo0
= 0;
10420 char *_kwnames
[] = { "self", NULL
};
10423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
10426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
10433 wxPy_BEGIN_ALLOW_THREADS
;
10434 _result
= (long )wxRegionIterator_GetW(_arg0
);
10436 wxPy_END_ALLOW_THREADS
;
10437 if (PyErr_Occurred()) return NULL
;
10438 } _resultobj
= Py_BuildValue("l",_result
);
10442 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
10443 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10444 PyObject
* _resultobj
;
10446 wxRegionIterator
* _arg0
;
10447 PyObject
* _argo0
= 0;
10448 char *_kwnames
[] = { "self", NULL
};
10451 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
10454 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10455 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10456 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
10461 wxPy_BEGIN_ALLOW_THREADS
;
10462 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
10464 wxPy_END_ALLOW_THREADS
;
10465 if (PyErr_Occurred()) return NULL
;
10466 } _resultobj
= Py_BuildValue("l",_result
);
10470 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
10471 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10472 PyObject
* _resultobj
;
10474 wxRegionIterator
* _arg0
;
10475 PyObject
* _argo0
= 0;
10476 char *_kwnames
[] = { "self", NULL
};
10479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
10482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
10489 wxPy_BEGIN_ALLOW_THREADS
;
10490 _result
= (long )wxRegionIterator_GetH(_arg0
);
10492 wxPy_END_ALLOW_THREADS
;
10493 if (PyErr_Occurred()) return NULL
;
10494 } _resultobj
= Py_BuildValue("l",_result
);
10498 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
10499 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10500 PyObject
* _resultobj
;
10502 wxRegionIterator
* _arg0
;
10503 PyObject
* _argo0
= 0;
10504 char *_kwnames
[] = { "self", NULL
};
10507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
10510 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10511 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10512 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
10517 wxPy_BEGIN_ALLOW_THREADS
;
10518 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
10520 wxPy_END_ALLOW_THREADS
;
10521 if (PyErr_Occurred()) return NULL
;
10522 } _resultobj
= Py_BuildValue("l",_result
);
10526 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
10527 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10528 PyObject
* _resultobj
;
10530 wxRegionIterator
* _arg0
;
10531 PyObject
* _argo0
= 0;
10532 char *_kwnames
[] = { "self", NULL
};
10536 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
10539 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10540 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10541 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
10546 wxPy_BEGIN_ALLOW_THREADS
;
10547 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
10549 wxPy_END_ALLOW_THREADS
;
10550 if (PyErr_Occurred()) return NULL
;
10551 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10552 _resultobj
= Py_BuildValue("s",_ptemp
);
10556 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
10557 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10558 PyObject
* _resultobj
;
10560 wxRegionIterator
* _arg0
;
10561 PyObject
* _argo0
= 0;
10562 char *_kwnames
[] = { "self", NULL
};
10565 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
10568 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10569 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10570 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
10575 wxPy_BEGIN_ALLOW_THREADS
;
10576 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
10578 wxPy_END_ALLOW_THREADS
;
10579 if (PyErr_Occurred()) return NULL
;
10580 } _resultobj
= Py_BuildValue("i",_result
);
10584 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
10585 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10586 PyObject
* _resultobj
;
10587 wxRegionIterator
* _arg0
;
10588 PyObject
* _argo0
= 0;
10589 char *_kwnames
[] = { "self", NULL
};
10592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
10595 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10596 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
10602 wxPy_BEGIN_ALLOW_THREADS
;
10603 wxRegionIterator_Reset(_arg0
);
10605 wxPy_END_ALLOW_THREADS
;
10606 if (PyErr_Occurred()) return NULL
;
10607 } Py_INCREF(Py_None
);
10608 _resultobj
= Py_None
;
10612 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
10615 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10616 PyObject
* _resultobj
;
10617 wxRegionIterator
* _arg0
;
10618 PyObject
* _argo0
= 0;
10619 char *_kwnames
[] = { "self", NULL
};
10622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
10625 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10626 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
10632 wxPy_BEGIN_ALLOW_THREADS
;
10633 wxRegionIterator_Next(_arg0
);
10635 wxPy_END_ALLOW_THREADS
;
10636 if (PyErr_Occurred()) return NULL
;
10637 } Py_INCREF(Py_None
);
10638 _resultobj
= Py_None
;
10642 static PyMethodDef gdicMethods
[] = {
10643 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
10644 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
10645 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
10646 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10647 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10648 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
10649 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10650 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
10651 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
10652 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
10653 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10654 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10655 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
10656 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
10657 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
10658 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
10659 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
10660 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
10661 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
10662 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
10663 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
10664 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
10665 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
10666 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
10667 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
10668 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
10669 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
10670 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
10671 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
10672 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
10673 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10674 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10675 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10676 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10677 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
10678 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10679 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
10680 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
10681 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10682 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
10683 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
10684 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
10685 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10686 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10687 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10688 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
10689 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10690 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10691 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10692 { "new_wxPostScriptDC", (PyCFunction
) _wrap_new_wxPostScriptDC
, METH_VARARGS
| METH_KEYWORDS
},
10693 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
10694 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
10695 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
10696 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10697 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10698 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
10699 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
10700 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
10701 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
10702 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10703 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10704 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
10705 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10706 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10707 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10708 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
10709 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10710 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10711 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10712 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10713 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
10714 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
10715 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10716 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10717 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10718 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
10719 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10720 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10721 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10722 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10723 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10724 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10725 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10726 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
10727 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10728 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
10729 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10730 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10731 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10732 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
10733 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
10734 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
10735 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
10736 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
10737 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
10738 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
10739 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
10740 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10741 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10742 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10743 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10744 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10745 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
10746 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10747 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10748 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10749 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
10750 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10751 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10752 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10753 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10754 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10755 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
10756 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10757 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10758 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10759 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10760 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
10761 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
10762 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10763 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
10764 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
10765 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
10766 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10767 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
10768 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10769 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
10770 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
10771 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
10772 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
10773 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
10774 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
10775 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
10776 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
10777 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
10778 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
10779 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
10780 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
10781 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
10782 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10783 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
10784 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10785 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
10786 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10787 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
10788 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
10789 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
10790 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
10791 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10792 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10793 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10794 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10795 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10796 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10797 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10798 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10799 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10800 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
10801 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
10802 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
10803 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10804 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10805 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10806 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10807 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10808 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10809 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
10810 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10811 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10812 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10813 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10814 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10815 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
10816 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10817 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10818 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
10819 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
10820 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
10821 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
10822 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
10823 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10824 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
10825 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
10826 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
10827 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10828 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10829 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
10830 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
10831 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
10832 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10833 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10834 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
10835 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
10836 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
10837 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
10838 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10839 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
10840 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
10841 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
10842 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10843 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
10844 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
10845 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
10846 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10847 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
10848 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
10849 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
10850 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10851 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
10852 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
10853 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10854 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
10855 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
10856 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
10857 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
10858 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
10859 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
10860 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
10861 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
10862 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
10863 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
10864 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10865 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
10866 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
10867 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
10868 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
10869 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
10870 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
10871 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
10872 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10873 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
10874 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10875 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10876 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10877 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10878 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10879 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10880 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10881 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10882 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10883 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10884 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10885 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10886 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
10887 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10888 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10889 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10890 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10891 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10892 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10893 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10894 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10895 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
10896 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
10897 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10898 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
10899 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10900 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10901 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10902 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
10903 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10904 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10905 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10906 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10907 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
10908 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
10909 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
10910 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10911 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
10912 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
10913 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
10914 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10915 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10916 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10923 * This table is used by the pointer type-checker
10925 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10926 { "_signed_long","_long",0},
10927 { "_wxPrintQuality","_wxCoord",0},
10928 { "_wxPrintQuality","_int",0},
10929 { "_wxPrintQuality","_signed_int",0},
10930 { "_wxPrintQuality","_unsigned_int",0},
10931 { "_wxPrintQuality","_wxWindowID",0},
10932 { "_wxPrintQuality","_uint",0},
10933 { "_wxPrintQuality","_EBool",0},
10934 { "_wxPrintQuality","_size_t",0},
10935 { "_wxPrintQuality","_time_t",0},
10936 { "_byte","_unsigned_char",0},
10937 { "_long","_unsigned_long",0},
10938 { "_long","_signed_long",0},
10939 { "_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject
},
10940 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
10941 { "_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject
},
10942 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
10943 { "_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject
},
10944 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
10945 { "_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject
},
10946 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
10947 { "_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject
},
10948 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
10949 { "_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject
},
10950 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
10951 { "_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject
},
10952 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
10953 { "_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject
},
10954 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
10955 { "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
10956 { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
10957 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
10958 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
10959 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
10960 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
10961 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
10962 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
10963 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
10964 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
10965 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10966 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10967 { "_class_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10968 { "_class_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10969 { "_class_wxObject","_class_wxRegion",SwigwxRegionTowxObject
},
10970 { "_class_wxObject","_wxRegion",SwigwxRegionTowxObject
},
10971 { "_class_wxObject","_class_wxImageList",SwigwxImageListTowxObject
},
10972 { "_class_wxObject","_wxImageList",SwigwxImageListTowxObject
},
10973 { "_class_wxObject","_class_wxPalette",SwigwxPaletteTowxObject
},
10974 { "_class_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
10975 { "_class_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
10976 { "_class_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
10977 { "_class_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject
},
10978 { "_class_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
10979 { "_class_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject
},
10980 { "_class_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
10981 { "_class_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject
},
10982 { "_class_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
10983 { "_class_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject
},
10984 { "_class_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
10985 { "_class_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10986 { "_class_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10987 { "_class_wxObject","_class_wxDC",SwigwxDCTowxObject
},
10988 { "_class_wxObject","_wxDC",SwigwxDCTowxObject
},
10989 { "_class_wxObject","_class_wxBrush",SwigwxBrushTowxObject
},
10990 { "_class_wxObject","_wxBrush",SwigwxBrushTowxObject
},
10991 { "_class_wxObject","_class_wxPenList",SwigwxPenListTowxObject
},
10992 { "_class_wxObject","_wxPenList",SwigwxPenListTowxObject
},
10993 { "_class_wxObject","_class_wxPen",SwigwxPenTowxObject
},
10994 { "_class_wxObject","_wxPen",SwigwxPenTowxObject
},
10995 { "_class_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10996 { "_class_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10997 { "_class_wxObject","_class_wxColour",SwigwxColourTowxObject
},
10998 { "_class_wxObject","_wxColour",SwigwxColourTowxObject
},
10999 { "_class_wxObject","_class_wxFontList",SwigwxFontListTowxObject
},
11000 { "_class_wxObject","_wxFontList",SwigwxFontListTowxObject
},
11001 { "_class_wxObject","_class_wxFont",SwigwxFontTowxObject
},
11002 { "_class_wxObject","_wxFont",SwigwxFontTowxObject
},
11003 { "_class_wxObject","_class_wxCursor",SwigwxCursorTowxObject
},
11004 { "_class_wxObject","_wxCursor",SwigwxCursorTowxObject
},
11005 { "_class_wxObject","_class_wxIcon",SwigwxIconTowxObject
},
11006 { "_class_wxObject","_wxIcon",SwigwxIconTowxObject
},
11007 { "_class_wxObject","_class_wxMask",SwigwxMaskTowxObject
},
11008 { "_class_wxObject","_wxMask",SwigwxMaskTowxObject
},
11009 { "_class_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject
},
11010 { "_class_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
11011 { "_class_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject
},
11012 { "_class_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
11013 { "_size_t","_wxCoord",0},
11014 { "_size_t","_wxPrintQuality",0},
11015 { "_size_t","_time_t",0},
11016 { "_size_t","_unsigned_int",0},
11017 { "_size_t","_int",0},
11018 { "_size_t","_wxWindowID",0},
11019 { "_size_t","_uint",0},
11020 { "_uint","_wxCoord",0},
11021 { "_uint","_wxPrintQuality",0},
11022 { "_uint","_time_t",0},
11023 { "_uint","_size_t",0},
11024 { "_uint","_unsigned_int",0},
11025 { "_uint","_int",0},
11026 { "_uint","_wxWindowID",0},
11027 { "_wxChar","_char",0},
11028 { "_char","_wxChar",0},
11029 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
11030 { "_EBool","_wxCoord",0},
11031 { "_EBool","_wxPrintQuality",0},
11032 { "_EBool","_signed_int",0},
11033 { "_EBool","_int",0},
11034 { "_EBool","_wxWindowID",0},
11035 { "_unsigned_long","_long",0},
11036 { "_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
11037 { "_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
11038 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
11039 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
11040 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
11041 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
11042 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
11043 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
11044 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
11045 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
11046 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11047 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11048 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
11049 { "_signed_int","_wxCoord",0},
11050 { "_signed_int","_wxPrintQuality",0},
11051 { "_signed_int","_EBool",0},
11052 { "_signed_int","_wxWindowID",0},
11053 { "_signed_int","_int",0},
11054 { "_WXTYPE","_short",0},
11055 { "_WXTYPE","_signed_short",0},
11056 { "_WXTYPE","_unsigned_short",0},
11057 { "_unsigned_short","_WXTYPE",0},
11058 { "_unsigned_short","_short",0},
11059 { "_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11060 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11061 { "_wxObject","_class_wxRegion",SwigwxRegionTowxObject
},
11062 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
11063 { "_wxObject","_class_wxImageList",SwigwxImageListTowxObject
},
11064 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
11065 { "_wxObject","_class_wxPalette",SwigwxPaletteTowxObject
},
11066 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
11067 { "_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
11068 { "_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject
},
11069 { "_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject
},
11070 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
11071 { "_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject
},
11072 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
11073 { "_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject
},
11074 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
11075 { "_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject
},
11076 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
11077 { "_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11078 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11079 { "_wxObject","_class_wxDC",SwigwxDCTowxObject
},
11080 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
11081 { "_wxObject","_class_wxBrush",SwigwxBrushTowxObject
},
11082 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
11083 { "_wxObject","_class_wxPenList",SwigwxPenListTowxObject
},
11084 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
11085 { "_wxObject","_class_wxPen",SwigwxPenTowxObject
},
11086 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
11087 { "_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11088 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11089 { "_wxObject","_class_wxColour",SwigwxColourTowxObject
},
11090 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
11091 { "_wxObject","_class_wxFontList",SwigwxFontListTowxObject
},
11092 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
11093 { "_wxObject","_class_wxFont",SwigwxFontTowxObject
},
11094 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
11095 { "_wxObject","_class_wxCursor",SwigwxCursorTowxObject
},
11096 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
11097 { "_wxObject","_class_wxIcon",SwigwxIconTowxObject
},
11098 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
11099 { "_wxObject","_class_wxMask",SwigwxMaskTowxObject
},
11100 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
11101 { "_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject
},
11102 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
11103 { "_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject
},
11104 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
11105 { "_signed_short","_WXTYPE",0},
11106 { "_signed_short","_short",0},
11107 { "_unsigned_char","_byte",0},
11108 { "_unsigned_int","_wxCoord",0},
11109 { "_unsigned_int","_wxPrintQuality",0},
11110 { "_unsigned_int","_time_t",0},
11111 { "_unsigned_int","_size_t",0},
11112 { "_unsigned_int","_uint",0},
11113 { "_unsigned_int","_wxWindowID",0},
11114 { "_unsigned_int","_int",0},
11115 { "_short","_WXTYPE",0},
11116 { "_short","_unsigned_short",0},
11117 { "_short","_signed_short",0},
11118 { "_wxWindowID","_wxCoord",0},
11119 { "_wxWindowID","_wxPrintQuality",0},
11120 { "_wxWindowID","_time_t",0},
11121 { "_wxWindowID","_size_t",0},
11122 { "_wxWindowID","_EBool",0},
11123 { "_wxWindowID","_uint",0},
11124 { "_wxWindowID","_int",0},
11125 { "_wxWindowID","_signed_int",0},
11126 { "_wxWindowID","_unsigned_int",0},
11127 { "_class_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject
},
11128 { "_class_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
11129 { "_class_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject
},
11130 { "_class_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
11131 { "_class_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject
},
11132 { "_class_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
11133 { "_class_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject
},
11134 { "_class_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
11135 { "_class_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject
},
11136 { "_class_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
11137 { "_class_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject
},
11138 { "_class_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
11139 { "_class_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject
},
11140 { "_class_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
11141 { "_class_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject
},
11142 { "_class_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
11143 { "_int","_wxCoord",0},
11144 { "_int","_wxPrintQuality",0},
11145 { "_int","_time_t",0},
11146 { "_int","_size_t",0},
11147 { "_int","_EBool",0},
11148 { "_int","_uint",0},
11149 { "_int","_wxWindowID",0},
11150 { "_int","_unsigned_int",0},
11151 { "_int","_signed_int",0},
11152 { "_time_t","_wxCoord",0},
11153 { "_time_t","_wxPrintQuality",0},
11154 { "_time_t","_unsigned_int",0},
11155 { "_time_t","_int",0},
11156 { "_time_t","_wxWindowID",0},
11157 { "_time_t","_uint",0},
11158 { "_time_t","_size_t",0},
11159 { "_wxCoord","_int",0},
11160 { "_wxCoord","_signed_int",0},
11161 { "_wxCoord","_unsigned_int",0},
11162 { "_wxCoord","_wxWindowID",0},
11163 { "_wxCoord","_uint",0},
11164 { "_wxCoord","_EBool",0},
11165 { "_wxCoord","_size_t",0},
11166 { "_wxCoord","_time_t",0},
11167 { "_wxCoord","_wxPrintQuality",0},
11170 static PyObject
*SWIG_globals
;
11174 SWIGEXPORT(void) initgdic() {
11176 SWIG_globals
= SWIG_newvarlink();
11177 m
= Py_InitModule("gdic", gdicMethods
);
11178 d
= PyModule_GetDict(m
);
11179 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
11180 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
11181 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
11182 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
11183 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
11184 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
11185 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
11186 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
11187 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
11188 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
11189 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
11190 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
11191 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
11192 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
11193 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
11194 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
11195 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
11196 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
11197 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
11198 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
11199 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
11200 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
11201 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
11202 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
11203 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
11204 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
11205 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
11206 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
11207 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
11208 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
11209 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
11210 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
11211 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
11212 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
11213 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
11214 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
11215 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
11216 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
11217 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
11218 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
11219 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
11220 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
11221 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
11222 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
11223 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
11224 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
11225 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
11226 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
11227 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
11228 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
11229 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
11230 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
11231 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
11232 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
11233 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
11234 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
11235 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
11236 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
11237 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
11238 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
11239 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
11240 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
11241 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
11242 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
11243 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
11244 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
11245 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
11246 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
11247 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
11248 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
11249 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
11250 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
11251 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
11252 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
11253 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
11254 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
11255 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
11256 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
11257 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
11258 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
11259 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
11260 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
11261 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
11262 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
11263 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
11264 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
11265 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
11266 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
11267 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
11268 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
11269 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
11270 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
11271 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
11272 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
11273 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
11274 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
11275 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
11276 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
11277 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
11278 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
11279 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
11280 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
11281 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
11282 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
11283 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
11284 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
11285 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
11286 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
11287 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
11288 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
11289 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
11290 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
11291 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
11294 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
11295 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);