2 * FILE : src/msw/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/metafile.h>
60 #include <wx/imaglist.h>
64 #include <wx/fontmap.h>
65 #include <wx/fontenc.h>
66 #include <wx/fontmap.h>
67 #include <wx/fontutil.h>
70 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
76 } else if (target
== Py_None
) {
80 if (!PyTuple_Check(target
)) {
82 target
= PyTuple_New(1);
83 PyTuple_SetItem(target
, 0, o2
);
86 PyTuple_SetItem(o3
, 0, o
);
89 target
= PySequence_Concat(o2
, o3
);
96 #if PYTHON_API_VERSION >= 1009
97 static char* wxStringErrorMsg
= "String or Unicode type required";
99 static char* wxStringErrorMsg
= "string type is required for parameter";
102 static wxString
wxPyEmptyStr("");
103 // Implementations of some alternate "constructors"
105 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
106 return new wxBitmap(width
, height
, depth
);
109 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
110 char** cArray
= NULL
;
113 if (!PyList_Check(listOfStrings
)) {
114 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
117 count
= PyList_Size(listOfStrings
);
118 cArray
= new char*[count
];
120 for(int x
=0; x
<count
; x
++) {
121 // TODO: Need some validation and error checking here
122 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
128 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
129 char** cArray
= NULL
;
132 cArray
= ConvertListOfStrings(listOfStrings
);
135 bmp
= new wxBitmap(cArray
);
141 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
142 return new wxBitmap(icon
);
146 wxBitmap
* wxBitmapFromBits(char* bits
, int width
, int height
, int depth
= 1 ) {
147 return new wxBitmap(bits
, width
, height
, depth
);
152 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
153 // int width, int height, int depth = 1) {
154 // if (! PyString_Check(data)) {
155 // PyErr_SetString(PyExc_TypeError, "Expected string object");
158 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
162 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
163 return new wxMask(bitmap
, colour
);
165 // Implementations of some alternate "constructors"
166 wxIcon
* wxEmptyIcon() {
170 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
171 char** cArray
= NULL
;
174 cArray
= ConvertListOfStrings(listOfStrings
);
177 icon
= new wxIcon(cArray
);
181 // Alternate 'constructor'
182 wxCursor
* wxPyStockCursor(int id
) {
183 return new wxCursor(id
);
185 // Alternate 'constructor'
186 wxColour
* wxNamedColour(const wxString
& colorName
) {
187 return new wxColour(colorName
);
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_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1730 static PyObject
*_wrap_wxBitmap_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1731 PyObject
* _resultobj
;
1734 PyObject
* _argo0
= 0;
1735 PyObject
* _argo1
= 0;
1736 char *_kwnames
[] = { "self","palette", NULL
};
1739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetPalette",_kwnames
,&_argo0
,&_argo1
))
1742 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1743 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1744 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1749 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1750 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
1751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1756 wxPy_BEGIN_ALLOW_THREADS
;
1757 wxBitmap_SetPalette(_arg0
,*_arg1
);
1759 wxPy_END_ALLOW_THREADS
;
1760 if (PyErr_Occurred()) return NULL
;
1761 } Py_INCREF(Py_None
);
1762 _resultobj
= Py_None
;
1766 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1767 static PyObject
*_wrap_wxBitmap_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1768 PyObject
* _resultobj
;
1771 PyObject
* _argo0
= 0;
1772 char *_kwnames
[] = { "self", NULL
};
1775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHandle",_kwnames
,&_argo0
))
1778 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1779 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1785 wxPy_BEGIN_ALLOW_THREADS
;
1786 _result
= (long )wxBitmap_GetHandle(_arg0
);
1788 wxPy_END_ALLOW_THREADS
;
1789 if (PyErr_Occurred()) return NULL
;
1790 } _resultobj
= Py_BuildValue("l",_result
);
1794 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1795 static PyObject
*_wrap_wxBitmap_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1796 PyObject
* _resultobj
;
1799 PyObject
* _argo0
= 0;
1800 char *_kwnames
[] = { "self","handle", NULL
};
1803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxBitmap_SetHandle",_kwnames
,&_argo0
,&_arg1
))
1806 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1807 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1813 wxPy_BEGIN_ALLOW_THREADS
;
1814 wxBitmap_SetHandle(_arg0
,_arg1
);
1816 wxPy_END_ALLOW_THREADS
;
1817 if (PyErr_Occurred()) return NULL
;
1818 } Py_INCREF(Py_None
);
1819 _resultobj
= Py_None
;
1823 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1824 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1825 PyObject
* _resultobj
;
1828 PyObject
* _argo0
= 0;
1829 char *_kwnames
[] = { "self", NULL
};
1832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1842 wxPy_BEGIN_ALLOW_THREADS
;
1843 _result
= (bool )wxBitmap_Ok(_arg0
);
1845 wxPy_END_ALLOW_THREADS
;
1846 if (PyErr_Occurred()) return NULL
;
1847 } _resultobj
= Py_BuildValue("i",_result
);
1851 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1852 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1853 PyObject
* _resultobj
;
1856 PyObject
* _argo0
= 0;
1857 char *_kwnames
[] = { "self", NULL
};
1860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1870 wxPy_BEGIN_ALLOW_THREADS
;
1871 _result
= (int )wxBitmap_GetWidth(_arg0
);
1873 wxPy_END_ALLOW_THREADS
;
1874 if (PyErr_Occurred()) return NULL
;
1875 } _resultobj
= Py_BuildValue("i",_result
);
1879 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1880 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1881 PyObject
* _resultobj
;
1884 PyObject
* _argo0
= 0;
1885 char *_kwnames
[] = { "self", NULL
};
1888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1898 wxPy_BEGIN_ALLOW_THREADS
;
1899 _result
= (int )wxBitmap_GetHeight(_arg0
);
1901 wxPy_END_ALLOW_THREADS
;
1902 if (PyErr_Occurred()) return NULL
;
1903 } _resultobj
= Py_BuildValue("i",_result
);
1907 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1908 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1909 PyObject
* _resultobj
;
1912 PyObject
* _argo0
= 0;
1913 char *_kwnames
[] = { "self", NULL
};
1916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1926 wxPy_BEGIN_ALLOW_THREADS
;
1927 _result
= (int )wxBitmap_GetDepth(_arg0
);
1929 wxPy_END_ALLOW_THREADS
;
1930 if (PyErr_Occurred()) return NULL
;
1931 } _resultobj
= Py_BuildValue("i",_result
);
1935 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1936 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1937 PyObject
* _resultobj
;
1940 PyObject
* _argo0
= 0;
1941 char *_kwnames
[] = { "self","w", NULL
};
1944 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1947 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1948 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1949 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1954 wxPy_BEGIN_ALLOW_THREADS
;
1955 wxBitmap_SetWidth(_arg0
,_arg1
);
1957 wxPy_END_ALLOW_THREADS
;
1958 if (PyErr_Occurred()) return NULL
;
1959 } Py_INCREF(Py_None
);
1960 _resultobj
= Py_None
;
1964 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1965 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1966 PyObject
* _resultobj
;
1969 PyObject
* _argo0
= 0;
1970 char *_kwnames
[] = { "self","h", NULL
};
1973 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1976 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1977 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1978 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1983 wxPy_BEGIN_ALLOW_THREADS
;
1984 wxBitmap_SetHeight(_arg0
,_arg1
);
1986 wxPy_END_ALLOW_THREADS
;
1987 if (PyErr_Occurred()) return NULL
;
1988 } Py_INCREF(Py_None
);
1989 _resultobj
= Py_None
;
1993 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1994 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1995 PyObject
* _resultobj
;
1998 PyObject
* _argo0
= 0;
1999 char *_kwnames
[] = { "self","d", NULL
};
2002 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2005 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2006 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2007 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2012 wxPy_BEGIN_ALLOW_THREADS
;
2013 wxBitmap_SetDepth(_arg0
,_arg1
);
2015 wxPy_END_ALLOW_THREADS
;
2016 if (PyErr_Occurred()) return NULL
;
2017 } Py_INCREF(Py_None
);
2018 _resultobj
= Py_None
;
2022 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2023 static PyObject
*_wrap_wxBitmap_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2024 PyObject
* _resultobj
;
2027 PyObject
* _argo0
= 0;
2029 PyObject
* _obj1
= 0;
2030 char *_kwnames
[] = { "self","size", NULL
};
2033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetSize",_kwnames
,&_argo0
,&_obj1
))
2036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2044 if (! wxSize_helper(_obj1
, &_arg1
))
2048 wxPy_BEGIN_ALLOW_THREADS
;
2049 wxBitmap_SetSize(_arg0
,*_arg1
);
2051 wxPy_END_ALLOW_THREADS
;
2052 if (PyErr_Occurred()) return NULL
;
2053 } Py_INCREF(Py_None
);
2054 _resultobj
= Py_None
;
2058 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2059 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2060 PyObject
* _resultobj
;
2064 PyObject
* _argo0
= 0;
2066 PyObject
* _obj1
= 0;
2067 char *_kwnames
[] = { "self","rect", NULL
};
2071 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
2074 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2075 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2076 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2082 if (! wxRect_helper(_obj1
, &_arg1
))
2086 wxPy_BEGIN_ALLOW_THREADS
;
2087 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2089 wxPy_END_ALLOW_THREADS
;
2090 if (PyErr_Occurred()) return NULL
;
2091 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2092 _resultobj
= Py_BuildValue("s",_ptemp
);
2096 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2097 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2098 PyObject
* _resultobj
;
2102 PyObject
* _argo0
= 0;
2103 PyObject
* _argo1
= 0;
2104 char *_kwnames
[] = { "self","icon", NULL
};
2107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2117 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2118 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2124 wxPy_BEGIN_ALLOW_THREADS
;
2125 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2127 wxPy_END_ALLOW_THREADS
;
2128 if (PyErr_Occurred()) return NULL
;
2129 } _resultobj
= Py_BuildValue("i",_result
);
2133 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2134 static PyObject
*_wrap_wxBitmap_CopyFromCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2135 PyObject
* _resultobj
;
2139 PyObject
* _argo0
= 0;
2140 PyObject
* _argo1
= 0;
2141 char *_kwnames
[] = { "self","cursor", NULL
};
2144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromCursor",_kwnames
,&_argo0
,&_argo1
))
2147 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2148 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2154 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2155 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2161 wxPy_BEGIN_ALLOW_THREADS
;
2162 _result
= (bool )wxBitmap_CopyFromCursor(_arg0
,*_arg1
);
2164 wxPy_END_ALLOW_THREADS
;
2165 if (PyErr_Occurred()) return NULL
;
2166 } _resultobj
= Py_BuildValue("i",_result
);
2170 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2171 static PyObject
*_wrap_wxBitmap_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2172 PyObject
* _resultobj
;
2175 PyObject
* _argo0
= 0;
2176 char *_kwnames
[] = { "self", NULL
};
2179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetQuality",_kwnames
,&_argo0
))
2182 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2183 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2184 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2189 wxPy_BEGIN_ALLOW_THREADS
;
2190 _result
= (int )wxBitmap_GetQuality(_arg0
);
2192 wxPy_END_ALLOW_THREADS
;
2193 if (PyErr_Occurred()) return NULL
;
2194 } _resultobj
= Py_BuildValue("i",_result
);
2198 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2199 static PyObject
*_wrap_wxBitmap_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2200 PyObject
* _resultobj
;
2203 PyObject
* _argo0
= 0;
2204 char *_kwnames
[] = { "self","q", NULL
};
2207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetQuality",_kwnames
,&_argo0
,&_arg1
))
2210 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2211 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2217 wxPy_BEGIN_ALLOW_THREADS
;
2218 wxBitmap_SetQuality(_arg0
,_arg1
);
2220 wxPy_END_ALLOW_THREADS
;
2221 if (PyErr_Occurred()) return NULL
;
2222 } Py_INCREF(Py_None
);
2223 _resultobj
= Py_None
;
2227 static void *SwigwxMaskTowxObject(void *ptr
) {
2230 src
= (wxMask
*) ptr
;
2231 dest
= (wxObject
*) src
;
2232 return (void *) dest
;
2235 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2236 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2237 PyObject
* _resultobj
;
2240 PyObject
* _argo0
= 0;
2241 char *_kwnames
[] = { "bitmap", NULL
};
2245 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2248 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2249 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2250 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2255 wxPy_BEGIN_ALLOW_THREADS
;
2256 _result
= (wxMask
*)new_wxMask(*_arg0
);
2258 wxPy_END_ALLOW_THREADS
;
2259 if (PyErr_Occurred()) return NULL
;
2261 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2262 _resultobj
= Py_BuildValue("s",_ptemp
);
2265 _resultobj
= Py_None
;
2270 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2271 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2272 PyObject
* _resultobj
;
2274 PyObject
* _argo0
= 0;
2275 char *_kwnames
[] = { "self", NULL
};
2278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2281 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2282 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2288 wxPy_BEGIN_ALLOW_THREADS
;
2289 wxMask_Destroy(_arg0
);
2291 wxPy_END_ALLOW_THREADS
;
2292 if (PyErr_Occurred()) return NULL
;
2293 } Py_INCREF(Py_None
);
2294 _resultobj
= Py_None
;
2298 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2301 src
= (wxIcon
*) ptr
;
2302 dest
= (wxGDIObject
*) src
;
2303 return (void *) dest
;
2306 static void *SwigwxIconTowxObject(void *ptr
) {
2309 src
= (wxIcon
*) ptr
;
2310 dest
= (wxObject
*) src
;
2311 return (void *) dest
;
2314 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2315 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2316 PyObject
* _resultobj
;
2320 int _arg2
= (int ) -1;
2321 int _arg3
= (int ) -1;
2322 PyObject
* _obj0
= 0;
2323 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2330 #if PYTHON_API_VERSION >= 1009
2331 char* tmpPtr
; int tmpSize
;
2332 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2333 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2336 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2338 _arg0
= new wxString(tmpPtr
, tmpSize
);
2340 if (!PyString_Check(_obj0
)) {
2341 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2344 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2348 wxPy_BEGIN_ALLOW_THREADS
;
2349 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2351 wxPy_END_ALLOW_THREADS
;
2352 if (PyErr_Occurred()) return NULL
;
2354 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2355 _resultobj
= Py_BuildValue("s",_ptemp
);
2358 _resultobj
= Py_None
;
2367 #define delete_wxIcon(_swigobj) (delete _swigobj)
2368 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2369 PyObject
* _resultobj
;
2371 PyObject
* _argo0
= 0;
2372 char *_kwnames
[] = { "self", NULL
};
2375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2385 wxPy_BEGIN_ALLOW_THREADS
;
2386 delete_wxIcon(_arg0
);
2388 wxPy_END_ALLOW_THREADS
;
2389 if (PyErr_Occurred()) return NULL
;
2390 } Py_INCREF(Py_None
);
2391 _resultobj
= Py_None
;
2395 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2396 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2397 PyObject
* _resultobj
;
2402 PyObject
* _argo0
= 0;
2403 PyObject
* _obj1
= 0;
2404 char *_kwnames
[] = { "self","name","flags", NULL
};
2407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2417 #if PYTHON_API_VERSION >= 1009
2418 char* tmpPtr
; int tmpSize
;
2419 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2420 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2423 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2425 _arg1
= new wxString(tmpPtr
, tmpSize
);
2427 if (!PyString_Check(_obj1
)) {
2428 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2431 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2435 wxPy_BEGIN_ALLOW_THREADS
;
2436 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2438 wxPy_END_ALLOW_THREADS
;
2439 if (PyErr_Occurred()) return NULL
;
2440 } _resultobj
= Py_BuildValue("i",_result
);
2448 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2449 static PyObject
*_wrap_wxIcon_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2450 PyObject
* _resultobj
;
2453 PyObject
* _argo0
= 0;
2454 char *_kwnames
[] = { "self", NULL
};
2457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHandle",_kwnames
,&_argo0
))
2460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2467 wxPy_BEGIN_ALLOW_THREADS
;
2468 _result
= (long )wxIcon_GetHandle(_arg0
);
2470 wxPy_END_ALLOW_THREADS
;
2471 if (PyErr_Occurred()) return NULL
;
2472 } _resultobj
= Py_BuildValue("l",_result
);
2476 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2477 static PyObject
*_wrap_wxIcon_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2478 PyObject
* _resultobj
;
2481 PyObject
* _argo0
= 0;
2482 char *_kwnames
[] = { "self","handle", NULL
};
2485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxIcon_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2495 wxPy_BEGIN_ALLOW_THREADS
;
2496 wxIcon_SetHandle(_arg0
,_arg1
);
2498 wxPy_END_ALLOW_THREADS
;
2499 if (PyErr_Occurred()) return NULL
;
2500 } Py_INCREF(Py_None
);
2501 _resultobj
= Py_None
;
2505 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2506 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2507 PyObject
* _resultobj
;
2510 PyObject
* _argo0
= 0;
2511 char *_kwnames
[] = { "self", NULL
};
2514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2524 wxPy_BEGIN_ALLOW_THREADS
;
2525 _result
= (bool )wxIcon_Ok(_arg0
);
2527 wxPy_END_ALLOW_THREADS
;
2528 if (PyErr_Occurred()) return NULL
;
2529 } _resultobj
= Py_BuildValue("i",_result
);
2533 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2534 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2535 PyObject
* _resultobj
;
2538 PyObject
* _argo0
= 0;
2539 char *_kwnames
[] = { "self", NULL
};
2542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2552 wxPy_BEGIN_ALLOW_THREADS
;
2553 _result
= (int )wxIcon_GetWidth(_arg0
);
2555 wxPy_END_ALLOW_THREADS
;
2556 if (PyErr_Occurred()) return NULL
;
2557 } _resultobj
= Py_BuildValue("i",_result
);
2561 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2562 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2563 PyObject
* _resultobj
;
2566 PyObject
* _argo0
= 0;
2567 char *_kwnames
[] = { "self", NULL
};
2570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2580 wxPy_BEGIN_ALLOW_THREADS
;
2581 _result
= (int )wxIcon_GetHeight(_arg0
);
2583 wxPy_END_ALLOW_THREADS
;
2584 if (PyErr_Occurred()) return NULL
;
2585 } _resultobj
= Py_BuildValue("i",_result
);
2589 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2590 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2591 PyObject
* _resultobj
;
2594 PyObject
* _argo0
= 0;
2595 char *_kwnames
[] = { "self", NULL
};
2598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2608 wxPy_BEGIN_ALLOW_THREADS
;
2609 _result
= (int )wxIcon_GetDepth(_arg0
);
2611 wxPy_END_ALLOW_THREADS
;
2612 if (PyErr_Occurred()) return NULL
;
2613 } _resultobj
= Py_BuildValue("i",_result
);
2617 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2618 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2619 PyObject
* _resultobj
;
2622 PyObject
* _argo0
= 0;
2623 char *_kwnames
[] = { "self","w", NULL
};
2626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2636 wxPy_BEGIN_ALLOW_THREADS
;
2637 wxIcon_SetWidth(_arg0
,_arg1
);
2639 wxPy_END_ALLOW_THREADS
;
2640 if (PyErr_Occurred()) return NULL
;
2641 } Py_INCREF(Py_None
);
2642 _resultobj
= Py_None
;
2646 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2647 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2648 PyObject
* _resultobj
;
2651 PyObject
* _argo0
= 0;
2652 char *_kwnames
[] = { "self","h", NULL
};
2655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2665 wxPy_BEGIN_ALLOW_THREADS
;
2666 wxIcon_SetHeight(_arg0
,_arg1
);
2668 wxPy_END_ALLOW_THREADS
;
2669 if (PyErr_Occurred()) return NULL
;
2670 } Py_INCREF(Py_None
);
2671 _resultobj
= Py_None
;
2675 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2676 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2677 PyObject
* _resultobj
;
2680 PyObject
* _argo0
= 0;
2681 char *_kwnames
[] = { "self","d", NULL
};
2684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2694 wxPy_BEGIN_ALLOW_THREADS
;
2695 wxIcon_SetDepth(_arg0
,_arg1
);
2697 wxPy_END_ALLOW_THREADS
;
2698 if (PyErr_Occurred()) return NULL
;
2699 } Py_INCREF(Py_None
);
2700 _resultobj
= Py_None
;
2704 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2705 static PyObject
*_wrap_wxIcon_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2706 PyObject
* _resultobj
;
2709 PyObject
* _argo0
= 0;
2711 PyObject
* _obj1
= 0;
2712 char *_kwnames
[] = { "self","size", NULL
};
2715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_SetSize",_kwnames
,&_argo0
,&_obj1
))
2718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2726 if (! wxSize_helper(_obj1
, &_arg1
))
2730 wxPy_BEGIN_ALLOW_THREADS
;
2731 wxIcon_SetSize(_arg0
,*_arg1
);
2733 wxPy_END_ALLOW_THREADS
;
2734 if (PyErr_Occurred()) return NULL
;
2735 } Py_INCREF(Py_None
);
2736 _resultobj
= Py_None
;
2740 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2741 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2742 PyObject
* _resultobj
;
2745 PyObject
* _argo0
= 0;
2746 PyObject
* _argo1
= 0;
2747 char *_kwnames
[] = { "self","bmp", NULL
};
2750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2760 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2761 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2767 wxPy_BEGIN_ALLOW_THREADS
;
2768 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2770 wxPy_END_ALLOW_THREADS
;
2771 if (PyErr_Occurred()) return NULL
;
2772 } Py_INCREF(Py_None
);
2773 _resultobj
= Py_None
;
2777 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2780 src
= (wxCursor
*) ptr
;
2781 dest
= (wxGDIObject
*) src
;
2782 return (void *) dest
;
2785 static void *SwigwxCursorTowxObject(void *ptr
) {
2788 src
= (wxCursor
*) ptr
;
2789 dest
= (wxObject
*) src
;
2790 return (void *) dest
;
2793 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2794 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2795 PyObject
* _resultobj
;
2799 int _arg2
= (int ) 0;
2800 int _arg3
= (int ) 0;
2801 PyObject
* _obj0
= 0;
2802 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
2806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2809 #if PYTHON_API_VERSION >= 1009
2810 char* tmpPtr
; int tmpSize
;
2811 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2812 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2815 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2817 _arg0
= new wxString(tmpPtr
, tmpSize
);
2819 if (!PyString_Check(_obj0
)) {
2820 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2823 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2827 wxPy_BEGIN_ALLOW_THREADS
;
2828 _result
= (wxCursor
*)new_wxCursor(*_arg0
,_arg1
,_arg2
,_arg3
);
2830 wxPy_END_ALLOW_THREADS
;
2831 if (PyErr_Occurred()) return NULL
;
2833 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
2834 _resultobj
= Py_BuildValue("s",_ptemp
);
2837 _resultobj
= Py_None
;
2846 #define delete_wxCursor(_swigobj) (delete _swigobj)
2847 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2848 PyObject
* _resultobj
;
2850 PyObject
* _argo0
= 0;
2851 char *_kwnames
[] = { "self", NULL
};
2854 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2857 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2858 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2859 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2864 wxPy_BEGIN_ALLOW_THREADS
;
2865 delete_wxCursor(_arg0
);
2867 wxPy_END_ALLOW_THREADS
;
2868 if (PyErr_Occurred()) return NULL
;
2869 } Py_INCREF(Py_None
);
2870 _resultobj
= Py_None
;
2874 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2875 static PyObject
*_wrap_wxCursor_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2876 PyObject
* _resultobj
;
2879 PyObject
* _argo0
= 0;
2880 char *_kwnames
[] = { "self", NULL
};
2883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHandle",_kwnames
,&_argo0
))
2886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2893 wxPy_BEGIN_ALLOW_THREADS
;
2894 _result
= (long )wxCursor_GetHandle(_arg0
);
2896 wxPy_END_ALLOW_THREADS
;
2897 if (PyErr_Occurred()) return NULL
;
2898 } _resultobj
= Py_BuildValue("l",_result
);
2902 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2903 static PyObject
*_wrap_wxCursor_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2904 PyObject
* _resultobj
;
2907 PyObject
* _argo0
= 0;
2908 char *_kwnames
[] = { "self","handle", NULL
};
2911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxCursor_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2914 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2915 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2916 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2921 wxPy_BEGIN_ALLOW_THREADS
;
2922 wxCursor_SetHandle(_arg0
,_arg1
);
2924 wxPy_END_ALLOW_THREADS
;
2925 if (PyErr_Occurred()) return NULL
;
2926 } Py_INCREF(Py_None
);
2927 _resultobj
= Py_None
;
2931 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2932 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2933 PyObject
* _resultobj
;
2936 PyObject
* _argo0
= 0;
2937 char *_kwnames
[] = { "self", NULL
};
2940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2943 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2944 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2950 wxPy_BEGIN_ALLOW_THREADS
;
2951 _result
= (bool )wxCursor_Ok(_arg0
);
2953 wxPy_END_ALLOW_THREADS
;
2954 if (PyErr_Occurred()) return NULL
;
2955 } _resultobj
= Py_BuildValue("i",_result
);
2959 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2960 static PyObject
*_wrap_wxCursor_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2961 PyObject
* _resultobj
;
2964 PyObject
* _argo0
= 0;
2965 char *_kwnames
[] = { "self", NULL
};
2968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetWidth",_kwnames
,&_argo0
))
2971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
2978 wxPy_BEGIN_ALLOW_THREADS
;
2979 _result
= (int )wxCursor_GetWidth(_arg0
);
2981 wxPy_END_ALLOW_THREADS
;
2982 if (PyErr_Occurred()) return NULL
;
2983 } _resultobj
= Py_BuildValue("i",_result
);
2987 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
2988 static PyObject
*_wrap_wxCursor_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2989 PyObject
* _resultobj
;
2992 PyObject
* _argo0
= 0;
2993 char *_kwnames
[] = { "self", NULL
};
2996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHeight",_kwnames
,&_argo0
))
2999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3006 wxPy_BEGIN_ALLOW_THREADS
;
3007 _result
= (int )wxCursor_GetHeight(_arg0
);
3009 wxPy_END_ALLOW_THREADS
;
3010 if (PyErr_Occurred()) return NULL
;
3011 } _resultobj
= Py_BuildValue("i",_result
);
3015 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3016 static PyObject
*_wrap_wxCursor_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3017 PyObject
* _resultobj
;
3020 PyObject
* _argo0
= 0;
3021 char *_kwnames
[] = { "self", NULL
};
3024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetDepth",_kwnames
,&_argo0
))
3027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3034 wxPy_BEGIN_ALLOW_THREADS
;
3035 _result
= (int )wxCursor_GetDepth(_arg0
);
3037 wxPy_END_ALLOW_THREADS
;
3038 if (PyErr_Occurred()) return NULL
;
3039 } _resultobj
= Py_BuildValue("i",_result
);
3043 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3044 static PyObject
*_wrap_wxCursor_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3045 PyObject
* _resultobj
;
3048 PyObject
* _argo0
= 0;
3049 char *_kwnames
[] = { "self","w", NULL
};
3052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3062 wxPy_BEGIN_ALLOW_THREADS
;
3063 wxCursor_SetWidth(_arg0
,_arg1
);
3065 wxPy_END_ALLOW_THREADS
;
3066 if (PyErr_Occurred()) return NULL
;
3067 } Py_INCREF(Py_None
);
3068 _resultobj
= Py_None
;
3072 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3073 static PyObject
*_wrap_wxCursor_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3074 PyObject
* _resultobj
;
3077 PyObject
* _argo0
= 0;
3078 char *_kwnames
[] = { "self","h", NULL
};
3081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetHeight",_kwnames
,&_argo0
,&_arg1
))
3084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3091 wxPy_BEGIN_ALLOW_THREADS
;
3092 wxCursor_SetHeight(_arg0
,_arg1
);
3094 wxPy_END_ALLOW_THREADS
;
3095 if (PyErr_Occurred()) return NULL
;
3096 } Py_INCREF(Py_None
);
3097 _resultobj
= Py_None
;
3101 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3102 static PyObject
*_wrap_wxCursor_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3103 PyObject
* _resultobj
;
3106 PyObject
* _argo0
= 0;
3107 char *_kwnames
[] = { "self","d", NULL
};
3110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetDepth",_kwnames
,&_argo0
,&_arg1
))
3113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3120 wxPy_BEGIN_ALLOW_THREADS
;
3121 wxCursor_SetDepth(_arg0
,_arg1
);
3123 wxPy_END_ALLOW_THREADS
;
3124 if (PyErr_Occurred()) return NULL
;
3125 } Py_INCREF(Py_None
);
3126 _resultobj
= Py_None
;
3130 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3131 static PyObject
*_wrap_wxCursor_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3132 PyObject
* _resultobj
;
3135 PyObject
* _argo0
= 0;
3137 PyObject
* _obj1
= 0;
3138 char *_kwnames
[] = { "self","size", NULL
};
3141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCursor_SetSize",_kwnames
,&_argo0
,&_obj1
))
3144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3152 if (! wxSize_helper(_obj1
, &_arg1
))
3156 wxPy_BEGIN_ALLOW_THREADS
;
3157 wxCursor_SetSize(_arg0
,*_arg1
);
3159 wxPy_END_ALLOW_THREADS
;
3160 if (PyErr_Occurred()) return NULL
;
3161 } Py_INCREF(Py_None
);
3162 _resultobj
= Py_None
;
3166 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
3167 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3168 PyObject
* _resultobj
;
3170 wxNativeFontInfo
* _arg0
;
3172 PyObject
* _argo0
= 0;
3173 PyObject
* _obj1
= 0;
3174 char *_kwnames
[] = { "self","s", NULL
};
3177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
3180 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3181 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3187 #if PYTHON_API_VERSION >= 1009
3188 char* tmpPtr
; int tmpSize
;
3189 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3190 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3193 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3195 _arg1
= new wxString(tmpPtr
, tmpSize
);
3197 if (!PyString_Check(_obj1
)) {
3198 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3201 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3205 wxPy_BEGIN_ALLOW_THREADS
;
3206 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
3208 wxPy_END_ALLOW_THREADS
;
3209 if (PyErr_Occurred()) return NULL
;
3210 } _resultobj
= Py_BuildValue("i",_result
);
3218 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3219 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3220 PyObject
* _resultobj
;
3222 wxNativeFontInfo
* _arg0
;
3223 PyObject
* _argo0
= 0;
3224 char *_kwnames
[] = { "self", NULL
};
3227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
3230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3237 wxPy_BEGIN_ALLOW_THREADS
;
3238 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
3240 wxPy_END_ALLOW_THREADS
;
3241 if (PyErr_Occurred()) return NULL
;
3243 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3251 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
3252 return self
->ToString();
3254 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3255 PyObject
* _resultobj
;
3257 wxNativeFontInfo
* _arg0
;
3258 PyObject
* _argo0
= 0;
3259 char *_kwnames
[] = { "self", NULL
};
3262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
3265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3272 wxPy_BEGIN_ALLOW_THREADS
;
3273 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
3275 wxPy_END_ALLOW_THREADS
;
3276 if (PyErr_Occurred()) return NULL
;
3278 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3286 #define new_wxFontMapper() (new wxFontMapper())
3287 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3288 PyObject
* _resultobj
;
3289 wxFontMapper
* _result
;
3290 char *_kwnames
[] = { NULL
};
3294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
3297 wxPy_BEGIN_ALLOW_THREADS
;
3298 _result
= (wxFontMapper
*)new_wxFontMapper();
3300 wxPy_END_ALLOW_THREADS
;
3301 if (PyErr_Occurred()) return NULL
;
3303 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
3304 _resultobj
= Py_BuildValue("s",_ptemp
);
3307 _resultobj
= Py_None
;
3312 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3313 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3314 PyObject
* _resultobj
;
3315 wxFontMapper
* _arg0
;
3316 PyObject
* _argo0
= 0;
3317 char *_kwnames
[] = { "self", NULL
};
3320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
3323 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3324 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3330 wxPy_BEGIN_ALLOW_THREADS
;
3331 delete_wxFontMapper(_arg0
);
3333 wxPy_END_ALLOW_THREADS
;
3334 if (PyErr_Occurred()) return NULL
;
3335 } Py_INCREF(Py_None
);
3336 _resultobj
= Py_None
;
3340 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
3341 wxFontEncoding alt_enc
;
3342 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
3343 return PyInt_FromLong(alt_enc
);
3349 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3350 PyObject
* _resultobj
;
3352 wxFontMapper
* _arg0
;
3353 wxFontEncoding _arg1
;
3354 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3355 bool _arg3
= (bool ) TRUE
;
3356 PyObject
* _argo0
= 0;
3357 PyObject
* _obj2
= 0;
3358 int tempbool3
= (int) TRUE
;
3359 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
3362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
3365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3373 #if PYTHON_API_VERSION >= 1009
3374 char* tmpPtr
; int tmpSize
;
3375 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3376 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3379 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3381 _arg2
= new wxString(tmpPtr
, tmpSize
);
3383 if (!PyString_Check(_obj2
)) {
3384 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3387 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3390 _arg3
= (bool ) tempbool3
;
3392 wxPy_BEGIN_ALLOW_THREADS
;
3393 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
3395 wxPy_END_ALLOW_THREADS
;
3396 if (PyErr_Occurred()) return NULL
;
3398 _resultobj
= _result
;
3407 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3408 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3409 PyObject
* _resultobj
;
3411 wxFontMapper
* _arg0
;
3412 wxFontEncoding _arg1
;
3413 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3414 PyObject
* _argo0
= 0;
3415 PyObject
* _obj2
= 0;
3416 char *_kwnames
[] = { "self","encoding","facename", NULL
};
3419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
3422 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3423 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
3430 #if PYTHON_API_VERSION >= 1009
3431 char* tmpPtr
; int tmpSize
;
3432 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3433 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3436 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3438 _arg2
= new wxString(tmpPtr
, tmpSize
);
3440 if (!PyString_Check(_obj2
)) {
3441 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3444 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3448 wxPy_BEGIN_ALLOW_THREADS
;
3449 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
3451 wxPy_END_ALLOW_THREADS
;
3452 if (PyErr_Occurred()) return NULL
;
3453 } _resultobj
= Py_BuildValue("i",_result
);
3461 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3462 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3463 PyObject
* _resultobj
;
3464 wxFontEncoding _result
;
3465 wxFontMapper
* _arg0
;
3467 bool _arg2
= (bool ) TRUE
;
3468 PyObject
* _argo0
= 0;
3469 PyObject
* _obj1
= 0;
3470 int tempbool2
= (int) TRUE
;
3471 char *_kwnames
[] = { "self","charset","interactive", NULL
};
3474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
3477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
3484 #if PYTHON_API_VERSION >= 1009
3485 char* tmpPtr
; int tmpSize
;
3486 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3487 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3490 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3492 _arg1
= new wxString(tmpPtr
, tmpSize
);
3494 if (!PyString_Check(_obj1
)) {
3495 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3498 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3501 _arg2
= (bool ) tempbool2
;
3503 wxPy_BEGIN_ALLOW_THREADS
;
3504 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
3506 wxPy_END_ALLOW_THREADS
;
3507 if (PyErr_Occurred()) return NULL
;
3508 } _resultobj
= Py_BuildValue("i",_result
);
3516 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3517 PyObject
* _resultobj
;
3519 wxFontEncoding _arg0
;
3520 char *_kwnames
[] = { "encoding", NULL
};
3523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
3526 wxPy_BEGIN_ALLOW_THREADS
;
3527 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
3529 wxPy_END_ALLOW_THREADS
;
3530 if (PyErr_Occurred()) return NULL
;
3532 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3540 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3541 PyObject
* _resultobj
;
3543 wxFontEncoding _arg0
;
3544 char *_kwnames
[] = { "encoding", NULL
};
3547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
3550 wxPy_BEGIN_ALLOW_THREADS
;
3551 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
3553 wxPy_END_ALLOW_THREADS
;
3554 if (PyErr_Occurred()) return NULL
;
3556 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3564 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3565 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3566 PyObject
* _resultobj
;
3567 wxFontMapper
* _arg0
;
3569 PyObject
* _argo0
= 0;
3570 PyObject
* _argo1
= 0;
3571 char *_kwnames
[] = { "self","parent", NULL
};
3574 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
3577 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3578 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3584 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3585 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3591 wxPy_BEGIN_ALLOW_THREADS
;
3592 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
3594 wxPy_END_ALLOW_THREADS
;
3595 if (PyErr_Occurred()) return NULL
;
3596 } Py_INCREF(Py_None
);
3597 _resultobj
= Py_None
;
3601 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3602 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3603 PyObject
* _resultobj
;
3604 wxFontMapper
* _arg0
;
3606 PyObject
* _argo0
= 0;
3607 PyObject
* _obj1
= 0;
3608 char *_kwnames
[] = { "self","title", NULL
};
3611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
3614 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3615 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3616 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3621 #if PYTHON_API_VERSION >= 1009
3622 char* tmpPtr
; int tmpSize
;
3623 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3624 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3627 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3629 _arg1
= new wxString(tmpPtr
, tmpSize
);
3631 if (!PyString_Check(_obj1
)) {
3632 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3635 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3639 wxPy_BEGIN_ALLOW_THREADS
;
3640 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
3642 wxPy_END_ALLOW_THREADS
;
3643 if (PyErr_Occurred()) return NULL
;
3644 } Py_INCREF(Py_None
);
3645 _resultobj
= Py_None
;
3653 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3654 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3655 PyObject
* _resultobj
;
3656 wxFontMapper
* _arg0
;
3657 wxConfigBase
* _arg1
;
3658 PyObject
* _argo0
= 0;
3659 PyObject
* _argo1
= 0;
3660 char *_kwnames
[] = { "self","config", NULL
};
3663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
3666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3673 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3674 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
3675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3680 wxPy_BEGIN_ALLOW_THREADS
;
3681 wxFontMapper_SetConfig(_arg0
,_arg1
);
3683 wxPy_END_ALLOW_THREADS
;
3684 if (PyErr_Occurred()) return NULL
;
3685 } Py_INCREF(Py_None
);
3686 _resultobj
= Py_None
;
3690 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3691 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3692 PyObject
* _resultobj
;
3693 wxFontMapper
* _arg0
;
3695 PyObject
* _argo0
= 0;
3696 PyObject
* _obj1
= 0;
3697 char *_kwnames
[] = { "self","prefix", NULL
};
3700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
3703 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3704 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3705 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3710 #if PYTHON_API_VERSION >= 1009
3711 char* tmpPtr
; int tmpSize
;
3712 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3713 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3716 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3718 _arg1
= new wxString(tmpPtr
, tmpSize
);
3720 if (!PyString_Check(_obj1
)) {
3721 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3724 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3728 wxPy_BEGIN_ALLOW_THREADS
;
3729 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
3731 wxPy_END_ALLOW_THREADS
;
3732 if (PyErr_Occurred()) return NULL
;
3733 } Py_INCREF(Py_None
);
3734 _resultobj
= Py_None
;
3742 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3743 PyObject
* _resultobj
;
3745 char *_kwnames
[] = { NULL
};
3748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
3751 wxPy_BEGIN_ALLOW_THREADS
;
3752 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
3754 wxPy_END_ALLOW_THREADS
;
3755 if (PyErr_Occurred()) return NULL
;
3756 } _resultobj
= Py_BuildValue("s", _result
);
3760 static void *SwigwxFontTowxGDIObject(void *ptr
) {
3763 src
= (wxFont
*) ptr
;
3764 dest
= (wxGDIObject
*) src
;
3765 return (void *) dest
;
3768 static void *SwigwxFontTowxObject(void *ptr
) {
3771 src
= (wxFont
*) ptr
;
3772 dest
= (wxObject
*) src
;
3773 return (void *) dest
;
3776 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3777 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3778 PyObject
* _resultobj
;
3784 int _arg4
= (int ) FALSE
;
3785 char * _arg5
= (char *) "";
3786 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3787 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
3791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3794 wxPy_BEGIN_ALLOW_THREADS
;
3795 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3797 wxPy_END_ALLOW_THREADS
;
3798 if (PyErr_Occurred()) return NULL
;
3800 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3801 _resultobj
= Py_BuildValue("s",_ptemp
);
3804 _resultobj
= Py_None
;
3809 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3810 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3811 PyObject
* _resultobj
;
3813 wxNativeFontInfo
* _arg0
;
3814 PyObject
* _argo0
= 0;
3815 char *_kwnames
[] = { "info", NULL
};
3819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
3822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3829 wxPy_BEGIN_ALLOW_THREADS
;
3830 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
3832 wxPy_END_ALLOW_THREADS
;
3833 if (PyErr_Occurred()) return NULL
;
3835 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3836 _resultobj
= Py_BuildValue("s",_ptemp
);
3839 _resultobj
= Py_None
;
3844 #define delete_wxFont(_swigobj) (delete _swigobj)
3845 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3846 PyObject
* _resultobj
;
3848 PyObject
* _argo0
= 0;
3849 char *_kwnames
[] = { "self", NULL
};
3852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3862 wxPy_BEGIN_ALLOW_THREADS
;
3863 delete_wxFont(_arg0
);
3865 wxPy_END_ALLOW_THREADS
;
3866 if (PyErr_Occurred()) return NULL
;
3867 } Py_INCREF(Py_None
);
3868 _resultobj
= Py_None
;
3872 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3873 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3874 PyObject
* _resultobj
;
3877 PyObject
* _argo0
= 0;
3878 char *_kwnames
[] = { "self", NULL
};
3881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3884 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3885 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3891 wxPy_BEGIN_ALLOW_THREADS
;
3892 _result
= (bool )wxFont_Ok(_arg0
);
3894 wxPy_END_ALLOW_THREADS
;
3895 if (PyErr_Occurred()) return NULL
;
3896 } _resultobj
= Py_BuildValue("i",_result
);
3900 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3901 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3902 PyObject
* _resultobj
;
3905 PyObject
* _argo0
= 0;
3906 char *_kwnames
[] = { "self", NULL
};
3909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3919 wxPy_BEGIN_ALLOW_THREADS
;
3920 _result
= (int )wxFont_GetPointSize(_arg0
);
3922 wxPy_END_ALLOW_THREADS
;
3923 if (PyErr_Occurred()) return NULL
;
3924 } _resultobj
= Py_BuildValue("i",_result
);
3928 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3929 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3930 PyObject
* _resultobj
;
3933 PyObject
* _argo0
= 0;
3934 char *_kwnames
[] = { "self", NULL
};
3937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3947 wxPy_BEGIN_ALLOW_THREADS
;
3948 _result
= (int )wxFont_GetFamily(_arg0
);
3950 wxPy_END_ALLOW_THREADS
;
3951 if (PyErr_Occurred()) return NULL
;
3952 } _resultobj
= Py_BuildValue("i",_result
);
3956 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3957 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3958 PyObject
* _resultobj
;
3961 PyObject
* _argo0
= 0;
3962 char *_kwnames
[] = { "self", NULL
};
3965 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3968 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3969 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3970 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3975 wxPy_BEGIN_ALLOW_THREADS
;
3976 _result
= (int )wxFont_GetStyle(_arg0
);
3978 wxPy_END_ALLOW_THREADS
;
3979 if (PyErr_Occurred()) return NULL
;
3980 } _resultobj
= Py_BuildValue("i",_result
);
3984 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3985 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3986 PyObject
* _resultobj
;
3989 PyObject
* _argo0
= 0;
3990 char *_kwnames
[] = { "self", NULL
};
3993 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
3996 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3997 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3998 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
4003 wxPy_BEGIN_ALLOW_THREADS
;
4004 _result
= (int )wxFont_GetWeight(_arg0
);
4006 wxPy_END_ALLOW_THREADS
;
4007 if (PyErr_Occurred()) return NULL
;
4008 } _resultobj
= Py_BuildValue("i",_result
);
4012 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
4013 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4014 PyObject
* _resultobj
;
4017 PyObject
* _argo0
= 0;
4018 char *_kwnames
[] = { "self", NULL
};
4021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
4024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
4031 wxPy_BEGIN_ALLOW_THREADS
;
4032 _result
= (bool )wxFont_GetUnderlined(_arg0
);
4034 wxPy_END_ALLOW_THREADS
;
4035 if (PyErr_Occurred()) return NULL
;
4036 } _resultobj
= Py_BuildValue("i",_result
);
4040 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
4041 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4042 PyObject
* _resultobj
;
4045 PyObject
* _argo0
= 0;
4046 char *_kwnames
[] = { "self", NULL
};
4049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
4052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
4059 wxPy_BEGIN_ALLOW_THREADS
;
4060 _result
= new wxString (wxFont_GetFaceName(_arg0
));
4062 wxPy_END_ALLOW_THREADS
;
4063 if (PyErr_Occurred()) return NULL
;
4065 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4073 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
4074 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4075 PyObject
* _resultobj
;
4076 wxFontEncoding _result
;
4078 PyObject
* _argo0
= 0;
4079 char *_kwnames
[] = { "self", NULL
};
4082 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
4085 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4086 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4087 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4092 wxPy_BEGIN_ALLOW_THREADS
;
4093 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
4095 wxPy_END_ALLOW_THREADS
;
4096 if (PyErr_Occurred()) return NULL
;
4097 } _resultobj
= Py_BuildValue("i",_result
);
4101 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4102 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4103 PyObject
* _resultobj
;
4104 wxNativeFontInfo
* _result
;
4106 PyObject
* _argo0
= 0;
4107 char *_kwnames
[] = { "self", NULL
};
4111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
4114 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4115 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4116 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4121 wxPy_BEGIN_ALLOW_THREADS
;
4122 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
4124 wxPy_END_ALLOW_THREADS
;
4125 if (PyErr_Occurred()) return NULL
;
4127 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
4128 _resultobj
= Py_BuildValue("s",_ptemp
);
4131 _resultobj
= Py_None
;
4136 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4137 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4138 PyObject
* _resultobj
;
4141 PyObject
* _argo0
= 0;
4142 char *_kwnames
[] = { "self","pointSize", NULL
};
4145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
4148 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4149 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4150 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4155 wxPy_BEGIN_ALLOW_THREADS
;
4156 wxFont_SetPointSize(_arg0
,_arg1
);
4158 wxPy_END_ALLOW_THREADS
;
4159 if (PyErr_Occurred()) return NULL
;
4160 } Py_INCREF(Py_None
);
4161 _resultobj
= Py_None
;
4165 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4166 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4167 PyObject
* _resultobj
;
4170 PyObject
* _argo0
= 0;
4171 char *_kwnames
[] = { "self","family", NULL
};
4174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
4177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4184 wxPy_BEGIN_ALLOW_THREADS
;
4185 wxFont_SetFamily(_arg0
,_arg1
);
4187 wxPy_END_ALLOW_THREADS
;
4188 if (PyErr_Occurred()) return NULL
;
4189 } Py_INCREF(Py_None
);
4190 _resultobj
= Py_None
;
4194 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4195 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4196 PyObject
* _resultobj
;
4199 PyObject
* _argo0
= 0;
4200 char *_kwnames
[] = { "self","style", NULL
};
4203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4206 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4207 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4208 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4213 wxPy_BEGIN_ALLOW_THREADS
;
4214 wxFont_SetStyle(_arg0
,_arg1
);
4216 wxPy_END_ALLOW_THREADS
;
4217 if (PyErr_Occurred()) return NULL
;
4218 } Py_INCREF(Py_None
);
4219 _resultobj
= Py_None
;
4223 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4224 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4225 PyObject
* _resultobj
;
4228 PyObject
* _argo0
= 0;
4229 char *_kwnames
[] = { "self","weight", NULL
};
4232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
4235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4242 wxPy_BEGIN_ALLOW_THREADS
;
4243 wxFont_SetWeight(_arg0
,_arg1
);
4245 wxPy_END_ALLOW_THREADS
;
4246 if (PyErr_Occurred()) return NULL
;
4247 } Py_INCREF(Py_None
);
4248 _resultobj
= Py_None
;
4252 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4253 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4254 PyObject
* _resultobj
;
4257 PyObject
* _argo0
= 0;
4258 PyObject
* _obj1
= 0;
4259 char *_kwnames
[] = { "self","faceName", NULL
};
4262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
4265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4272 #if PYTHON_API_VERSION >= 1009
4273 char* tmpPtr
; int tmpSize
;
4274 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4275 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4278 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4280 _arg1
= new wxString(tmpPtr
, tmpSize
);
4282 if (!PyString_Check(_obj1
)) {
4283 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4286 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4290 wxPy_BEGIN_ALLOW_THREADS
;
4291 wxFont_SetFaceName(_arg0
,*_arg1
);
4293 wxPy_END_ALLOW_THREADS
;
4294 if (PyErr_Occurred()) return NULL
;
4295 } Py_INCREF(Py_None
);
4296 _resultobj
= Py_None
;
4304 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4305 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4306 PyObject
* _resultobj
;
4309 PyObject
* _argo0
= 0;
4311 char *_kwnames
[] = { "self","underlined", NULL
};
4314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
4317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4323 _arg1
= (bool ) tempbool1
;
4325 wxPy_BEGIN_ALLOW_THREADS
;
4326 wxFont_SetUnderlined(_arg0
,_arg1
);
4328 wxPy_END_ALLOW_THREADS
;
4329 if (PyErr_Occurred()) return NULL
;
4330 } Py_INCREF(Py_None
);
4331 _resultobj
= Py_None
;
4335 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4336 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4337 PyObject
* _resultobj
;
4339 wxFontEncoding _arg1
;
4340 PyObject
* _argo0
= 0;
4341 char *_kwnames
[] = { "self","encoding", NULL
};
4344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
4347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
4354 wxPy_BEGIN_ALLOW_THREADS
;
4355 wxFont_SetEncoding(_arg0
,_arg1
);
4357 wxPy_END_ALLOW_THREADS
;
4358 if (PyErr_Occurred()) return NULL
;
4359 } Py_INCREF(Py_None
);
4360 _resultobj
= Py_None
;
4364 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4365 static PyObject
*_wrap_wxFont_SetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4366 PyObject
* _resultobj
;
4368 wxNativeFontInfo
* _arg1
;
4369 PyObject
* _argo0
= 0;
4370 PyObject
* _argo1
= 0;
4371 char *_kwnames
[] = { "self","info", NULL
};
4374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfo",_kwnames
,&_argo0
,&_argo1
))
4377 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4378 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4379 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4384 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4385 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxNativeFontInfo_p")) {
4386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
4391 wxPy_BEGIN_ALLOW_THREADS
;
4392 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
4394 wxPy_END_ALLOW_THREADS
;
4395 if (PyErr_Occurred()) return NULL
;
4396 } Py_INCREF(Py_None
);
4397 _resultobj
= Py_None
;
4401 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4402 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4403 PyObject
* _resultobj
;
4406 PyObject
* _argo0
= 0;
4407 char *_kwnames
[] = { "self", NULL
};
4410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
4413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4420 wxPy_BEGIN_ALLOW_THREADS
;
4421 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
4423 wxPy_END_ALLOW_THREADS
;
4424 if (PyErr_Occurred()) return NULL
;
4426 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4434 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4435 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4436 PyObject
* _resultobj
;
4439 PyObject
* _argo0
= 0;
4440 char *_kwnames
[] = { "self", NULL
};
4443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
4446 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4447 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4453 wxPy_BEGIN_ALLOW_THREADS
;
4454 _result
= new wxString (wxFont_GetStyleString(_arg0
));
4456 wxPy_END_ALLOW_THREADS
;
4457 if (PyErr_Occurred()) return NULL
;
4459 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4467 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4468 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4469 PyObject
* _resultobj
;
4472 PyObject
* _argo0
= 0;
4473 char *_kwnames
[] = { "self", NULL
};
4476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
4479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4486 wxPy_BEGIN_ALLOW_THREADS
;
4487 _result
= new wxString (wxFont_GetWeightString(_arg0
));
4489 wxPy_END_ALLOW_THREADS
;
4490 if (PyErr_Occurred()) return NULL
;
4492 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4500 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4501 PyObject
* _resultobj
;
4502 wxFontEncoding _result
;
4503 char *_kwnames
[] = { NULL
};
4506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
4509 wxPy_BEGIN_ALLOW_THREADS
;
4510 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
4512 wxPy_END_ALLOW_THREADS
;
4513 if (PyErr_Occurred()) return NULL
;
4514 } _resultobj
= Py_BuildValue("i",_result
);
4518 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4519 PyObject
* _resultobj
;
4520 wxFontEncoding _arg0
;
4521 char *_kwnames
[] = { "encoding", NULL
};
4524 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
4527 wxPy_BEGIN_ALLOW_THREADS
;
4528 wxFont::SetDefaultEncoding(_arg0
);
4530 wxPy_END_ALLOW_THREADS
;
4531 if (PyErr_Occurred()) return NULL
;
4532 } Py_INCREF(Py_None
);
4533 _resultobj
= Py_None
;
4537 static void *SwigwxFontListTowxObject(void *ptr
) {
4540 src
= (wxFontList
*) ptr
;
4541 dest
= (wxObject
*) src
;
4542 return (void *) dest
;
4545 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4546 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4547 PyObject
* _resultobj
;
4550 PyObject
* _argo0
= 0;
4551 PyObject
* _argo1
= 0;
4552 char *_kwnames
[] = { "self","font", NULL
};
4555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
4558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4565 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4566 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4572 wxPy_BEGIN_ALLOW_THREADS
;
4573 wxFontList_AddFont(_arg0
,_arg1
);
4575 wxPy_END_ALLOW_THREADS
;
4576 if (PyErr_Occurred()) return NULL
;
4577 } Py_INCREF(Py_None
);
4578 _resultobj
= Py_None
;
4582 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4583 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4584 PyObject
* _resultobj
;
4591 bool _arg5
= (bool ) FALSE
;
4592 char * _arg6
= (char *) NULL
;
4593 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
4594 PyObject
* _argo0
= 0;
4595 int tempbool5
= (int) FALSE
;
4596 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
4600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
4603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4609 _arg5
= (bool ) tempbool5
;
4611 wxPy_BEGIN_ALLOW_THREADS
;
4612 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
4614 wxPy_END_ALLOW_THREADS
;
4615 if (PyErr_Occurred()) return NULL
;
4617 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4618 _resultobj
= Py_BuildValue("s",_ptemp
);
4621 _resultobj
= Py_None
;
4626 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4627 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4628 PyObject
* _resultobj
;
4631 PyObject
* _argo0
= 0;
4632 PyObject
* _argo1
= 0;
4633 char *_kwnames
[] = { "self","font", NULL
};
4636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
4639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4646 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4647 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4653 wxPy_BEGIN_ALLOW_THREADS
;
4654 wxFontList_RemoveFont(_arg0
,_arg1
);
4656 wxPy_END_ALLOW_THREADS
;
4657 if (PyErr_Occurred()) return NULL
;
4658 } Py_INCREF(Py_None
);
4659 _resultobj
= Py_None
;
4663 static void *SwigwxColourTowxObject(void *ptr
) {
4666 src
= (wxColour
*) ptr
;
4667 dest
= (wxObject
*) src
;
4668 return (void *) dest
;
4671 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4672 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4673 PyObject
* _resultobj
;
4675 unsigned char _arg0
= (unsigned char ) 0;
4676 unsigned char _arg1
= (unsigned char ) 0;
4677 unsigned char _arg2
= (unsigned char ) 0;
4678 char *_kwnames
[] = { "red","green","blue", NULL
};
4682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
4685 wxPy_BEGIN_ALLOW_THREADS
;
4686 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
4688 wxPy_END_ALLOW_THREADS
;
4689 if (PyErr_Occurred()) return NULL
;
4691 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4692 _resultobj
= Py_BuildValue("s",_ptemp
);
4695 _resultobj
= Py_None
;
4700 #define delete_wxColour(_swigobj) (delete _swigobj)
4701 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4702 PyObject
* _resultobj
;
4705 PyObject
* _obj0
= 0;
4706 char *_kwnames
[] = { "self", NULL
};
4709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
4713 if (! wxColour_helper(_obj0
, &_arg0
))
4717 wxPy_BEGIN_ALLOW_THREADS
;
4718 delete_wxColour(_arg0
);
4720 wxPy_END_ALLOW_THREADS
;
4721 if (PyErr_Occurred()) return NULL
;
4722 } Py_INCREF(Py_None
);
4723 _resultobj
= Py_None
;
4727 #define wxColour_Red(_swigobj) (_swigobj->Red())
4728 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4729 PyObject
* _resultobj
;
4730 unsigned char _result
;
4733 PyObject
* _obj0
= 0;
4734 char *_kwnames
[] = { "self", NULL
};
4737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
4741 if (! wxColour_helper(_obj0
, &_arg0
))
4745 wxPy_BEGIN_ALLOW_THREADS
;
4746 _result
= (unsigned char )wxColour_Red(_arg0
);
4748 wxPy_END_ALLOW_THREADS
;
4749 if (PyErr_Occurred()) return NULL
;
4750 } _resultobj
= Py_BuildValue("b",_result
);
4754 #define wxColour_Green(_swigobj) (_swigobj->Green())
4755 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4756 PyObject
* _resultobj
;
4757 unsigned char _result
;
4760 PyObject
* _obj0
= 0;
4761 char *_kwnames
[] = { "self", NULL
};
4764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
4768 if (! wxColour_helper(_obj0
, &_arg0
))
4772 wxPy_BEGIN_ALLOW_THREADS
;
4773 _result
= (unsigned char )wxColour_Green(_arg0
);
4775 wxPy_END_ALLOW_THREADS
;
4776 if (PyErr_Occurred()) return NULL
;
4777 } _resultobj
= Py_BuildValue("b",_result
);
4781 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4782 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4783 PyObject
* _resultobj
;
4784 unsigned char _result
;
4787 PyObject
* _obj0
= 0;
4788 char *_kwnames
[] = { "self", NULL
};
4791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
4795 if (! wxColour_helper(_obj0
, &_arg0
))
4799 wxPy_BEGIN_ALLOW_THREADS
;
4800 _result
= (unsigned char )wxColour_Blue(_arg0
);
4802 wxPy_END_ALLOW_THREADS
;
4803 if (PyErr_Occurred()) return NULL
;
4804 } _resultobj
= Py_BuildValue("b",_result
);
4808 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4809 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4810 PyObject
* _resultobj
;
4814 PyObject
* _obj0
= 0;
4815 char *_kwnames
[] = { "self", NULL
};
4818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
4822 if (! wxColour_helper(_obj0
, &_arg0
))
4826 wxPy_BEGIN_ALLOW_THREADS
;
4827 _result
= (bool )wxColour_Ok(_arg0
);
4829 wxPy_END_ALLOW_THREADS
;
4830 if (PyErr_Occurred()) return NULL
;
4831 } _resultobj
= Py_BuildValue("i",_result
);
4835 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4836 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4837 PyObject
* _resultobj
;
4839 unsigned char _arg1
;
4840 unsigned char _arg2
;
4841 unsigned char _arg3
;
4843 PyObject
* _obj0
= 0;
4844 char *_kwnames
[] = { "self","red","green","blue", NULL
};
4847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
4851 if (! wxColour_helper(_obj0
, &_arg0
))
4855 wxPy_BEGIN_ALLOW_THREADS
;
4856 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
4858 wxPy_END_ALLOW_THREADS
;
4859 if (PyErr_Occurred()) return NULL
;
4860 } Py_INCREF(Py_None
);
4861 _resultobj
= Py_None
;
4865 static PyObject
* wxColour_Get(wxColour
*self
) {
4866 PyObject
* rv
= PyTuple_New(3);
4867 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
4868 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
4869 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
4872 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4873 PyObject
* _resultobj
;
4877 PyObject
* _obj0
= 0;
4878 char *_kwnames
[] = { "self", NULL
};
4881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
4885 if (! wxColour_helper(_obj0
, &_arg0
))
4889 wxPy_BEGIN_ALLOW_THREADS
;
4890 _result
= (PyObject
*)wxColour_Get(_arg0
);
4892 wxPy_END_ALLOW_THREADS
;
4893 if (PyErr_Occurred()) return NULL
;
4895 _resultobj
= _result
;
4900 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4901 wxColourDatabase
*src
;
4903 src
= (wxColourDatabase
*) ptr
;
4904 dest
= (wxObject
*) src
;
4905 return (void *) dest
;
4908 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4909 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4910 PyObject
* _resultobj
;
4912 wxColourDatabase
* _arg0
;
4914 PyObject
* _argo0
= 0;
4915 PyObject
* _obj1
= 0;
4916 char *_kwnames
[] = { "self","colour", NULL
};
4920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
4923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4930 #if PYTHON_API_VERSION >= 1009
4931 char* tmpPtr
; int tmpSize
;
4932 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4933 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4936 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4938 _arg1
= new wxString(tmpPtr
, tmpSize
);
4940 if (!PyString_Check(_obj1
)) {
4941 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4944 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4948 wxPy_BEGIN_ALLOW_THREADS
;
4949 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
4951 wxPy_END_ALLOW_THREADS
;
4952 if (PyErr_Occurred()) return NULL
;
4954 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4955 _resultobj
= Py_BuildValue("s",_ptemp
);
4958 _resultobj
= Py_None
;
4967 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4968 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4969 PyObject
* _resultobj
;
4971 wxColourDatabase
* _arg0
;
4973 PyObject
* _argo0
= 0;
4975 PyObject
* _obj1
= 0;
4976 char *_kwnames
[] = { "self","colour", NULL
};
4979 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
4982 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4983 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
4990 if (! wxColour_helper(_obj1
, &_arg1
))
4994 wxPy_BEGIN_ALLOW_THREADS
;
4995 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
4997 wxPy_END_ALLOW_THREADS
;
4998 if (PyErr_Occurred()) return NULL
;
5000 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5008 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
5009 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
5011 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5012 PyObject
* _resultobj
;
5013 wxColourDatabase
* _arg0
;
5018 PyObject
* _argo0
= 0;
5019 PyObject
* _obj1
= 0;
5020 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
5023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5033 #if PYTHON_API_VERSION >= 1009
5034 char* tmpPtr
; int tmpSize
;
5035 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5036 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5039 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5041 _arg1
= new wxString(tmpPtr
, tmpSize
);
5043 if (!PyString_Check(_obj1
)) {
5044 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5047 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5051 wxPy_BEGIN_ALLOW_THREADS
;
5052 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5054 wxPy_END_ALLOW_THREADS
;
5055 if (PyErr_Occurred()) return NULL
;
5056 } Py_INCREF(Py_None
);
5057 _resultobj
= Py_None
;
5065 static void *SwigwxPenTowxGDIObject(void *ptr
) {
5068 src
= (wxPen
*) ptr
;
5069 dest
= (wxGDIObject
*) src
;
5070 return (void *) dest
;
5073 static void *SwigwxPenTowxObject(void *ptr
) {
5076 src
= (wxPen
*) ptr
;
5077 dest
= (wxObject
*) src
;
5078 return (void *) dest
;
5081 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5082 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5083 PyObject
* _resultobj
;
5086 int _arg1
= (int ) 1;
5087 int _arg2
= (int ) wxSOLID
;
5089 PyObject
* _obj0
= 0;
5090 char *_kwnames
[] = { "colour","width","style", NULL
};
5094 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5098 if (! wxColour_helper(_obj0
, &_arg0
))
5102 wxPy_BEGIN_ALLOW_THREADS
;
5103 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
5105 wxPy_END_ALLOW_THREADS
;
5106 if (PyErr_Occurred()) return NULL
;
5108 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5109 _resultobj
= Py_BuildValue("s",_ptemp
);
5112 _resultobj
= Py_None
;
5117 #define delete_wxPen(_swigobj) (delete _swigobj)
5118 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5119 PyObject
* _resultobj
;
5121 PyObject
* _argo0
= 0;
5122 char *_kwnames
[] = { "self", NULL
};
5125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
5128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5135 wxPy_BEGIN_ALLOW_THREADS
;
5136 delete_wxPen(_arg0
);
5138 wxPy_END_ALLOW_THREADS
;
5139 if (PyErr_Occurred()) return NULL
;
5140 } Py_INCREF(Py_None
);
5141 _resultobj
= Py_None
;
5145 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5146 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5147 PyObject
* _resultobj
;
5150 PyObject
* _argo0
= 0;
5151 char *_kwnames
[] = { "self", NULL
};
5154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
5157 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5158 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5164 wxPy_BEGIN_ALLOW_THREADS
;
5165 _result
= (int )wxPen_GetCap(_arg0
);
5167 wxPy_END_ALLOW_THREADS
;
5168 if (PyErr_Occurred()) return NULL
;
5169 } _resultobj
= Py_BuildValue("i",_result
);
5173 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5174 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5175 PyObject
* _resultobj
;
5178 PyObject
* _argo0
= 0;
5179 char *_kwnames
[] = { "self", NULL
};
5183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
5186 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5187 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5193 wxPy_BEGIN_ALLOW_THREADS
;
5194 _result
= new wxColour (wxPen_GetColour(_arg0
));
5196 wxPy_END_ALLOW_THREADS
;
5197 if (PyErr_Occurred()) return NULL
;
5198 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5199 _resultobj
= Py_BuildValue("s",_ptemp
);
5203 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5204 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5205 PyObject
* _resultobj
;
5208 PyObject
* _argo0
= 0;
5209 char *_kwnames
[] = { "self", NULL
};
5212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
5215 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5216 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5217 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5222 wxPy_BEGIN_ALLOW_THREADS
;
5223 _result
= (int )wxPen_GetJoin(_arg0
);
5225 wxPy_END_ALLOW_THREADS
;
5226 if (PyErr_Occurred()) return NULL
;
5227 } _resultobj
= Py_BuildValue("i",_result
);
5231 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5232 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5233 PyObject
* _resultobj
;
5236 PyObject
* _argo0
= 0;
5237 char *_kwnames
[] = { "self", NULL
};
5240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
5243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5250 wxPy_BEGIN_ALLOW_THREADS
;
5251 _result
= (int )wxPen_GetStyle(_arg0
);
5253 wxPy_END_ALLOW_THREADS
;
5254 if (PyErr_Occurred()) return NULL
;
5255 } _resultobj
= Py_BuildValue("i",_result
);
5259 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5260 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5261 PyObject
* _resultobj
;
5264 PyObject
* _argo0
= 0;
5265 char *_kwnames
[] = { "self", NULL
};
5268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
5271 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5272 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5278 wxPy_BEGIN_ALLOW_THREADS
;
5279 _result
= (int )wxPen_GetWidth(_arg0
);
5281 wxPy_END_ALLOW_THREADS
;
5282 if (PyErr_Occurred()) return NULL
;
5283 } _resultobj
= Py_BuildValue("i",_result
);
5287 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5288 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5289 PyObject
* _resultobj
;
5292 PyObject
* _argo0
= 0;
5293 char *_kwnames
[] = { "self", NULL
};
5296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
5299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5306 wxPy_BEGIN_ALLOW_THREADS
;
5307 _result
= (bool )wxPen_Ok(_arg0
);
5309 wxPy_END_ALLOW_THREADS
;
5310 if (PyErr_Occurred()) return NULL
;
5311 } _resultobj
= Py_BuildValue("i",_result
);
5315 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5316 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5317 PyObject
* _resultobj
;
5320 PyObject
* _argo0
= 0;
5321 char *_kwnames
[] = { "self","cap_style", NULL
};
5324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
5327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5334 wxPy_BEGIN_ALLOW_THREADS
;
5335 wxPen_SetCap(_arg0
,_arg1
);
5337 wxPy_END_ALLOW_THREADS
;
5338 if (PyErr_Occurred()) return NULL
;
5339 } Py_INCREF(Py_None
);
5340 _resultobj
= Py_None
;
5344 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5345 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5346 PyObject
* _resultobj
;
5349 PyObject
* _argo0
= 0;
5351 PyObject
* _obj1
= 0;
5352 char *_kwnames
[] = { "self","colour", NULL
};
5355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
5358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5366 if (! wxColour_helper(_obj1
, &_arg1
))
5370 wxPy_BEGIN_ALLOW_THREADS
;
5371 wxPen_SetColour(_arg0
,*_arg1
);
5373 wxPy_END_ALLOW_THREADS
;
5374 if (PyErr_Occurred()) return NULL
;
5375 } Py_INCREF(Py_None
);
5376 _resultobj
= Py_None
;
5380 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5381 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5382 PyObject
* _resultobj
;
5385 PyObject
* _argo0
= 0;
5386 char *_kwnames
[] = { "self","join_style", NULL
};
5389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
5392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5399 wxPy_BEGIN_ALLOW_THREADS
;
5400 wxPen_SetJoin(_arg0
,_arg1
);
5402 wxPy_END_ALLOW_THREADS
;
5403 if (PyErr_Occurred()) return NULL
;
5404 } Py_INCREF(Py_None
);
5405 _resultobj
= Py_None
;
5409 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5410 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5411 PyObject
* _resultobj
;
5414 PyObject
* _argo0
= 0;
5415 char *_kwnames
[] = { "self","style", NULL
};
5418 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5421 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5422 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5423 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5428 wxPy_BEGIN_ALLOW_THREADS
;
5429 wxPen_SetStyle(_arg0
,_arg1
);
5431 wxPy_END_ALLOW_THREADS
;
5432 if (PyErr_Occurred()) return NULL
;
5433 } Py_INCREF(Py_None
);
5434 _resultobj
= Py_None
;
5438 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5439 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5440 PyObject
* _resultobj
;
5443 PyObject
* _argo0
= 0;
5444 char *_kwnames
[] = { "self","width", NULL
};
5447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
5450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5457 wxPy_BEGIN_ALLOW_THREADS
;
5458 wxPen_SetWidth(_arg0
,_arg1
);
5460 wxPy_END_ALLOW_THREADS
;
5461 if (PyErr_Occurred()) return NULL
;
5462 } Py_INCREF(Py_None
);
5463 _resultobj
= Py_None
;
5467 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
5468 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5469 PyObject
* _resultobj
;
5473 PyObject
* _argo0
= 0;
5474 PyObject
* _argo1
= 0;
5475 char *_kwnames
[] = { "self","dashes", NULL
};
5478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_GetDashes",_kwnames
,&_argo0
,&_argo1
))
5481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
5488 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5489 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDash_pp")) {
5490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
5495 wxPy_BEGIN_ALLOW_THREADS
;
5496 _result
= (int )wxPen_GetDashes(_arg0
,_arg1
);
5498 wxPy_END_ALLOW_THREADS
;
5499 if (PyErr_Occurred()) return NULL
;
5500 } _resultobj
= Py_BuildValue("i",_result
);
5504 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5505 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5506 PyObject
* _resultobj
;
5510 PyObject
* _argo0
= 0;
5511 PyObject
* _obj2
= 0;
5512 char *_kwnames
[] = { "self","choices", NULL
};
5515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5526 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5527 if (_arg2
== NULL
) {
5533 _arg1
= PyList_Size(_obj2
);
5540 wxPy_BEGIN_ALLOW_THREADS
;
5541 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
5543 wxPy_END_ALLOW_THREADS
;
5544 if (PyErr_Occurred()) return NULL
;
5545 } Py_INCREF(Py_None
);
5546 _resultobj
= Py_None
;
5553 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
5554 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5555 PyObject
* _resultobj
;
5558 PyObject
* _argo0
= 0;
5559 char *_kwnames
[] = { "self", NULL
};
5563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
5566 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5567 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5568 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
5573 wxPy_BEGIN_ALLOW_THREADS
;
5574 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
5576 wxPy_END_ALLOW_THREADS
;
5577 if (PyErr_Occurred()) return NULL
;
5579 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5580 _resultobj
= Py_BuildValue("s",_ptemp
);
5583 _resultobj
= Py_None
;
5588 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5589 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5590 PyObject
* _resultobj
;
5593 PyObject
* _argo0
= 0;
5594 PyObject
* _argo1
= 0;
5595 char *_kwnames
[] = { "self","stipple", NULL
};
5598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
5608 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5609 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
5615 wxPy_BEGIN_ALLOW_THREADS
;
5616 wxPen_SetStipple(_arg0
,*_arg1
);
5618 wxPy_END_ALLOW_THREADS
;
5619 if (PyErr_Occurred()) return NULL
;
5620 } Py_INCREF(Py_None
);
5621 _resultobj
= Py_None
;
5625 static void *SwigwxPenListTowxObject(void *ptr
) {
5628 src
= (wxPenList
*) ptr
;
5629 dest
= (wxObject
*) src
;
5630 return (void *) dest
;
5633 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5634 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5635 PyObject
* _resultobj
;
5638 PyObject
* _argo0
= 0;
5639 PyObject
* _argo1
= 0;
5640 char *_kwnames
[] = { "self","pen", NULL
};
5643 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
5646 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5647 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5653 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5654 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5660 wxPy_BEGIN_ALLOW_THREADS
;
5661 wxPenList_AddPen(_arg0
,_arg1
);
5663 wxPy_END_ALLOW_THREADS
;
5664 if (PyErr_Occurred()) return NULL
;
5665 } Py_INCREF(Py_None
);
5666 _resultobj
= Py_None
;
5670 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5671 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5672 PyObject
* _resultobj
;
5678 PyObject
* _argo0
= 0;
5680 PyObject
* _obj1
= 0;
5681 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5696 if (! wxColour_helper(_obj1
, &_arg1
))
5700 wxPy_BEGIN_ALLOW_THREADS
;
5701 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5703 wxPy_END_ALLOW_THREADS
;
5704 if (PyErr_Occurred()) return NULL
;
5706 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5707 _resultobj
= Py_BuildValue("s",_ptemp
);
5710 _resultobj
= Py_None
;
5715 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5716 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5717 PyObject
* _resultobj
;
5720 PyObject
* _argo0
= 0;
5721 PyObject
* _argo1
= 0;
5722 char *_kwnames
[] = { "self","pen", NULL
};
5725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5735 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5736 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5742 wxPy_BEGIN_ALLOW_THREADS
;
5743 wxPenList_RemovePen(_arg0
,_arg1
);
5745 wxPy_END_ALLOW_THREADS
;
5746 if (PyErr_Occurred()) return NULL
;
5747 } Py_INCREF(Py_None
);
5748 _resultobj
= Py_None
;
5752 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5755 src
= (wxBrush
*) ptr
;
5756 dest
= (wxGDIObject
*) src
;
5757 return (void *) dest
;
5760 static void *SwigwxBrushTowxObject(void *ptr
) {
5763 src
= (wxBrush
*) ptr
;
5764 dest
= (wxObject
*) src
;
5765 return (void *) dest
;
5768 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5769 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5770 PyObject
* _resultobj
;
5773 int _arg1
= (int ) wxSOLID
;
5775 PyObject
* _obj0
= 0;
5776 char *_kwnames
[] = { "colour","style", NULL
};
5780 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5784 if (! wxColour_helper(_obj0
, &_arg0
))
5788 wxPy_BEGIN_ALLOW_THREADS
;
5789 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5791 wxPy_END_ALLOW_THREADS
;
5792 if (PyErr_Occurred()) return NULL
;
5794 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5795 _resultobj
= Py_BuildValue("s",_ptemp
);
5798 _resultobj
= Py_None
;
5803 #define delete_wxBrush(_swigobj) (delete _swigobj)
5804 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5805 PyObject
* _resultobj
;
5807 PyObject
* _argo0
= 0;
5808 char *_kwnames
[] = { "self", NULL
};
5811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5821 wxPy_BEGIN_ALLOW_THREADS
;
5822 delete_wxBrush(_arg0
);
5824 wxPy_END_ALLOW_THREADS
;
5825 if (PyErr_Occurred()) return NULL
;
5826 } Py_INCREF(Py_None
);
5827 _resultobj
= Py_None
;
5831 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5832 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5833 PyObject
* _resultobj
;
5836 PyObject
* _argo0
= 0;
5837 char *_kwnames
[] = { "self", NULL
};
5841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5851 wxPy_BEGIN_ALLOW_THREADS
;
5852 _result
= new wxColour (wxBrush_GetColour(_arg0
));
5854 wxPy_END_ALLOW_THREADS
;
5855 if (PyErr_Occurred()) return NULL
;
5856 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5857 _resultobj
= Py_BuildValue("s",_ptemp
);
5861 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5862 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5863 PyObject
* _resultobj
;
5866 PyObject
* _argo0
= 0;
5867 char *_kwnames
[] = { "self", NULL
};
5871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
5874 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5875 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5881 wxPy_BEGIN_ALLOW_THREADS
;
5882 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
5884 wxPy_END_ALLOW_THREADS
;
5885 if (PyErr_Occurred()) return NULL
;
5887 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5888 _resultobj
= Py_BuildValue("s",_ptemp
);
5891 _resultobj
= Py_None
;
5896 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5897 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5898 PyObject
* _resultobj
;
5901 PyObject
* _argo0
= 0;
5902 char *_kwnames
[] = { "self", NULL
};
5905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
5908 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5909 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5915 wxPy_BEGIN_ALLOW_THREADS
;
5916 _result
= (int )wxBrush_GetStyle(_arg0
);
5918 wxPy_END_ALLOW_THREADS
;
5919 if (PyErr_Occurred()) return NULL
;
5920 } _resultobj
= Py_BuildValue("i",_result
);
5924 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5925 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5926 PyObject
* _resultobj
;
5929 PyObject
* _argo0
= 0;
5930 char *_kwnames
[] = { "self", NULL
};
5933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
5936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5943 wxPy_BEGIN_ALLOW_THREADS
;
5944 _result
= (bool )wxBrush_Ok(_arg0
);
5946 wxPy_END_ALLOW_THREADS
;
5947 if (PyErr_Occurred()) return NULL
;
5948 } _resultobj
= Py_BuildValue("i",_result
);
5952 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5953 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5954 PyObject
* _resultobj
;
5957 PyObject
* _argo0
= 0;
5959 PyObject
* _obj1
= 0;
5960 char *_kwnames
[] = { "self","colour", NULL
};
5963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
5966 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5967 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5968 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5974 if (! wxColour_helper(_obj1
, &_arg1
))
5978 wxPy_BEGIN_ALLOW_THREADS
;
5979 wxBrush_SetColour(_arg0
,*_arg1
);
5981 wxPy_END_ALLOW_THREADS
;
5982 if (PyErr_Occurred()) return NULL
;
5983 } Py_INCREF(Py_None
);
5984 _resultobj
= Py_None
;
5988 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5989 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5990 PyObject
* _resultobj
;
5993 PyObject
* _argo0
= 0;
5994 PyObject
* _argo1
= 0;
5995 char *_kwnames
[] = { "self","bitmap", NULL
};
5998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
6001 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6002 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6008 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6009 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6010 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6015 wxPy_BEGIN_ALLOW_THREADS
;
6016 wxBrush_SetStipple(_arg0
,*_arg1
);
6018 wxPy_END_ALLOW_THREADS
;
6019 if (PyErr_Occurred()) return NULL
;
6020 } Py_INCREF(Py_None
);
6021 _resultobj
= Py_None
;
6025 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6026 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6027 PyObject
* _resultobj
;
6030 PyObject
* _argo0
= 0;
6031 char *_kwnames
[] = { "self","style", NULL
};
6034 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
6037 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6038 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6039 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6044 wxPy_BEGIN_ALLOW_THREADS
;
6045 wxBrush_SetStyle(_arg0
,_arg1
);
6047 wxPy_END_ALLOW_THREADS
;
6048 if (PyErr_Occurred()) return NULL
;
6049 } Py_INCREF(Py_None
);
6050 _resultobj
= Py_None
;
6054 static void *SwigwxBrushListTowxObject(void *ptr
) {
6057 src
= (wxBrushList
*) ptr
;
6058 dest
= (wxObject
*) src
;
6059 return (void *) dest
;
6062 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6063 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6064 PyObject
* _resultobj
;
6065 wxBrushList
* _arg0
;
6067 PyObject
* _argo0
= 0;
6068 PyObject
* _argo1
= 0;
6069 char *_kwnames
[] = { "self","brush", NULL
};
6072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
6075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6082 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6083 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6089 wxPy_BEGIN_ALLOW_THREADS
;
6090 wxBrushList_AddBrush(_arg0
,_arg1
);
6092 wxPy_END_ALLOW_THREADS
;
6093 if (PyErr_Occurred()) return NULL
;
6094 } Py_INCREF(Py_None
);
6095 _resultobj
= Py_None
;
6099 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6100 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6101 PyObject
* _resultobj
;
6103 wxBrushList
* _arg0
;
6106 PyObject
* _argo0
= 0;
6108 PyObject
* _obj1
= 0;
6109 char *_kwnames
[] = { "self","colour","style", NULL
};
6113 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
6116 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6117 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6118 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6124 if (! wxColour_helper(_obj1
, &_arg1
))
6128 wxPy_BEGIN_ALLOW_THREADS
;
6129 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
6131 wxPy_END_ALLOW_THREADS
;
6132 if (PyErr_Occurred()) return NULL
;
6134 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6135 _resultobj
= Py_BuildValue("s",_ptemp
);
6138 _resultobj
= Py_None
;
6143 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6144 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6145 PyObject
* _resultobj
;
6146 wxBrushList
* _arg0
;
6148 PyObject
* _argo0
= 0;
6149 PyObject
* _argo1
= 0;
6150 char *_kwnames
[] = { "self","brush", NULL
};
6153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
6156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6163 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6164 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6170 wxPy_BEGIN_ALLOW_THREADS
;
6171 wxBrushList_RemoveBrush(_arg0
,_arg1
);
6173 wxPy_END_ALLOW_THREADS
;
6174 if (PyErr_Occurred()) return NULL
;
6175 } Py_INCREF(Py_None
);
6176 _resultobj
= Py_None
;
6180 static void *SwigwxDCTowxObject(void *ptr
) {
6184 dest
= (wxObject
*) src
;
6185 return (void *) dest
;
6188 #define delete_wxDC(_swigobj) (delete _swigobj)
6189 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6190 PyObject
* _resultobj
;
6192 PyObject
* _argo0
= 0;
6193 char *_kwnames
[] = { "self", NULL
};
6196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
6199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6206 wxPy_BEGIN_ALLOW_THREADS
;
6209 wxPy_END_ALLOW_THREADS
;
6210 if (PyErr_Occurred()) return NULL
;
6211 } Py_INCREF(Py_None
);
6212 _resultobj
= Py_None
;
6216 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6217 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6218 PyObject
* _resultobj
;
6220 PyObject
* _argo0
= 0;
6221 char *_kwnames
[] = { "self", NULL
};
6224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
6227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6234 wxPy_BEGIN_ALLOW_THREADS
;
6235 wxDC_BeginDrawing(_arg0
);
6237 wxPy_END_ALLOW_THREADS
;
6238 if (PyErr_Occurred()) return NULL
;
6239 } Py_INCREF(Py_None
);
6240 _resultobj
= Py_None
;
6244 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6245 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6246 PyObject
* _resultobj
;
6256 int _arg8
= (int ) wxCOPY
;
6257 int _arg9
= (int ) FALSE
;
6258 PyObject
* _argo0
= 0;
6259 PyObject
* _argo5
= 0;
6260 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
6263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
6266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6273 if (_argo5
== Py_None
) { _arg5
= NULL
; }
6274 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
6275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6280 wxPy_BEGIN_ALLOW_THREADS
;
6281 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
6283 wxPy_END_ALLOW_THREADS
;
6284 if (PyErr_Occurred()) return NULL
;
6285 } _resultobj
= Py_BuildValue("i",_result
);
6289 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6290 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6291 PyObject
* _resultobj
;
6293 PyObject
* _argo0
= 0;
6294 char *_kwnames
[] = { "self", NULL
};
6297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
6300 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6301 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6302 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6307 wxPy_BEGIN_ALLOW_THREADS
;
6310 wxPy_END_ALLOW_THREADS
;
6311 if (PyErr_Occurred()) return NULL
;
6312 } Py_INCREF(Py_None
);
6313 _resultobj
= Py_None
;
6317 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6318 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6319 PyObject
* _resultobj
;
6323 PyObject
* _argo0
= 0;
6324 char *_kwnames
[] = { "self","x","y", NULL
};
6327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6337 wxPy_BEGIN_ALLOW_THREADS
;
6338 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
6340 wxPy_END_ALLOW_THREADS
;
6341 if (PyErr_Occurred()) return NULL
;
6342 } Py_INCREF(Py_None
);
6343 _resultobj
= Py_None
;
6347 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6348 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6349 PyObject
* _resultobj
;
6351 PyObject
* _argo0
= 0;
6352 char *_kwnames
[] = { "self", NULL
};
6355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
6358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6365 wxPy_BEGIN_ALLOW_THREADS
;
6366 wxDC_DestroyClippingRegion(_arg0
);
6368 wxPy_END_ALLOW_THREADS
;
6369 if (PyErr_Occurred()) return NULL
;
6370 } Py_INCREF(Py_None
);
6371 _resultobj
= Py_None
;
6375 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6376 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6377 PyObject
* _resultobj
;
6381 PyObject
* _argo0
= 0;
6382 char *_kwnames
[] = { "self","x", NULL
};
6385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
6388 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6389 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6395 wxPy_BEGIN_ALLOW_THREADS
;
6396 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
6398 wxPy_END_ALLOW_THREADS
;
6399 if (PyErr_Occurred()) return NULL
;
6400 } _resultobj
= Py_BuildValue("l",_result
);
6404 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6405 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6406 PyObject
* _resultobj
;
6410 PyObject
* _argo0
= 0;
6411 char *_kwnames
[] = { "self","x", NULL
};
6414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
6417 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6418 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6424 wxPy_BEGIN_ALLOW_THREADS
;
6425 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
6427 wxPy_END_ALLOW_THREADS
;
6428 if (PyErr_Occurred()) return NULL
;
6429 } _resultobj
= Py_BuildValue("l",_result
);
6433 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6434 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6435 PyObject
* _resultobj
;
6439 PyObject
* _argo0
= 0;
6440 char *_kwnames
[] = { "self","y", NULL
};
6443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
6446 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6447 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6453 wxPy_BEGIN_ALLOW_THREADS
;
6454 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
6456 wxPy_END_ALLOW_THREADS
;
6457 if (PyErr_Occurred()) return NULL
;
6458 } _resultobj
= Py_BuildValue("l",_result
);
6462 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6463 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6464 PyObject
* _resultobj
;
6468 PyObject
* _argo0
= 0;
6469 char *_kwnames
[] = { "self","y", NULL
};
6472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
6475 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6476 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6477 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6482 wxPy_BEGIN_ALLOW_THREADS
;
6483 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
6485 wxPy_END_ALLOW_THREADS
;
6486 if (PyErr_Occurred()) return NULL
;
6487 } _resultobj
= Py_BuildValue("l",_result
);
6491 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6492 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6493 PyObject
* _resultobj
;
6501 PyObject
* _argo0
= 0;
6502 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
6505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6515 wxPy_BEGIN_ALLOW_THREADS
;
6516 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6518 wxPy_END_ALLOW_THREADS
;
6519 if (PyErr_Occurred()) return NULL
;
6520 } Py_INCREF(Py_None
);
6521 _resultobj
= Py_None
;
6525 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6526 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6527 PyObject
* _resultobj
;
6532 PyObject
* _argo0
= 0;
6533 char *_kwnames
[] = { "self","x","y","radius", NULL
};
6536 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
6539 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6540 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6541 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6546 wxPy_BEGIN_ALLOW_THREADS
;
6547 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
6549 wxPy_END_ALLOW_THREADS
;
6550 if (PyErr_Occurred()) return NULL
;
6551 } Py_INCREF(Py_None
);
6552 _resultobj
= Py_None
;
6556 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6557 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6558 PyObject
* _resultobj
;
6564 PyObject
* _argo0
= 0;
6565 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6578 wxPy_BEGIN_ALLOW_THREADS
;
6579 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6581 wxPy_END_ALLOW_THREADS
;
6582 if (PyErr_Occurred()) return NULL
;
6583 } Py_INCREF(Py_None
);
6584 _resultobj
= Py_None
;
6588 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6589 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6590 PyObject
* _resultobj
;
6598 PyObject
* _argo0
= 0;
6599 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
6602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6605 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6606 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6612 wxPy_BEGIN_ALLOW_THREADS
;
6613 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6615 wxPy_END_ALLOW_THREADS
;
6616 if (PyErr_Occurred()) return NULL
;
6617 } Py_INCREF(Py_None
);
6618 _resultobj
= Py_None
;
6622 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6623 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6624 PyObject
* _resultobj
;
6629 PyObject
* _argo0
= 0;
6630 PyObject
* _argo1
= 0;
6631 char *_kwnames
[] = { "self","icon","x","y", NULL
};
6634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
6637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6644 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6645 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
6646 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6651 wxPy_BEGIN_ALLOW_THREADS
;
6652 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
6654 wxPy_END_ALLOW_THREADS
;
6655 if (PyErr_Occurred()) return NULL
;
6656 } Py_INCREF(Py_None
);
6657 _resultobj
= Py_None
;
6661 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6662 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6663 PyObject
* _resultobj
;
6669 PyObject
* _argo0
= 0;
6670 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
6673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6676 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6677 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6683 wxPy_BEGIN_ALLOW_THREADS
;
6684 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6686 wxPy_END_ALLOW_THREADS
;
6687 if (PyErr_Occurred()) return NULL
;
6688 } Py_INCREF(Py_None
);
6689 _resultobj
= Py_None
;
6693 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6694 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6695 PyObject
* _resultobj
;
6699 long _arg3
= (long ) 0;
6700 long _arg4
= (long ) 0;
6701 PyObject
* _argo0
= 0;
6703 PyObject
* _obj2
= 0;
6704 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
6707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
6710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6718 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6719 if (_arg2
== NULL
) {
6727 wxPy_BEGIN_ALLOW_THREADS
;
6728 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6730 wxPy_END_ALLOW_THREADS
;
6731 if (PyErr_Occurred()) return NULL
;
6732 } Py_INCREF(Py_None
);
6733 _resultobj
= Py_None
;
6740 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6741 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6742 PyObject
* _resultobj
;
6746 long _arg3
= (long ) 0;
6747 long _arg4
= (long ) 0;
6748 int _arg5
= (int ) wxODDEVEN_RULE
;
6749 PyObject
* _argo0
= 0;
6751 PyObject
* _obj2
= 0;
6752 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6766 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6767 if (_arg2
== NULL
) {
6775 wxPy_BEGIN_ALLOW_THREADS
;
6776 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6778 wxPy_END_ALLOW_THREADS
;
6779 if (PyErr_Occurred()) return NULL
;
6780 } Py_INCREF(Py_None
);
6781 _resultobj
= Py_None
;
6788 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6789 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6790 PyObject
* _resultobj
;
6794 PyObject
* _argo0
= 0;
6795 char *_kwnames
[] = { "self","x","y", NULL
};
6798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6801 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6802 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6808 wxPy_BEGIN_ALLOW_THREADS
;
6809 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6811 wxPy_END_ALLOW_THREADS
;
6812 if (PyErr_Occurred()) return NULL
;
6813 } Py_INCREF(Py_None
);
6814 _resultobj
= Py_None
;
6818 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6819 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6820 PyObject
* _resultobj
;
6826 PyObject
* _argo0
= 0;
6827 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6833 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6834 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6840 wxPy_BEGIN_ALLOW_THREADS
;
6841 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6843 wxPy_END_ALLOW_THREADS
;
6844 if (PyErr_Occurred()) return NULL
;
6845 } Py_INCREF(Py_None
);
6846 _resultobj
= Py_None
;
6850 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6851 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6852 PyObject
* _resultobj
;
6858 PyObject
* _argo0
= 0;
6859 PyObject
* _obj1
= 0;
6860 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6866 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6867 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6868 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6873 #if PYTHON_API_VERSION >= 1009
6874 char* tmpPtr
; int tmpSize
;
6875 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6876 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6879 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6881 _arg1
= new wxString(tmpPtr
, tmpSize
);
6883 if (!PyString_Check(_obj1
)) {
6884 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6887 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6891 wxPy_BEGIN_ALLOW_THREADS
;
6892 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
6894 wxPy_END_ALLOW_THREADS
;
6895 if (PyErr_Occurred()) return NULL
;
6896 } Py_INCREF(Py_None
);
6897 _resultobj
= Py_None
;
6905 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6906 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6907 PyObject
* _resultobj
;
6913 long _arg5
= (long ) 20;
6914 PyObject
* _argo0
= 0;
6915 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
6918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
6921 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6922 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6923 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6928 wxPy_BEGIN_ALLOW_THREADS
;
6929 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6931 wxPy_END_ALLOW_THREADS
;
6932 if (PyErr_Occurred()) return NULL
;
6933 } Py_INCREF(Py_None
);
6934 _resultobj
= Py_None
;
6938 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
6939 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6940 PyObject
* _resultobj
;
6944 PyObject
* _argo0
= 0;
6946 PyObject
* _obj2
= 0;
6947 char *_kwnames
[] = { "self","points", NULL
};
6950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
6953 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6954 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6961 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6962 if (_arg2
== NULL
) {
6970 wxPy_BEGIN_ALLOW_THREADS
;
6971 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
6973 wxPy_END_ALLOW_THREADS
;
6974 if (PyErr_Occurred()) return NULL
;
6975 } Py_INCREF(Py_None
);
6976 _resultobj
= Py_None
;
6983 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
6984 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6985 PyObject
* _resultobj
;
6990 PyObject
* _argo0
= 0;
6991 PyObject
* _obj1
= 0;
6992 char *_kwnames
[] = { "self","text","x","y", NULL
};
6995 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
6998 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6999 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7000 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7005 #if PYTHON_API_VERSION >= 1009
7006 char* tmpPtr
; int tmpSize
;
7007 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7008 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7011 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7013 _arg1
= new wxString(tmpPtr
, tmpSize
);
7015 if (!PyString_Check(_obj1
)) {
7016 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7019 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7023 wxPy_BEGIN_ALLOW_THREADS
;
7024 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
7026 wxPy_END_ALLOW_THREADS
;
7027 if (PyErr_Occurred()) return NULL
;
7028 } Py_INCREF(Py_None
);
7029 _resultobj
= Py_None
;
7037 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7038 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7039 PyObject
* _resultobj
;
7041 PyObject
* _argo0
= 0;
7042 char *_kwnames
[] = { "self", NULL
};
7045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
7048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7055 wxPy_BEGIN_ALLOW_THREADS
;
7058 wxPy_END_ALLOW_THREADS
;
7059 if (PyErr_Occurred()) return NULL
;
7060 } Py_INCREF(Py_None
);
7061 _resultobj
= Py_None
;
7065 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7066 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7067 PyObject
* _resultobj
;
7069 PyObject
* _argo0
= 0;
7070 char *_kwnames
[] = { "self", NULL
};
7073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
7076 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7077 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7083 wxPy_BEGIN_ALLOW_THREADS
;
7084 wxDC_EndDrawing(_arg0
);
7086 wxPy_END_ALLOW_THREADS
;
7087 if (PyErr_Occurred()) return NULL
;
7088 } Py_INCREF(Py_None
);
7089 _resultobj
= Py_None
;
7093 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7094 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7095 PyObject
* _resultobj
;
7097 PyObject
* _argo0
= 0;
7098 char *_kwnames
[] = { "self", NULL
};
7101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
7104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7111 wxPy_BEGIN_ALLOW_THREADS
;
7112 wxDC_EndPage(_arg0
);
7114 wxPy_END_ALLOW_THREADS
;
7115 if (PyErr_Occurred()) return NULL
;
7116 } Py_INCREF(Py_None
);
7117 _resultobj
= Py_None
;
7121 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7122 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7123 PyObject
* _resultobj
;
7128 int _arg4
= (int ) wxFLOOD_SURFACE
;
7129 PyObject
* _argo0
= 0;
7131 PyObject
* _obj3
= 0;
7132 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
7135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
7138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7146 if (! wxColour_helper(_obj3
, &_arg3
))
7150 wxPy_BEGIN_ALLOW_THREADS
;
7151 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
7153 wxPy_END_ALLOW_THREADS
;
7154 if (PyErr_Occurred()) return NULL
;
7155 } Py_INCREF(Py_None
);
7156 _resultobj
= Py_None
;
7160 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7161 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7162 PyObject
* _resultobj
;
7165 PyObject
* _argo0
= 0;
7166 char *_kwnames
[] = { "self", NULL
};
7170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
7173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7180 wxPy_BEGIN_ALLOW_THREADS
;
7181 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
7182 _result
= (wxBrush
*) &_result_ref
;
7184 wxPy_END_ALLOW_THREADS
;
7185 if (PyErr_Occurred()) return NULL
;
7187 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
7188 _resultobj
= Py_BuildValue("s",_ptemp
);
7191 _resultobj
= Py_None
;
7196 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7197 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7198 PyObject
* _resultobj
;
7201 PyObject
* _argo0
= 0;
7202 char *_kwnames
[] = { "self", NULL
};
7206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
7209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7216 wxPy_BEGIN_ALLOW_THREADS
;
7217 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
7218 _result
= (wxBrush
*) &_result_ref
;
7220 wxPy_END_ALLOW_THREADS
;
7221 if (PyErr_Occurred()) return NULL
;
7223 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
7224 _resultobj
= Py_BuildValue("s",_ptemp
);
7227 _resultobj
= Py_None
;
7232 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7233 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7234 PyObject
* _resultobj
;
7237 PyObject
* _argo0
= 0;
7238 char *_kwnames
[] = { "self", NULL
};
7241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
7244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7251 wxPy_BEGIN_ALLOW_THREADS
;
7252 _result
= (long )wxDC_GetCharHeight(_arg0
);
7254 wxPy_END_ALLOW_THREADS
;
7255 if (PyErr_Occurred()) return NULL
;
7256 } _resultobj
= Py_BuildValue("l",_result
);
7260 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7261 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7262 PyObject
* _resultobj
;
7265 PyObject
* _argo0
= 0;
7266 char *_kwnames
[] = { "self", NULL
};
7269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
7272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7279 wxPy_BEGIN_ALLOW_THREADS
;
7280 _result
= (long )wxDC_GetCharWidth(_arg0
);
7282 wxPy_END_ALLOW_THREADS
;
7283 if (PyErr_Occurred()) return NULL
;
7284 } _resultobj
= Py_BuildValue("l",_result
);
7288 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7289 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7290 PyObject
* _resultobj
;
7300 PyObject
* _argo0
= 0;
7301 char *_kwnames
[] = { "self", NULL
};
7316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
7319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7326 wxPy_BEGIN_ALLOW_THREADS
;
7327 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7329 wxPy_END_ALLOW_THREADS
;
7330 if (PyErr_Occurred()) return NULL
;
7331 } Py_INCREF(Py_None
);
7332 _resultobj
= Py_None
;
7335 o
= PyInt_FromLong((long) (*_arg1
));
7336 _resultobj
= t_output_helper(_resultobj
, o
);
7340 o
= PyInt_FromLong((long) (*_arg2
));
7341 _resultobj
= t_output_helper(_resultobj
, o
);
7345 o
= PyInt_FromLong((long) (*_arg3
));
7346 _resultobj
= t_output_helper(_resultobj
, o
);
7350 o
= PyInt_FromLong((long) (*_arg4
));
7351 _resultobj
= t_output_helper(_resultobj
, o
);
7356 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7357 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7358 PyObject
* _resultobj
;
7361 PyObject
* _argo0
= 0;
7362 char *_kwnames
[] = { "self", NULL
};
7366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
7369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7376 wxPy_BEGIN_ALLOW_THREADS
;
7377 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
7378 _result
= (wxFont
*) &_result_ref
;
7380 wxPy_END_ALLOW_THREADS
;
7381 if (PyErr_Occurred()) return NULL
;
7383 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
7384 _resultobj
= Py_BuildValue("s",_ptemp
);
7387 _resultobj
= Py_None
;
7392 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7393 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7394 PyObject
* _resultobj
;
7397 PyObject
* _argo0
= 0;
7398 char *_kwnames
[] = { "self", NULL
};
7401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
7404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7411 wxPy_BEGIN_ALLOW_THREADS
;
7412 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
7414 wxPy_END_ALLOW_THREADS
;
7415 if (PyErr_Occurred()) return NULL
;
7416 } _resultobj
= Py_BuildValue("i",_result
);
7420 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7421 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7422 PyObject
* _resultobj
;
7428 PyObject
* _argo0
= 0;
7429 char *_kwnames
[] = { "self", NULL
};
7438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
7441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7448 wxPy_BEGIN_ALLOW_THREADS
;
7449 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
7451 wxPy_END_ALLOW_THREADS
;
7452 if (PyErr_Occurred()) return NULL
;
7453 } Py_INCREF(Py_None
);
7454 _resultobj
= Py_None
;
7457 o
= PyFloat_FromDouble((double) (*_arg1
));
7458 _resultobj
= t_output_helper(_resultobj
, o
);
7462 o
= PyFloat_FromDouble((double) (*_arg2
));
7463 _resultobj
= t_output_helper(_resultobj
, o
);
7468 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7469 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7470 PyObject
* _resultobj
;
7473 PyObject
* _argo0
= 0;
7474 char *_kwnames
[] = { "self", NULL
};
7477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
7480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7487 wxPy_BEGIN_ALLOW_THREADS
;
7488 _result
= (int )wxDC_GetMapMode(_arg0
);
7490 wxPy_END_ALLOW_THREADS
;
7491 if (PyErr_Occurred()) return NULL
;
7492 } _resultobj
= Py_BuildValue("i",_result
);
7496 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7497 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7498 PyObject
* _resultobj
;
7501 PyObject
* _argo0
= 0;
7502 char *_kwnames
[] = { "self", NULL
};
7505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
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_GetOptimization. Expected _wxDC_p.");
7515 wxPy_BEGIN_ALLOW_THREADS
;
7516 _result
= (bool )wxDC_GetOptimization(_arg0
);
7518 wxPy_END_ALLOW_THREADS
;
7519 if (PyErr_Occurred()) return NULL
;
7520 } _resultobj
= Py_BuildValue("i",_result
);
7524 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7525 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7526 PyObject
* _resultobj
;
7529 PyObject
* _argo0
= 0;
7530 char *_kwnames
[] = { "self", NULL
};
7534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
7537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7544 wxPy_BEGIN_ALLOW_THREADS
;
7545 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
7546 _result
= (wxPen
*) &_result_ref
;
7548 wxPy_END_ALLOW_THREADS
;
7549 if (PyErr_Occurred()) return NULL
;
7551 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
7552 _resultobj
= Py_BuildValue("s",_ptemp
);
7555 _resultobj
= Py_None
;
7560 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
7561 wxColour
* wc
= new wxColour();
7562 self
->GetPixel(x
, y
, wc
);
7565 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7566 PyObject
* _resultobj
;
7571 PyObject
* _argo0
= 0;
7572 char *_kwnames
[] = { "self","x","y", NULL
};
7576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7586 wxPy_BEGIN_ALLOW_THREADS
;
7587 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
7589 wxPy_END_ALLOW_THREADS
;
7590 if (PyErr_Occurred()) return NULL
;
7592 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7593 _resultobj
= Py_BuildValue("s",_ptemp
);
7596 _resultobj
= Py_None
;
7601 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7602 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7603 PyObject
* _resultobj
;
7609 PyObject
* _argo0
= 0;
7610 char *_kwnames
[] = { "self", NULL
};
7619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
7622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7629 wxPy_BEGIN_ALLOW_THREADS
;
7630 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
7632 wxPy_END_ALLOW_THREADS
;
7633 if (PyErr_Occurred()) return NULL
;
7634 } Py_INCREF(Py_None
);
7635 _resultobj
= Py_None
;
7638 o
= PyInt_FromLong((long) (*_arg1
));
7639 _resultobj
= t_output_helper(_resultobj
, o
);
7643 o
= PyInt_FromLong((long) (*_arg2
));
7644 _resultobj
= t_output_helper(_resultobj
, o
);
7649 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7650 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7651 PyObject
* _resultobj
;
7654 PyObject
* _argo0
= 0;
7655 char *_kwnames
[] = { "self", NULL
};
7659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
7662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7669 wxPy_BEGIN_ALLOW_THREADS
;
7670 _result
= new wxSize (wxDC_GetSize(_arg0
));
7672 wxPy_END_ALLOW_THREADS
;
7673 if (PyErr_Occurred()) return NULL
;
7674 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7675 _resultobj
= Py_BuildValue("s",_ptemp
);
7679 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7680 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7681 PyObject
* _resultobj
;
7684 PyObject
* _argo0
= 0;
7685 char *_kwnames
[] = { "self", NULL
};
7689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7699 wxPy_BEGIN_ALLOW_THREADS
;
7700 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
7702 wxPy_END_ALLOW_THREADS
;
7703 if (PyErr_Occurred()) return NULL
;
7704 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7705 _resultobj
= Py_BuildValue("s",_ptemp
);
7709 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7710 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7711 PyObject
* _resultobj
;
7714 PyObject
* _argo0
= 0;
7715 char *_kwnames
[] = { "self", NULL
};
7719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
7722 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7723 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7729 wxPy_BEGIN_ALLOW_THREADS
;
7730 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
7732 wxPy_END_ALLOW_THREADS
;
7733 if (PyErr_Occurred()) return NULL
;
7734 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7735 _resultobj
= Py_BuildValue("s",_ptemp
);
7739 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7740 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7741 PyObject
* _resultobj
;
7748 PyObject
* _argo0
= 0;
7749 PyObject
* _obj1
= 0;
7750 char *_kwnames
[] = { "self","string", NULL
};
7759 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7762 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7763 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7764 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7769 #if PYTHON_API_VERSION >= 1009
7770 char* tmpPtr
; int tmpSize
;
7771 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7772 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7775 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7777 _arg1
= new wxString(tmpPtr
, tmpSize
);
7779 if (!PyString_Check(_obj1
)) {
7780 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7783 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7787 wxPy_BEGIN_ALLOW_THREADS
;
7788 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7790 wxPy_END_ALLOW_THREADS
;
7791 if (PyErr_Occurred()) return NULL
;
7792 } Py_INCREF(Py_None
);
7793 _resultobj
= Py_None
;
7796 o
= PyInt_FromLong((long) (*_arg2
));
7797 _resultobj
= t_output_helper(_resultobj
, o
);
7801 o
= PyInt_FromLong((long) (*_arg3
));
7802 _resultobj
= t_output_helper(_resultobj
, o
);
7811 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7812 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7813 PyObject
* _resultobj
;
7824 wxFont
* _arg6
= (wxFont
*) NULL
;
7825 PyObject
* _argo0
= 0;
7826 PyObject
* _obj1
= 0;
7827 PyObject
* _argo6
= 0;
7828 char *_kwnames
[] = { "self","string","font", NULL
};
7843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7853 #if PYTHON_API_VERSION >= 1009
7854 char* tmpPtr
; int tmpSize
;
7855 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7856 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7859 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7861 _arg1
= new wxString(tmpPtr
, tmpSize
);
7863 if (!PyString_Check(_obj1
)) {
7864 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7867 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7871 if (_argo6
== Py_None
) { _arg6
= NULL
; }
7872 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
7873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7878 wxPy_BEGIN_ALLOW_THREADS
;
7879 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7881 wxPy_END_ALLOW_THREADS
;
7882 if (PyErr_Occurred()) return NULL
;
7883 } Py_INCREF(Py_None
);
7884 _resultobj
= Py_None
;
7887 o
= PyInt_FromLong((long) (*_arg2
));
7888 _resultobj
= t_output_helper(_resultobj
, o
);
7892 o
= PyInt_FromLong((long) (*_arg3
));
7893 _resultobj
= t_output_helper(_resultobj
, o
);
7897 o
= PyInt_FromLong((long) (*_arg4
));
7898 _resultobj
= t_output_helper(_resultobj
, o
);
7902 o
= PyInt_FromLong((long) (*_arg5
));
7903 _resultobj
= t_output_helper(_resultobj
, o
);
7912 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
7913 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7914 PyObject
* _resultobj
;
7917 PyObject
* _argo0
= 0;
7918 char *_kwnames
[] = { "self", NULL
};
7922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
7925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7932 wxPy_BEGIN_ALLOW_THREADS
;
7933 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
7935 wxPy_END_ALLOW_THREADS
;
7936 if (PyErr_Occurred()) return NULL
;
7937 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7938 _resultobj
= Py_BuildValue("s",_ptemp
);
7942 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7943 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7944 PyObject
* _resultobj
;
7950 PyObject
* _argo0
= 0;
7951 char *_kwnames
[] = { "self", NULL
};
7960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
7963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7970 wxPy_BEGIN_ALLOW_THREADS
;
7971 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
7973 wxPy_END_ALLOW_THREADS
;
7974 if (PyErr_Occurred()) return NULL
;
7975 } Py_INCREF(Py_None
);
7976 _resultobj
= Py_None
;
7979 o
= PyFloat_FromDouble((double) (*_arg1
));
7980 _resultobj
= t_output_helper(_resultobj
, o
);
7984 o
= PyFloat_FromDouble((double) (*_arg2
));
7985 _resultobj
= t_output_helper(_resultobj
, o
);
7990 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
7991 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7992 PyObject
* _resultobj
;
7996 PyObject
* _argo0
= 0;
7997 char *_kwnames
[] = { "self","x", NULL
};
8000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
8003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8010 wxPy_BEGIN_ALLOW_THREADS
;
8011 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
8013 wxPy_END_ALLOW_THREADS
;
8014 if (PyErr_Occurred()) return NULL
;
8015 } _resultobj
= Py_BuildValue("l",_result
);
8019 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8020 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8021 PyObject
* _resultobj
;
8025 PyObject
* _argo0
= 0;
8026 char *_kwnames
[] = { "self","x", NULL
};
8029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
8032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8039 wxPy_BEGIN_ALLOW_THREADS
;
8040 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
8042 wxPy_END_ALLOW_THREADS
;
8043 if (PyErr_Occurred()) return NULL
;
8044 } _resultobj
= Py_BuildValue("l",_result
);
8048 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8049 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8050 PyObject
* _resultobj
;
8054 PyObject
* _argo0
= 0;
8055 char *_kwnames
[] = { "self","y", NULL
};
8058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
8061 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8062 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8068 wxPy_BEGIN_ALLOW_THREADS
;
8069 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
8071 wxPy_END_ALLOW_THREADS
;
8072 if (PyErr_Occurred()) return NULL
;
8073 } _resultobj
= Py_BuildValue("l",_result
);
8077 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8078 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8079 PyObject
* _resultobj
;
8083 PyObject
* _argo0
= 0;
8084 char *_kwnames
[] = { "self","y", NULL
};
8087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
8090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8097 wxPy_BEGIN_ALLOW_THREADS
;
8098 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
8100 wxPy_END_ALLOW_THREADS
;
8101 if (PyErr_Occurred()) return NULL
;
8102 } _resultobj
= Py_BuildValue("l",_result
);
8106 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8107 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8108 PyObject
* _resultobj
;
8111 PyObject
* _argo0
= 0;
8112 char *_kwnames
[] = { "self", NULL
};
8115 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
8118 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8119 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8120 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8125 wxPy_BEGIN_ALLOW_THREADS
;
8126 _result
= (long )wxDC_MaxX(_arg0
);
8128 wxPy_END_ALLOW_THREADS
;
8129 if (PyErr_Occurred()) return NULL
;
8130 } _resultobj
= Py_BuildValue("l",_result
);
8134 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8135 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8136 PyObject
* _resultobj
;
8139 PyObject
* _argo0
= 0;
8140 char *_kwnames
[] = { "self", NULL
};
8143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
8146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8153 wxPy_BEGIN_ALLOW_THREADS
;
8154 _result
= (long )wxDC_MaxY(_arg0
);
8156 wxPy_END_ALLOW_THREADS
;
8157 if (PyErr_Occurred()) return NULL
;
8158 } _resultobj
= Py_BuildValue("l",_result
);
8162 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
8163 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8164 PyObject
* _resultobj
;
8167 PyObject
* _argo0
= 0;
8168 char *_kwnames
[] = { "self", NULL
};
8171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
8174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8181 wxPy_BEGIN_ALLOW_THREADS
;
8182 _result
= (long )wxDC_MinX(_arg0
);
8184 wxPy_END_ALLOW_THREADS
;
8185 if (PyErr_Occurred()) return NULL
;
8186 } _resultobj
= Py_BuildValue("l",_result
);
8190 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8191 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8192 PyObject
* _resultobj
;
8195 PyObject
* _argo0
= 0;
8196 char *_kwnames
[] = { "self", NULL
};
8199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
8202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8209 wxPy_BEGIN_ALLOW_THREADS
;
8210 _result
= (long )wxDC_MinY(_arg0
);
8212 wxPy_END_ALLOW_THREADS
;
8213 if (PyErr_Occurred()) return NULL
;
8214 } _resultobj
= Py_BuildValue("l",_result
);
8218 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8219 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8220 PyObject
* _resultobj
;
8223 PyObject
* _argo0
= 0;
8224 char *_kwnames
[] = { "self", NULL
};
8227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
8230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8237 wxPy_BEGIN_ALLOW_THREADS
;
8238 _result
= (bool )wxDC_Ok(_arg0
);
8240 wxPy_END_ALLOW_THREADS
;
8241 if (PyErr_Occurred()) return NULL
;
8242 } _resultobj
= Py_BuildValue("i",_result
);
8246 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8247 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8248 PyObject
* _resultobj
;
8252 PyObject
* _argo0
= 0;
8253 char *_kwnames
[] = { "self","x","y", NULL
};
8256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8266 wxPy_BEGIN_ALLOW_THREADS
;
8267 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8269 wxPy_END_ALLOW_THREADS
;
8270 if (PyErr_Occurred()) return NULL
;
8271 } Py_INCREF(Py_None
);
8272 _resultobj
= Py_None
;
8276 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8277 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8278 PyObject
* _resultobj
;
8281 PyObject
* _argo0
= 0;
8282 PyObject
* _argo1
= 0;
8283 char *_kwnames
[] = { "self","brush", NULL
};
8286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
8289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8296 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8297 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8303 wxPy_BEGIN_ALLOW_THREADS
;
8304 wxDC_SetBackground(_arg0
,*_arg1
);
8306 wxPy_END_ALLOW_THREADS
;
8307 if (PyErr_Occurred()) return NULL
;
8308 } Py_INCREF(Py_None
);
8309 _resultobj
= Py_None
;
8313 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8314 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8315 PyObject
* _resultobj
;
8318 PyObject
* _argo0
= 0;
8319 char *_kwnames
[] = { "self","mode", NULL
};
8322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
8325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8332 wxPy_BEGIN_ALLOW_THREADS
;
8333 wxDC_SetBackgroundMode(_arg0
,_arg1
);
8335 wxPy_END_ALLOW_THREADS
;
8336 if (PyErr_Occurred()) return NULL
;
8337 } Py_INCREF(Py_None
);
8338 _resultobj
= Py_None
;
8342 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8343 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8344 PyObject
* _resultobj
;
8350 PyObject
* _argo0
= 0;
8351 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
8354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
8357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8364 wxPy_BEGIN_ALLOW_THREADS
;
8365 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8367 wxPy_END_ALLOW_THREADS
;
8368 if (PyErr_Occurred()) return NULL
;
8369 } Py_INCREF(Py_None
);
8370 _resultobj
= Py_None
;
8374 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8375 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8376 PyObject
* _resultobj
;
8379 PyObject
* _argo0
= 0;
8380 PyObject
* _argo1
= 0;
8381 char *_kwnames
[] = { "self","region", NULL
};
8384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
8387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8394 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8395 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
8396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8401 wxPy_BEGIN_ALLOW_THREADS
;
8402 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
8404 wxPy_END_ALLOW_THREADS
;
8405 if (PyErr_Occurred()) return NULL
;
8406 } Py_INCREF(Py_None
);
8407 _resultobj
= Py_None
;
8411 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8412 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8413 PyObject
* _resultobj
;
8416 PyObject
* _argo0
= 0;
8417 PyObject
* _argo1
= 0;
8418 char *_kwnames
[] = { "self","colourMap", NULL
};
8421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
8424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8431 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8432 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
8433 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8438 wxPy_BEGIN_ALLOW_THREADS
;
8439 wxDC_SetPalette(_arg0
,*_arg1
);
8441 wxPy_END_ALLOW_THREADS
;
8442 if (PyErr_Occurred()) return NULL
;
8443 } Py_INCREF(Py_None
);
8444 _resultobj
= Py_None
;
8448 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8449 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8450 PyObject
* _resultobj
;
8453 PyObject
* _argo0
= 0;
8454 PyObject
* _argo1
= 0;
8455 char *_kwnames
[] = { "self","brush", NULL
};
8458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
8461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8468 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8469 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8475 wxPy_BEGIN_ALLOW_THREADS
;
8476 wxDC_SetBrush(_arg0
,*_arg1
);
8478 wxPy_END_ALLOW_THREADS
;
8479 if (PyErr_Occurred()) return NULL
;
8480 } Py_INCREF(Py_None
);
8481 _resultobj
= Py_None
;
8485 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8486 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8487 PyObject
* _resultobj
;
8490 PyObject
* _argo0
= 0;
8491 PyObject
* _argo1
= 0;
8492 char *_kwnames
[] = { "self","font", NULL
};
8495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
8498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8505 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8506 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
8507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8512 wxPy_BEGIN_ALLOW_THREADS
;
8513 wxDC_SetFont(_arg0
,*_arg1
);
8515 wxPy_END_ALLOW_THREADS
;
8516 if (PyErr_Occurred()) return NULL
;
8517 } Py_INCREF(Py_None
);
8518 _resultobj
= Py_None
;
8522 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8523 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8524 PyObject
* _resultobj
;
8527 PyObject
* _argo0
= 0;
8528 char *_kwnames
[] = { "self","function", NULL
};
8531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
8534 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8535 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8541 wxPy_BEGIN_ALLOW_THREADS
;
8542 wxDC_SetLogicalFunction(_arg0
,_arg1
);
8544 wxPy_END_ALLOW_THREADS
;
8545 if (PyErr_Occurred()) return NULL
;
8546 } Py_INCREF(Py_None
);
8547 _resultobj
= Py_None
;
8551 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8552 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8553 PyObject
* _resultobj
;
8557 PyObject
* _argo0
= 0;
8558 char *_kwnames
[] = { "self","x","y", NULL
};
8561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8571 wxPy_BEGIN_ALLOW_THREADS
;
8572 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
8574 wxPy_END_ALLOW_THREADS
;
8575 if (PyErr_Occurred()) return NULL
;
8576 } Py_INCREF(Py_None
);
8577 _resultobj
= Py_None
;
8581 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8582 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8583 PyObject
* _resultobj
;
8586 PyObject
* _argo0
= 0;
8587 char *_kwnames
[] = { "self","mode", NULL
};
8590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
8593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8600 wxPy_BEGIN_ALLOW_THREADS
;
8601 wxDC_SetMapMode(_arg0
,_arg1
);
8603 wxPy_END_ALLOW_THREADS
;
8604 if (PyErr_Occurred()) return NULL
;
8605 } Py_INCREF(Py_None
);
8606 _resultobj
= Py_None
;
8610 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8611 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8612 PyObject
* _resultobj
;
8615 PyObject
* _argo0
= 0;
8617 char *_kwnames
[] = { "self","optimize", NULL
};
8620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
8623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8629 _arg1
= (bool ) tempbool1
;
8631 wxPy_BEGIN_ALLOW_THREADS
;
8632 wxDC_SetOptimization(_arg0
,_arg1
);
8634 wxPy_END_ALLOW_THREADS
;
8635 if (PyErr_Occurred()) return NULL
;
8636 } Py_INCREF(Py_None
);
8637 _resultobj
= Py_None
;
8641 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8642 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8643 PyObject
* _resultobj
;
8646 PyObject
* _argo0
= 0;
8647 PyObject
* _argo1
= 0;
8648 char *_kwnames
[] = { "self","pen", NULL
};
8651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
8654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8661 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8662 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
8663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8668 wxPy_BEGIN_ALLOW_THREADS
;
8669 wxDC_SetPen(_arg0
,*_arg1
);
8671 wxPy_END_ALLOW_THREADS
;
8672 if (PyErr_Occurred()) return NULL
;
8673 } Py_INCREF(Py_None
);
8674 _resultobj
= Py_None
;
8678 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8679 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8680 PyObject
* _resultobj
;
8683 PyObject
* _argo0
= 0;
8685 PyObject
* _obj1
= 0;
8686 char *_kwnames
[] = { "self","colour", NULL
};
8689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
8692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8700 if (! wxColour_helper(_obj1
, &_arg1
))
8704 wxPy_BEGIN_ALLOW_THREADS
;
8705 wxDC_SetTextBackground(_arg0
,*_arg1
);
8707 wxPy_END_ALLOW_THREADS
;
8708 if (PyErr_Occurred()) return NULL
;
8709 } Py_INCREF(Py_None
);
8710 _resultobj
= Py_None
;
8714 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8715 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8716 PyObject
* _resultobj
;
8719 PyObject
* _argo0
= 0;
8721 PyObject
* _obj1
= 0;
8722 char *_kwnames
[] = { "self","colour", NULL
};
8725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
8728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8736 if (! wxColour_helper(_obj1
, &_arg1
))
8740 wxPy_BEGIN_ALLOW_THREADS
;
8741 wxDC_SetTextForeground(_arg0
,*_arg1
);
8743 wxPy_END_ALLOW_THREADS
;
8744 if (PyErr_Occurred()) return NULL
;
8745 } Py_INCREF(Py_None
);
8746 _resultobj
= Py_None
;
8750 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8751 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8752 PyObject
* _resultobj
;
8756 PyObject
* _argo0
= 0;
8757 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8770 wxPy_BEGIN_ALLOW_THREADS
;
8771 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8773 wxPy_END_ALLOW_THREADS
;
8774 if (PyErr_Occurred()) return NULL
;
8775 } Py_INCREF(Py_None
);
8776 _resultobj
= Py_None
;
8780 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8781 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8782 PyObject
* _resultobj
;
8786 PyObject
* _argo0
= 0;
8787 PyObject
* _obj1
= 0;
8788 char *_kwnames
[] = { "self","message", NULL
};
8791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8794 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8795 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8801 #if PYTHON_API_VERSION >= 1009
8802 char* tmpPtr
; int tmpSize
;
8803 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8804 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8807 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8809 _arg1
= new wxString(tmpPtr
, tmpSize
);
8811 if (!PyString_Check(_obj1
)) {
8812 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8815 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8819 wxPy_BEGIN_ALLOW_THREADS
;
8820 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8822 wxPy_END_ALLOW_THREADS
;
8823 if (PyErr_Occurred()) return NULL
;
8824 } _resultobj
= Py_BuildValue("i",_result
);
8832 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8833 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8834 PyObject
* _resultobj
;
8836 PyObject
* _argo0
= 0;
8837 char *_kwnames
[] = { "self", NULL
};
8840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8843 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8844 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8850 wxPy_BEGIN_ALLOW_THREADS
;
8851 wxDC_StartPage(_arg0
);
8853 wxPy_END_ALLOW_THREADS
;
8854 if (PyErr_Occurred()) return NULL
;
8855 } Py_INCREF(Py_None
);
8856 _resultobj
= Py_None
;
8860 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8861 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8862 PyObject
* _resultobj
;
8867 int _arg4
= (int ) FALSE
;
8868 PyObject
* _argo0
= 0;
8869 PyObject
* _argo1
= 0;
8870 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
8873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
8876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8883 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8884 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8890 wxPy_BEGIN_ALLOW_THREADS
;
8891 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
8893 wxPy_END_ALLOW_THREADS
;
8894 if (PyErr_Occurred()) return NULL
;
8895 } Py_INCREF(Py_None
);
8896 _resultobj
= Py_None
;
8900 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8901 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8902 PyObject
* _resultobj
;
8905 PyObject
* _argo0
= 0;
8906 char *_kwnames
[] = { "self", NULL
};
8909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
8912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8919 wxPy_BEGIN_ALLOW_THREADS
;
8920 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
8922 wxPy_END_ALLOW_THREADS
;
8923 if (PyErr_Occurred()) return NULL
;
8924 } _resultobj
= Py_BuildValue("i",_result
);
8928 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8929 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8930 PyObject
* _resultobj
;
8933 PyObject
* _argo0
= 0;
8934 char *_kwnames
[] = { "self", NULL
};
8937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
8940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8947 wxPy_BEGIN_ALLOW_THREADS
;
8948 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
8950 wxPy_END_ALLOW_THREADS
;
8951 if (PyErr_Occurred()) return NULL
;
8952 } _resultobj
= Py_BuildValue("i",_result
);
8956 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8957 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8958 PyObject
* _resultobj
;
8961 PyObject
* _argo0
= 0;
8962 char *_kwnames
[] = { "self", NULL
};
8965 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
8968 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8969 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8970 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8975 wxPy_BEGIN_ALLOW_THREADS
;
8976 _result
= (int )wxDC_GetDepth(_arg0
);
8978 wxPy_END_ALLOW_THREADS
;
8979 if (PyErr_Occurred()) return NULL
;
8980 } _resultobj
= Py_BuildValue("i",_result
);
8984 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8985 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8986 PyObject
* _resultobj
;
8989 PyObject
* _argo0
= 0;
8990 char *_kwnames
[] = { "self", NULL
};
8994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
8997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9004 wxPy_BEGIN_ALLOW_THREADS
;
9005 _result
= new wxSize (wxDC_GetPPI(_arg0
));
9007 wxPy_END_ALLOW_THREADS
;
9008 if (PyErr_Occurred()) return NULL
;
9009 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
9010 _resultobj
= Py_BuildValue("s",_ptemp
);
9014 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9015 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9016 PyObject
* _resultobj
;
9022 PyObject
* _argo0
= 0;
9023 char *_kwnames
[] = { "self", NULL
};
9032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
9035 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9036 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9037 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9042 wxPy_BEGIN_ALLOW_THREADS
;
9043 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9045 wxPy_END_ALLOW_THREADS
;
9046 if (PyErr_Occurred()) return NULL
;
9047 } Py_INCREF(Py_None
);
9048 _resultobj
= Py_None
;
9051 o
= PyInt_FromLong((long) (*_arg1
));
9052 _resultobj
= t_output_helper(_resultobj
, o
);
9056 o
= PyInt_FromLong((long) (*_arg2
));
9057 _resultobj
= t_output_helper(_resultobj
, o
);
9062 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9063 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9064 PyObject
* _resultobj
;
9068 PyObject
* _argo0
= 0;
9069 char *_kwnames
[] = { "self","x","y", NULL
};
9072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9082 wxPy_BEGIN_ALLOW_THREADS
;
9083 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9085 wxPy_END_ALLOW_THREADS
;
9086 if (PyErr_Occurred()) return NULL
;
9087 } Py_INCREF(Py_None
);
9088 _resultobj
= Py_None
;
9092 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9093 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9094 PyObject
* _resultobj
;
9100 PyObject
* _argo0
= 0;
9101 char *_kwnames
[] = { "self", NULL
};
9110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
9113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9120 wxPy_BEGIN_ALLOW_THREADS
;
9121 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
9123 wxPy_END_ALLOW_THREADS
;
9124 if (PyErr_Occurred()) return NULL
;
9125 } Py_INCREF(Py_None
);
9126 _resultobj
= Py_None
;
9129 o
= PyInt_FromLong((long) (*_arg1
));
9130 _resultobj
= t_output_helper(_resultobj
, o
);
9134 o
= PyInt_FromLong((long) (*_arg2
));
9135 _resultobj
= t_output_helper(_resultobj
, o
);
9140 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9141 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9142 PyObject
* _resultobj
;
9146 PyObject
* _argo0
= 0;
9149 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
9152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
9155 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9156 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9157 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9161 _arg1
= (bool ) tempbool1
;
9162 _arg2
= (bool ) tempbool2
;
9164 wxPy_BEGIN_ALLOW_THREADS
;
9165 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
9167 wxPy_END_ALLOW_THREADS
;
9168 if (PyErr_Occurred()) return NULL
;
9169 } Py_INCREF(Py_None
);
9170 _resultobj
= Py_None
;
9174 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9175 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9176 PyObject
* _resultobj
;
9180 PyObject
* _argo0
= 0;
9181 char *_kwnames
[] = { "self","x","y", NULL
};
9184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9187 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9188 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9194 wxPy_BEGIN_ALLOW_THREADS
;
9195 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
9197 wxPy_END_ALLOW_THREADS
;
9198 if (PyErr_Occurred()) return NULL
;
9199 } Py_INCREF(Py_None
);
9200 _resultobj
= Py_None
;
9204 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9205 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9206 PyObject
* _resultobj
;
9208 PyObject
* _argo0
= 0;
9209 char *_kwnames
[] = { "self", NULL
};
9212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
9215 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9216 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9217 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9222 wxPy_BEGIN_ALLOW_THREADS
;
9223 wxDC_ResetBoundingBox(_arg0
);
9225 wxPy_END_ALLOW_THREADS
;
9226 if (PyErr_Occurred()) return NULL
;
9227 } Py_INCREF(Py_None
);
9228 _resultobj
= Py_None
;
9232 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
9233 static PyObject
*_wrap_wxDC_GetHDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9234 PyObject
* _resultobj
;
9237 PyObject
* _argo0
= 0;
9238 char *_kwnames
[] = { "self", NULL
};
9241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetHDC",_kwnames
,&_argo0
))
9244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
9251 wxPy_BEGIN_ALLOW_THREADS
;
9252 _result
= (long )wxDC_GetHDC(_arg0
);
9254 wxPy_END_ALLOW_THREADS
;
9255 if (PyErr_Occurred()) return NULL
;
9256 } _resultobj
= Py_BuildValue("l",_result
);
9260 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
9263 src
= (wxMemoryDC
*) ptr
;
9264 dest
= (wxDC
*) src
;
9265 return (void *) dest
;
9268 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
9271 src
= (wxMemoryDC
*) ptr
;
9272 dest
= (wxObject
*) src
;
9273 return (void *) dest
;
9276 #define new_wxMemoryDC() (new wxMemoryDC())
9277 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9278 PyObject
* _resultobj
;
9279 wxMemoryDC
* _result
;
9280 char *_kwnames
[] = { NULL
};
9284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
9287 wxPy_BEGIN_ALLOW_THREADS
;
9288 _result
= (wxMemoryDC
*)new_wxMemoryDC();
9290 wxPy_END_ALLOW_THREADS
;
9291 if (PyErr_Occurred()) return NULL
;
9293 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
9294 _resultobj
= Py_BuildValue("s",_ptemp
);
9297 _resultobj
= Py_None
;
9302 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9303 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9304 PyObject
* _resultobj
;
9307 PyObject
* _argo0
= 0;
9308 PyObject
* _argo1
= 0;
9309 char *_kwnames
[] = { "self","bitmap", NULL
};
9312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
9315 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9316 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
9317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9322 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9323 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9329 wxPy_BEGIN_ALLOW_THREADS
;
9330 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
9332 wxPy_END_ALLOW_THREADS
;
9333 if (PyErr_Occurred()) return NULL
;
9334 } Py_INCREF(Py_None
);
9335 _resultobj
= Py_None
;
9339 static void *SwigwxScreenDCTowxDC(void *ptr
) {
9342 src
= (wxScreenDC
*) ptr
;
9343 dest
= (wxDC
*) src
;
9344 return (void *) dest
;
9347 static void *SwigwxScreenDCTowxObject(void *ptr
) {
9350 src
= (wxScreenDC
*) ptr
;
9351 dest
= (wxObject
*) src
;
9352 return (void *) dest
;
9355 #define new_wxScreenDC() (new wxScreenDC())
9356 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9357 PyObject
* _resultobj
;
9358 wxScreenDC
* _result
;
9359 char *_kwnames
[] = { NULL
};
9363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
9366 wxPy_BEGIN_ALLOW_THREADS
;
9367 _result
= (wxScreenDC
*)new_wxScreenDC();
9369 wxPy_END_ALLOW_THREADS
;
9370 if (PyErr_Occurred()) return NULL
;
9372 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
9373 _resultobj
= Py_BuildValue("s",_ptemp
);
9376 _resultobj
= Py_None
;
9381 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9382 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9383 PyObject
* _resultobj
;
9387 PyObject
* _argo0
= 0;
9388 PyObject
* _argo1
= 0;
9389 char *_kwnames
[] = { "self","window", NULL
};
9392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
9395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9402 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9403 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
9404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9409 wxPy_BEGIN_ALLOW_THREADS
;
9410 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
9412 wxPy_END_ALLOW_THREADS
;
9413 if (PyErr_Occurred()) return NULL
;
9414 } _resultobj
= Py_BuildValue("i",_result
);
9418 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9419 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9420 PyObject
* _resultobj
;
9423 wxRect
* _arg1
= (wxRect
*) NULL
;
9424 PyObject
* _argo0
= 0;
9426 PyObject
* _obj1
= 0;
9427 char *_kwnames
[] = { "self","rect", NULL
};
9430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
9433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9442 if (! wxRect_helper(_obj1
, &_arg1
))
9446 wxPy_BEGIN_ALLOW_THREADS
;
9447 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
9449 wxPy_END_ALLOW_THREADS
;
9450 if (PyErr_Occurred()) return NULL
;
9451 } _resultobj
= Py_BuildValue("i",_result
);
9455 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9456 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9457 PyObject
* _resultobj
;
9460 PyObject
* _argo0
= 0;
9461 char *_kwnames
[] = { "self", NULL
};
9464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
9467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9474 wxPy_BEGIN_ALLOW_THREADS
;
9475 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
9477 wxPy_END_ALLOW_THREADS
;
9478 if (PyErr_Occurred()) return NULL
;
9479 } _resultobj
= Py_BuildValue("i",_result
);
9483 static void *SwigwxClientDCTowxDC(void *ptr
) {
9486 src
= (wxClientDC
*) ptr
;
9487 dest
= (wxDC
*) src
;
9488 return (void *) dest
;
9491 static void *SwigwxClientDCTowxObject(void *ptr
) {
9494 src
= (wxClientDC
*) ptr
;
9495 dest
= (wxObject
*) src
;
9496 return (void *) dest
;
9499 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9500 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9501 PyObject
* _resultobj
;
9502 wxClientDC
* _result
;
9504 PyObject
* _argo0
= 0;
9505 char *_kwnames
[] = { "win", NULL
};
9509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
9512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9519 wxPy_BEGIN_ALLOW_THREADS
;
9520 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
9522 wxPy_END_ALLOW_THREADS
;
9523 if (PyErr_Occurred()) return NULL
;
9525 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
9526 _resultobj
= Py_BuildValue("s",_ptemp
);
9529 _resultobj
= Py_None
;
9534 static void *SwigwxPaintDCTowxDC(void *ptr
) {
9537 src
= (wxPaintDC
*) ptr
;
9538 dest
= (wxDC
*) src
;
9539 return (void *) dest
;
9542 static void *SwigwxPaintDCTowxObject(void *ptr
) {
9545 src
= (wxPaintDC
*) ptr
;
9546 dest
= (wxObject
*) src
;
9547 return (void *) dest
;
9550 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9551 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9552 PyObject
* _resultobj
;
9553 wxPaintDC
* _result
;
9555 PyObject
* _argo0
= 0;
9556 char *_kwnames
[] = { "win", NULL
};
9560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
9563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9570 wxPy_BEGIN_ALLOW_THREADS
;
9571 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
9573 wxPy_END_ALLOW_THREADS
;
9574 if (PyErr_Occurred()) return NULL
;
9576 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
9577 _resultobj
= Py_BuildValue("s",_ptemp
);
9580 _resultobj
= Py_None
;
9585 static void *SwigwxWindowDCTowxDC(void *ptr
) {
9588 src
= (wxWindowDC
*) ptr
;
9589 dest
= (wxDC
*) src
;
9590 return (void *) dest
;
9593 static void *SwigwxWindowDCTowxObject(void *ptr
) {
9596 src
= (wxWindowDC
*) ptr
;
9597 dest
= (wxObject
*) src
;
9598 return (void *) dest
;
9601 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
9602 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9603 PyObject
* _resultobj
;
9604 wxWindowDC
* _result
;
9606 PyObject
* _argo0
= 0;
9607 char *_kwnames
[] = { "win", NULL
};
9611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
9614 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9615 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9616 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9621 wxPy_BEGIN_ALLOW_THREADS
;
9622 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
9624 wxPy_END_ALLOW_THREADS
;
9625 if (PyErr_Occurred()) return NULL
;
9627 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
9628 _resultobj
= Py_BuildValue("s",_ptemp
);
9631 _resultobj
= Py_None
;
9636 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
9639 src
= (wxMetaFileDC
*) ptr
;
9640 dest
= (wxDC
*) src
;
9641 return (void *) dest
;
9644 static void *SwigwxMetaFileDCTowxObject(void *ptr
) {
9647 src
= (wxMetaFileDC
*) ptr
;
9648 dest
= (wxObject
*) src
;
9649 return (void *) dest
;
9652 #define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0))
9653 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9654 PyObject
* _resultobj
;
9655 wxMetaFileDC
* _result
;
9656 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
9657 PyObject
* _obj0
= 0;
9658 char *_kwnames
[] = { "filename", NULL
};
9662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFileDC",_kwnames
,&_obj0
))
9666 #if PYTHON_API_VERSION >= 1009
9667 char* tmpPtr
; int tmpSize
;
9668 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
9669 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9672 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
9674 _arg0
= new wxString(tmpPtr
, tmpSize
);
9676 if (!PyString_Check(_obj0
)) {
9677 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9680 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
9684 wxPy_BEGIN_ALLOW_THREADS
;
9685 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
);
9687 wxPy_END_ALLOW_THREADS
;
9688 if (PyErr_Occurred()) return NULL
;
9690 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
9691 _resultobj
= Py_BuildValue("s",_ptemp
);
9694 _resultobj
= Py_None
;
9703 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
9704 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9705 PyObject
* _resultobj
;
9706 wxMetaFile
* _result
;
9707 wxMetaFileDC
* _arg0
;
9708 PyObject
* _argo0
= 0;
9709 char *_kwnames
[] = { "self", NULL
};
9713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
9716 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9717 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
9718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
9723 wxPy_BEGIN_ALLOW_THREADS
;
9724 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
9726 wxPy_END_ALLOW_THREADS
;
9727 if (PyErr_Occurred()) return NULL
;
9729 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
9730 _resultobj
= Py_BuildValue("s",_ptemp
);
9733 _resultobj
= Py_None
;
9738 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
9741 src
= (wxPalette
*) ptr
;
9742 dest
= (wxGDIObject
*) src
;
9743 return (void *) dest
;
9746 static void *SwigwxPaletteTowxObject(void *ptr
) {
9749 src
= (wxPalette
*) ptr
;
9750 dest
= (wxObject
*) src
;
9751 return (void *) dest
;
9754 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9755 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9756 PyObject
* _resultobj
;
9757 wxPalette
* _result
;
9762 PyObject
* _obj1
= 0;
9763 PyObject
* _obj2
= 0;
9764 PyObject
* _obj3
= 0;
9765 char *_kwnames
[] = { "choices","choices","choices", NULL
};
9769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
9772 _arg1
= byte_LIST_helper(_obj1
);
9773 if (_arg1
== NULL
) {
9778 _arg2
= byte_LIST_helper(_obj2
);
9779 if (_arg2
== NULL
) {
9785 _arg3
= byte_LIST_helper(_obj3
);
9786 if (_arg3
== NULL
) {
9792 _arg0
= PyList_Size(_obj1
);
9799 wxPy_BEGIN_ALLOW_THREADS
;
9800 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
9802 wxPy_END_ALLOW_THREADS
;
9803 if (PyErr_Occurred()) return NULL
;
9805 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
9806 _resultobj
= Py_BuildValue("s",_ptemp
);
9809 _resultobj
= Py_None
;
9823 #define delete_wxPalette(_swigobj) (delete _swigobj)
9824 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9825 PyObject
* _resultobj
;
9827 PyObject
* _argo0
= 0;
9828 char *_kwnames
[] = { "self", NULL
};
9831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
9834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
9841 wxPy_BEGIN_ALLOW_THREADS
;
9842 delete_wxPalette(_arg0
);
9844 wxPy_END_ALLOW_THREADS
;
9845 if (PyErr_Occurred()) return NULL
;
9846 } Py_INCREF(Py_None
);
9847 _resultobj
= Py_None
;
9851 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
9852 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9853 PyObject
* _resultobj
;
9859 PyObject
* _argo0
= 0;
9860 char *_kwnames
[] = { "self","red","green","blue", NULL
};
9863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
9866 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9867 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9868 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
9873 wxPy_BEGIN_ALLOW_THREADS
;
9874 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
9876 wxPy_END_ALLOW_THREADS
;
9877 if (PyErr_Occurred()) return NULL
;
9878 } _resultobj
= Py_BuildValue("i",_result
);
9882 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9883 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9884 PyObject
* _resultobj
;
9891 PyObject
* _argo0
= 0;
9892 PyObject
* _argo2
= 0;
9893 PyObject
* _argo3
= 0;
9894 PyObject
* _argo4
= 0;
9895 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
9898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
9901 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9902 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9903 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
9908 if (_argo2
== Py_None
) { _arg2
= NULL
; }
9909 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
9910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
9915 if (_argo3
== Py_None
) { _arg3
= NULL
; }
9916 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
9917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
9922 if (_argo4
== Py_None
) { _arg4
= NULL
; }
9923 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
9924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
9929 wxPy_BEGIN_ALLOW_THREADS
;
9930 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9932 wxPy_END_ALLOW_THREADS
;
9933 if (PyErr_Occurred()) return NULL
;
9934 } _resultobj
= Py_BuildValue("i",_result
);
9938 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
9939 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9940 PyObject
* _resultobj
;
9943 PyObject
* _argo0
= 0;
9944 char *_kwnames
[] = { "self", NULL
};
9947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
9950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
9957 wxPy_BEGIN_ALLOW_THREADS
;
9958 _result
= (bool )wxPalette_Ok(_arg0
);
9960 wxPy_END_ALLOW_THREADS
;
9961 if (PyErr_Occurred()) return NULL
;
9962 } _resultobj
= Py_BuildValue("i",_result
);
9966 static void *SwigwxImageListTowxObject(void *ptr
) {
9969 src
= (wxImageList
*) ptr
;
9970 dest
= (wxObject
*) src
;
9971 return (void *) dest
;
9974 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9975 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9976 PyObject
* _resultobj
;
9977 wxImageList
* _result
;
9980 int _arg2
= (int ) TRUE
;
9981 int _arg3
= (int ) 1;
9982 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
9986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9989 wxPy_BEGIN_ALLOW_THREADS
;
9990 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
9992 wxPy_END_ALLOW_THREADS
;
9993 if (PyErr_Occurred()) return NULL
;
9995 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
9996 _resultobj
= Py_BuildValue("s",_ptemp
);
9999 _resultobj
= Py_None
;
10004 #define delete_wxImageList(_swigobj) (delete _swigobj)
10005 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10006 PyObject
* _resultobj
;
10007 wxImageList
* _arg0
;
10008 PyObject
* _argo0
= 0;
10009 char *_kwnames
[] = { "self", NULL
};
10012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
10015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10022 wxPy_BEGIN_ALLOW_THREADS
;
10023 delete_wxImageList(_arg0
);
10025 wxPy_END_ALLOW_THREADS
;
10026 if (PyErr_Occurred()) return NULL
;
10027 } Py_INCREF(Py_None
);
10028 _resultobj
= Py_None
;
10032 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10033 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10034 PyObject
* _resultobj
;
10036 wxImageList
* _arg0
;
10038 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10039 PyObject
* _argo0
= 0;
10040 PyObject
* _argo1
= 0;
10041 PyObject
* _argo2
= 0;
10042 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
10045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10055 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10056 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10062 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10063 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10069 wxPy_BEGIN_ALLOW_THREADS
;
10070 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
10072 wxPy_END_ALLOW_THREADS
;
10073 if (PyErr_Occurred()) return NULL
;
10074 } _resultobj
= Py_BuildValue("i",_result
);
10078 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10079 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10080 PyObject
* _resultobj
;
10082 wxImageList
* _arg0
;
10085 PyObject
* _argo0
= 0;
10086 PyObject
* _argo1
= 0;
10088 PyObject
* _obj2
= 0;
10089 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
10092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
10095 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10096 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10097 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10102 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10103 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10104 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10110 if (! wxColour_helper(_obj2
, &_arg2
))
10114 wxPy_BEGIN_ALLOW_THREADS
;
10115 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
10117 wxPy_END_ALLOW_THREADS
;
10118 if (PyErr_Occurred()) return NULL
;
10119 } _resultobj
= Py_BuildValue("i",_result
);
10123 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10124 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10125 PyObject
* _resultobj
;
10127 wxImageList
* _arg0
;
10129 PyObject
* _argo0
= 0;
10130 PyObject
* _argo1
= 0;
10131 char *_kwnames
[] = { "self","icon", NULL
};
10134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
10137 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10138 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10144 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10145 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
10146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10151 wxPy_BEGIN_ALLOW_THREADS
;
10152 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
10154 wxPy_END_ALLOW_THREADS
;
10155 if (PyErr_Occurred()) return NULL
;
10156 } _resultobj
= Py_BuildValue("i",_result
);
10160 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
10161 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10162 PyObject
* _resultobj
;
10164 wxImageList
* _arg0
;
10167 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
10168 PyObject
* _argo0
= 0;
10169 PyObject
* _argo2
= 0;
10170 PyObject
* _argo3
= 0;
10171 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
10174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
10177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10184 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10185 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10191 if (_argo3
== Py_None
) { _arg3
= NULL
; }
10192 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
10193 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
10198 wxPy_BEGIN_ALLOW_THREADS
;
10199 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
10201 wxPy_END_ALLOW_THREADS
;
10202 if (PyErr_Occurred()) return NULL
;
10203 } _resultobj
= Py_BuildValue("i",_result
);
10207 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10208 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10209 PyObject
* _resultobj
;
10211 wxImageList
* _arg0
;
10216 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
10217 bool _arg6
= (bool ) FALSE
;
10218 PyObject
* _argo0
= 0;
10219 PyObject
* _argo2
= 0;
10220 int tempbool6
= (int) FALSE
;
10221 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
10224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
10227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10234 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10235 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
10236 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10240 _arg6
= (bool ) tempbool6
;
10242 wxPy_BEGIN_ALLOW_THREADS
;
10243 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
10245 wxPy_END_ALLOW_THREADS
;
10246 if (PyErr_Occurred()) return NULL
;
10247 } _resultobj
= Py_BuildValue("i",_result
);
10251 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10252 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10253 PyObject
* _resultobj
;
10255 wxImageList
* _arg0
;
10256 PyObject
* _argo0
= 0;
10257 char *_kwnames
[] = { "self", NULL
};
10260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
10263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10270 wxPy_BEGIN_ALLOW_THREADS
;
10271 _result
= (int )wxImageList_GetImageCount(_arg0
);
10273 wxPy_END_ALLOW_THREADS
;
10274 if (PyErr_Occurred()) return NULL
;
10275 } _resultobj
= Py_BuildValue("i",_result
);
10279 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10280 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10281 PyObject
* _resultobj
;
10283 wxImageList
* _arg0
;
10285 PyObject
* _argo0
= 0;
10286 char *_kwnames
[] = { "self","index", NULL
};
10289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
10292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10299 wxPy_BEGIN_ALLOW_THREADS
;
10300 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
10302 wxPy_END_ALLOW_THREADS
;
10303 if (PyErr_Occurred()) return NULL
;
10304 } _resultobj
= Py_BuildValue("i",_result
);
10308 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
10309 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10310 PyObject
* _resultobj
;
10312 wxImageList
* _arg0
;
10313 PyObject
* _argo0
= 0;
10314 char *_kwnames
[] = { "self", NULL
};
10317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
10320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10327 wxPy_BEGIN_ALLOW_THREADS
;
10328 _result
= (bool )wxImageList_RemoveAll(_arg0
);
10330 wxPy_END_ALLOW_THREADS
;
10331 if (PyErr_Occurred()) return NULL
;
10332 } _resultobj
= Py_BuildValue("i",_result
);
10336 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10337 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10338 PyObject
* _resultobj
;
10339 wxImageList
* _arg0
;
10345 PyObject
* _argo0
= 0;
10346 char *_kwnames
[] = { "self","index", NULL
};
10355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
10358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10365 wxPy_BEGIN_ALLOW_THREADS
;
10366 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
10368 wxPy_END_ALLOW_THREADS
;
10369 if (PyErr_Occurred()) return NULL
;
10370 } Py_INCREF(Py_None
);
10371 _resultobj
= Py_None
;
10374 o
= PyInt_FromLong((long) (*_arg2
));
10375 _resultobj
= t_output_helper(_resultobj
, o
);
10379 o
= PyInt_FromLong((long) (*_arg3
));
10380 _resultobj
= t_output_helper(_resultobj
, o
);
10385 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
10388 src
= (wxRegion
*) ptr
;
10389 dest
= (wxGDIObject
*) src
;
10390 return (void *) dest
;
10393 static void *SwigwxRegionTowxObject(void *ptr
) {
10396 src
= (wxRegion
*) ptr
;
10397 dest
= (wxObject
*) src
;
10398 return (void *) dest
;
10401 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10402 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10403 PyObject
* _resultobj
;
10404 wxRegion
* _result
;
10405 long _arg0
= (long ) 0;
10406 long _arg1
= (long ) 0;
10407 long _arg2
= (long ) 0;
10408 long _arg3
= (long ) 0;
10409 char *_kwnames
[] = { "x","y","width","height", NULL
};
10413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10416 wxPy_BEGIN_ALLOW_THREADS
;
10417 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
10419 wxPy_END_ALLOW_THREADS
;
10420 if (PyErr_Occurred()) return NULL
;
10422 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
10423 _resultobj
= Py_BuildValue("s",_ptemp
);
10425 Py_INCREF(Py_None
);
10426 _resultobj
= Py_None
;
10431 #define delete_wxRegion(_swigobj) (delete _swigobj)
10432 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10433 PyObject
* _resultobj
;
10435 PyObject
* _argo0
= 0;
10436 char *_kwnames
[] = { "self", NULL
};
10439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
10442 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10443 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10449 wxPy_BEGIN_ALLOW_THREADS
;
10450 delete_wxRegion(_arg0
);
10452 wxPy_END_ALLOW_THREADS
;
10453 if (PyErr_Occurred()) return NULL
;
10454 } Py_INCREF(Py_None
);
10455 _resultobj
= Py_None
;
10459 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10460 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10461 PyObject
* _resultobj
;
10463 PyObject
* _argo0
= 0;
10464 char *_kwnames
[] = { "self", NULL
};
10467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
10470 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10471 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10477 wxPy_BEGIN_ALLOW_THREADS
;
10478 wxRegion_Clear(_arg0
);
10480 wxPy_END_ALLOW_THREADS
;
10481 if (PyErr_Occurred()) return NULL
;
10482 } Py_INCREF(Py_None
);
10483 _resultobj
= Py_None
;
10487 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10488 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10489 PyObject
* _resultobj
;
10490 wxRegionContain _result
;
10494 PyObject
* _argo0
= 0;
10495 char *_kwnames
[] = { "self","x","y", NULL
};
10498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10508 wxPy_BEGIN_ALLOW_THREADS
;
10509 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
10511 wxPy_END_ALLOW_THREADS
;
10512 if (PyErr_Occurred()) return NULL
;
10513 } _resultobj
= Py_BuildValue("i",_result
);
10517 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10518 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10519 PyObject
* _resultobj
;
10520 wxRegionContain _result
;
10523 PyObject
* _argo0
= 0;
10525 PyObject
* _obj1
= 0;
10526 char *_kwnames
[] = { "self","pt", NULL
};
10529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
10532 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10533 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10534 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10540 if (! wxPoint_helper(_obj1
, &_arg1
))
10544 wxPy_BEGIN_ALLOW_THREADS
;
10545 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
10547 wxPy_END_ALLOW_THREADS
;
10548 if (PyErr_Occurred()) return NULL
;
10549 } _resultobj
= Py_BuildValue("i",_result
);
10553 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10554 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10555 PyObject
* _resultobj
;
10556 wxRegionContain _result
;
10559 PyObject
* _argo0
= 0;
10561 PyObject
* _obj1
= 0;
10562 char *_kwnames
[] = { "self","rect", NULL
};
10565 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
10568 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10569 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10570 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10576 if (! wxRect_helper(_obj1
, &_arg1
))
10580 wxPy_BEGIN_ALLOW_THREADS
;
10581 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
10583 wxPy_END_ALLOW_THREADS
;
10584 if (PyErr_Occurred()) return NULL
;
10585 } _resultobj
= Py_BuildValue("i",_result
);
10589 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10590 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10591 PyObject
* _resultobj
;
10592 wxRegionContain _result
;
10598 PyObject
* _argo0
= 0;
10599 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
10602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10605 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10606 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10612 wxPy_BEGIN_ALLOW_THREADS
;
10613 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10615 wxPy_END_ALLOW_THREADS
;
10616 if (PyErr_Occurred()) return NULL
;
10617 } _resultobj
= Py_BuildValue("i",_result
);
10621 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10622 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10623 PyObject
* _resultobj
;
10626 PyObject
* _argo0
= 0;
10627 char *_kwnames
[] = { "self", NULL
};
10631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
10634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10641 wxPy_BEGIN_ALLOW_THREADS
;
10642 _result
= new wxRect (wxRegion_GetBox(_arg0
));
10644 wxPy_END_ALLOW_THREADS
;
10645 if (PyErr_Occurred()) return NULL
;
10646 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10647 _resultobj
= Py_BuildValue("s",_ptemp
);
10651 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10652 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10653 PyObject
* _resultobj
;
10660 PyObject
* _argo0
= 0;
10661 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10664 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10667 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10668 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10669 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10674 wxPy_BEGIN_ALLOW_THREADS
;
10675 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10677 wxPy_END_ALLOW_THREADS
;
10678 if (PyErr_Occurred()) return NULL
;
10679 } _resultobj
= Py_BuildValue("i",_result
);
10683 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10684 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10685 PyObject
* _resultobj
;
10689 PyObject
* _argo0
= 0;
10691 PyObject
* _obj1
= 0;
10692 char *_kwnames
[] = { "self","rect", NULL
};
10695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
10698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
10706 if (! wxRect_helper(_obj1
, &_arg1
))
10710 wxPy_BEGIN_ALLOW_THREADS
;
10711 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
10713 wxPy_END_ALLOW_THREADS
;
10714 if (PyErr_Occurred()) return NULL
;
10715 } _resultobj
= Py_BuildValue("i",_result
);
10719 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10720 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10721 PyObject
* _resultobj
;
10725 PyObject
* _argo0
= 0;
10726 PyObject
* _argo1
= 0;
10727 char *_kwnames
[] = { "self","region", NULL
};
10730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
10733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10740 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10741 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10747 wxPy_BEGIN_ALLOW_THREADS
;
10748 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
10750 wxPy_END_ALLOW_THREADS
;
10751 if (PyErr_Occurred()) return NULL
;
10752 } _resultobj
= Py_BuildValue("i",_result
);
10756 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10757 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10758 PyObject
* _resultobj
;
10761 PyObject
* _argo0
= 0;
10762 char *_kwnames
[] = { "self", NULL
};
10765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
10768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
10775 wxPy_BEGIN_ALLOW_THREADS
;
10776 _result
= (bool )wxRegion_IsEmpty(_arg0
);
10778 wxPy_END_ALLOW_THREADS
;
10779 if (PyErr_Occurred()) return NULL
;
10780 } _resultobj
= Py_BuildValue("i",_result
);
10784 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10785 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10786 PyObject
* _resultobj
;
10793 PyObject
* _argo0
= 0;
10794 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10800 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10801 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
10807 wxPy_BEGIN_ALLOW_THREADS
;
10808 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10810 wxPy_END_ALLOW_THREADS
;
10811 if (PyErr_Occurred()) return NULL
;
10812 } _resultobj
= Py_BuildValue("i",_result
);
10816 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10817 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10818 PyObject
* _resultobj
;
10822 PyObject
* _argo0
= 0;
10824 PyObject
* _obj1
= 0;
10825 char *_kwnames
[] = { "self","rect", NULL
};
10828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
10831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
10839 if (! wxRect_helper(_obj1
, &_arg1
))
10843 wxPy_BEGIN_ALLOW_THREADS
;
10844 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
10846 wxPy_END_ALLOW_THREADS
;
10847 if (PyErr_Occurred()) return NULL
;
10848 } _resultobj
= Py_BuildValue("i",_result
);
10852 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10853 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10854 PyObject
* _resultobj
;
10858 PyObject
* _argo0
= 0;
10859 PyObject
* _argo1
= 0;
10860 char *_kwnames
[] = { "self","region", NULL
};
10863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
10866 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10867 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10868 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10873 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10874 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10880 wxPy_BEGIN_ALLOW_THREADS
;
10881 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
10883 wxPy_END_ALLOW_THREADS
;
10884 if (PyErr_Occurred()) return NULL
;
10885 } _resultobj
= Py_BuildValue("i",_result
);
10889 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10890 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10891 PyObject
* _resultobj
;
10898 PyObject
* _argo0
= 0;
10899 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10905 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10906 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
10912 wxPy_BEGIN_ALLOW_THREADS
;
10913 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10915 wxPy_END_ALLOW_THREADS
;
10916 if (PyErr_Occurred()) return NULL
;
10917 } _resultobj
= Py_BuildValue("i",_result
);
10921 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10922 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10923 PyObject
* _resultobj
;
10927 PyObject
* _argo0
= 0;
10929 PyObject
* _obj1
= 0;
10930 char *_kwnames
[] = { "self","rect", NULL
};
10933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
10936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
10944 if (! wxRect_helper(_obj1
, &_arg1
))
10948 wxPy_BEGIN_ALLOW_THREADS
;
10949 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
10951 wxPy_END_ALLOW_THREADS
;
10952 if (PyErr_Occurred()) return NULL
;
10953 } _resultobj
= Py_BuildValue("i",_result
);
10957 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10958 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10959 PyObject
* _resultobj
;
10963 PyObject
* _argo0
= 0;
10964 PyObject
* _argo1
= 0;
10965 char *_kwnames
[] = { "self","region", NULL
};
10968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
10971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10978 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10979 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10985 wxPy_BEGIN_ALLOW_THREADS
;
10986 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
10988 wxPy_END_ALLOW_THREADS
;
10989 if (PyErr_Occurred()) return NULL
;
10990 } _resultobj
= Py_BuildValue("i",_result
);
10994 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10995 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10996 PyObject
* _resultobj
;
11003 PyObject
* _argo0
= 0;
11004 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11017 wxPy_BEGIN_ALLOW_THREADS
;
11018 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11020 wxPy_END_ALLOW_THREADS
;
11021 if (PyErr_Occurred()) return NULL
;
11022 } _resultobj
= Py_BuildValue("i",_result
);
11026 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11027 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11028 PyObject
* _resultobj
;
11032 PyObject
* _argo0
= 0;
11034 PyObject
* _obj1
= 0;
11035 char *_kwnames
[] = { "self","rect", NULL
};
11038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
11041 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11042 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11043 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11049 if (! wxRect_helper(_obj1
, &_arg1
))
11053 wxPy_BEGIN_ALLOW_THREADS
;
11054 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
11056 wxPy_END_ALLOW_THREADS
;
11057 if (PyErr_Occurred()) return NULL
;
11058 } _resultobj
= Py_BuildValue("i",_result
);
11062 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11063 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11064 PyObject
* _resultobj
;
11068 PyObject
* _argo0
= 0;
11069 PyObject
* _argo1
= 0;
11070 char *_kwnames
[] = { "self","region", NULL
};
11073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
11076 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11077 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11083 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11084 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11090 wxPy_BEGIN_ALLOW_THREADS
;
11091 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
11093 wxPy_END_ALLOW_THREADS
;
11094 if (PyErr_Occurred()) return NULL
;
11095 } _resultobj
= Py_BuildValue("i",_result
);
11099 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
11100 wxRegionIterator
*src
;
11102 src
= (wxRegionIterator
*) ptr
;
11103 dest
= (wxObject
*) src
;
11104 return (void *) dest
;
11107 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11108 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11109 PyObject
* _resultobj
;
11110 wxRegionIterator
* _result
;
11112 PyObject
* _argo0
= 0;
11113 char *_kwnames
[] = { "region", NULL
};
11117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
11120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11127 wxPy_BEGIN_ALLOW_THREADS
;
11128 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
11130 wxPy_END_ALLOW_THREADS
;
11131 if (PyErr_Occurred()) return NULL
;
11133 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
11134 _resultobj
= Py_BuildValue("s",_ptemp
);
11136 Py_INCREF(Py_None
);
11137 _resultobj
= Py_None
;
11142 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11143 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11144 PyObject
* _resultobj
;
11145 wxRegionIterator
* _arg0
;
11146 PyObject
* _argo0
= 0;
11147 char *_kwnames
[] = { "self", NULL
};
11150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
11153 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11154 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11155 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11160 wxPy_BEGIN_ALLOW_THREADS
;
11161 delete_wxRegionIterator(_arg0
);
11163 wxPy_END_ALLOW_THREADS
;
11164 if (PyErr_Occurred()) return NULL
;
11165 } Py_INCREF(Py_None
);
11166 _resultobj
= Py_None
;
11170 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11171 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11172 PyObject
* _resultobj
;
11174 wxRegionIterator
* _arg0
;
11175 PyObject
* _argo0
= 0;
11176 char *_kwnames
[] = { "self", NULL
};
11179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
11182 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11183 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11184 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11189 wxPy_BEGIN_ALLOW_THREADS
;
11190 _result
= (long )wxRegionIterator_GetX(_arg0
);
11192 wxPy_END_ALLOW_THREADS
;
11193 if (PyErr_Occurred()) return NULL
;
11194 } _resultobj
= Py_BuildValue("l",_result
);
11198 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11199 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11200 PyObject
* _resultobj
;
11202 wxRegionIterator
* _arg0
;
11203 PyObject
* _argo0
= 0;
11204 char *_kwnames
[] = { "self", NULL
};
11207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
11210 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11211 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11217 wxPy_BEGIN_ALLOW_THREADS
;
11218 _result
= (long )wxRegionIterator_GetY(_arg0
);
11220 wxPy_END_ALLOW_THREADS
;
11221 if (PyErr_Occurred()) return NULL
;
11222 } _resultobj
= Py_BuildValue("l",_result
);
11226 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11227 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11228 PyObject
* _resultobj
;
11230 wxRegionIterator
* _arg0
;
11231 PyObject
* _argo0
= 0;
11232 char *_kwnames
[] = { "self", NULL
};
11235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
11238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11245 wxPy_BEGIN_ALLOW_THREADS
;
11246 _result
= (long )wxRegionIterator_GetW(_arg0
);
11248 wxPy_END_ALLOW_THREADS
;
11249 if (PyErr_Occurred()) return NULL
;
11250 } _resultobj
= Py_BuildValue("l",_result
);
11254 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11255 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11256 PyObject
* _resultobj
;
11258 wxRegionIterator
* _arg0
;
11259 PyObject
* _argo0
= 0;
11260 char *_kwnames
[] = { "self", NULL
};
11263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
11266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11273 wxPy_BEGIN_ALLOW_THREADS
;
11274 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
11276 wxPy_END_ALLOW_THREADS
;
11277 if (PyErr_Occurred()) return NULL
;
11278 } _resultobj
= Py_BuildValue("l",_result
);
11282 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11283 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11284 PyObject
* _resultobj
;
11286 wxRegionIterator
* _arg0
;
11287 PyObject
* _argo0
= 0;
11288 char *_kwnames
[] = { "self", NULL
};
11291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
11294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11301 wxPy_BEGIN_ALLOW_THREADS
;
11302 _result
= (long )wxRegionIterator_GetH(_arg0
);
11304 wxPy_END_ALLOW_THREADS
;
11305 if (PyErr_Occurred()) return NULL
;
11306 } _resultobj
= Py_BuildValue("l",_result
);
11310 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11311 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11312 PyObject
* _resultobj
;
11314 wxRegionIterator
* _arg0
;
11315 PyObject
* _argo0
= 0;
11316 char *_kwnames
[] = { "self", NULL
};
11319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
11322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
11329 wxPy_BEGIN_ALLOW_THREADS
;
11330 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
11332 wxPy_END_ALLOW_THREADS
;
11333 if (PyErr_Occurred()) return NULL
;
11334 } _resultobj
= Py_BuildValue("l",_result
);
11338 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
11339 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11340 PyObject
* _resultobj
;
11342 wxRegionIterator
* _arg0
;
11343 PyObject
* _argo0
= 0;
11344 char *_kwnames
[] = { "self", NULL
};
11348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
11351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
11358 wxPy_BEGIN_ALLOW_THREADS
;
11359 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
11361 wxPy_END_ALLOW_THREADS
;
11362 if (PyErr_Occurred()) return NULL
;
11363 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
11364 _resultobj
= Py_BuildValue("s",_ptemp
);
11368 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11369 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11370 PyObject
* _resultobj
;
11372 wxRegionIterator
* _arg0
;
11373 PyObject
* _argo0
= 0;
11374 char *_kwnames
[] = { "self", NULL
};
11377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
11380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11387 wxPy_BEGIN_ALLOW_THREADS
;
11388 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
11390 wxPy_END_ALLOW_THREADS
;
11391 if (PyErr_Occurred()) return NULL
;
11392 } _resultobj
= Py_BuildValue("i",_result
);
11396 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11397 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11398 PyObject
* _resultobj
;
11399 wxRegionIterator
* _arg0
;
11400 PyObject
* _argo0
= 0;
11401 char *_kwnames
[] = { "self", NULL
};
11404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
11407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11414 wxPy_BEGIN_ALLOW_THREADS
;
11415 wxRegionIterator_Reset(_arg0
);
11417 wxPy_END_ALLOW_THREADS
;
11418 if (PyErr_Occurred()) return NULL
;
11419 } Py_INCREF(Py_None
);
11420 _resultobj
= Py_None
;
11424 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
11427 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11428 PyObject
* _resultobj
;
11429 wxRegionIterator
* _arg0
;
11430 PyObject
* _argo0
= 0;
11431 char *_kwnames
[] = { "self", NULL
};
11434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
11437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11444 wxPy_BEGIN_ALLOW_THREADS
;
11445 wxRegionIterator_Next(_arg0
);
11447 wxPy_END_ALLOW_THREADS
;
11448 if (PyErr_Occurred()) return NULL
;
11449 } Py_INCREF(Py_None
);
11450 _resultobj
= Py_None
;
11454 static PyMethodDef gdicMethods
[] = {
11455 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
11456 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
11457 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
11458 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
11459 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11460 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
11461 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11462 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
11463 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
11464 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
11465 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11466 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11467 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
11468 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
11469 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
11470 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
11471 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
11472 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
11473 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
11474 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
11475 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
11476 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
11477 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
11478 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
11479 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
11480 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
11481 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
11482 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
11483 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
11484 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
11485 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11486 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11487 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11488 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11489 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
11490 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
11491 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
11492 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
11493 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
11494 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
11495 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
11496 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
11497 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11498 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11499 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11500 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
11501 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11502 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11503 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11504 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
11505 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
11506 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
11507 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
11508 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
11509 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11510 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11511 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
11512 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
11513 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
11514 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
11515 { "wxDC_GetHDC", (PyCFunction
) _wrap_wxDC_GetHDC
, METH_VARARGS
| METH_KEYWORDS
},
11516 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11517 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11518 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
11519 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11520 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11521 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11522 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
11523 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11524 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11525 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11526 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11527 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
11528 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
11529 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11530 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11531 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11532 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
11533 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11534 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11535 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11536 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11537 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
11538 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11539 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11540 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
11541 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11542 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
11543 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11544 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11545 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11546 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
11547 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
11548 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
11549 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
11550 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
11551 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
11552 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
11553 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
11554 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11555 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11556 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11557 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11558 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11559 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
11560 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11561 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
11562 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11563 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
11564 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11565 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11566 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11567 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11568 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
11569 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
11570 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
11571 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
11572 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11573 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11574 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
11575 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
11576 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11577 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
11578 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
11579 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
11580 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11581 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
11582 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11583 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
11584 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
11585 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
11586 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
11587 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
11588 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
11589 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
11590 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
11591 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
11592 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
11593 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
11594 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
11595 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
11596 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11597 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
11598 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11599 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
11600 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11601 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
11602 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
11603 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
11604 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
11605 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11606 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11607 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11608 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11609 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11610 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11611 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11612 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11613 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11614 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
11615 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
11616 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
11617 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11618 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11619 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11620 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11621 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11622 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11623 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11624 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11625 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
11626 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11627 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11628 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11629 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11630 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11631 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
11632 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11633 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11634 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
11635 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
11636 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
11637 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
11638 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
11639 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11640 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
11641 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
11642 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
11643 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11644 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11645 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
11646 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
11647 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
11648 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11649 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11650 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
11651 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
11652 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
11653 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11654 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11655 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11656 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11657 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11658 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11659 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11660 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11661 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11662 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11663 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11664 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11665 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11666 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11667 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11668 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11669 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11670 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11671 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
11672 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11673 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11674 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11675 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
11676 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
11677 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
11678 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
11679 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
11680 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11681 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
11682 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11683 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11684 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11685 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
11686 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
11687 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
11688 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
11689 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11690 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11691 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11692 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11693 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11694 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11695 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11696 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11697 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11698 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
11699 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
11700 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11701 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
11702 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11703 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11704 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11705 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11706 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11707 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11708 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11709 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11710 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11711 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11712 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11713 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11714 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
11715 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
11716 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
11717 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
11718 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
11719 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11720 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11721 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
11722 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11723 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11724 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11725 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11726 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11727 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11728 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11729 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11730 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11731 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11732 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
11733 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
11734 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11735 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
11736 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11737 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11738 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11739 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
11740 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11741 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11742 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11743 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11744 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
11745 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
11746 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
11747 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11748 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
11749 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
11750 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
11751 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11752 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11753 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11760 * This table is used by the pointer type-checker
11762 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
11763 { "_signed_long","_long",0},
11764 { "_wxPrintQuality","_wxCoord",0},
11765 { "_wxPrintQuality","_int",0},
11766 { "_wxPrintQuality","_signed_int",0},
11767 { "_wxPrintQuality","_unsigned_int",0},
11768 { "_wxPrintQuality","_wxWindowID",0},
11769 { "_wxPrintQuality","_uint",0},
11770 { "_wxPrintQuality","_EBool",0},
11771 { "_wxPrintQuality","_size_t",0},
11772 { "_wxPrintQuality","_time_t",0},
11773 { "_byte","_unsigned_char",0},
11774 { "_long","_unsigned_long",0},
11775 { "_long","_signed_long",0},
11776 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
11777 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
11778 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
11779 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
11780 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
11781 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
11782 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
11783 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
11784 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
11785 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
11786 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
11787 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
11788 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
11789 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11790 { "_size_t","_wxCoord",0},
11791 { "_size_t","_wxPrintQuality",0},
11792 { "_size_t","_time_t",0},
11793 { "_size_t","_unsigned_int",0},
11794 { "_size_t","_int",0},
11795 { "_size_t","_wxWindowID",0},
11796 { "_size_t","_uint",0},
11797 { "_uint","_wxCoord",0},
11798 { "_uint","_wxPrintQuality",0},
11799 { "_uint","_time_t",0},
11800 { "_uint","_size_t",0},
11801 { "_uint","_unsigned_int",0},
11802 { "_uint","_int",0},
11803 { "_uint","_wxWindowID",0},
11804 { "_wxChar","_char",0},
11805 { "_char","_wxChar",0},
11806 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
11807 { "_EBool","_wxCoord",0},
11808 { "_EBool","_wxPrintQuality",0},
11809 { "_EBool","_signed_int",0},
11810 { "_EBool","_int",0},
11811 { "_EBool","_wxWindowID",0},
11812 { "_unsigned_long","_long",0},
11813 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
11814 { "_signed_int","_wxCoord",0},
11815 { "_signed_int","_wxPrintQuality",0},
11816 { "_signed_int","_EBool",0},
11817 { "_signed_int","_wxWindowID",0},
11818 { "_signed_int","_int",0},
11819 { "_WXTYPE","_short",0},
11820 { "_WXTYPE","_signed_short",0},
11821 { "_WXTYPE","_unsigned_short",0},
11822 { "_unsigned_short","_WXTYPE",0},
11823 { "_unsigned_short","_short",0},
11824 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11825 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
11826 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
11827 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
11828 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject
},
11829 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
11830 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
11831 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
11832 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
11833 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11834 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
11835 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
11836 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
11837 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
11838 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
11839 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11840 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
11841 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
11842 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
11843 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
11844 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
11845 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
11846 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
11847 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
11848 { "_signed_short","_WXTYPE",0},
11849 { "_signed_short","_short",0},
11850 { "_unsigned_char","_byte",0},
11851 { "_unsigned_int","_wxCoord",0},
11852 { "_unsigned_int","_wxPrintQuality",0},
11853 { "_unsigned_int","_time_t",0},
11854 { "_unsigned_int","_size_t",0},
11855 { "_unsigned_int","_uint",0},
11856 { "_unsigned_int","_wxWindowID",0},
11857 { "_unsigned_int","_int",0},
11858 { "_short","_WXTYPE",0},
11859 { "_short","_unsigned_short",0},
11860 { "_short","_signed_short",0},
11861 { "_wxWindowID","_wxCoord",0},
11862 { "_wxWindowID","_wxPrintQuality",0},
11863 { "_wxWindowID","_time_t",0},
11864 { "_wxWindowID","_size_t",0},
11865 { "_wxWindowID","_EBool",0},
11866 { "_wxWindowID","_uint",0},
11867 { "_wxWindowID","_int",0},
11868 { "_wxWindowID","_signed_int",0},
11869 { "_wxWindowID","_unsigned_int",0},
11870 { "_int","_wxCoord",0},
11871 { "_int","_wxPrintQuality",0},
11872 { "_int","_time_t",0},
11873 { "_int","_size_t",0},
11874 { "_int","_EBool",0},
11875 { "_int","_uint",0},
11876 { "_int","_wxWindowID",0},
11877 { "_int","_unsigned_int",0},
11878 { "_int","_signed_int",0},
11879 { "_time_t","_wxCoord",0},
11880 { "_time_t","_wxPrintQuality",0},
11881 { "_time_t","_unsigned_int",0},
11882 { "_time_t","_int",0},
11883 { "_time_t","_wxWindowID",0},
11884 { "_time_t","_uint",0},
11885 { "_time_t","_size_t",0},
11886 { "_wxCoord","_int",0},
11887 { "_wxCoord","_signed_int",0},
11888 { "_wxCoord","_unsigned_int",0},
11889 { "_wxCoord","_wxWindowID",0},
11890 { "_wxCoord","_uint",0},
11891 { "_wxCoord","_EBool",0},
11892 { "_wxCoord","_size_t",0},
11893 { "_wxCoord","_time_t",0},
11894 { "_wxCoord","_wxPrintQuality",0},
11897 static PyObject
*SWIG_globals
;
11901 SWIGEXPORT(void) initgdic() {
11903 SWIG_globals
= SWIG_newvarlink();
11904 m
= Py_InitModule("gdic", gdicMethods
);
11905 d
= PyModule_GetDict(m
);
11906 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
11907 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
11908 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
11909 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
11910 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
11911 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
11912 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
11913 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
11914 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
11915 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
11916 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
11917 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
11918 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
11919 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
11920 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
11921 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
11922 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
11923 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
11924 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
11925 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
11926 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
11927 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
11928 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
11929 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
11930 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
11931 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
11932 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
11933 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
11934 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
11935 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
11936 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
11937 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
11938 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
11939 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
11940 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
11941 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
11942 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
11943 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
11944 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
11945 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
11946 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
11947 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
11948 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
11949 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
11950 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
11951 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
11952 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
11953 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
11954 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
11955 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
11956 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
11957 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
11958 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
11959 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
11960 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
11961 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
11962 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
11963 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
11964 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
11965 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
11966 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
11967 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
11968 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
11969 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
11970 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
11971 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
11972 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
11973 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
11974 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
11975 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
11976 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
11977 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
11978 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
11979 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
11980 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
11981 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
11982 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
11983 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
11984 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
11985 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
11986 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
11987 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
11988 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
11989 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
11990 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
11991 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
11992 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
11993 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
11994 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
11995 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
11996 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
11997 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
11998 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
11999 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
12000 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
12001 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
12002 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
12003 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
12004 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
12005 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
12006 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
12007 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
12008 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
12009 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
12010 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
12011 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
12012 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
12013 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
12014 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
12015 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
12016 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
12017 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
12018 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
12021 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
12022 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);